@fmdeui/fmui 1.0.75 → 1.0.76
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/fmcascader/index.d.ts +114 -0
- package/es/components/fmcascader/index.vue.d.ts +115 -0
- package/es/packages/components/fmcascader/index.mjs +6 -0
- package/es/packages/components/fmcascader/index.vue.mjs +5 -0
- package/es/packages/components/fmcascader/index.vue2.mjs +126 -0
- package/index.js +187 -61
- package/index.min.js +6 -6
- package/index.min.mjs +7 -7
- package/index.mjs +187 -61
- package/lib/component.js +3 -1
- package/lib/components/fmcascader/index.d.ts +114 -0
- package/lib/components/fmcascader/index.vue.d.ts +115 -0
- package/lib/packages/components/fmcascader/index.js +8 -0
- package/lib/packages/components/fmcascader/index.vue.js +9 -0
- package/lib/packages/components/fmcascader/index.vue2.js +130 -0
- 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/{index.css → component.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.76 */
|
|
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';
|
|
@@ -19777,7 +19777,7 @@ const setupVXETable = (app) => {
|
|
|
19777
19777
|
app.use(VxeUITable);
|
|
19778
19778
|
};
|
|
19779
19779
|
|
|
19780
|
-
var _sfc_main$
|
|
19780
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
19781
19781
|
...{
|
|
19782
19782
|
name: "FButton"
|
|
19783
19783
|
},
|
|
@@ -19847,7 +19847,7 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
19847
19847
|
}
|
|
19848
19848
|
});
|
|
19849
19849
|
|
|
19850
|
-
const FButton = _sfc_main$
|
|
19850
|
+
const FButton = _sfc_main$G;
|
|
19851
19851
|
|
|
19852
19852
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
19853
19853
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
@@ -20418,9 +20418,9 @@ function getlimit(value) {
|
|
|
20418
20418
|
return null;
|
|
20419
20419
|
}
|
|
20420
20420
|
|
|
20421
|
-
const _hoisted_1$
|
|
20421
|
+
const _hoisted_1$s = { key: 0 };
|
|
20422
20422
|
const _hoisted_2$i = { key: 0 };
|
|
20423
|
-
var _sfc_main$
|
|
20423
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
20424
20424
|
...{
|
|
20425
20425
|
name: "FInput"
|
|
20426
20426
|
},
|
|
@@ -20627,7 +20627,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
20627
20627
|
fn: withCtx(() => [
|
|
20628
20628
|
__props.inputType === "amount" ? (openBlock(), createElementBlock(
|
|
20629
20629
|
"span",
|
|
20630
|
-
_hoisted_1$
|
|
20630
|
+
_hoisted_1$s,
|
|
20631
20631
|
toDisplayString(appendTitleText.value),
|
|
20632
20632
|
1
|
|
20633
20633
|
/* TEXT */
|
|
@@ -20673,13 +20673,13 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
20673
20673
|
}
|
|
20674
20674
|
});
|
|
20675
20675
|
|
|
20676
|
-
const FInput = _sfc_main$
|
|
20676
|
+
const FInput = _sfc_main$F;
|
|
20677
20677
|
|
|
20678
|
-
const _hoisted_1$
|
|
20678
|
+
const _hoisted_1$r = {
|
|
20679
20679
|
key: 0,
|
|
20680
20680
|
class: "back_to_top"
|
|
20681
20681
|
};
|
|
20682
|
-
var _sfc_main$
|
|
20682
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
20683
20683
|
...{
|
|
20684
20684
|
name: "FLayoutPage"
|
|
20685
20685
|
},
|
|
@@ -20741,7 +20741,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
20741
20741
|
},
|
|
20742
20742
|
[
|
|
20743
20743
|
renderSlot(_ctx.$slots, "default"),
|
|
20744
|
-
__props.showGoTopButton ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
20744
|
+
__props.showGoTopButton ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
20745
20745
|
isShowGoTopButton.value ? (openBlock(), createElementBlock("div", {
|
|
20746
20746
|
key: 0,
|
|
20747
20747
|
onClick: backToTop
|
|
@@ -20769,9 +20769,9 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
20769
20769
|
}
|
|
20770
20770
|
});
|
|
20771
20771
|
|
|
20772
|
-
const FLayoutPage = _sfc_main$
|
|
20772
|
+
const FLayoutPage = _sfc_main$E;
|
|
20773
20773
|
|
|
20774
|
-
var _sfc_main$
|
|
20774
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
20775
20775
|
...{
|
|
20776
20776
|
name: "FLayoutPageItem"
|
|
20777
20777
|
},
|
|
@@ -20799,7 +20799,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
20799
20799
|
}
|
|
20800
20800
|
});
|
|
20801
20801
|
|
|
20802
|
-
const FLayoutPageItem = _sfc_main$
|
|
20802
|
+
const FLayoutPageItem = _sfc_main$D;
|
|
20803
20803
|
|
|
20804
20804
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
20805
20805
|
let timer = null;
|
|
@@ -20842,8 +20842,8 @@ function toLine(name) {
|
|
|
20842
20842
|
return name.replace(/([A-Z])/g, "_$1").toLowerCase();
|
|
20843
20843
|
}
|
|
20844
20844
|
|
|
20845
|
-
const _hoisted_1$
|
|
20846
|
-
var _sfc_main$
|
|
20845
|
+
const _hoisted_1$q = ["id"];
|
|
20846
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
20847
20847
|
...{
|
|
20848
20848
|
name: "FChart"
|
|
20849
20849
|
},
|
|
@@ -20927,7 +20927,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
20927
20927
|
id: __props.id,
|
|
20928
20928
|
ref_key: "echartRef",
|
|
20929
20929
|
ref: echartRef
|
|
20930
|
-
}, null, 8, _hoisted_1$
|
|
20930
|
+
}, null, 8, _hoisted_1$q), [
|
|
20931
20931
|
[vShow, !formatEmpty.value]
|
|
20932
20932
|
]),
|
|
20933
20933
|
formatEmpty.value ? renderSlot(_ctx.$slots, "empty", { key: 0 }, () => [
|
|
@@ -20942,13 +20942,13 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
20942
20942
|
}
|
|
20943
20943
|
});
|
|
20944
20944
|
|
|
20945
|
-
const FChart = _sfc_main$
|
|
20945
|
+
const FChart = _sfc_main$C;
|
|
20946
20946
|
|
|
20947
|
-
const _hoisted_1$
|
|
20947
|
+
const _hoisted_1$p = {
|
|
20948
20948
|
key: 1,
|
|
20949
20949
|
class: "f_select__pagination"
|
|
20950
20950
|
};
|
|
20951
|
-
var _sfc_main$
|
|
20951
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
20952
20952
|
...{
|
|
20953
20953
|
name: "FSelect"
|
|
20954
20954
|
},
|
|
@@ -21161,7 +21161,7 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
21161
21161
|
128
|
|
21162
21162
|
/* KEYED_FRAGMENT */
|
|
21163
21163
|
)),
|
|
21164
|
-
__props.isShowPagination && filteredOptionsCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
21164
|
+
__props.isShowPagination && filteredOptionsCount.value > 0 ? (openBlock(), createElementBlock("div", _hoisted_1$p, [
|
|
21165
21165
|
createVNode(_component_el_pagination, mergeProps({
|
|
21166
21166
|
"current-page": __props.paginationOption.currentPage,
|
|
21167
21167
|
"onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => __props.paginationOption.currentPage = $event),
|
|
@@ -21199,9 +21199,9 @@ var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
21199
21199
|
}
|
|
21200
21200
|
});
|
|
21201
21201
|
|
|
21202
|
-
const FSelect = _sfc_main$
|
|
21202
|
+
const FSelect = _sfc_main$B;
|
|
21203
21203
|
|
|
21204
|
-
var _sfc_main$
|
|
21204
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
21205
21205
|
...{
|
|
21206
21206
|
name: "RenderComp"
|
|
21207
21207
|
},
|
|
@@ -21221,12 +21221,12 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
21221
21221
|
}
|
|
21222
21222
|
});
|
|
21223
21223
|
|
|
21224
|
-
const _hoisted_1$
|
|
21224
|
+
const _hoisted_1$o = { class: "inside_box" };
|
|
21225
21225
|
const _hoisted_2$h = { class: "inside_box_title" };
|
|
21226
21226
|
const _hoisted_3$a = { class: "check-box" };
|
|
21227
21227
|
const _hoisted_4$7 = { class: "more_dropdown_icon" };
|
|
21228
21228
|
const _hoisted_5$6 = { class: "out_box" };
|
|
21229
|
-
var _sfc_main$
|
|
21229
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
21230
21230
|
...{
|
|
21231
21231
|
name: "MoreChoose"
|
|
21232
21232
|
},
|
|
@@ -21364,7 +21364,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
21364
21364
|
])
|
|
21365
21365
|
]),
|
|
21366
21366
|
default: withCtx(() => [
|
|
21367
|
-
createElementVNode("div", _hoisted_1$
|
|
21367
|
+
createElementVNode("div", _hoisted_1$o, [
|
|
21368
21368
|
createElementVNode("div", _hoisted_2$h, [
|
|
21369
21369
|
createElementVNode(
|
|
21370
21370
|
"div",
|
|
@@ -21541,7 +21541,7 @@ function useComputed() {
|
|
|
21541
21541
|
};
|
|
21542
21542
|
}
|
|
21543
21543
|
|
|
21544
|
-
var _sfc_main$
|
|
21544
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
21545
21545
|
...{
|
|
21546
21546
|
name: "FQueryCondition"
|
|
21547
21547
|
},
|
|
@@ -21960,7 +21960,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
21960
21960
|
opt.labelRender ? {
|
|
21961
21961
|
name: "label",
|
|
21962
21962
|
fn: withCtx(() => [
|
|
21963
|
-
createVNode(_sfc_main$
|
|
21963
|
+
createVNode(_sfc_main$A, {
|
|
21964
21964
|
form: unref(queryState).form,
|
|
21965
21965
|
render: opt.labelRender
|
|
21966
21966
|
}, null, 8, ["form", "render"])
|
|
@@ -22056,7 +22056,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22056
22056
|
_: 1
|
|
22057
22057
|
/* STABLE */
|
|
22058
22058
|
})) : createCommentVNode("v-if", true),
|
|
22059
|
-
createVNode(_sfc_main$
|
|
22059
|
+
createVNode(_sfc_main$z, {
|
|
22060
22060
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22061
22061
|
moreCheckList: __props.moreCheckList,
|
|
22062
22062
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22082,7 +22082,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
|
22082
22082
|
}
|
|
22083
22083
|
});
|
|
22084
22084
|
|
|
22085
|
-
var _sfc_main$
|
|
22085
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
22086
22086
|
...{
|
|
22087
22087
|
name: "RenderCol"
|
|
22088
22088
|
},
|
|
@@ -22238,7 +22238,7 @@ function useVirtualized() {
|
|
|
22238
22238
|
};
|
|
22239
22239
|
}
|
|
22240
22240
|
|
|
22241
|
-
const _hoisted_1$
|
|
22241
|
+
const _hoisted_1$n = {
|
|
22242
22242
|
key: 0,
|
|
22243
22243
|
class: "table_query_condition"
|
|
22244
22244
|
};
|
|
@@ -22248,7 +22248,7 @@ const _hoisted_4$6 = {
|
|
|
22248
22248
|
key: 0,
|
|
22249
22249
|
class: "f-table-select__page"
|
|
22250
22250
|
};
|
|
22251
|
-
var _sfc_main$
|
|
22251
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
22252
22252
|
...{
|
|
22253
22253
|
name: "FSelectTable"
|
|
22254
22254
|
},
|
|
@@ -22870,9 +22870,9 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
22870
22870
|
style: normalizeStyle({ width: __props.tableWidth ? `${__props.tableWidth}px` : "100%" })
|
|
22871
22871
|
},
|
|
22872
22872
|
[
|
|
22873
|
-
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
22873
|
+
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
22874
22874
|
createVNode(
|
|
22875
|
-
_sfc_main$
|
|
22875
|
+
_sfc_main$y,
|
|
22876
22876
|
mergeProps({
|
|
22877
22877
|
ref_key: "fQueryConditionRef",
|
|
22878
22878
|
ref: fQueryConditionRef,
|
|
@@ -22998,7 +22998,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
22998
22998
|
fixed: item.fixed
|
|
22999
22999
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23000
23000
|
default: withCtx((scope) => [
|
|
23001
|
-
item.render ? (openBlock(), createBlock(_sfc_main$
|
|
23001
|
+
item.render ? (openBlock(), createBlock(_sfc_main$x, {
|
|
23002
23002
|
key: 0,
|
|
23003
23003
|
column: item,
|
|
23004
23004
|
row: scope.row,
|
|
@@ -23061,11 +23061,11 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23061
23061
|
}
|
|
23062
23062
|
});
|
|
23063
23063
|
|
|
23064
|
-
const FSelectTable = _sfc_main$
|
|
23064
|
+
const FSelectTable = _sfc_main$w;
|
|
23065
23065
|
|
|
23066
|
-
const FQueryCondition = _sfc_main$
|
|
23066
|
+
const FQueryCondition = _sfc_main$y;
|
|
23067
23067
|
|
|
23068
|
-
var _sfc_main$
|
|
23068
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23069
23069
|
...{
|
|
23070
23070
|
name: "RenderComp"
|
|
23071
23071
|
},
|
|
@@ -23085,7 +23085,7 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
|
23085
23085
|
}
|
|
23086
23086
|
});
|
|
23087
23087
|
|
|
23088
|
-
var _sfc_main$
|
|
23088
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23089
23089
|
...{
|
|
23090
23090
|
name: "RenderBtn"
|
|
23091
23091
|
},
|
|
@@ -23105,12 +23105,12 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23105
23105
|
}
|
|
23106
23106
|
});
|
|
23107
23107
|
|
|
23108
|
-
const _hoisted_1$
|
|
23108
|
+
const _hoisted_1$m = {
|
|
23109
23109
|
key: 1,
|
|
23110
23110
|
class: "text_show"
|
|
23111
23111
|
};
|
|
23112
23112
|
const _hoisted_2$f = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23113
|
-
var _sfc_main$
|
|
23113
|
+
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
23114
23114
|
...{
|
|
23115
23115
|
name: "FForm"
|
|
23116
23116
|
},
|
|
@@ -23361,7 +23361,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23361
23361
|
}) : createCommentVNode("v-if", true),
|
|
23362
23362
|
item.textShow ? (openBlock(), createElementBlock(
|
|
23363
23363
|
"span",
|
|
23364
|
-
_hoisted_1$
|
|
23364
|
+
_hoisted_1$m,
|
|
23365
23365
|
toDisplayString(item.textValue || __props.formOpts.formData[item.value]),
|
|
23366
23366
|
1
|
|
23367
23367
|
/* TEXT */
|
|
@@ -23481,7 +23481,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23481
23481
|
item.labelSlotName || item.labelRender ? {
|
|
23482
23482
|
name: "label",
|
|
23483
23483
|
fn: withCtx(() => [
|
|
23484
|
-
item.labelRender ? (openBlock(), createBlock(_sfc_main$
|
|
23484
|
+
item.labelRender ? (openBlock(), createBlock(_sfc_main$v, {
|
|
23485
23485
|
key: 0,
|
|
23486
23486
|
render: item.labelRender,
|
|
23487
23487
|
item
|
|
@@ -23513,7 +23513,7 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23513
23513
|
Fragment,
|
|
23514
23514
|
null,
|
|
23515
23515
|
[
|
|
23516
|
-
val.render ? (openBlock(), createBlock(_sfc_main$
|
|
23516
|
+
val.render ? (openBlock(), createBlock(_sfc_main$u, {
|
|
23517
23517
|
key: index,
|
|
23518
23518
|
item: val,
|
|
23519
23519
|
render: val.render
|
|
@@ -23560,10 +23560,10 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
|
23560
23560
|
}
|
|
23561
23561
|
});
|
|
23562
23562
|
|
|
23563
|
-
const FForm = _sfc_main$
|
|
23563
|
+
const FForm = _sfc_main$t;
|
|
23564
23564
|
|
|
23565
|
-
const _hoisted_1$
|
|
23566
|
-
var _sfc_main$
|
|
23565
|
+
const _hoisted_1$l = ["src"];
|
|
23566
|
+
var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
23567
23567
|
...{
|
|
23568
23568
|
name: "svgIcon"
|
|
23569
23569
|
},
|
|
@@ -23634,7 +23634,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
23634
23634
|
createElementVNode("img", {
|
|
23635
23635
|
src: getIconName.value,
|
|
23636
23636
|
style: normalizeStyle(setIconSvgInsStyle.value)
|
|
23637
|
-
}, null, 12, _hoisted_1$
|
|
23637
|
+
}, null, 12, _hoisted_1$l)
|
|
23638
23638
|
],
|
|
23639
23639
|
4
|
|
23640
23640
|
/* STYLE */
|
|
@@ -23661,13 +23661,13 @@ function elSvg(app) {
|
|
|
23661
23661
|
}
|
|
23662
23662
|
}
|
|
23663
23663
|
if (!app._context.components[`SvgIcon`]) {
|
|
23664
|
-
app.component("SvgIcon", _sfc_main$
|
|
23664
|
+
app.component("SvgIcon", _sfc_main$s);
|
|
23665
23665
|
}
|
|
23666
23666
|
}
|
|
23667
23667
|
|
|
23668
23668
|
const emitter = mitt();
|
|
23669
23669
|
|
|
23670
|
-
var _sfc_main$
|
|
23670
|
+
var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
23671
23671
|
...{
|
|
23672
23672
|
name: "FLayout"
|
|
23673
23673
|
},
|
|
@@ -23753,7 +23753,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
23753
23753
|
}
|
|
23754
23754
|
});
|
|
23755
23755
|
|
|
23756
|
-
const FLayout = _sfc_main$
|
|
23756
|
+
const FLayout = _sfc_main$r;
|
|
23757
23757
|
|
|
23758
23758
|
function commonFunction() {
|
|
23759
23759
|
const { copy, isSupported } = useClipboard();
|
|
@@ -24030,7 +24030,7 @@ const other = {
|
|
|
24030
24030
|
// },
|
|
24031
24031
|
};
|
|
24032
24032
|
|
|
24033
|
-
const _hoisted_1$
|
|
24033
|
+
const _hoisted_1$k = { class: "layout-breadcrumb-seting" };
|
|
24034
24034
|
const _hoisted_2$e = { class: "layout-breadcrumb-seting-bar-flex" };
|
|
24035
24035
|
const _hoisted_3$8 = { class: "layout-breadcrumb-seting-bar-flex-label" };
|
|
24036
24036
|
const _hoisted_4$5 = { class: "layout-breadcrumb-seting-bar-flex-value" };
|
|
@@ -24155,7 +24155,7 @@ const _hoisted_119 = {
|
|
|
24155
24155
|
class: "traditionalColors-chines",
|
|
24156
24156
|
style: { "cursor": "grab", "color": "gray" }
|
|
24157
24157
|
};
|
|
24158
|
-
var _sfc_main$
|
|
24158
|
+
var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
24159
24159
|
...{
|
|
24160
24160
|
name: "FSettings"
|
|
24161
24161
|
},
|
|
@@ -24419,7 +24419,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
24419
24419
|
const _component_el_col = resolveComponent("el-col");
|
|
24420
24420
|
const _component_el_row = resolveComponent("el-row");
|
|
24421
24421
|
const _component_el_dialog = resolveComponent("el-dialog");
|
|
24422
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
24422
|
+
return openBlock(), createElementBlock("div", _hoisted_1$k, [
|
|
24423
24423
|
createVNode(_component_el_drawer, {
|
|
24424
24424
|
title: _ctx.$t("message.layout.configTitle"),
|
|
24425
24425
|
modelValue: getThemeConfig.value.isDrawer,
|
|
@@ -25918,9 +25918,9 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
25918
25918
|
}
|
|
25919
25919
|
});
|
|
25920
25920
|
|
|
25921
|
-
const FSettings = _sfc_main$
|
|
25921
|
+
const FSettings = _sfc_main$q;
|
|
25922
25922
|
|
|
25923
|
-
var _sfc_main$
|
|
25923
|
+
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
25924
25924
|
...{
|
|
25925
25925
|
name: "FModifyRecord"
|
|
25926
25926
|
},
|
|
@@ -26183,7 +26183,7 @@ var _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
|
26183
26183
|
}
|
|
26184
26184
|
});
|
|
26185
26185
|
|
|
26186
|
-
const FModifyRecord = _sfc_main$
|
|
26186
|
+
const FModifyRecord = _sfc_main$p;
|
|
26187
26187
|
|
|
26188
26188
|
const makeInstaller = (components = []) => {
|
|
26189
26189
|
const install = (app) => {
|
|
@@ -26204,12 +26204,12 @@ const makeInstaller = (components = []) => {
|
|
|
26204
26204
|
};
|
|
26205
26205
|
};
|
|
26206
26206
|
|
|
26207
|
-
const _hoisted_1$
|
|
26207
|
+
const _hoisted_1$j = { style: { "padding": "5px" } };
|
|
26208
26208
|
const _hoisted_2$d = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
|
|
26209
26209
|
const _hoisted_3$7 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
|
|
26210
26210
|
const _hoisted_4$4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
|
|
26211
26211
|
const _hoisted_5$4 = { style: { "margin-bottom": "45px" } };
|
|
26212
|
-
var _sfc_main$
|
|
26212
|
+
var _sfc_main$o = /* @__PURE__ */ defineComponent({
|
|
26213
26213
|
...{
|
|
26214
26214
|
name: "FmTree"
|
|
26215
26215
|
},
|
|
@@ -26403,7 +26403,7 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
26403
26403
|
style: { "height": "100%" }
|
|
26404
26404
|
}, {
|
|
26405
26405
|
header: withCtx(() => [
|
|
26406
|
-
createElementVNode("div", _hoisted_1$
|
|
26406
|
+
createElementVNode("div", _hoisted_1$j, [
|
|
26407
26407
|
createElementVNode("div", _hoisted_2$d, [
|
|
26408
26408
|
createElementVNode("div", _hoisted_3$7, [
|
|
26409
26409
|
createVNode(_component_el_input, {
|
|
@@ -26543,7 +26543,132 @@ var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
|
26543
26543
|
}
|
|
26544
26544
|
});
|
|
26545
26545
|
|
|
26546
|
-
const FmTree = _sfc_main$
|
|
26546
|
+
const FmTree = _sfc_main$o;
|
|
26547
|
+
|
|
26548
|
+
const _hoisted_1$i = { key: 0 };
|
|
26549
|
+
var _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
26550
|
+
...{
|
|
26551
|
+
name: "FmCascader"
|
|
26552
|
+
},
|
|
26553
|
+
__name: "index",
|
|
26554
|
+
props: /* @__PURE__ */ mergeModels({
|
|
26555
|
+
orgData: {
|
|
26556
|
+
type: Array,
|
|
26557
|
+
default: () => []
|
|
26558
|
+
},
|
|
26559
|
+
cascaderProps: {
|
|
26560
|
+
type: Object,
|
|
26561
|
+
default: () => ({ emitPath: false, value: "id", label: "name", expandTrigger: "hover" })
|
|
26562
|
+
},
|
|
26563
|
+
placeholder: {
|
|
26564
|
+
type: String,
|
|
26565
|
+
default: "\u8BF7\u9009\u62E9\u7236\u8282"
|
|
26566
|
+
},
|
|
26567
|
+
vId: {
|
|
26568
|
+
type: String,
|
|
26569
|
+
default: "opOrgId"
|
|
26570
|
+
},
|
|
26571
|
+
vCmpId: {
|
|
26572
|
+
type: String,
|
|
26573
|
+
default: "opCmpId"
|
|
26574
|
+
},
|
|
26575
|
+
vDetId: {
|
|
26576
|
+
type: String,
|
|
26577
|
+
default: "opDetId"
|
|
26578
|
+
},
|
|
26579
|
+
vGroupId: {
|
|
26580
|
+
type: String,
|
|
26581
|
+
default: "opGroupId"
|
|
26582
|
+
}
|
|
26583
|
+
}, {
|
|
26584
|
+
"modelValue": {},
|
|
26585
|
+
"modelModifiers": {}
|
|
26586
|
+
}),
|
|
26587
|
+
emits: ["update:modelValue"],
|
|
26588
|
+
setup(__props) {
|
|
26589
|
+
const modeValue = useModel(__props, "modelValue");
|
|
26590
|
+
const props = __props;
|
|
26591
|
+
const handelchangeOrg = (val) => {
|
|
26592
|
+
modeValue.value[props.vId] = val;
|
|
26593
|
+
const node = findNode(val);
|
|
26594
|
+
if (node) {
|
|
26595
|
+
if (node.pid == 0) {
|
|
26596
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
|
|
26597
|
+
modeValue.value[props.vCmpId] = node.id;
|
|
26598
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
|
|
26599
|
+
modeValue.value[props.vDetId] = 0;
|
|
26600
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
|
|
26601
|
+
modeValue.value[props.vGroupId] = 0;
|
|
26602
|
+
} else if (node.level == 2) {
|
|
26603
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
|
|
26604
|
+
modeValue.value[props.vDetId] = node.id;
|
|
26605
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
|
|
26606
|
+
modeValue.value[props.vCmpId] = node.pid;
|
|
26607
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
|
|
26608
|
+
modeValue.value[props.vGroupId] = 0;
|
|
26609
|
+
} else if (node.level == 3) {
|
|
26610
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vGroupId))
|
|
26611
|
+
modeValue.value[props.vGroupId] = node.id;
|
|
26612
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vDetId))
|
|
26613
|
+
modeValue.value[props.vDetId] = node.pid;
|
|
26614
|
+
let top = findNode(node.pid);
|
|
26615
|
+
if (top) {
|
|
26616
|
+
if (Object.prototype.hasOwnProperty.call(modeValue.value, props.vCmpId))
|
|
26617
|
+
modeValue.value[props.vCmpId] = top.id;
|
|
26618
|
+
}
|
|
26619
|
+
}
|
|
26620
|
+
}
|
|
26621
|
+
};
|
|
26622
|
+
const findNode = (id) => {
|
|
26623
|
+
const search = (nodes) => {
|
|
26624
|
+
var _a;
|
|
26625
|
+
for (const node of nodes) {
|
|
26626
|
+
if (node.id === id) return node;
|
|
26627
|
+
if ((_a = node.children) == null ? void 0 : _a.length) {
|
|
26628
|
+
const found = search(node.children);
|
|
26629
|
+
if (found) return found;
|
|
26630
|
+
}
|
|
26631
|
+
}
|
|
26632
|
+
return null;
|
|
26633
|
+
};
|
|
26634
|
+
return search(props.orgData || []);
|
|
26635
|
+
};
|
|
26636
|
+
return (_ctx, _cache) => {
|
|
26637
|
+
const _component_el_cascader = resolveComponent("el-cascader");
|
|
26638
|
+
return openBlock(), createBlock(_component_el_cascader, {
|
|
26639
|
+
options: props.orgData,
|
|
26640
|
+
props: __props.cascaderProps,
|
|
26641
|
+
placeholder: __props.placeholder,
|
|
26642
|
+
filterable: "",
|
|
26643
|
+
class: "w100",
|
|
26644
|
+
modelValue: modeValue.value[__props.vId],
|
|
26645
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValue.value[__props.vId] = $event),
|
|
26646
|
+
onChange: handelchangeOrg
|
|
26647
|
+
}, {
|
|
26648
|
+
default: withCtx(({ node, data }) => [
|
|
26649
|
+
createElementVNode(
|
|
26650
|
+
"span",
|
|
26651
|
+
null,
|
|
26652
|
+
toDisplayString(node.label),
|
|
26653
|
+
1
|
|
26654
|
+
/* TEXT */
|
|
26655
|
+
),
|
|
26656
|
+
!node.isLeaf ? (openBlock(), createElementBlock(
|
|
26657
|
+
"span",
|
|
26658
|
+
_hoisted_1$i,
|
|
26659
|
+
" (" + toDisplayString(data.children.length) + ") ",
|
|
26660
|
+
1
|
|
26661
|
+
/* TEXT */
|
|
26662
|
+
)) : createCommentVNode("v-if", true)
|
|
26663
|
+
]),
|
|
26664
|
+
_: 1
|
|
26665
|
+
/* STABLE */
|
|
26666
|
+
}, 8, ["options", "props", "placeholder", "modelValue"]);
|
|
26667
|
+
};
|
|
26668
|
+
}
|
|
26669
|
+
});
|
|
26670
|
+
|
|
26671
|
+
const FmCascader = _sfc_main$n;
|
|
26547
26672
|
|
|
26548
26673
|
const plugins = [
|
|
26549
26674
|
FButton,
|
|
@@ -26558,7 +26683,8 @@ const plugins = [
|
|
|
26558
26683
|
FLayout,
|
|
26559
26684
|
FSettings,
|
|
26560
26685
|
FModifyRecord,
|
|
26561
|
-
FmTree
|
|
26686
|
+
FmTree,
|
|
26687
|
+
FmCascader
|
|
26562
26688
|
];
|
|
26563
26689
|
|
|
26564
26690
|
var installer = makeInstaller([...plugins]);
|
package/lib/component.js
CHANGED
|
@@ -15,6 +15,7 @@ var index$9 = require('./packages/components/fm-layout/index.js');
|
|
|
15
15
|
var index$a = require('./packages/components/fm-settings/index.js');
|
|
16
16
|
var index$b = require('./packages/components/modifyRecord/index.js');
|
|
17
17
|
var index$c = require('./packages/components/fmtree/index.js');
|
|
18
|
+
var index$d = require('./packages/components/fmcascader/index.js');
|
|
18
19
|
|
|
19
20
|
const plugins = [
|
|
20
21
|
index.FButton,
|
|
@@ -29,7 +30,8 @@ const plugins = [
|
|
|
29
30
|
index$9.FLayout,
|
|
30
31
|
index$a.FSettings,
|
|
31
32
|
index$b.FModifyRecord,
|
|
32
|
-
index$c.FmTree
|
|
33
|
+
index$c.FmTree,
|
|
34
|
+
index$d.FmCascader
|
|
33
35
|
];
|
|
34
36
|
|
|
35
37
|
exports.default = plugins;
|