@fmdeui/fmui 1.0.134 → 1.0.136
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/es/hooks/limitsFunction.d.ts +5 -5
- package/es/packages/hooks/limitsFunction.mjs +9 -9
- package/index.js +10 -10
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +10 -10
- package/lib/hooks/limitsFunction.d.ts +5 -5
- package/lib/packages/hooks/limitsFunction.js +9 -9
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{version.css → index.css} +0 -0
- /package/lib/{version.css → make-installer.css} +0 -0
|
@@ -5,27 +5,27 @@ export declare function getlimit(value: string): any;
|
|
|
5
5
|
* @param msg 验证提示
|
|
6
6
|
* @returns 验证规则
|
|
7
7
|
*/
|
|
8
|
-
export declare function getRules(field: string, msg: string): string;
|
|
8
|
+
export declare function getRules(field: string, msg: string, flag?: string): string;
|
|
9
9
|
/**
|
|
10
10
|
* 获取表单字段属性
|
|
11
11
|
* @param field 表单字段
|
|
12
12
|
* @returns 表单字段属性
|
|
13
13
|
*/
|
|
14
|
-
export declare function getFormItemProp(field: string): string;
|
|
14
|
+
export declare function getFormItemProp(field: string, flag?: string): string;
|
|
15
15
|
/**
|
|
16
16
|
* 获取表单字段标签
|
|
17
17
|
* @param field 表单字段
|
|
18
18
|
* @param defaultValue 默认值
|
|
19
19
|
* @returns 表单字段标签
|
|
20
20
|
*/
|
|
21
|
-
export declare function getFormItemLabel(field: string, defaultValue: string): string;
|
|
21
|
+
export declare function getFormItemLabel(field: string, defaultValue: string, flag?: string): string;
|
|
22
22
|
/**
|
|
23
23
|
* 获取表格字段是否显示
|
|
24
24
|
* @param field 表格字段
|
|
25
25
|
* @returns 表格字段是否显示
|
|
26
26
|
*/
|
|
27
|
-
export declare function showTabelColumn(field: string): boolean;
|
|
27
|
+
export declare function showTabelColumn(field: string, flag?: string): boolean;
|
|
28
28
|
export declare function getSubFormFields(flag: string): any;
|
|
29
29
|
export declare function getShowColumn(flag: string, field: string): boolean;
|
|
30
30
|
export declare function getShowColumnWidth(flag: string, field: string, defaultValue?: string, isJson?: boolean): any;
|
|
31
|
-
export declare function getPageSetting(field: string,
|
|
31
|
+
export declare function getPageSetting(field: string, defaultValue?: string, flag?: string): any;
|
|
@@ -8,11 +8,11 @@ function getlimit(value) {
|
|
|
8
8
|
if (matched) return matched.limit;
|
|
9
9
|
return null;
|
|
10
10
|
}
|
|
11
|
-
function getRules(field, msg) {
|
|
11
|
+
function getRules(field, msg, flag = "main") {
|
|
12
12
|
var _a, _b, _c, _d;
|
|
13
13
|
const stores = useUserInfo();
|
|
14
14
|
const route = useRoute();
|
|
15
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
15
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
16
16
|
let rels = [];
|
|
17
17
|
if (ItemField) {
|
|
18
18
|
if (ItemField.isRequired == 1)
|
|
@@ -22,31 +22,31 @@ function getRules(field, msg) {
|
|
|
22
22
|
}
|
|
23
23
|
return rels;
|
|
24
24
|
}
|
|
25
|
-
function getFormItemProp(field) {
|
|
25
|
+
function getFormItemProp(field, flag = "main") {
|
|
26
26
|
var _a, _b, _c, _d;
|
|
27
27
|
const stores = useUserInfo();
|
|
28
28
|
const route = useRoute();
|
|
29
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
29
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
30
30
|
if (ItemField) {
|
|
31
31
|
return ItemField.isRequired == 1 || ItemField.isFromValid > 0 ? field : "";
|
|
32
32
|
}
|
|
33
33
|
return "";
|
|
34
34
|
}
|
|
35
|
-
function getFormItemLabel(field, defaultValue) {
|
|
35
|
+
function getFormItemLabel(field, defaultValue, flag = "main") {
|
|
36
36
|
var _a, _b, _c, _d;
|
|
37
37
|
const stores = useUserInfo();
|
|
38
38
|
const route = useRoute();
|
|
39
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
39
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
40
40
|
if (ItemField) {
|
|
41
41
|
return ItemField.title && ItemField.title != "" ? ItemField.title : defaultValue;
|
|
42
42
|
}
|
|
43
43
|
return defaultValue;
|
|
44
44
|
}
|
|
45
|
-
function showTabelColumn(field) {
|
|
45
|
+
function showTabelColumn(field, flag = "main") {
|
|
46
46
|
var _a, _b, _c, _d;
|
|
47
47
|
const stores = useUserInfo();
|
|
48
48
|
const route = useRoute();
|
|
49
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
49
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
50
50
|
if (ItemField) {
|
|
51
51
|
if (ItemField.isTable == 1)
|
|
52
52
|
return true;
|
|
@@ -87,7 +87,7 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
87
87
|
}
|
|
88
88
|
return isJson ? width != "" ? { width } : "" : width;
|
|
89
89
|
}
|
|
90
|
-
function getPageSetting(field,
|
|
90
|
+
function getPageSetting(field, defaultValue = "", flag = "main") {
|
|
91
91
|
var _a, _b, _c;
|
|
92
92
|
const stores = useUserInfo();
|
|
93
93
|
const route = useRoute();
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.136 */
|
|
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('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), 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', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -21119,11 +21119,11 @@
|
|
|
21119
21119
|
if (matched) return matched.limit;
|
|
21120
21120
|
return null;
|
|
21121
21121
|
}
|
|
21122
|
-
function getRules(field, msg) {
|
|
21122
|
+
function getRules(field, msg, flag = "main") {
|
|
21123
21123
|
var _a, _b, _c, _d;
|
|
21124
21124
|
const stores = useUserInfo();
|
|
21125
21125
|
const route = vueRouter.useRoute();
|
|
21126
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
21126
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
21127
21127
|
let rels = [];
|
|
21128
21128
|
if (ItemField) {
|
|
21129
21129
|
if (ItemField.isRequired == 1)
|
|
@@ -21133,31 +21133,31 @@
|
|
|
21133
21133
|
}
|
|
21134
21134
|
return rels;
|
|
21135
21135
|
}
|
|
21136
|
-
function getFormItemProp(field) {
|
|
21136
|
+
function getFormItemProp(field, flag = "main") {
|
|
21137
21137
|
var _a, _b, _c, _d;
|
|
21138
21138
|
const stores = useUserInfo();
|
|
21139
21139
|
const route = vueRouter.useRoute();
|
|
21140
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
21140
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
21141
21141
|
if (ItemField) {
|
|
21142
21142
|
return ItemField.isRequired == 1 || ItemField.isFromValid > 0 ? field : "";
|
|
21143
21143
|
}
|
|
21144
21144
|
return "";
|
|
21145
21145
|
}
|
|
21146
|
-
function getFormItemLabel(field, defaultValue) {
|
|
21146
|
+
function getFormItemLabel(field, defaultValue, flag = "main") {
|
|
21147
21147
|
var _a, _b, _c, _d;
|
|
21148
21148
|
const stores = useUserInfo();
|
|
21149
21149
|
const route = vueRouter.useRoute();
|
|
21150
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
21150
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
21151
21151
|
if (ItemField) {
|
|
21152
21152
|
return ItemField.title && ItemField.title != "" ? ItemField.title : defaultValue;
|
|
21153
21153
|
}
|
|
21154
21154
|
return defaultValue;
|
|
21155
21155
|
}
|
|
21156
|
-
function showTabelColumn(field) {
|
|
21156
|
+
function showTabelColumn(field, flag = "main") {
|
|
21157
21157
|
var _a, _b, _c, _d;
|
|
21158
21158
|
const stores = useUserInfo();
|
|
21159
21159
|
const route = vueRouter.useRoute();
|
|
21160
|
-
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag ===
|
|
21160
|
+
const ItemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === route.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === flag)) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === field);
|
|
21161
21161
|
if (ItemField) {
|
|
21162
21162
|
if (ItemField.isTable == 1)
|
|
21163
21163
|
return true;
|
|
@@ -21198,7 +21198,7 @@
|
|
|
21198
21198
|
}
|
|
21199
21199
|
return isJson ? width != "" ? { width } : "" : width;
|
|
21200
21200
|
}
|
|
21201
|
-
function getPageSetting(field,
|
|
21201
|
+
function getPageSetting(field, defaultValue = "", flag = "main") {
|
|
21202
21202
|
var _a, _b, _c;
|
|
21203
21203
|
const stores = useUserInfo();
|
|
21204
21204
|
const route = vueRouter.useRoute();
|