no message

This commit is contained in:
kuaifan 2025-05-09 17:49:01 +08:00
parent efab4fb41b
commit b2148eb656
5 changed files with 26 additions and 7 deletions

View File

@ -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 = [];

File diff suppressed because one or more lines are too long

View File

@ -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

View File

@ -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