@fmdeui/fmui 1.0.111 → 1.0.112
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-select/index.d.ts +27 -0
- package/es/components/fm-select/index.vue.d.ts +45 -0
- package/es/packages/components/fm-inputdropdown/index.vue2.mjs +2 -1
- package/es/packages/components/fm-select/index.vue2.mjs +32 -2
- package/index.js +34 -3
- package/index.min.js +6 -6
- package/index.min.mjs +6 -6
- package/index.mjs +34 -3
- package/lib/components/fm-select/index.d.ts +27 -0
- package/lib/components/fm-select/index.vue.d.ts +45 -0
- package/lib/packages/components/fm-inputdropdown/index.vue2.js +2 -1
- package/lib/packages/components/fm-select/index.vue2.js +31 -1
- 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
|
@@ -78,6 +78,18 @@ export declare const FmSelect: DefineComponent<ExtractPropTypes<{
|
|
|
78
78
|
type: BooleanConstructor;
|
|
79
79
|
default: boolean;
|
|
80
80
|
};
|
|
81
|
+
addEmptyOption: {
|
|
82
|
+
type: BooleanConstructor;
|
|
83
|
+
default: boolean;
|
|
84
|
+
};
|
|
85
|
+
emptyOptionLabel: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: string;
|
|
88
|
+
};
|
|
89
|
+
emptyOptionValue: {
|
|
90
|
+
type: NumberConstructor;
|
|
91
|
+
default: number;
|
|
92
|
+
};
|
|
81
93
|
id: {
|
|
82
94
|
type: PropType<number>;
|
|
83
95
|
};
|
|
@@ -167,6 +179,18 @@ export declare const FmSelect: DefineComponent<ExtractPropTypes<{
|
|
|
167
179
|
type: BooleanConstructor;
|
|
168
180
|
default: boolean;
|
|
169
181
|
};
|
|
182
|
+
addEmptyOption: {
|
|
183
|
+
type: BooleanConstructor;
|
|
184
|
+
default: boolean;
|
|
185
|
+
};
|
|
186
|
+
emptyOptionLabel: {
|
|
187
|
+
type: StringConstructor;
|
|
188
|
+
default: string;
|
|
189
|
+
};
|
|
190
|
+
emptyOptionValue: {
|
|
191
|
+
type: NumberConstructor;
|
|
192
|
+
default: number;
|
|
193
|
+
};
|
|
170
194
|
id: {
|
|
171
195
|
type: PropType<number>;
|
|
172
196
|
};
|
|
@@ -191,4 +215,7 @@ export declare const FmSelect: DefineComponent<ExtractPropTypes<{
|
|
|
191
215
|
multibasecode: any[];
|
|
192
216
|
freshSize: string | number;
|
|
193
217
|
autoLoadData: boolean;
|
|
218
|
+
addEmptyOption: boolean;
|
|
219
|
+
emptyOptionLabel: string;
|
|
220
|
+
emptyOptionValue: number;
|
|
194
221
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -99,6 +99,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
99
99
|
type: BooleanConstructor;
|
|
100
100
|
default: boolean;
|
|
101
101
|
};
|
|
102
|
+
/**
|
|
103
|
+
* 是否添加空选项
|
|
104
|
+
*/
|
|
105
|
+
addEmptyOption: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* 空选项的标签
|
|
111
|
+
*/
|
|
112
|
+
emptyOptionLabel: {
|
|
113
|
+
type: StringConstructor;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* 空选项的值
|
|
118
|
+
*/
|
|
119
|
+
emptyOptionValue: {
|
|
120
|
+
type: NumberConstructor;
|
|
121
|
+
default: number;
|
|
122
|
+
};
|
|
102
123
|
id: {
|
|
103
124
|
type: PropType<number>;
|
|
104
125
|
};
|
|
@@ -209,6 +230,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
209
230
|
type: BooleanConstructor;
|
|
210
231
|
default: boolean;
|
|
211
232
|
};
|
|
233
|
+
/**
|
|
234
|
+
* 是否添加空选项
|
|
235
|
+
*/
|
|
236
|
+
addEmptyOption: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* 空选项的标签
|
|
242
|
+
*/
|
|
243
|
+
emptyOptionLabel: {
|
|
244
|
+
type: StringConstructor;
|
|
245
|
+
default: string;
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* 空选项的值
|
|
249
|
+
*/
|
|
250
|
+
emptyOptionValue: {
|
|
251
|
+
type: NumberConstructor;
|
|
252
|
+
default: number;
|
|
253
|
+
};
|
|
212
254
|
id: {
|
|
213
255
|
type: PropType<number>;
|
|
214
256
|
};
|
|
@@ -233,5 +275,8 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
233
275
|
multibasecode: any[];
|
|
234
276
|
freshSize: string | number;
|
|
235
277
|
autoLoadData: boolean;
|
|
278
|
+
addEmptyOption: boolean;
|
|
279
|
+
emptyOptionLabel: string;
|
|
280
|
+
emptyOptionValue: number;
|
|
236
281
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
237
282
|
export default _default;
|
|
@@ -180,7 +180,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
180
180
|
createVNode(_component_el_icon, {
|
|
181
181
|
color: "#13c2c2",
|
|
182
182
|
size: __props.freshSize,
|
|
183
|
-
onClick: handRestdata
|
|
183
|
+
onClick: handRestdata,
|
|
184
|
+
style: { "cursor": "pointer" }
|
|
184
185
|
}, {
|
|
185
186
|
default: withCtx(() => [
|
|
186
187
|
createVNode(unref(RefreshLeft))
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent, useModel, reactive, onMounted, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createElementBlock, Fragment, renderList, createElementVNode, createVNode, unref, mergeModels } from 'vue';
|
|
1
|
+
import { defineComponent, useModel, reactive, onMounted, resolveComponent, openBlock, createBlock, normalizeStyle, withCtx, createCommentVNode, createElementBlock, Fragment, renderList, createElementVNode, createVNode, unref, mergeModels } from 'vue';
|
|
2
2
|
import { RefreshLeft } from '@element-plus/icons-vue';
|
|
3
3
|
import '../../stores/index.mjs';
|
|
4
4
|
import { usefminputdropdownstore } from '../../stores/ainputdropdow.mjs';
|
|
5
5
|
|
|
6
|
-
const _hoisted_1 = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
|
|
6
|
+
const _hoisted_1 = { style: { "display": "flex", "justify-content": "end", "align-items": "right", "cursor": "pointer" } };
|
|
7
7
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
8
|
...{
|
|
9
9
|
name: "FmSelect"
|
|
@@ -83,6 +83,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
83
|
autoLoadData: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: true
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* 是否添加空选项
|
|
89
|
+
*/
|
|
90
|
+
addEmptyOption: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: false
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* 空选项的标签
|
|
96
|
+
*/
|
|
97
|
+
emptyOptionLabel: {
|
|
98
|
+
type: String,
|
|
99
|
+
default: "\u5168\u90E8"
|
|
100
|
+
},
|
|
101
|
+
/**
|
|
102
|
+
* 空选项的值
|
|
103
|
+
*/
|
|
104
|
+
emptyOptionValue: {
|
|
105
|
+
type: Number,
|
|
106
|
+
default: 0
|
|
86
107
|
}
|
|
87
108
|
}, {
|
|
88
109
|
"id": { default: 0, required: false },
|
|
@@ -100,6 +121,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
100
121
|
});
|
|
101
122
|
const emit = __emit;
|
|
102
123
|
const handelChange = (val) => {
|
|
124
|
+
if (props.addEmptyOption && val == props.emptyOptionValue) {
|
|
125
|
+
modeValueId.value = props.emptyOptionValue;
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
103
128
|
const fitem = state.optionData.find((item) => item[props.blabel] === val);
|
|
104
129
|
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
105
130
|
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
@@ -153,6 +178,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
153
178
|
])
|
|
154
179
|
]),
|
|
155
180
|
default: withCtx(() => [
|
|
181
|
+
__props.addEmptyOption ? (openBlock(), createBlock(_component_el_option, {
|
|
182
|
+
key: 0,
|
|
183
|
+
label: __props.emptyOptionLabel,
|
|
184
|
+
value: __props.emptyOptionLabel
|
|
185
|
+
}, null, 8, ["label", "value"])) : createCommentVNode("v-if", true),
|
|
156
186
|
(openBlock(true), createElementBlock(
|
|
157
187
|
Fragment,
|
|
158
188
|
null,
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.112 */
|
|
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) :
|
|
@@ -26709,7 +26709,7 @@
|
|
|
26709
26709
|
|
|
26710
26710
|
const FModifyRecord = _sfc_main$v;
|
|
26711
26711
|
|
|
26712
|
-
const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
|
|
26712
|
+
const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right", "cursor": "pointer" } };
|
|
26713
26713
|
var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
26714
26714
|
...{
|
|
26715
26715
|
name: "FmSelect"
|
|
@@ -26789,6 +26789,27 @@
|
|
|
26789
26789
|
autoLoadData: {
|
|
26790
26790
|
type: Boolean,
|
|
26791
26791
|
default: true
|
|
26792
|
+
},
|
|
26793
|
+
/**
|
|
26794
|
+
* 是否添加空选项
|
|
26795
|
+
*/
|
|
26796
|
+
addEmptyOption: {
|
|
26797
|
+
type: Boolean,
|
|
26798
|
+
default: false
|
|
26799
|
+
},
|
|
26800
|
+
/**
|
|
26801
|
+
* 空选项的标签
|
|
26802
|
+
*/
|
|
26803
|
+
emptyOptionLabel: {
|
|
26804
|
+
type: String,
|
|
26805
|
+
default: "\u5168\u90E8"
|
|
26806
|
+
},
|
|
26807
|
+
/**
|
|
26808
|
+
* 空选项的值
|
|
26809
|
+
*/
|
|
26810
|
+
emptyOptionValue: {
|
|
26811
|
+
type: Number,
|
|
26812
|
+
default: 0
|
|
26792
26813
|
}
|
|
26793
26814
|
}, {
|
|
26794
26815
|
"id": { default: 0, required: false },
|
|
@@ -26806,6 +26827,10 @@
|
|
|
26806
26827
|
});
|
|
26807
26828
|
const emit = __emit;
|
|
26808
26829
|
const handelChange = (val) => {
|
|
26830
|
+
if (props.addEmptyOption && val == props.emptyOptionValue) {
|
|
26831
|
+
modeValueId.value = props.emptyOptionValue;
|
|
26832
|
+
return;
|
|
26833
|
+
}
|
|
26809
26834
|
const fitem = state.optionData.find((item) => item[props.blabel] === val);
|
|
26810
26835
|
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
26811
26836
|
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
@@ -26859,6 +26884,11 @@
|
|
|
26859
26884
|
])
|
|
26860
26885
|
]),
|
|
26861
26886
|
default: vue.withCtx(() => [
|
|
26887
|
+
__props.addEmptyOption ? (vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
26888
|
+
key: 0,
|
|
26889
|
+
label: __props.emptyOptionLabel,
|
|
26890
|
+
value: __props.emptyOptionLabel
|
|
26891
|
+
}, null, 8, ["label", "value"])) : vue.createCommentVNode("v-if", true),
|
|
26862
26892
|
(vue.openBlock(true), vue.createElementBlock(
|
|
26863
26893
|
vue.Fragment,
|
|
26864
26894
|
null,
|
|
@@ -27059,7 +27089,8 @@
|
|
|
27059
27089
|
vue.createVNode(_component_el_icon, {
|
|
27060
27090
|
color: "#13c2c2",
|
|
27061
27091
|
size: __props.freshSize,
|
|
27062
|
-
onClick: handRestdata
|
|
27092
|
+
onClick: handRestdata,
|
|
27093
|
+
style: { "cursor": "pointer" }
|
|
27063
27094
|
}, {
|
|
27064
27095
|
default: vue.withCtx(() => [
|
|
27065
27096
|
vue.createVNode(vue.unref(svg.RefreshLeft))
|