mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-29 15:58:14 +00:00
no message
This commit is contained in:
parent
efab4fb41b
commit
b2148eb656
@ -246,6 +246,7 @@ class Apps
|
||||
$info = [
|
||||
'name' => $appName,
|
||||
'description' => '',
|
||||
'tags' => [],
|
||||
'icon' => self::processAppIcon($appName, ['logo.svg', 'logo.png', 'icon.svg', 'icon.png']),
|
||||
'author' => '',
|
||||
'website' => '',
|
||||
@ -268,6 +269,15 @@ class Apps
|
||||
$info['description'] = self::getMultiLanguageField($configData['description']);
|
||||
}
|
||||
|
||||
// 处理标签
|
||||
if (isset($configData['tags']) && is_array($configData['tags'])) {
|
||||
foreach ($configData['tags'] as $tag) {
|
||||
if (trim($tag)) {
|
||||
$info['tags'][] = trim($tag);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 处理字段
|
||||
if (isset($configData['fields']) && is_array($configData['fields'])) {
|
||||
$fields = [];
|
||||
|
||||
2
public/css/iview.css
vendored
2
public/css/iview.css
vendored
File diff suppressed because one or more lines are too long
@ -5,6 +5,7 @@
|
||||
:name="appName"
|
||||
:url="appUrl"
|
||||
:keep-alive="keepAlive"
|
||||
:disable-scopecss="disableScopecss"
|
||||
:data="appData"
|
||||
@created="$emit('created', $event)"
|
||||
@beforemount="$emit('beforemount', $event)"
|
||||
@ -37,6 +38,10 @@ export default {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
disableScopecss: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
isLoading: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
||||
@ -16,6 +16,7 @@
|
||||
:app-name="app.name"
|
||||
:app-url="app.url"
|
||||
:keep-alive="app.keepAlive"
|
||||
:disable-scopecss="app.disableScopecss"
|
||||
:is-loading="app.isLoading"
|
||||
:app-data="appData(app.name)"
|
||||
@created="created"
|
||||
@ -38,6 +39,7 @@
|
||||
:app-name="app.name"
|
||||
:app-url="app.url"
|
||||
:keep-alive="app.keepAlive"
|
||||
:disable-scopecss="app.disableScopecss"
|
||||
:is-loading="app.isLoading"
|
||||
:app-data="appData(app.name)"
|
||||
@created="created"
|
||||
@ -344,11 +346,12 @@ export default {
|
||||
/**
|
||||
* 打开微应用
|
||||
* @param config
|
||||
* - name 应用名称
|
||||
* - url 应用地址
|
||||
* - props 传递参数
|
||||
* - transparent 是否透明模式 (true/false),默认 false
|
||||
* - keepAlive 是否开启微应用保活 (true/false),默认 true
|
||||
* - name 应用名称
|
||||
* - url 应用地址
|
||||
* - props 传递参数
|
||||
* - transparent 是否透明模式 (true/false),默认 false
|
||||
* - keepAlive 是否开启微应用保活 (true/false),默认 true
|
||||
* - disableScopecss 是否禁用样式隔离 (true/false),默认 false
|
||||
*/
|
||||
openMicroApp(config) {
|
||||
// 处理数据
|
||||
@ -357,6 +360,7 @@ export default {
|
||||
config.props = $A.isJson(config.props) ? config.props : {}
|
||||
config.transparent = typeof config.transparent == 'boolean' ? config.transparent : false
|
||||
config.keepAlive = typeof config.keepAlive == 'boolean' ? config.keepAlive : true
|
||||
config.disableScopecss = typeof config.disableScopecss == 'boolean' ? config.disableScopecss : false
|
||||
|
||||
// 判断处理
|
||||
const app = this.apps.find(({name}) => name == config.name);
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user