@fmdeui/fmui 1.0.166 → 1.0.168
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/packages/components/select-table/src/index2.vue.mjs +43 -57
- package/index.js +44 -58
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +44 -58
- package/lib/packages/components/select-table/src/index2.vue.js +43 -57
- 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/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.168 */
|
|
2
2
|
import VxeUITable from 'vxe-table';
|
|
3
3
|
import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
|
|
4
4
|
import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
|
|
@@ -23152,7 +23152,6 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23152
23152
|
const emits = __emit;
|
|
23153
23153
|
const slots = useSlots();
|
|
23154
23154
|
const isDefaultSelectVal = ref(true);
|
|
23155
|
-
const forbidden = ref(true);
|
|
23156
23155
|
const isRadio = ref(false);
|
|
23157
23156
|
const isQueryVisible = ref(false);
|
|
23158
23157
|
const isVisible = ref(false);
|
|
@@ -23185,7 +23184,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23185
23184
|
}
|
|
23186
23185
|
});
|
|
23187
23186
|
const state = reactive({
|
|
23188
|
-
defaultSelectValue: props.defaultSelectVal,
|
|
23187
|
+
defaultSelectValue: Array.isArray(props.defaultSelectVal) ? props.defaultSelectVal : props.defaultSelectVal ? [props.defaultSelectVal] : [],
|
|
23189
23188
|
// 默认选中
|
|
23190
23189
|
tableData: props.table.data,
|
|
23191
23190
|
// table数据
|
|
@@ -23245,8 +23244,9 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23245
23244
|
watch(
|
|
23246
23245
|
() => props.defaultSelectVal,
|
|
23247
23246
|
(val) => {
|
|
23248
|
-
|
|
23249
|
-
|
|
23247
|
+
const valArray = Array.isArray(val) ? val : val ? [val] : [];
|
|
23248
|
+
state.defaultSelectValue = valArray;
|
|
23249
|
+
if (valArray.length > 0) {
|
|
23250
23250
|
if (props.multiple) {
|
|
23251
23251
|
if (isDefaultSelectVal.value) {
|
|
23252
23252
|
defaultSelect(state.defaultSelectValue);
|
|
@@ -23303,6 +23303,11 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23303
23303
|
const formatted = props.responseFormatter(res);
|
|
23304
23304
|
pagination.total = formatted.total;
|
|
23305
23305
|
state.tableData = formatted.data;
|
|
23306
|
+
if (formatted.data && formatted.data.length > 0) {
|
|
23307
|
+
formatted.data.forEach((item) => {
|
|
23308
|
+
state.tabularMap[item[props.keywords.value]] = item[props.keywords.label];
|
|
23309
|
+
});
|
|
23310
|
+
}
|
|
23306
23311
|
if (props.useVirtual) {
|
|
23307
23312
|
saveDATA.value = formatted.data;
|
|
23308
23313
|
updateRenderData(scrollTopNum.value);
|
|
@@ -23464,7 +23469,6 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23464
23469
|
nowIndex.value = -1;
|
|
23465
23470
|
radioVal.value = "";
|
|
23466
23471
|
isDefaultSelectVal.value = true;
|
|
23467
|
-
forbidden.value = false;
|
|
23468
23472
|
}
|
|
23469
23473
|
};
|
|
23470
23474
|
const defaultSelect = (defaultSelectVal) => {
|
|
@@ -23487,7 +23491,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23487
23491
|
setTimeout(() => {
|
|
23488
23492
|
const row = state.tableData.find((item) => item[props.keywords.value] === defaultSelectVal[0]);
|
|
23489
23493
|
if (row) {
|
|
23490
|
-
radioVal.value =
|
|
23494
|
+
radioVal.value = row[props.keywords.value];
|
|
23491
23495
|
state.defaultValue = row;
|
|
23492
23496
|
selectDefaultLabel.value = row[props.keywords.label];
|
|
23493
23497
|
modeValueId.value = row[props.keywords.value];
|
|
@@ -23525,35 +23529,29 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23525
23529
|
const filterMethodHandle = (val) => {
|
|
23526
23530
|
var _a;
|
|
23527
23531
|
if (!props.filterable) return;
|
|
23532
|
+
if (props.apiService) return;
|
|
23528
23533
|
if (props.filterable && props.remote && typeof props.remoteMethod === "function") {
|
|
23529
23534
|
props.remoteMethod(val);
|
|
23530
23535
|
return;
|
|
23531
23536
|
}
|
|
23532
23537
|
const tableData = JSON.parse(JSON.stringify((_a = props.table) == null ? void 0 : _a.data));
|
|
23533
23538
|
if (!tableData || tableData.length === 0) return;
|
|
23534
|
-
|
|
23535
|
-
if (val) {
|
|
23536
|
-
radioVal.value = "";
|
|
23537
|
-
} else {
|
|
23538
|
-
const defaultIndex = tableData.findIndex(
|
|
23539
|
-
(item) => item[props.keywords.label] === selectDefaultLabel.value
|
|
23540
|
-
);
|
|
23541
|
-
if (defaultIndex !== -1) {
|
|
23542
|
-
radioVal.value = defaultIndex + 1;
|
|
23543
|
-
}
|
|
23544
|
-
}
|
|
23545
|
-
}
|
|
23539
|
+
const currentSelectedId = modeValueId.value;
|
|
23546
23540
|
state.tableData = tableData.filter((item) => {
|
|
23547
23541
|
var _a2;
|
|
23548
|
-
return (_a2 = item[props.keywords.label]) == null ? void 0 : _a2.includes(val);
|
|
23542
|
+
return (_a2 = item[props.keywords.label]) == null ? void 0 : _a2.toLowerCase().includes(val.toLowerCase());
|
|
23549
23543
|
});
|
|
23550
|
-
if (
|
|
23551
|
-
const
|
|
23552
|
-
(item) => item[props.keywords.
|
|
23544
|
+
if (currentSelectedId) {
|
|
23545
|
+
const isStillInTable = state.tableData.some(
|
|
23546
|
+
(item) => item[props.keywords.value] === currentSelectedId
|
|
23553
23547
|
);
|
|
23554
|
-
if (
|
|
23555
|
-
radioVal.value =
|
|
23548
|
+
if (isStillInTable) {
|
|
23549
|
+
radioVal.value = currentSelectedId;
|
|
23550
|
+
} else {
|
|
23551
|
+
radioVal.value = "";
|
|
23556
23552
|
}
|
|
23553
|
+
} else {
|
|
23554
|
+
radioVal.value = "";
|
|
23557
23555
|
}
|
|
23558
23556
|
};
|
|
23559
23557
|
const initTableData = () => {
|
|
@@ -23570,7 +23568,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23570
23568
|
});
|
|
23571
23569
|
} else {
|
|
23572
23570
|
const matchedRow = (_b = state.tableData) == null ? void 0 : _b.find(
|
|
23573
|
-
(item) => item[props.keywords.value] ===
|
|
23571
|
+
(item) => item[props.keywords.value] === modeValueId.value
|
|
23574
23572
|
);
|
|
23575
23573
|
if (matchedRow) {
|
|
23576
23574
|
selectTable.value.setCurrentRow(matchedRow);
|
|
@@ -23604,25 +23602,19 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23604
23602
|
showMessage("error", error.message || t("plus.copy.copyFail"));
|
|
23605
23603
|
}
|
|
23606
23604
|
};
|
|
23607
|
-
const radioChangeHandle = (event, row,
|
|
23605
|
+
const radioChangeHandle = (event, row, rowValue) => {
|
|
23608
23606
|
event.preventDefault();
|
|
23609
23607
|
if (row.isRadioDisabled) return;
|
|
23610
23608
|
isDefaultSelectVal.value = false;
|
|
23611
|
-
radioClick(row,
|
|
23612
|
-
};
|
|
23613
|
-
const isForbidden = () => {
|
|
23614
|
-
forbidden.value = false;
|
|
23615
|
-
setTimeout(() => {
|
|
23616
|
-
forbidden.value = true;
|
|
23617
|
-
}, 0);
|
|
23609
|
+
radioClick(row, rowValue);
|
|
23618
23610
|
};
|
|
23619
|
-
const radioClick = (row,
|
|
23620
|
-
|
|
23621
|
-
if (
|
|
23611
|
+
const radioClick = (row, rowValue) => {
|
|
23612
|
+
const isAlreadySelected = state.defaultValue && state.defaultValue[props.keywords.value] === rowValue;
|
|
23613
|
+
if (isAlreadySelected) {
|
|
23622
23614
|
if (!props.radioSameIsCancel) return;
|
|
23623
23615
|
clear();
|
|
23624
23616
|
} else {
|
|
23625
|
-
updateState(row,
|
|
23617
|
+
updateState(row, rowValue);
|
|
23626
23618
|
}
|
|
23627
23619
|
if (props.isExpanded && state.defaultValue) {
|
|
23628
23620
|
selectDefaultLabel.value = state.defaultValue[props.keywords.label] || "";
|
|
@@ -23631,29 +23623,23 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23631
23623
|
blur();
|
|
23632
23624
|
}
|
|
23633
23625
|
};
|
|
23634
|
-
const updateState = (row,
|
|
23635
|
-
|
|
23636
|
-
radioVal.value = index;
|
|
23626
|
+
const updateState = (row, rowValue) => {
|
|
23627
|
+
radioVal.value = rowValue;
|
|
23637
23628
|
state.defaultValue = row;
|
|
23638
|
-
emits("radioChange", row,
|
|
23639
|
-
modeValueId.value =
|
|
23629
|
+
emits("radioChange", row, rowValue);
|
|
23630
|
+
modeValueId.value = rowValue;
|
|
23640
23631
|
modeValueName.value = row[props.keywords.label];
|
|
23641
23632
|
};
|
|
23642
23633
|
const rowClick = async (row) => {
|
|
23643
23634
|
if (row.isRadioDisabled) return;
|
|
23644
23635
|
if (!props.rowClickRadio) return;
|
|
23645
23636
|
if (!props.multiple) {
|
|
23646
|
-
|
|
23647
|
-
|
|
23648
|
-
)
|
|
23649
|
-
|
|
23650
|
-
|
|
23651
|
-
|
|
23652
|
-
if (radioVal.value) {
|
|
23653
|
-
isRadio.value = true;
|
|
23654
|
-
} else {
|
|
23655
|
-
isRadio.value = false;
|
|
23656
|
-
}
|
|
23637
|
+
isDefaultSelectVal.value = false;
|
|
23638
|
+
await radioClick(row, row[props.keywords.value]);
|
|
23639
|
+
if (radioVal.value) {
|
|
23640
|
+
isRadio.value = true;
|
|
23641
|
+
} else {
|
|
23642
|
+
isRadio.value = false;
|
|
23657
23643
|
}
|
|
23658
23644
|
}
|
|
23659
23645
|
};
|
|
@@ -23691,7 +23677,6 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23691
23677
|
}
|
|
23692
23678
|
nowIndex.value = -1;
|
|
23693
23679
|
radioVal.value = "";
|
|
23694
|
-
forbidden.value = false;
|
|
23695
23680
|
selectDefaultLabel.value = null;
|
|
23696
23681
|
resetDefaultState();
|
|
23697
23682
|
emits("radioChange", null, null);
|
|
@@ -23876,10 +23861,11 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
23876
23861
|
createVNode(_component_el_radio, {
|
|
23877
23862
|
modelValue: radioVal.value,
|
|
23878
23863
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => radioVal.value = $event),
|
|
23879
|
-
label: scope
|
|
23864
|
+
label: scope.row[__props.keywords.value],
|
|
23865
|
+
value: scope.row[__props.keywords.value],
|
|
23880
23866
|
disabled: scope.row.isRadioDisabled,
|
|
23881
|
-
onClick: withModifiers(($event) => radioChangeHandle($event, scope.row, scope
|
|
23882
|
-
}, null, 8, ["modelValue", "label", "disabled", "onClick"])
|
|
23867
|
+
onClick: withModifiers(($event) => radioChangeHandle($event, scope.row, scope.row[__props.keywords.value]), ["stop"])
|
|
23868
|
+
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"])
|
|
23883
23869
|
]),
|
|
23884
23870
|
_: 1
|
|
23885
23871
|
/* STABLE */
|
|
@@ -115,7 +115,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
115
|
const emits = __emit;
|
|
116
116
|
const slots = vue.useSlots();
|
|
117
117
|
const isDefaultSelectVal = vue.ref(true);
|
|
118
|
-
const forbidden = vue.ref(true);
|
|
119
118
|
const isRadio = vue.ref(false);
|
|
120
119
|
const isQueryVisible = vue.ref(false);
|
|
121
120
|
const isVisible = vue.ref(false);
|
|
@@ -148,7 +147,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
148
147
|
}
|
|
149
148
|
});
|
|
150
149
|
const state = vue.reactive({
|
|
151
|
-
defaultSelectValue: props.defaultSelectVal,
|
|
150
|
+
defaultSelectValue: Array.isArray(props.defaultSelectVal) ? props.defaultSelectVal : props.defaultSelectVal ? [props.defaultSelectVal] : [],
|
|
152
151
|
// 默认选中
|
|
153
152
|
tableData: props.table.data,
|
|
154
153
|
// table数据
|
|
@@ -208,8 +207,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
208
207
|
vue.watch(
|
|
209
208
|
() => props.defaultSelectVal,
|
|
210
209
|
(val) => {
|
|
211
|
-
|
|
212
|
-
|
|
210
|
+
const valArray = Array.isArray(val) ? val : val ? [val] : [];
|
|
211
|
+
state.defaultSelectValue = valArray;
|
|
212
|
+
if (valArray.length > 0) {
|
|
213
213
|
if (props.multiple) {
|
|
214
214
|
if (isDefaultSelectVal.value) {
|
|
215
215
|
defaultSelect(state.defaultSelectValue);
|
|
@@ -266,6 +266,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
266
266
|
const formatted = props.responseFormatter(res);
|
|
267
267
|
pagination.total = formatted.total;
|
|
268
268
|
state.tableData = formatted.data;
|
|
269
|
+
if (formatted.data && formatted.data.length > 0) {
|
|
270
|
+
formatted.data.forEach((item) => {
|
|
271
|
+
state.tabularMap[item[props.keywords.value]] = item[props.keywords.label];
|
|
272
|
+
});
|
|
273
|
+
}
|
|
269
274
|
if (props.useVirtual) {
|
|
270
275
|
saveDATA.value = formatted.data;
|
|
271
276
|
updateRenderData(scrollTopNum.value);
|
|
@@ -427,7 +432,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
427
432
|
nowIndex.value = -1;
|
|
428
433
|
radioVal.value = "";
|
|
429
434
|
isDefaultSelectVal.value = true;
|
|
430
|
-
forbidden.value = false;
|
|
431
435
|
}
|
|
432
436
|
};
|
|
433
437
|
const defaultSelect = (defaultSelectVal) => {
|
|
@@ -450,7 +454,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
450
454
|
setTimeout(() => {
|
|
451
455
|
const row = state.tableData.find((item) => item[props.keywords.value] === defaultSelectVal[0]);
|
|
452
456
|
if (row) {
|
|
453
|
-
radioVal.value =
|
|
457
|
+
radioVal.value = row[props.keywords.value];
|
|
454
458
|
state.defaultValue = row;
|
|
455
459
|
selectDefaultLabel.value = row[props.keywords.label];
|
|
456
460
|
modeValueId.value = row[props.keywords.value];
|
|
@@ -488,35 +492,29 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
488
492
|
const filterMethodHandle = (val) => {
|
|
489
493
|
var _a;
|
|
490
494
|
if (!props.filterable) return;
|
|
495
|
+
if (props.apiService) return;
|
|
491
496
|
if (props.filterable && props.remote && typeof props.remoteMethod === "function") {
|
|
492
497
|
props.remoteMethod(val);
|
|
493
498
|
return;
|
|
494
499
|
}
|
|
495
500
|
const tableData = JSON.parse(JSON.stringify((_a = props.table) == null ? void 0 : _a.data));
|
|
496
501
|
if (!tableData || tableData.length === 0) return;
|
|
497
|
-
|
|
498
|
-
if (val) {
|
|
499
|
-
radioVal.value = "";
|
|
500
|
-
} else {
|
|
501
|
-
const defaultIndex = tableData.findIndex(
|
|
502
|
-
(item) => item[props.keywords.label] === selectDefaultLabel.value
|
|
503
|
-
);
|
|
504
|
-
if (defaultIndex !== -1) {
|
|
505
|
-
radioVal.value = defaultIndex + 1;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
}
|
|
502
|
+
const currentSelectedId = modeValueId.value;
|
|
509
503
|
state.tableData = tableData.filter((item) => {
|
|
510
504
|
var _a2;
|
|
511
|
-
return (_a2 = item[props.keywords.label]) == null ? void 0 : _a2.includes(val);
|
|
505
|
+
return (_a2 = item[props.keywords.label]) == null ? void 0 : _a2.toLowerCase().includes(val.toLowerCase());
|
|
512
506
|
});
|
|
513
|
-
if (
|
|
514
|
-
const
|
|
515
|
-
(item) => item[props.keywords.
|
|
507
|
+
if (currentSelectedId) {
|
|
508
|
+
const isStillInTable = state.tableData.some(
|
|
509
|
+
(item) => item[props.keywords.value] === currentSelectedId
|
|
516
510
|
);
|
|
517
|
-
if (
|
|
518
|
-
radioVal.value =
|
|
511
|
+
if (isStillInTable) {
|
|
512
|
+
radioVal.value = currentSelectedId;
|
|
513
|
+
} else {
|
|
514
|
+
radioVal.value = "";
|
|
519
515
|
}
|
|
516
|
+
} else {
|
|
517
|
+
radioVal.value = "";
|
|
520
518
|
}
|
|
521
519
|
};
|
|
522
520
|
const initTableData = () => {
|
|
@@ -533,7 +531,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
533
531
|
});
|
|
534
532
|
} else {
|
|
535
533
|
const matchedRow = (_b = state.tableData) == null ? void 0 : _b.find(
|
|
536
|
-
(item) => item[props.keywords.value] ===
|
|
534
|
+
(item) => item[props.keywords.value] === modeValueId.value
|
|
537
535
|
);
|
|
538
536
|
if (matchedRow) {
|
|
539
537
|
selectTable.value.setCurrentRow(matchedRow);
|
|
@@ -567,25 +565,19 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
567
565
|
showMessage("error", error.message || t("plus.copy.copyFail"));
|
|
568
566
|
}
|
|
569
567
|
};
|
|
570
|
-
const radioChangeHandle = (event, row,
|
|
568
|
+
const radioChangeHandle = (event, row, rowValue) => {
|
|
571
569
|
event.preventDefault();
|
|
572
570
|
if (row.isRadioDisabled) return;
|
|
573
571
|
isDefaultSelectVal.value = false;
|
|
574
|
-
radioClick(row,
|
|
575
|
-
};
|
|
576
|
-
const isForbidden = () => {
|
|
577
|
-
forbidden.value = false;
|
|
578
|
-
setTimeout(() => {
|
|
579
|
-
forbidden.value = true;
|
|
580
|
-
}, 0);
|
|
572
|
+
radioClick(row, rowValue);
|
|
581
573
|
};
|
|
582
|
-
const radioClick = (row,
|
|
583
|
-
|
|
584
|
-
if (
|
|
574
|
+
const radioClick = (row, rowValue) => {
|
|
575
|
+
const isAlreadySelected = state.defaultValue && state.defaultValue[props.keywords.value] === rowValue;
|
|
576
|
+
if (isAlreadySelected) {
|
|
585
577
|
if (!props.radioSameIsCancel) return;
|
|
586
578
|
clear();
|
|
587
579
|
} else {
|
|
588
|
-
updateState(row,
|
|
580
|
+
updateState(row, rowValue);
|
|
589
581
|
}
|
|
590
582
|
if (props.isExpanded && state.defaultValue) {
|
|
591
583
|
selectDefaultLabel.value = state.defaultValue[props.keywords.label] || "";
|
|
@@ -594,29 +586,23 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
594
586
|
blur();
|
|
595
587
|
}
|
|
596
588
|
};
|
|
597
|
-
const updateState = (row,
|
|
598
|
-
|
|
599
|
-
radioVal.value = index;
|
|
589
|
+
const updateState = (row, rowValue) => {
|
|
590
|
+
radioVal.value = rowValue;
|
|
600
591
|
state.defaultValue = row;
|
|
601
|
-
emits("radioChange", row,
|
|
602
|
-
modeValueId.value =
|
|
592
|
+
emits("radioChange", row, rowValue);
|
|
593
|
+
modeValueId.value = rowValue;
|
|
603
594
|
modeValueName.value = row[props.keywords.label];
|
|
604
595
|
};
|
|
605
596
|
const rowClick = async (row) => {
|
|
606
597
|
if (row.isRadioDisabled) return;
|
|
607
598
|
if (!props.rowClickRadio) return;
|
|
608
599
|
if (!props.multiple) {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
)
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
if (radioVal.value) {
|
|
616
|
-
isRadio.value = true;
|
|
617
|
-
} else {
|
|
618
|
-
isRadio.value = false;
|
|
619
|
-
}
|
|
600
|
+
isDefaultSelectVal.value = false;
|
|
601
|
+
await radioClick(row, row[props.keywords.value]);
|
|
602
|
+
if (radioVal.value) {
|
|
603
|
+
isRadio.value = true;
|
|
604
|
+
} else {
|
|
605
|
+
isRadio.value = false;
|
|
620
606
|
}
|
|
621
607
|
}
|
|
622
608
|
};
|
|
@@ -654,7 +640,6 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
654
640
|
}
|
|
655
641
|
nowIndex.value = -1;
|
|
656
642
|
radioVal.value = "";
|
|
657
|
-
forbidden.value = false;
|
|
658
643
|
selectDefaultLabel.value = null;
|
|
659
644
|
resetDefaultState();
|
|
660
645
|
emits("radioChange", null, null);
|
|
@@ -839,10 +824,11 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
839
824
|
vue.createVNode(_component_el_radio, {
|
|
840
825
|
modelValue: radioVal.value,
|
|
841
826
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => radioVal.value = $event),
|
|
842
|
-
label: scope
|
|
827
|
+
label: scope.row[__props.keywords.value],
|
|
828
|
+
value: scope.row[__props.keywords.value],
|
|
843
829
|
disabled: scope.row.isRadioDisabled,
|
|
844
|
-
onClick: vue.withModifiers(($event) => radioChangeHandle($event, scope.row, scope
|
|
845
|
-
}, null, 8, ["modelValue", "label", "disabled", "onClick"])
|
|
830
|
+
onClick: vue.withModifiers(($event) => radioChangeHandle($event, scope.row, scope.row[__props.keywords.value]), ["stop"])
|
|
831
|
+
}, null, 8, ["modelValue", "label", "value", "disabled", "onClick"])
|
|
846
832
|
]),
|
|
847
833
|
_: 1
|
|
848
834
|
/* STABLE */
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.168 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|
package/locale/en.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.168 */var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};export{e as default};
|
package/locale/en.mjs
CHANGED
package/locale/zh-cn.js
CHANGED
package/locale/zh-cn.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.168 */(function(u,e){typeof exports=="object"&&typeof module!="undefined"?module.exports=e():typeof define=="function"&&define.amd?define(e):(u=typeof globalThis!="undefined"?globalThis:u||self,u.fmdeuiPlusLocaleZhCn=e())})(this,(function(){"use strict";var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};return u}));
|
package/locale/zh-cn.min.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.168 */var u={name:"zh-cn",plus:{datepicker:{date:"\u8BF7\u9009\u62E9\u65E5\u671F",dates:"\u8BF7\u9009\u62E9\u65E5\u671F",week:"\u8BF7\u9009\u62E9\u5468",month:"\u8BF7\u9009\u62E9\u6708\u4EFD",months:"\u8BF7\u9009\u62E9\u6708\u4EFD",year:"\u8BF7\u9009\u62E9\u5E74\u4EFD",years:"\u8BF7\u9009\u62E9\u5E74\u4EFD",startDatePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65E5\u671F",endDatePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65E5\u671F",datetime:"\u8BF7\u9009\u62E9\u65E5\u671F\u65F6\u95F4",startMonthPlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u6708\u4EFD",endMonthPlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u6708\u4EFD",startTimePlaceholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",endTimePlaceholder:"\u8BF7\u9009\u62E9\u7ED3\u675F\u65F6\u95F4",shortcutsDate:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDaterange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"},shortcutsMonthrange:{thisMonth:"\u672C\u6708",thisYear:"\u4ECA\u5E74\u81F3\u4ECA",pastSixMonths:"\u6700\u8FD1\u516D\u4E2A\u6708"},shortcutsDatetime:{today:"\u4ECA\u5929",yesterday:"\u6628\u5929",lastWeek:"\u4E00\u5468\u524D"},shortcutsDatetimerange:{pastWeek:"\u6700\u8FD1\u4E00\u5468",pastMonth:"\u6700\u8FD1\u4E00\u4E2A\u6708",pastThreeMonths:"\u6700\u8FD1\u4E09\u4E2A\u6708"}},form:{pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9"},input:{placeholder:"\u8BF7\u8F93\u5165",appendTitle:"\u5143",validatePhone:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801",validateIdCard:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u8EAB\u4EFD\u8BC1\u53F7\u7801",validateInteger:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u6574\u6570",format:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684",amount:"\u91D1\u989D",numbers:"\u6570\u5B57",digitUppercase:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u91D1\u989D\u683C\u5F0F",validateError:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u683C\u5F0F",escaped:{0:"\u89D2",1:"\u5206",2:"\u96F6",3:"\u58F9",4:"\u8D30",5:"\u53C1",6:"\u8086",7:"\u4F0D",8:"\u9646",9:"\u67D2",10:"\u634C",11:"\u7396",12:"\u5143",13:"\u4E07",14:"\u4EBF",15:"\u5146",16:"\u62FE",17:"\u4F70",18:"\u4EDF",19:"\u6B20",20:"\u6574"}},moduleForm:{save:"\u4FDD\u5B58",back:"\u8FD4\u56DE"},search:{searchText:"\u67E5\u8BE2",resetText:"\u91CD\u7F6E",expand:"\u5C55\u5F00",retract:"\u6536\u8D77",pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",popoverAttrs:{showTxt:"\u66F4\u591A",title:"\u6240\u6709\u6761\u4EF6",allTxt:"\u5168\u9009",reverseTxt:"\u53CD\u9009",clearTxt:"\u6E05\u7A7A"}},select:{selectAllTxt:"\u5168\u9009"},selectIcon:{placeholder:"\u8BF7\u9009\u62E9\u56FE\u6807",dialogTitle:"\u8BF7\u9009\u62E9\u56FE\u6807",searchPlaceholder:"\u641C\u7D22\u56FE\u6807",emptyDescription:"\u672A\u641C\u7D22\u5230\u60A8\u8981\u627E\u7684\u56FE\u6807"},copy:{copySuccess:"\u590D\u5236\u6210\u529F",copyFail:"\u590D\u5236\u5931\u8D25",invalidCopyContent:"\u65E0\u6548\u7684\u590D\u5236\u5185\u5BB9"},selectTable:{searchBtnTxt:"\u5173\u95ED\u4E0B\u62C9\u6846",radioTxt:"\u5355\u9009",loadingTxt:"\u52A0\u8F7D\u4E2D..."},stepWizard:{lastBtnTitle:"\u5B8C\u6210"},table:{columnBind:{btnTxt:"\u5217\u8BBE\u7F6E",title:"\u5217\u8BBE\u7F6E"},fistColumn:{label:"\u5E8F\u53F7",radio:"\u5355\u9009"},operator:{label:"\u64CD\u4F5C",more:"\u66F4\u591A",sum:"\u5F53\u9875\u5408\u8BA1",total:"\u5408\u8BA1",allSum:"\u5168\u90E8\u5408\u8BA1"},singleEdit:{tipText:"\u5355\u51FB\u53EF\u7F16\u8F91"},pleaseEnter:"\u8BF7\u8F93\u5165",pleaseSelect:"\u8BF7\u9009\u62E9",loadingTxt:"\u52A0\u8F7D\u4E2D...",saveBtnTxt:"\u4FDD\u5B58",dragTxt:"\u62D6\u52A8",density:"\u5BC6\u5EA6",default:"\u9ED8\u8BA4",loose:"\u5BBD\u677E",compact:"\u7D27\u51D1"},list:{idleTimeoutMessage:"\u957F\u65F6\u95F4\u672A\u64CD\u4F5C\uFF0C\u5DF2\u9000\u51FA\u7CFB\u7EDF\u3002",sysMessage:"\u7CFB\u7EDF\u6D88\u606F"}}};export{u as default};
|
package/locale/zh-cn.mjs
CHANGED
package/package.json
CHANGED
|
File without changes
|