@fmdeui/fmui 1.0.83 → 1.0.84

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.
@@ -4,5 +4,5 @@ export declare function getlimit(value: string): any;
4
4
  * @param value 表单字段路径
5
5
  * @returns 表单字段属性
6
6
  */
7
- export declare function getFormItemProp(path: string, field: string): boolean;
7
+ export declare function getFormItemProp(path: string, field: string): string;
8
8
  export declare function getFormItemLabel(path: string, field: string, defaultValue: string): string;
@@ -12,9 +12,9 @@ function getFormItemProp(path, field) {
12
12
  const item = stores.userInfos.formDes.find((item2) => item2.path === path);
13
13
  if (item && item.formDes.length > 0) {
14
14
  const xitem = item.formDes.find((v) => v.field === field);
15
- if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;
15
+ if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0 ? field : "";
16
16
  }
17
- return false;
17
+ return "";
18
18
  }
19
19
  function getFormItemLabel(path, field, defaultValue) {
20
20
  const stores = useUserInfo();
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.83 */
1
+ /*! fmdeui-fmui v1.0.84 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('vue-router'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'vue-router', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -20496,9 +20496,9 @@
20496
20496
  const item = stores.userInfos.formDes.find((item2) => item2.path === path);
20497
20497
  if (item && item.formDes.length > 0) {
20498
20498
  const xitem = item.formDes.find((v) => v.field === field);
20499
- if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0;
20499
+ if (xitem) return xitem.isRequired == 1 || xitem.isFromValid > 0 ? field : "";
20500
20500
  }
20501
- return false;
20501
+ return "";
20502
20502
  }
20503
20503
  function getFormItemLabel(path, field, defaultValue) {
20504
20504
  const stores = useUserInfo();