mooho-base-admin-plus 0.4.64 → 0.4.65

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.64",
4
+ "version": "0.4.65",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  "build": "vite build",
13
13
  "preview": "vite preview",
14
14
  "lint": "vue-cli-service lint",
15
- "package": "webpack --config build/webpack.dist.prod.config.js",
15
+ "package": "vite build",
16
16
  "styleguide": "vue-styleguidist server",
17
17
  "styleguide:build": "vue-styleguidist build"
18
18
  },
@@ -276,28 +276,28 @@
276
276
  // 当前日期
277
277
  let date = new Date();
278
278
  let value = date.toISOString().replace(/T.*/, '');
279
- this.setData(data, item.code, new Date(value));
279
+ this.setFilterData(data, item, new Date(value));
280
280
  } else if (item.defaultValue.startsWith('{today(') && item.defaultValue.endsWith(')}')) {
281
281
  // 当前时间转字符串
282
282
  let format = item.defaultValue.substr(7, item.defaultValue.length - 9);
283
- this.setData(data, item.code, dateFormat(new Date(), format));
283
+ this.setFilterData(data, item, dateFormat(new Date(), format));
284
284
  } else if (item.defaultValue == '{currentUserID}') {
285
285
  // 当前用户编号
286
- this.setData(data, item.code, this.info.id);
286
+ this.setFilterData(data, item, this.info.id);
287
287
  } else if (item.defaultValue == '{currentUser}') {
288
288
  // 当前用户姓名
289
- this.setData(data, item.code, this.info.name);
289
+ this.setFilterData(data, item, this.info.name);
290
290
  } else {
291
291
  if (item.dataType === 'Integer') {
292
- this.setData(data, item.code, parseInt(item.defaultValue));
292
+ this.setFilterData(data, item, parseInt(item.defaultValue));
293
293
  } else if (item.dataType === 'Decimal') {
294
- this.setData(data, item.code, parseFloat(item.defaultValue));
294
+ this.setFilterData(data, item, parseFloat(item.defaultValue));
295
295
  } else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'TRUE') {
296
- this.setData(data, item.code, true);
296
+ this.setFilterData(data, item, true);
297
297
  } else if (item.dataType === 'Boolean' && item.defaultValue.toUpperCase == 'FALSE') {
298
- this.setData(data, item.code, false);
298
+ this.setFilterData(data, item, false);
299
299
  } else {
300
- this.setData(data, item.code, item.defaultValue);
300
+ this.setFilterData(data, item, item.defaultValue);
301
301
  }
302
302
  }
303
303
  }
@@ -409,7 +409,7 @@
409
409
  @click="remove(rowData(row, index), index)"
410
410
  ></Button>
411
411
  <Button
412
- v-if="this.static && tableView.adjustEnable && !readonly"
412
+ v-if="static && tableView.adjustEnable && !readonly"
413
413
  size="small"
414
414
  :title="$t('Front_Btn_Up')"
415
415
  type="primary"
@@ -417,7 +417,7 @@
417
417
  @click="up(rowData(row, index), index)"
418
418
  ></Button>
419
419
  <Button
420
- v-if="this.static && tableView.adjustEnable && !readonly"
420
+ v-if="static && tableView.adjustEnable && !readonly"
421
421
  size="small"
422
422
  :title="$t('Front_Btn_Down')"
423
423
  type="primary"
@@ -15,14 +15,24 @@
15
15
  <i-header-search v-if="showSearch && !headerMenu && !isMobile && !showBreadcrumb" />
16
16
  <div class="i-layout-header-right">
17
17
  <slot name="header" />
18
- <i-header-search v-if="(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))" />
18
+ <slot name="search">
19
+ <i-header-search v-if="(showSearch && isMobile) || (showSearch && (headerMenu || showBreadcrumb))" />
20
+ </slot>
19
21
  <i-menu-head v-if="headerMenu && isMobile" />
20
- <i-header-log v-if="isDesktop && showLog" />
22
+ <!-- <i-header-log v-if="isDesktop && showLog" /> -->
21
23
  <i-header-fullscreen v-if="isDesktop && showFullscreen" />
22
- <i-header-notice ref="notice" v-if="showNotice" />
23
- <i-header-user />
24
- <i-header-i18n v-if="showI18n" />
25
- <i-header-setting v-if="enableSetting && !isMobile" />
24
+ <slot name="notice">
25
+ <i-header-notice ref="notice" v-if="showNotice" />
26
+ </slot>
27
+ <slot name="user">
28
+ <i-header-user />
29
+ </slot>
30
+ <slot name="i18n">
31
+ <i-header-i18n v-if="showI18n" />
32
+ </slot>
33
+ <slot name="setting">
34
+ <i-header-setting v-if="enableSetting && !isMobile" />
35
+ </slot>
26
36
  </div>
27
37
  </Header>
28
38
  </transition>
@@ -26,7 +26,7 @@
26
26
  </template>
27
27
  <template v-else>
28
28
  <Tooltip
29
- :content="this.layout.showI18n ? this.$t('Permission_' + item.code) : item.title"
29
+ :content="layout.showI18n ? $t('Permission_' + item.code) : item.title"
30
30
  placement="right"
31
31
  v-if="item.children === undefined || !item.children.length"
32
32
  :key="index"