@fmdeui/fmui 1.0.110 → 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/component.mjs +3 -1
- package/es/components/fm-select/index.d.ts +221 -0
- package/es/components/fm-select/index.vue.d.ts +282 -0
- package/es/components/index.d.ts +1 -0
- package/es/packages/components/fm-inputdropdown/index.vue2.mjs +2 -1
- package/es/packages/components/fm-select/index.mjs +6 -0
- package/es/packages/components/fm-select/index.vue.mjs +5 -0
- package/es/packages/components/fm-select/index.vue2.mjs +207 -0
- package/es/packages/components/index.mjs +1 -0
- package/index.js +263 -58
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +263 -58
- package/lib/component.js +3 -1
- package/lib/components/fm-select/index.d.ts +221 -0
- package/lib/components/fm-select/index.vue.d.ts +282 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/packages/components/fm-inputdropdown/index.vue2.js +2 -1
- package/lib/packages/components/fm-select/index.js +8 -0
- package/lib/packages/components/fm-select/index.vue.js +9 -0
- package/lib/packages/components/fm-select/index.vue2.js +211 -0
- package/lib/packages/components/index.js +6 -4
- 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 → component.css} +0 -0
- /package/lib/{index.css → defaults.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.112 */
|
|
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';
|
|
@@ -20197,7 +20197,7 @@ const setupVXETable = (app) => {
|
|
|
20197
20197
|
app.use(VxeUITable);
|
|
20198
20198
|
};
|
|
20199
20199
|
|
|
20200
|
-
var _sfc_main$
|
|
20200
|
+
var _sfc_main$M = /* @__PURE__ */ defineComponent({
|
|
20201
20201
|
...{
|
|
20202
20202
|
name: "FButton"
|
|
20203
20203
|
},
|
|
@@ -20267,7 +20267,7 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
|
20267
20267
|
}
|
|
20268
20268
|
});
|
|
20269
20269
|
|
|
20270
|
-
const FButton = _sfc_main$
|
|
20270
|
+
const FButton = _sfc_main$M;
|
|
20271
20271
|
|
|
20272
20272
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
20273
20273
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
@@ -20940,9 +20940,9 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
|
|
|
20940
20940
|
return isJson ? width != "" ? { width } : "" : width;
|
|
20941
20941
|
}
|
|
20942
20942
|
|
|
20943
|
-
const _hoisted_1$
|
|
20943
|
+
const _hoisted_1$w = { key: 0 };
|
|
20944
20944
|
const _hoisted_2$k = { key: 0 };
|
|
20945
|
-
var _sfc_main$
|
|
20945
|
+
var _sfc_main$L = /* @__PURE__ */ defineComponent({
|
|
20946
20946
|
...{
|
|
20947
20947
|
name: "FInput"
|
|
20948
20948
|
},
|
|
@@ -21149,7 +21149,7 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
21149
21149
|
fn: withCtx(() => [
|
|
21150
21150
|
__props.inputType === "amount" ? (openBlock(), createElementBlock(
|
|
21151
21151
|
"span",
|
|
21152
|
-
_hoisted_1$
|
|
21152
|
+
_hoisted_1$w,
|
|
21153
21153
|
toDisplayString(appendTitleText.value),
|
|
21154
21154
|
1
|
|
21155
21155
|
/* TEXT */
|
|
@@ -21195,13 +21195,13 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
21195
21195
|
}
|
|
21196
21196
|
});
|
|
21197
21197
|
|
|
21198
|
-
const FInput = _sfc_main$
|
|
21198
|
+
const FInput = _sfc_main$L;
|
|
21199
21199
|
|
|
21200
|
-
const _hoisted_1$
|
|
21200
|
+
const _hoisted_1$v = {
|
|
21201
21201
|
key: 0,
|
|
21202
21202
|
class: "back_to_top"
|
|
21203
21203
|
};
|
|
21204
|
-
var _sfc_main$
|
|
21204
|
+
var _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
21205
21205
|
...{
|
|
21206
21206
|
name: "FLayoutPage"
|
|
21207
21207
|
},
|
|
@@ -21263,7 +21263,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
21263
21263
|
},
|
|
21264
21264
|
[
|
|
21265
21265
|
renderSlot(_ctx.$slots, "default"),
|
|
21266
|
-
__props.showGoTopButton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
21266
|
+
__props.showGoTopButton ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
|
|
21267
21267
|
isShowGoTopButton.value ? (openBlock(), createElementBlock("div", {
|
|
21268
21268
|
key: 0,
|
|
21269
21269
|
onClick: backToTop
|
|
@@ -21291,9 +21291,9 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
21291
21291
|
}
|
|
21292
21292
|
});
|
|
21293
21293
|
|
|
21294
|
-
const FLayoutPage = _sfc_main$
|
|
21294
|
+
const FLayoutPage = _sfc_main$K;
|
|
21295
21295
|
|
|
21296
|
-
var _sfc_main$
|
|
21296
|
+
var _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
21297
21297
|
...{
|
|
21298
21298
|
name: "FLayoutPageItem"
|
|
21299
21299
|
},
|
|
@@ -21321,7 +21321,7 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
|
21321
21321
|
}
|
|
21322
21322
|
});
|
|
21323
21323
|
|
|
21324
|
-
const FLayoutPageItem = _sfc_main$
|
|
21324
|
+
const FLayoutPageItem = _sfc_main$J;
|
|
21325
21325
|
|
|
21326
21326
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
21327
21327
|
let timer = null;
|
|
@@ -21364,8 +21364,8 @@ function toLine(name) {
|
|
|
21364
21364
|
return name.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
21365
21365
|
}
|
|
21366
21366
|
|
|
21367
|
-
const _hoisted_1$
|
|
21368
|
-
var _sfc_main$
|
|
21367
|
+
const _hoisted_1$u = ["id"];
|
|
21368
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
21369
21369
|
...{
|
|
21370
21370
|
name: "FChart"
|
|
21371
21371
|
},
|
|
@@ -21449,7 +21449,7 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21449
21449
|
id: __props.id,
|
|
21450
21450
|
ref_key: "echartRef",
|
|
21451
21451
|
ref: echartRef
|
|
21452
|
-
}, null, 8, _hoisted_1$
|
|
21452
|
+
}, null, 8, _hoisted_1$u), [
|
|
21453
21453
|
[vShow, !formatEmpty.value]
|
|
21454
21454
|
]),
|
|
21455
21455
|
formatEmpty.value ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
@@ -21464,13 +21464,13 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
|
21464
21464
|
}
|
|
21465
21465
|
});
|
|
21466
21466
|
|
|
21467
|
-
const FChart = _sfc_main$
|
|
21467
|
+
const FChart = _sfc_main$I;
|
|
21468
21468
|
|
|
21469
|
-
const _hoisted_1$
|
|
21469
|
+
const _hoisted_1$t = {
|
|
21470
21470
|
key: 1,
|
|
21471
21471
|
class: "f_select__pagination"
|
|
21472
21472
|
};
|
|
21473
|
-
var _sfc_main$
|
|
21473
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
21474
21474
|
...{
|
|
21475
21475
|
name: "FSelect"
|
|
21476
21476
|
},
|
|
@@ -21683,7 +21683,7 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
21683
21683
|
128
|
|
21684
21684
|
/* KEYED_FRAGMENT */
|
|
21685
21685
|
)),
|
|
21686
|
-
__props.isShowPagination && filteredOptionsCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
21686
|
+
__props.isShowPagination && filteredOptionsCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
|
|
21687
21687
|
createVNode(_component_el_pagination, mergeProps({
|
|
21688
21688
|
"current-page": __props.paginationOption.currentPage,
|
|
21689
21689
|
"onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => __props.paginationOption.currentPage = $event),
|
|
@@ -21721,9 +21721,9 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
21721
21721
|
}
|
|
21722
21722
|
});
|
|
21723
21723
|
|
|
21724
|
-
const FSelect = _sfc_main$
|
|
21724
|
+
const FSelect = _sfc_main$H;
|
|
21725
21725
|
|
|
21726
|
-
var _sfc_main$
|
|
21726
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21727
21727
|
...{
|
|
21728
21728
|
name: "RenderComp"
|
|
21729
21729
|
},
|
|
@@ -21743,12 +21743,12 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21743
21743
|
}
|
|
21744
21744
|
});
|
|
21745
21745
|
|
|
21746
|
-
const _hoisted_1$
|
|
21746
|
+
const _hoisted_1$s = { class: "inside_box" };
|
|
21747
21747
|
const _hoisted_2$j = { class: "inside_box_title" };
|
|
21748
21748
|
const _hoisted_3$c = { class: "check-box" };
|
|
21749
21749
|
const _hoisted_4$8 = { class: "more_dropdown_icon" };
|
|
21750
21750
|
const _hoisted_5$7 = { class: "out_box" };
|
|
21751
|
-
var _sfc_main$
|
|
21751
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21752
21752
|
...{
|
|
21753
21753
|
name: "MoreChoose"
|
|
21754
21754
|
},
|
|
@@ -21886,7 +21886,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21886
21886
|
])
|
|
21887
21887
|
]),
|
|
21888
21888
|
default: withCtx(() => [
|
|
21889
|
-
createElementVNode("div", _hoisted_1$
|
|
21889
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
21890
21890
|
createElementVNode("div", _hoisted_2$j, [
|
|
21891
21891
|
createElementVNode(
|
|
21892
21892
|
"div",
|
|
@@ -22063,7 +22063,7 @@ function useComputed() {
|
|
|
22063
22063
|
};
|
|
22064
22064
|
}
|
|
22065
22065
|
|
|
22066
|
-
var _sfc_main$
|
|
22066
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
22067
22067
|
...{
|
|
22068
22068
|
name: "FQueryCondition"
|
|
22069
22069
|
},
|
|
@@ -22482,7 +22482,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22482
22482
|
opt.labelRender ? {
|
|
22483
22483
|
name: "label",
|
|
22484
22484
|
fn: withCtx(() => [
|
|
22485
|
-
createVNode(_sfc_main$
|
|
22485
|
+
createVNode(_sfc_main$G, {
|
|
22486
22486
|
form: unref(queryState).form,
|
|
22487
22487
|
render: opt.labelRender
|
|
22488
22488
|
}, null, 8, ["form", "render"])
|
|
@@ -22578,7 +22578,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22578
22578
|
_: 1
|
|
22579
22579
|
/* STABLE */
|
|
22580
22580
|
})) : createCommentVNode("v-if", true),
|
|
22581
|
-
createVNode(_sfc_main$
|
|
22581
|
+
createVNode(_sfc_main$F, {
|
|
22582
22582
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22583
22583
|
moreCheckList: __props.moreCheckList,
|
|
22584
22584
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22604,7 +22604,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
22604
22604
|
}
|
|
22605
22605
|
});
|
|
22606
22606
|
|
|
22607
|
-
var _sfc_main$
|
|
22607
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
22608
22608
|
...{
|
|
22609
22609
|
name: "RenderCol"
|
|
22610
22610
|
},
|
|
@@ -22760,7 +22760,7 @@ function useVirtualized() {
|
|
|
22760
22760
|
};
|
|
22761
22761
|
}
|
|
22762
22762
|
|
|
22763
|
-
const _hoisted_1$
|
|
22763
|
+
const _hoisted_1$r = {
|
|
22764
22764
|
key: 0,
|
|
22765
22765
|
class: "table_query_condition"
|
|
22766
22766
|
};
|
|
@@ -22770,7 +22770,7 @@ const _hoisted_4$7 = {
|
|
|
22770
22770
|
key: 0,
|
|
22771
22771
|
class: "f-table-select__page"
|
|
22772
22772
|
};
|
|
22773
|
-
var _sfc_main$
|
|
22773
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
22774
22774
|
...{
|
|
22775
22775
|
name: "FSelectTable"
|
|
22776
22776
|
},
|
|
@@ -23392,9 +23392,9 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23392
23392
|
style: normalizeStyle({ width: __props.tableWidth ? `${__props.tableWidth}px` : "100%" })
|
|
23393
23393
|
},
|
|
23394
23394
|
[
|
|
23395
|
-
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
23395
|
+
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
23396
23396
|
createVNode(
|
|
23397
|
-
_sfc_main$
|
|
23397
|
+
_sfc_main$E,
|
|
23398
23398
|
mergeProps({
|
|
23399
23399
|
ref_key: "fQueryConditionRef",
|
|
23400
23400
|
ref: fQueryConditionRef,
|
|
@@ -23520,7 +23520,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23520
23520
|
fixed: item.fixed
|
|
23521
23521
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23522
23522
|
default: withCtx((scope) => [
|
|
23523
|
-
item.render ? (openBlock(), createBlock(_sfc_main$
|
|
23523
|
+
item.render ? (openBlock(), createBlock(_sfc_main$D, {
|
|
23524
23524
|
key: 0,
|
|
23525
23525
|
column: item,
|
|
23526
23526
|
row: scope.row,
|
|
@@ -23583,11 +23583,11 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
23583
23583
|
}
|
|
23584
23584
|
});
|
|
23585
23585
|
|
|
23586
|
-
const FSelectTable = _sfc_main$
|
|
23586
|
+
const FSelectTable = _sfc_main$C;
|
|
23587
23587
|
|
|
23588
|
-
const FQueryCondition = _sfc_main$
|
|
23588
|
+
const FQueryCondition = _sfc_main$E;
|
|
23589
23589
|
|
|
23590
|
-
var _sfc_main$
|
|
23590
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
23591
23591
|
...{
|
|
23592
23592
|
name: "RenderComp"
|
|
23593
23593
|
},
|
|
@@ -23607,7 +23607,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
23607
23607
|
}
|
|
23608
23608
|
});
|
|
23609
23609
|
|
|
23610
|
-
var _sfc_main$
|
|
23610
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
23611
23611
|
...{
|
|
23612
23612
|
name: "RenderBtn"
|
|
23613
23613
|
},
|
|
@@ -23627,12 +23627,12 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
23627
23627
|
}
|
|
23628
23628
|
});
|
|
23629
23629
|
|
|
23630
|
-
const _hoisted_1$
|
|
23630
|
+
const _hoisted_1$q = {
|
|
23631
23631
|
key: 1,
|
|
23632
23632
|
class: "text_show"
|
|
23633
23633
|
};
|
|
23634
23634
|
const _hoisted_2$h = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23635
|
-
var _sfc_main$
|
|
23635
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
23636
23636
|
...{
|
|
23637
23637
|
name: "FForm"
|
|
23638
23638
|
},
|
|
@@ -23883,7 +23883,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
23883
23883
|
}) : createCommentVNode("v-if", true),
|
|
23884
23884
|
item.textShow ? (openBlock(), createElementBlock(
|
|
23885
23885
|
"span",
|
|
23886
|
-
_hoisted_1$
|
|
23886
|
+
_hoisted_1$q,
|
|
23887
23887
|
toDisplayString(item.textValue || __props.formOpts.formData[item.value]),
|
|
23888
23888
|
1
|
|
23889
23889
|
/* TEXT */
|
|
@@ -24003,7 +24003,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
24003
24003
|
item.labelSlotName || item.labelRender ? {
|
|
24004
24004
|
name: "label",
|
|
24005
24005
|
fn: withCtx(() => [
|
|
24006
|
-
item.labelRender ? (openBlock(), createBlock(_sfc_main$
|
|
24006
|
+
item.labelRender ? (openBlock(), createBlock(_sfc_main$B, {
|
|
24007
24007
|
key: 0,
|
|
24008
24008
|
render: item.labelRender,
|
|
24009
24009
|
item
|
|
@@ -24035,7 +24035,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
24035
24035
|
Fragment,
|
|
24036
24036
|
null,
|
|
24037
24037
|
[
|
|
24038
|
-
val.render ? (openBlock(), createBlock(_sfc_main$
|
|
24038
|
+
val.render ? (openBlock(), createBlock(_sfc_main$A, {
|
|
24039
24039
|
key: index,
|
|
24040
24040
|
item: val,
|
|
24041
24041
|
render: val.render
|
|
@@ -24082,10 +24082,10 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
24082
24082
|
}
|
|
24083
24083
|
});
|
|
24084
24084
|
|
|
24085
|
-
const FForm = _sfc_main$
|
|
24085
|
+
const FForm = _sfc_main$z;
|
|
24086
24086
|
|
|
24087
|
-
const _hoisted_1$
|
|
24088
|
-
var _sfc_main$
|
|
24087
|
+
const _hoisted_1$p = ["src"];
|
|
24088
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
24089
24089
|
...{
|
|
24090
24090
|
name: "svgIcon"
|
|
24091
24091
|
},
|
|
@@ -24156,7 +24156,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
24156
24156
|
createElementVNode("img", {
|
|
24157
24157
|
src: getIconName.value,
|
|
24158
24158
|
style: normalizeStyle(setIconSvgInsStyle.value)
|
|
24159
|
-
}, null, 12, _hoisted_1$
|
|
24159
|
+
}, null, 12, _hoisted_1$p)
|
|
24160
24160
|
],
|
|
24161
24161
|
4
|
|
24162
24162
|
/* STYLE */
|
|
@@ -24183,13 +24183,13 @@ function elSvg(app) {
|
|
|
24183
24183
|
}
|
|
24184
24184
|
}
|
|
24185
24185
|
if (!app._context.components[`SvgIcon`]) {
|
|
24186
|
-
app.component("SvgIcon", _sfc_main$
|
|
24186
|
+
app.component("SvgIcon", _sfc_main$y);
|
|
24187
24187
|
}
|
|
24188
24188
|
}
|
|
24189
24189
|
|
|
24190
24190
|
const emitter = mitt();
|
|
24191
24191
|
|
|
24192
|
-
var _sfc_main$
|
|
24192
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
24193
24193
|
...{
|
|
24194
24194
|
name: "FLayout"
|
|
24195
24195
|
},
|
|
@@ -24275,7 +24275,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
24275
24275
|
}
|
|
24276
24276
|
});
|
|
24277
24277
|
|
|
24278
|
-
const FLayout = _sfc_main$
|
|
24278
|
+
const FLayout = _sfc_main$x;
|
|
24279
24279
|
|
|
24280
24280
|
function commonFunction() {
|
|
24281
24281
|
const { copy, isSupported } = useClipboard();
|
|
@@ -24552,7 +24552,7 @@ const other = {
|
|
|
24552
24552
|
// },
|
|
24553
24553
|
};
|
|
24554
24554
|
|
|
24555
|
-
const _hoisted_1$
|
|
24555
|
+
const _hoisted_1$o = { class: "layout-breadcrumb-seting" };
|
|
24556
24556
|
const _hoisted_2$g = { class: "layout-breadcrumb-seting-bar-flex" };
|
|
24557
24557
|
const _hoisted_3$a = { class: "layout-breadcrumb-seting-bar-flex-label" };
|
|
24558
24558
|
const _hoisted_4$6 = { class: "layout-breadcrumb-seting-bar-flex-value" };
|
|
@@ -24677,7 +24677,7 @@ const _hoisted_119 = {
|
|
|
24677
24677
|
class: "traditionalColors-chines",
|
|
24678
24678
|
style: { "cursor": "grab", "color": "gray" }
|
|
24679
24679
|
};
|
|
24680
|
-
var _sfc_main$
|
|
24680
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
24681
24681
|
...{
|
|
24682
24682
|
name: "FSettings"
|
|
24683
24683
|
},
|
|
@@ -24941,7 +24941,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
24941
24941
|
const _component_el_col = resolveComponent("el-col");
|
|
24942
24942
|
const _component_el_row = resolveComponent("el-row");
|
|
24943
24943
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
24944
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24944
|
+
return openBlock(), createElementBlock("div", _hoisted_1$o, [
|
|
24945
24945
|
createVNode(_component_el_drawer, {
|
|
24946
24946
|
title: _ctx.$t("message.layout.configTitle"),
|
|
24947
24947
|
modelValue: getThemeConfig.value.isDrawer,
|
|
@@ -26440,9 +26440,9 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
26440
26440
|
}
|
|
26441
26441
|
});
|
|
26442
26442
|
|
|
26443
|
-
const FSettings = _sfc_main$
|
|
26443
|
+
const FSettings = _sfc_main$w;
|
|
26444
26444
|
|
|
26445
|
-
var _sfc_main$
|
|
26445
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
26446
26446
|
...{
|
|
26447
26447
|
name: "FModifyRecord"
|
|
26448
26448
|
},
|
|
@@ -26705,7 +26705,210 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
26705
26705
|
}
|
|
26706
26706
|
});
|
|
26707
26707
|
|
|
26708
|
-
const FModifyRecord = _sfc_main$
|
|
26708
|
+
const FModifyRecord = _sfc_main$v;
|
|
26709
|
+
|
|
26710
|
+
const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right", "cursor": "pointer" } };
|
|
26711
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
26712
|
+
...{
|
|
26713
|
+
name: "FmSelect"
|
|
26714
|
+
},
|
|
26715
|
+
__name: "index",
|
|
26716
|
+
props: /* @__PURE__ */ mergeModels({
|
|
26717
|
+
//数据
|
|
26718
|
+
optionData: {
|
|
26719
|
+
type: Array,
|
|
26720
|
+
default: []
|
|
26721
|
+
},
|
|
26722
|
+
/**
|
|
26723
|
+
* 值的属性值
|
|
26724
|
+
*/
|
|
26725
|
+
bvalue: {
|
|
26726
|
+
type: String,
|
|
26727
|
+
default: "id"
|
|
26728
|
+
},
|
|
26729
|
+
/**
|
|
26730
|
+
* 值的属性标签
|
|
26731
|
+
*/
|
|
26732
|
+
blabel: {
|
|
26733
|
+
type: String,
|
|
26734
|
+
default: "name"
|
|
26735
|
+
},
|
|
26736
|
+
placeholder: {
|
|
26737
|
+
type: String,
|
|
26738
|
+
default: "\u8BF7\u9009\u62E9"
|
|
26739
|
+
},
|
|
26740
|
+
inputWidth: {
|
|
26741
|
+
type: String,
|
|
26742
|
+
default: "40%"
|
|
26743
|
+
},
|
|
26744
|
+
dropWidth: {
|
|
26745
|
+
type: String,
|
|
26746
|
+
default: "90px"
|
|
26747
|
+
},
|
|
26748
|
+
dropHeight: {
|
|
26749
|
+
type: String,
|
|
26750
|
+
default: "180px"
|
|
26751
|
+
},
|
|
26752
|
+
/**
|
|
26753
|
+
* api service name
|
|
26754
|
+
*/
|
|
26755
|
+
apiService: {
|
|
26756
|
+
type: String,
|
|
26757
|
+
default: "baseData"
|
|
26758
|
+
},
|
|
26759
|
+
/**
|
|
26760
|
+
* api service 下的方法
|
|
26761
|
+
*/
|
|
26762
|
+
apiAction: {
|
|
26763
|
+
type: String,
|
|
26764
|
+
default: "baseDataList"
|
|
26765
|
+
},
|
|
26766
|
+
/**
|
|
26767
|
+
* 基础编码 自动获取数据
|
|
26768
|
+
*/
|
|
26769
|
+
basecode: {
|
|
26770
|
+
type: String,
|
|
26771
|
+
default: ""
|
|
26772
|
+
},
|
|
26773
|
+
/**
|
|
26774
|
+
* 基础编码 多个编码合在一起调用
|
|
26775
|
+
*/
|
|
26776
|
+
multibasecode: {
|
|
26777
|
+
type: Array,
|
|
26778
|
+
default: []
|
|
26779
|
+
},
|
|
26780
|
+
freshSize: {
|
|
26781
|
+
type: [Number, String],
|
|
26782
|
+
default: 20
|
|
26783
|
+
},
|
|
26784
|
+
/**
|
|
26785
|
+
* 是否默认加载数据
|
|
26786
|
+
*/
|
|
26787
|
+
autoLoadData: {
|
|
26788
|
+
type: Boolean,
|
|
26789
|
+
default: true
|
|
26790
|
+
},
|
|
26791
|
+
/**
|
|
26792
|
+
* 是否添加空选项
|
|
26793
|
+
*/
|
|
26794
|
+
addEmptyOption: {
|
|
26795
|
+
type: Boolean,
|
|
26796
|
+
default: false
|
|
26797
|
+
},
|
|
26798
|
+
/**
|
|
26799
|
+
* 空选项的标签
|
|
26800
|
+
*/
|
|
26801
|
+
emptyOptionLabel: {
|
|
26802
|
+
type: String,
|
|
26803
|
+
default: "\u5168\u90E8"
|
|
26804
|
+
},
|
|
26805
|
+
/**
|
|
26806
|
+
* 空选项的值
|
|
26807
|
+
*/
|
|
26808
|
+
emptyOptionValue: {
|
|
26809
|
+
type: Number,
|
|
26810
|
+
default: 0
|
|
26811
|
+
}
|
|
26812
|
+
}, {
|
|
26813
|
+
"id": { default: 0, required: false },
|
|
26814
|
+
"idModifiers": {},
|
|
26815
|
+
"name": { default: "", required: false },
|
|
26816
|
+
"nameModifiers": {}
|
|
26817
|
+
}),
|
|
26818
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
|
|
26819
|
+
setup(__props, { emit: __emit }) {
|
|
26820
|
+
const modeValueId = useModel(__props, "id");
|
|
26821
|
+
const modeValueName = useModel(__props, "name");
|
|
26822
|
+
const props = __props;
|
|
26823
|
+
const state = reactive({
|
|
26824
|
+
optionData: props.optionData
|
|
26825
|
+
});
|
|
26826
|
+
const emit = __emit;
|
|
26827
|
+
const handelChange = (val) => {
|
|
26828
|
+
if (props.addEmptyOption && val == props.emptyOptionValue) {
|
|
26829
|
+
modeValueId.value = props.emptyOptionValue;
|
|
26830
|
+
return;
|
|
26831
|
+
}
|
|
26832
|
+
const fitem = state.optionData.find((item) => item[props.blabel] === val);
|
|
26833
|
+
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
26834
|
+
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
26835
|
+
emit("change", val);
|
|
26836
|
+
};
|
|
26837
|
+
const handelClear = () => {
|
|
26838
|
+
modeValueId.value = 0;
|
|
26839
|
+
modeValueName.value = "";
|
|
26840
|
+
emit("change", "");
|
|
26841
|
+
};
|
|
26842
|
+
onMounted(async () => {
|
|
26843
|
+
if (props.optionData.length > 0) {
|
|
26844
|
+
state.optionData = props.optionData;
|
|
26845
|
+
}
|
|
26846
|
+
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
26847
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26848
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
26849
|
+
}
|
|
26850
|
+
});
|
|
26851
|
+
const handRestdata = async () => {
|
|
26852
|
+
if (props.basecode && props.basecode != "") {
|
|
26853
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26854
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
26855
|
+
}
|
|
26856
|
+
};
|
|
26857
|
+
return (_ctx, _cache) => {
|
|
26858
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
26859
|
+
const _component_el_option = resolveComponent("el-option");
|
|
26860
|
+
const _component_el_select = resolveComponent("el-select");
|
|
26861
|
+
return openBlock(), createBlock(_component_el_select, {
|
|
26862
|
+
modelValue: modeValueName.value,
|
|
26863
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
26864
|
+
placeholder: props.placeholder,
|
|
26865
|
+
style: normalizeStyle({ width: __props.inputWidth }),
|
|
26866
|
+
onChange: handelChange,
|
|
26867
|
+
onClear: handelClear
|
|
26868
|
+
}, {
|
|
26869
|
+
header: withCtx(() => [
|
|
26870
|
+
createElementVNode("div", _hoisted_1$n, [
|
|
26871
|
+
createVNode(_component_el_icon, {
|
|
26872
|
+
color: "#13c2c2",
|
|
26873
|
+
size: __props.freshSize,
|
|
26874
|
+
onClick: handRestdata
|
|
26875
|
+
}, {
|
|
26876
|
+
default: withCtx(() => [
|
|
26877
|
+
createVNode(unref(RefreshLeft))
|
|
26878
|
+
]),
|
|
26879
|
+
_: 1
|
|
26880
|
+
/* STABLE */
|
|
26881
|
+
}, 8, ["size"])
|
|
26882
|
+
])
|
|
26883
|
+
]),
|
|
26884
|
+
default: withCtx(() => [
|
|
26885
|
+
__props.addEmptyOption ? (openBlock(), createBlock(_component_el_option, {
|
|
26886
|
+
key: 0,
|
|
26887
|
+
label: __props.emptyOptionLabel,
|
|
26888
|
+
value: __props.emptyOptionLabel
|
|
26889
|
+
}, null, 8, ["label", "value"])) : createCommentVNode("v-if", true),
|
|
26890
|
+
(openBlock(true), createElementBlock(
|
|
26891
|
+
Fragment,
|
|
26892
|
+
null,
|
|
26893
|
+
renderList(state.optionData, (item, index) => {
|
|
26894
|
+
return openBlock(), createBlock(_component_el_option, {
|
|
26895
|
+
key: index,
|
|
26896
|
+
label: item[__props.blabel],
|
|
26897
|
+
value: item[__props.blabel]
|
|
26898
|
+
}, null, 8, ["label", "value"]);
|
|
26899
|
+
}),
|
|
26900
|
+
128
|
|
26901
|
+
/* KEYED_FRAGMENT */
|
|
26902
|
+
))
|
|
26903
|
+
]),
|
|
26904
|
+
_: 1
|
|
26905
|
+
/* STABLE */
|
|
26906
|
+
}, 8, ["modelValue", "placeholder", "style"]);
|
|
26907
|
+
};
|
|
26908
|
+
}
|
|
26909
|
+
});
|
|
26910
|
+
|
|
26911
|
+
const FmSelect = _sfc_main$u;
|
|
26709
26912
|
|
|
26710
26913
|
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
26711
26914
|
...{
|
|
@@ -26884,7 +27087,8 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
26884
27087
|
createVNode(_component_el_icon, {
|
|
26885
27088
|
color: "#13c2c2",
|
|
26886
27089
|
size: __props.freshSize,
|
|
26887
|
-
onClick: handRestdata
|
|
27090
|
+
onClick: handRestdata,
|
|
27091
|
+
style: { "cursor": "pointer" }
|
|
26888
27092
|
}, {
|
|
26889
27093
|
default: withCtx(() => [
|
|
26890
27094
|
createVNode(unref(RefreshLeft))
|
|
@@ -28510,7 +28714,8 @@ const plugins = [
|
|
|
28510
28714
|
FmTree,
|
|
28511
28715
|
FmCascader,
|
|
28512
28716
|
FmInputNumber,
|
|
28513
|
-
FmAutocomplete
|
|
28717
|
+
FmAutocomplete,
|
|
28718
|
+
FmSelect
|
|
28514
28719
|
];
|
|
28515
28720
|
|
|
28516
28721
|
var installer = makeInstaller([...plugins]);
|
package/lib/component.js
CHANGED
|
@@ -19,6 +19,7 @@ var index$d = require('./packages/components/fmtree/index.js');
|
|
|
19
19
|
var index$e = require('./packages/components/fmcascader/index.js');
|
|
20
20
|
var index$f = require('./packages/components/fm-inputnumber/index.js');
|
|
21
21
|
var index$g = require('./packages/components/fm-autocomplete/index.js');
|
|
22
|
+
var index$h = require('./packages/components/fm-select/index.js');
|
|
22
23
|
|
|
23
24
|
const plugins = [
|
|
24
25
|
index.FButton,
|
|
@@ -37,7 +38,8 @@ const plugins = [
|
|
|
37
38
|
index$d.FmTree,
|
|
38
39
|
index$e.FmCascader,
|
|
39
40
|
index$f.FmInputNumber,
|
|
40
|
-
index$g.FmAutocomplete
|
|
41
|
+
index$g.FmAutocomplete,
|
|
42
|
+
index$h.FmSelect
|
|
41
43
|
];
|
|
42
44
|
|
|
43
45
|
exports.default = plugins;
|