mooho-base-admin-plus 0.4.58 → 0.4.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.58",
4
+ "version": "0.4.59",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -10,14 +10,14 @@
10
10
  :class="{
11
11
  'i-layout-menu-side-title-text-selected': selected,
12
12
  'i-layout-menu-side-title-text-with-subtitle':
13
- (layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()) || (!layout.showI18n && !!(menu.subtitle || '').trim()),
13
+ (layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()) || (!layout.showI18n && !!(menu.subTitle || '').trim()),
14
14
  'i-layout-menu-side-title-text-with-icon': withIcon
15
15
  }"
16
16
  v-if="!hideTitle"
17
17
  >
18
18
  {{ layout.showI18n ? $t('Permission_' + menu.code) : menu.title }}
19
19
  <em v-if="layout.showI18n && !!($t('Permission_' + menu.code + '_SubName') || '').trim()">{{ $t('Permission_' + menu.code + '_SubName') }}</em>
20
- <em v-if="!layout.showI18n && !!(menu.subtitle || '').trim()">{{ menu.subtitle }}</em>
20
+ <em v-if="!layout.showI18n && !!(menu.subTitle || '').trim()">{{ menu.subTitle }}</em>
21
21
  </span>
22
22
  </span>
23
23
  </template>
@@ -14,7 +14,7 @@
14
14
  </template>
15
15
  <div class="ivu-ml-8 ivu-mr-8">
16
16
  <view-form v-if="!isCustom" ref="form" :readonly="readonly"></view-form>
17
- <component v-if="isCustom" ref="customComponent" :is="customComponent" :readonly="readonly"></component>
17
+ <component v-if="isCustom" ref="customComponent" :is="customComponent" :readonly="readonly" @on-ready="customComponentReady"></component>
18
18
  </div>
19
19
  <template #footer>
20
20
  <div>
@@ -142,11 +142,11 @@
142
142
  this.form.clearValidate();
143
143
  this.readonly = !this.task.activityInst.activity.isEditable;
144
144
 
145
- if (this.form.formView) {
146
- this.width = this.form.formView.width || '800';
147
- this.name = this.form.formView.name;
148
- this.description = this.form.formView.description;
149
- }
145
+ // if (this.form.formView) {
146
+ // this.width = this.form.formView.width || '800';
147
+ // this.name = this.form.formView.name;
148
+ // this.description = this.form.formView.description;
149
+ // }
150
150
 
151
151
  this.opened = true;
152
152
  });
@@ -192,11 +192,11 @@
192
192
  this.form.clearValidate();
193
193
  this.readonly = !this.task.activityInst.activity.isEditable;
194
194
 
195
- if (this.form.formView) {
196
- this.width = this.form.formView.width || '800';
197
- this.name = this.form.formView.name;
198
- this.description = this.form.formView.description;
199
- }
195
+ // if (this.form.formView) {
196
+ // this.width = this.form.formView.width || '800';
197
+ // this.name = this.form.formView.name;
198
+ // this.description = this.form.formView.description;
199
+ // }
200
200
 
201
201
  this.opened = true;
202
202
  });
@@ -230,6 +230,12 @@
230
230
  this.outcomes = res.data;
231
231
  });
232
232
  },
233
+ // 自定义组件就绪
234
+ customComponentReady(formView) {
235
+ this.width = formView.width || '800';
236
+ this.name = formView.name;
237
+ this.description = formView.description;
238
+ },
233
239
  // 执行结果
234
240
  async action(outcome) {
235
241
  let isOK = await this.form.validate();
@@ -49,7 +49,7 @@ function convertMenu(source) {
49
49
  path: reg.test(item.url) ? item.url : '/' + item.url.split('?')[0],
50
50
  code: item.url,
51
51
  title: item.name,
52
- subtitle: item.subName,
52
+ subTitle: item.subName,
53
53
  target: item.isNewWindow ? '_blank' : null,
54
54
  header: 'home',
55
55
  custom: item.icon,