mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-31 01:38:12 +00:00
no message
This commit is contained in:
parent
efab4fb41b
commit
b2148eb656
@ -246,6 +246,7 @@ class Apps
|
|||||||
$info = [
|
$info = [
|
||||||
'name' => $appName,
|
'name' => $appName,
|
||||||
'description' => '',
|
'description' => '',
|
||||||
|
'tags' => [],
|
||||||
'icon' => self::processAppIcon($appName, ['logo.svg', 'logo.png', 'icon.svg', 'icon.png']),
|
'icon' => self::processAppIcon($appName, ['logo.svg', 'logo.png', 'icon.svg', 'icon.png']),
|
||||||
'author' => '',
|
'author' => '',
|
||||||
'website' => '',
|
'website' => '',
|
||||||
@ -268,6 +269,15 @@ class Apps
|
|||||||
$info['description'] = self::getMultiLanguageField($configData['description']);
|
$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'])) {
|
if (isset($configData['fields']) && is_array($configData['fields'])) {
|
||||||
$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"
|
:name="appName"
|
||||||
:url="appUrl"
|
:url="appUrl"
|
||||||
:keep-alive="keepAlive"
|
:keep-alive="keepAlive"
|
||||||
|
:disable-scopecss="disableScopecss"
|
||||||
:data="appData"
|
:data="appData"
|
||||||
@created="$emit('created', $event)"
|
@created="$emit('created', $event)"
|
||||||
@beforemount="$emit('beforemount', $event)"
|
@beforemount="$emit('beforemount', $event)"
|
||||||
@ -37,6 +38,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
disableScopecss: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
isLoading: {
|
isLoading: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false
|
default: false
|
||||||
|
|||||||
@ -16,6 +16,7 @@
|
|||||||
:app-name="app.name"
|
:app-name="app.name"
|
||||||
:app-url="app.url"
|
:app-url="app.url"
|
||||||
:keep-alive="app.keepAlive"
|
:keep-alive="app.keepAlive"
|
||||||
|
:disable-scopecss="app.disableScopecss"
|
||||||
:is-loading="app.isLoading"
|
:is-loading="app.isLoading"
|
||||||
:app-data="appData(app.name)"
|
:app-data="appData(app.name)"
|
||||||
@created="created"
|
@created="created"
|
||||||
@ -38,6 +39,7 @@
|
|||||||
:app-name="app.name"
|
:app-name="app.name"
|
||||||
:app-url="app.url"
|
:app-url="app.url"
|
||||||
:keep-alive="app.keepAlive"
|
:keep-alive="app.keepAlive"
|
||||||
|
:disable-scopecss="app.disableScopecss"
|
||||||
:is-loading="app.isLoading"
|
:is-loading="app.isLoading"
|
||||||
:app-data="appData(app.name)"
|
:app-data="appData(app.name)"
|
||||||
@created="created"
|
@created="created"
|
||||||
@ -344,11 +346,12 @@ export default {
|
|||||||
/**
|
/**
|
||||||
* 打开微应用
|
* 打开微应用
|
||||||
* @param config
|
* @param config
|
||||||
* - name 应用名称
|
* - name 应用名称
|
||||||
* - url 应用地址
|
* - url 应用地址
|
||||||
* - props 传递参数
|
* - props 传递参数
|
||||||
* - transparent 是否透明模式 (true/false),默认 false
|
* - transparent 是否透明模式 (true/false),默认 false
|
||||||
* - keepAlive 是否开启微应用保活 (true/false),默认 true
|
* - keepAlive 是否开启微应用保活 (true/false),默认 true
|
||||||
|
* - disableScopecss 是否禁用样式隔离 (true/false),默认 false
|
||||||
*/
|
*/
|
||||||
openMicroApp(config) {
|
openMicroApp(config) {
|
||||||
// 处理数据
|
// 处理数据
|
||||||
@ -357,6 +360,7 @@ export default {
|
|||||||
config.props = $A.isJson(config.props) ? config.props : {}
|
config.props = $A.isJson(config.props) ? config.props : {}
|
||||||
config.transparent = typeof config.transparent == 'boolean' ? config.transparent : false
|
config.transparent = typeof config.transparent == 'boolean' ? config.transparent : false
|
||||||
config.keepAlive = typeof config.keepAlive == 'boolean' ? config.keepAlive : true
|
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);
|
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