@fmdeui/fmui 1.0.103 → 1.0.105
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/components/fm-inputdropdown/index.d.ts +3 -3
- package/es/components/fm-inputdropdown/index.vue.d.ts +3 -3
- package/es/components/fm-inputnumber/index.d.ts +7 -2
- package/es/components/fm-inputnumber/index.vue.d.ts +3 -1
- package/es/packages/components/fm-inputdropdown/index.vue2.mjs +3 -3
- package/es/packages/components/fm-inputnumber/index.vue2.mjs +6 -2
- package/es/packages/directive/authDirective.mjs +2 -2
- package/index.js +12 -8
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +12 -8
- package/lib/components/fm-inputdropdown/index.d.ts +3 -3
- package/lib/components/fm-inputdropdown/index.vue.d.ts +3 -3
- package/lib/components/fm-inputnumber/index.d.ts +7 -2
- package/lib/components/fm-inputnumber/index.vue.d.ts +3 -1
- package/lib/packages/components/fm-inputdropdown/index.vue2.js +3 -3
- package/lib/packages/components/fm-inputnumber/index.vue2.js +6 -2
- package/lib/packages/directive/authDirective.js +2 -2
- 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/{make-installer.css → version.css} +0 -0
- /package/lib/{component.css → version.css} +0 -0
|
@@ -71,7 +71,7 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
71
71
|
default: never[];
|
|
72
72
|
};
|
|
73
73
|
freshSize: {
|
|
74
|
-
type: NumberConstructor;
|
|
74
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
75
75
|
default: number;
|
|
76
76
|
};
|
|
77
77
|
autoLoadData: {
|
|
@@ -160,7 +160,7 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
160
160
|
default: never[];
|
|
161
161
|
};
|
|
162
162
|
freshSize: {
|
|
163
|
-
type: NumberConstructor;
|
|
163
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
164
164
|
default: number;
|
|
165
165
|
};
|
|
166
166
|
autoLoadData: {
|
|
@@ -189,6 +189,6 @@ export declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
189
189
|
apiAction: string;
|
|
190
190
|
basecode: string;
|
|
191
191
|
multibasecode: any[];
|
|
192
|
-
freshSize: number;
|
|
192
|
+
freshSize: string | number;
|
|
193
193
|
autoLoadData: boolean;
|
|
194
194
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -89,7 +89,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
89
89
|
default: never[];
|
|
90
90
|
};
|
|
91
91
|
freshSize: {
|
|
92
|
-
type: NumberConstructor;
|
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
93
93
|
default: number;
|
|
94
94
|
};
|
|
95
95
|
/**
|
|
@@ -199,7 +199,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
199
199
|
default: never[];
|
|
200
200
|
};
|
|
201
201
|
freshSize: {
|
|
202
|
-
type: NumberConstructor;
|
|
202
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
203
203
|
default: number;
|
|
204
204
|
};
|
|
205
205
|
/**
|
|
@@ -231,7 +231,7 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
231
231
|
apiAction: string;
|
|
232
232
|
basecode: string;
|
|
233
233
|
multibasecode: any[];
|
|
234
|
-
freshSize: number;
|
|
234
|
+
freshSize: string | number;
|
|
235
235
|
autoLoadData: boolean;
|
|
236
236
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
237
237
|
export default _default;
|
|
@@ -19,8 +19,10 @@ export declare const FmInputNumber: {
|
|
|
19
19
|
};
|
|
20
20
|
}>> & Readonly<{
|
|
21
21
|
"onUpdate:modelValue"?: ((value: Number) => any) | undefined;
|
|
22
|
+
onHandleInput?: ((...args: any[]) => any) | undefined;
|
|
22
23
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
23
|
-
|
|
24
|
+
handleInput: (...args: any[]) => void;
|
|
25
|
+
"update:modelValue": (value: Number) => void;
|
|
24
26
|
}, PublicProps, {
|
|
25
27
|
defaultValue: number;
|
|
26
28
|
placeholder: string;
|
|
@@ -51,6 +53,7 @@ export declare const FmInputNumber: {
|
|
|
51
53
|
};
|
|
52
54
|
}>> & Readonly<{
|
|
53
55
|
"onUpdate:modelValue"?: ((value: Number) => any) | undefined;
|
|
56
|
+
onHandleInput?: ((...args: any[]) => any) | undefined;
|
|
54
57
|
}>, {}, {}, {}, {}, {
|
|
55
58
|
defaultValue: number;
|
|
56
59
|
placeholder: string;
|
|
@@ -78,8 +81,10 @@ export declare const FmInputNumber: {
|
|
|
78
81
|
};
|
|
79
82
|
}>> & Readonly<{
|
|
80
83
|
"onUpdate:modelValue"?: ((value: Number) => any) | undefined;
|
|
84
|
+
onHandleInput?: ((...args: any[]) => any) | undefined;
|
|
81
85
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
82
|
-
|
|
86
|
+
handleInput: (...args: any[]) => void;
|
|
87
|
+
"update:modelValue": (value: Number) => void;
|
|
83
88
|
}, string, {
|
|
84
89
|
defaultValue: number;
|
|
85
90
|
placeholder: string;
|
|
@@ -29,7 +29,8 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
29
29
|
required: true;
|
|
30
30
|
};
|
|
31
31
|
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
32
|
-
|
|
32
|
+
handleInput: (...args: any[]) => void;
|
|
33
|
+
"update:modelValue": (value: Number) => void;
|
|
33
34
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
34
35
|
placeholder: {
|
|
35
36
|
type: StringConstructor;
|
|
@@ -49,6 +50,7 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
|
49
50
|
};
|
|
50
51
|
}>> & Readonly<{
|
|
51
52
|
"onUpdate:modelValue"?: ((value: Number) => any) | undefined;
|
|
53
|
+
onHandleInput?: ((...args: any[]) => any) | undefined;
|
|
52
54
|
}>, {
|
|
53
55
|
defaultValue: number;
|
|
54
56
|
placeholder: string;
|
|
@@ -73,8 +73,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
73
73
|
default: []
|
|
74
74
|
},
|
|
75
75
|
freshSize: {
|
|
76
|
-
type: Number,
|
|
77
|
-
default:
|
|
76
|
+
type: [Number, String],
|
|
77
|
+
default: 20
|
|
78
78
|
},
|
|
79
79
|
/**
|
|
80
80
|
* 是否默认加载数据
|
|
@@ -130,7 +130,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
130
130
|
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
131
131
|
return openBlock(), createBlock(_component_el_dropdown, {
|
|
132
132
|
class: "fminputdropdown",
|
|
133
|
-
placement: "bottom",
|
|
133
|
+
placement: "bottom-start",
|
|
134
134
|
trigger: "click",
|
|
135
135
|
style: { "width": "100%" },
|
|
136
136
|
onCommand: handCommand
|
|
@@ -20,18 +20,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
"modelValue": { required: true, default: 0 },
|
|
21
21
|
"modelModifiers": {}
|
|
22
22
|
}),
|
|
23
|
-
emits: ["update:modelValue"],
|
|
24
|
-
setup(__props) {
|
|
23
|
+
emits: /* @__PURE__ */ mergeModels(["handleInput"], ["update:modelValue"]),
|
|
24
|
+
setup(__props, { emit: __emit }) {
|
|
25
25
|
const modelValue = useModel(__props, "modelValue");
|
|
26
26
|
const props = __props;
|
|
27
|
+
const emit = __emit;
|
|
27
28
|
const handleInput = (val) => {
|
|
28
29
|
if (val === "" || val === null || val === void 0) {
|
|
29
30
|
modelValue.value = props.defaultValue !== -1 ? props.defaultValue : 0;
|
|
31
|
+
emit("handleInput", modelValue.value);
|
|
30
32
|
return;
|
|
31
33
|
}
|
|
32
34
|
if (props.bType == "number") {
|
|
33
35
|
const num = parseInt(val, 10);
|
|
34
36
|
modelValue.value = Number.isNaN(num) ? props.defaultValue : num;
|
|
37
|
+
emit("handleInput", modelValue.value);
|
|
35
38
|
return;
|
|
36
39
|
}
|
|
37
40
|
let cleaned = String(val).replace(/[^\d.]/g, "");
|
|
@@ -52,6 +55,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
55
|
cleaned = `${intPart}.${decPart.substring(0, 2)}`;
|
|
53
56
|
}
|
|
54
57
|
modelValue.value = cleaned;
|
|
58
|
+
emit("handleInput", modelValue.value);
|
|
55
59
|
};
|
|
56
60
|
watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
57
61
|
if (newvalue == "") {
|
|
@@ -49,8 +49,8 @@ function authDirective(app) {
|
|
|
49
49
|
mounted(el, binding) {
|
|
50
50
|
var _a, _b, _c, _d;
|
|
51
51
|
const stores = useUserInfo();
|
|
52
|
-
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
53
|
-
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
52
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "", flag: "main" } : binding.value;
|
|
53
|
+
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === (config.flag || "main"))) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
54
54
|
if (itemField && itemField.isAddUpdate == 0) el.parentNode.removeChild(el);
|
|
55
55
|
}
|
|
56
56
|
});
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.105 */
|
|
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) :
|
|
@@ -3975,8 +3975,8 @@
|
|
|
3975
3975
|
mounted(el, binding) {
|
|
3976
3976
|
var _a, _b, _c, _d;
|
|
3977
3977
|
const stores = useUserInfo();
|
|
3978
|
-
const config = typeof binding.value === "string" ? { path: binding.value, field: "" } : binding.value;
|
|
3979
|
-
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === "main")) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
3978
|
+
const config = typeof binding.value === "string" ? { path: binding.value, field: "", flag: "main" } : binding.value;
|
|
3979
|
+
const itemField = (_d = (_c = (_b = (_a = (stores.userInfos.formDes || []).find((f) => f.path === config.path)) == null ? void 0 : _a.formData) == null ? void 0 : _b.find((pack) => pack.flag === (config.flag || "main"))) == null ? void 0 : _c.formData) == null ? void 0 : _d.find((item) => (item == null ? void 0 : item.field) === config.field);
|
|
3980
3980
|
if (itemField && itemField.isAddUpdate == 0) el.parentNode.removeChild(el);
|
|
3981
3981
|
}
|
|
3982
3982
|
});
|
|
@@ -26728,8 +26728,8 @@
|
|
|
26728
26728
|
default: []
|
|
26729
26729
|
},
|
|
26730
26730
|
freshSize: {
|
|
26731
|
-
type: Number,
|
|
26732
|
-
default:
|
|
26731
|
+
type: [Number, String],
|
|
26732
|
+
default: 20
|
|
26733
26733
|
},
|
|
26734
26734
|
/**
|
|
26735
26735
|
* 是否默认加载数据
|
|
@@ -26785,7 +26785,7 @@
|
|
|
26785
26785
|
const _component_el_dropdown = vue.resolveComponent("el-dropdown");
|
|
26786
26786
|
return vue.openBlock(), vue.createBlock(_component_el_dropdown, {
|
|
26787
26787
|
class: "fminputdropdown",
|
|
26788
|
-
placement: "bottom",
|
|
26788
|
+
placement: "bottom-start",
|
|
26789
26789
|
trigger: "click",
|
|
26790
26790
|
style: { "width": "100%" },
|
|
26791
26791
|
onCommand: handCommand
|
|
@@ -26877,18 +26877,21 @@
|
|
|
26877
26877
|
"modelValue": { required: true, default: 0 },
|
|
26878
26878
|
"modelModifiers": {}
|
|
26879
26879
|
}),
|
|
26880
|
-
emits: ["update:modelValue"],
|
|
26881
|
-
setup(__props) {
|
|
26880
|
+
emits: /* @__PURE__ */ vue.mergeModels(["handleInput"], ["update:modelValue"]),
|
|
26881
|
+
setup(__props, { emit: __emit }) {
|
|
26882
26882
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
26883
26883
|
const props = __props;
|
|
26884
|
+
const emit = __emit;
|
|
26884
26885
|
const handleInput = (val) => {
|
|
26885
26886
|
if (val === "" || val === null || val === void 0) {
|
|
26886
26887
|
modelValue.value = props.defaultValue !== -1 ? props.defaultValue : 0;
|
|
26888
|
+
emit("handleInput", modelValue.value);
|
|
26887
26889
|
return;
|
|
26888
26890
|
}
|
|
26889
26891
|
if (props.bType == "number") {
|
|
26890
26892
|
const num = parseInt(val, 10);
|
|
26891
26893
|
modelValue.value = Number.isNaN(num) ? props.defaultValue : num;
|
|
26894
|
+
emit("handleInput", modelValue.value);
|
|
26892
26895
|
return;
|
|
26893
26896
|
}
|
|
26894
26897
|
let cleaned = String(val).replace(/[^\d.]/g, "");
|
|
@@ -26909,6 +26912,7 @@
|
|
|
26909
26912
|
cleaned = `${intPart}.${decPart.substring(0, 2)}`;
|
|
26910
26913
|
}
|
|
26911
26914
|
modelValue.value = cleaned;
|
|
26915
|
+
emit("handleInput", modelValue.value);
|
|
26912
26916
|
};
|
|
26913
26917
|
vue.watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
26914
26918
|
if (newvalue == "") {
|