@fmdevui/fm-dev 1.0.65 → 1.0.67
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/core/ui/components/index.d.ts +27 -0
- package/es/core/ui/components/inputdropdown/index.vue.d.ts +45 -0
- package/es/defaults.css +0 -2
- package/es/packages/core/ui/components/fmtree/index.vue.mjs +2 -4
- package/es/packages/core/ui/components/fmtree/index.vue2.mjs +6 -6
- package/es/packages/core/ui/components/index.mjs +3 -2
- package/es/packages/core/ui/components/inputdropdown/index.vue2.mjs +34 -2
- package/index.css +0 -31
- package/index.js +40 -11
- package/index.min.css +0 -2
- package/index.min.js +26 -26
- package/index.min.mjs +26 -26
- package/index.mjs +40 -11
- package/lib/core/ui/components/index.d.ts +27 -0
- package/lib/core/ui/components/inputdropdown/index.vue.d.ts +45 -0
- package/lib/index.css +0 -2
- package/lib/packages/core/ui/components/fmtree/index.vue.js +2 -4
- package/lib/packages/core/ui/components/fmtree/index.vue2.js +6 -6
- package/lib/packages/core/ui/components/index.js +3 -2
- package/lib/packages/core/ui/components/inputdropdown/index.vue2.js +33 -1
- package/package.json +1 -1
- package/es/packages/core/ui/components/fmtree/index.vue3.mjs +0 -3
- package/lib/packages/core/ui/components/fmtree/index.vue3.js +0 -7
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.67 */
|
|
2
2
|
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, resolveDirective, unref, resolveDynamicComponent, markRaw, toRaw as toRaw$1, hasInjectionContext, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
@@ -23901,6 +23901,27 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23901
23901
|
dropWidth: {
|
|
23902
23902
|
type: String,
|
|
23903
23903
|
default: "90px"
|
|
23904
|
+
},
|
|
23905
|
+
/**
|
|
23906
|
+
* api service name
|
|
23907
|
+
*/
|
|
23908
|
+
apiService: {
|
|
23909
|
+
type: String,
|
|
23910
|
+
default: "baseData"
|
|
23911
|
+
},
|
|
23912
|
+
/**
|
|
23913
|
+
* api service 下的方法
|
|
23914
|
+
*/
|
|
23915
|
+
apiAction: {
|
|
23916
|
+
type: String,
|
|
23917
|
+
default: "baseDataList"
|
|
23918
|
+
},
|
|
23919
|
+
/**
|
|
23920
|
+
* 基础编码 自动获取数据
|
|
23921
|
+
*/
|
|
23922
|
+
basecode: {
|
|
23923
|
+
type: String,
|
|
23924
|
+
default: ""
|
|
23904
23925
|
}
|
|
23905
23926
|
}, {
|
|
23906
23927
|
"id": {
|
|
@@ -23919,6 +23940,9 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23919
23940
|
const modeValueId = useModel(__props, "id");
|
|
23920
23941
|
const modeValueName = useModel(__props, "name");
|
|
23921
23942
|
const props = __props;
|
|
23943
|
+
const state = reactive({
|
|
23944
|
+
optionData: props.optionData
|
|
23945
|
+
});
|
|
23922
23946
|
const emit = __emit;
|
|
23923
23947
|
const handCommand = (command) => {
|
|
23924
23948
|
const fitem = props.optionData.find((item) => item[props.bvalue] === command);
|
|
@@ -23926,6 +23950,13 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23926
23950
|
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
23927
23951
|
emit("change", fitem);
|
|
23928
23952
|
};
|
|
23953
|
+
onMounted(async () => {
|
|
23954
|
+
state.optionData = props.optionData;
|
|
23955
|
+
if (props.basecode && props.basecode != "") {
|
|
23956
|
+
const res = useBaseApi(props.apiService).get(null, props.apiAction + "/" + props.basecode);
|
|
23957
|
+
state.optionData = res.data.result ?? [];
|
|
23958
|
+
}
|
|
23959
|
+
});
|
|
23929
23960
|
return (_ctx, _cache) => {
|
|
23930
23961
|
const _component_el_input = resolveComponent("el-input");
|
|
23931
23962
|
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
@@ -23945,7 +23976,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
23945
23976
|
(openBlock(true), createElementBlock(
|
|
23946
23977
|
Fragment,
|
|
23947
23978
|
null,
|
|
23948
|
-
renderList(
|
|
23979
|
+
renderList(state.optionData, (item, index) => {
|
|
23949
23980
|
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
23950
23981
|
key: index,
|
|
23951
23982
|
command: item[__props.bvalue],
|
|
@@ -30043,10 +30074,10 @@ var svg = /*#__PURE__*/Object.freeze({
|
|
|
30043
30074
|
ZoomOut: zoom_out_default
|
|
30044
30075
|
});
|
|
30045
30076
|
|
|
30046
|
-
const _hoisted_1$1 = {
|
|
30047
|
-
const _hoisted_2 = {
|
|
30048
|
-
const _hoisted_3 = {
|
|
30049
|
-
const _hoisted_4 = {
|
|
30077
|
+
const _hoisted_1$1 = { style: { "padding": "5px" } };
|
|
30078
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
|
|
30079
|
+
const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
|
|
30080
|
+
const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
|
|
30050
30081
|
const _hoisted_5 = { style: { "margin-bottom": "45px" } };
|
|
30051
30082
|
var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
30052
30083
|
...{
|
|
@@ -30150,9 +30181,9 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30150
30181
|
const _component_el_card = resolveComponent("el-card");
|
|
30151
30182
|
const _directive_loading = resolveDirective("loading");
|
|
30152
30183
|
return openBlock(), createBlock(_component_el_card, {
|
|
30153
|
-
class: "box-card",
|
|
30154
30184
|
shadow: "hover",
|
|
30155
|
-
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;"
|
|
30185
|
+
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
|
|
30186
|
+
style: { "height": "100%" }
|
|
30156
30187
|
}, {
|
|
30157
30188
|
header: withCtx(() => [
|
|
30158
30189
|
createElementVNode("div", _hoisted_1$1, [
|
|
@@ -30279,8 +30310,6 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
30279
30310
|
}
|
|
30280
30311
|
});
|
|
30281
30312
|
|
|
30282
|
-
var fmtree = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-69322010"]]);
|
|
30283
|
-
|
|
30284
30313
|
const _hoisted_1 = ["src"];
|
|
30285
30314
|
var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
30286
30315
|
...{
|
|
@@ -30386,7 +30415,7 @@ const FmDragImg = dragimg;
|
|
|
30386
30415
|
const Fmselect = _sfc_main$5;
|
|
30387
30416
|
const FmAutocomplete = _sfc_main$4;
|
|
30388
30417
|
const Fminputdropdown = _sfc_main$3;
|
|
30389
|
-
const FmTree =
|
|
30418
|
+
const FmTree = _sfc_main$2;
|
|
30390
30419
|
|
|
30391
30420
|
const makeInstaller = (components = []) => {
|
|
30392
30421
|
const install = (app) => {
|
|
@@ -624,6 +624,18 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
624
624
|
type: StringConstructor;
|
|
625
625
|
default: string;
|
|
626
626
|
};
|
|
627
|
+
apiService: {
|
|
628
|
+
type: StringConstructor;
|
|
629
|
+
default: string;
|
|
630
|
+
};
|
|
631
|
+
apiAction: {
|
|
632
|
+
type: StringConstructor;
|
|
633
|
+
default: string;
|
|
634
|
+
};
|
|
635
|
+
basecode: {
|
|
636
|
+
type: StringConstructor;
|
|
637
|
+
default: string;
|
|
638
|
+
};
|
|
627
639
|
id: {
|
|
628
640
|
type: PropType<any>;
|
|
629
641
|
};
|
|
@@ -672,6 +684,18 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
672
684
|
type: StringConstructor;
|
|
673
685
|
default: string;
|
|
674
686
|
};
|
|
687
|
+
apiService: {
|
|
688
|
+
type: StringConstructor;
|
|
689
|
+
default: string;
|
|
690
|
+
};
|
|
691
|
+
apiAction: {
|
|
692
|
+
type: StringConstructor;
|
|
693
|
+
default: string;
|
|
694
|
+
};
|
|
695
|
+
basecode: {
|
|
696
|
+
type: StringConstructor;
|
|
697
|
+
default: string;
|
|
698
|
+
};
|
|
675
699
|
id: {
|
|
676
700
|
type: PropType<any>;
|
|
677
701
|
};
|
|
@@ -687,8 +711,11 @@ declare const Fminputdropdown: DefineComponent<ExtractPropTypes<{
|
|
|
687
711
|
optionData: any[];
|
|
688
712
|
bvalue: string;
|
|
689
713
|
blabel: string;
|
|
714
|
+
apiService: string;
|
|
715
|
+
apiAction: string;
|
|
690
716
|
inputWidth: string;
|
|
691
717
|
dropWidth: string;
|
|
718
|
+
basecode: string;
|
|
692
719
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
693
720
|
declare const FmTree: DefineComponent<ExtractPropTypes<{
|
|
694
721
|
checkStrictly: {
|
|
@@ -43,6 +43,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
43
43
|
type: StringConstructor;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* api service name
|
|
48
|
+
*/
|
|
49
|
+
apiService: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* api service 下的方法
|
|
55
|
+
*/
|
|
56
|
+
apiAction: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* 基础编码 自动获取数据
|
|
62
|
+
*/
|
|
63
|
+
basecode: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
46
67
|
id: {
|
|
47
68
|
type: PropType<any>;
|
|
48
69
|
};
|
|
@@ -97,6 +118,27 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
97
118
|
type: StringConstructor;
|
|
98
119
|
default: string;
|
|
99
120
|
};
|
|
121
|
+
/**
|
|
122
|
+
* api service name
|
|
123
|
+
*/
|
|
124
|
+
apiService: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* api service 下的方法
|
|
130
|
+
*/
|
|
131
|
+
apiAction: {
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
default: string;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* 基础编码 自动获取数据
|
|
137
|
+
*/
|
|
138
|
+
basecode: {
|
|
139
|
+
type: StringConstructor;
|
|
140
|
+
default: string;
|
|
141
|
+
};
|
|
100
142
|
id: {
|
|
101
143
|
type: PropType<any>;
|
|
102
144
|
};
|
|
@@ -112,7 +154,10 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
112
154
|
optionData: any[];
|
|
113
155
|
bvalue: string;
|
|
114
156
|
blabel: string;
|
|
157
|
+
apiService: string;
|
|
158
|
+
apiAction: string;
|
|
115
159
|
inputWidth: string;
|
|
116
160
|
dropWidth: string;
|
|
161
|
+
basecode: string;
|
|
117
162
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
118
163
|
export default _default;
|
package/lib/index.css
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
1
|
.drag_verify[data-v-9e8c9ed2]{background-color:#e8e8e8;overflow:hidden;position:relative;text-align:center}.drag_verify .dv_handler[data-v-9e8c9ed2]{cursor:move;left:0;position:absolute;top:0}.drag_verify .dv_handler i[data-v-9e8c9ed2]{color:#666;font-size:16px;padding-left:0}.drag_verify .dv_handler .el-icon-circle-check[data-v-9e8c9ed2]{color:#6c6;margin-top:9px}.drag_verify .dv_progress_bar[data-v-9e8c9ed2]{height:34px;position:absolute;width:0}.drag_verify .dv_text[data-v-9e8c9ed2]{background:-webkit-gradient(linear,left top,right top,color-stop(0,var(--textColor)),color-stop(.4,var(--textColor)),color-stop(.5,#fff),color-stop(.6,var(--textColor)),color-stop(1,var(--textColor)));-webkit-background-clip:text;color:transparent;position:absolute;top:0;-moz-user-select:none;-webkit-user-select:none;user-select:none;-o-user-select:none;-ms-user-select:none;-webkit-text-fill-color:transparent;-webkit-text-size-adjust:none;animation:slidetounlock 3s infinite}.drag_verify .dv_text[data-v-9e8c9ed2] *{-webkit-text-fill-color:var(--textColor)}.goFirst[data-v-9e8c9ed2]{left:0!important;transition:left .5s}.goOrigin[data-v-9e8c9ed2]{transition:transform .5s}.goKeep[data-v-9e8c9ed2]{transition:left .2s}.goFirst2[data-v-9e8c9ed2]{transition:width .5s;width:0!important}.drag-verify-container[data-v-9e8c9ed2]{border-radius:50%;line-height:0;position:relative}.move-bar[data-v-9e8c9ed2]{position:absolute;z-index:100}.clip-bar[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.8);position:absolute}.refresh[data-v-9e8c9ed2]{cursor:pointer;font-size:20px;position:absolute;right:5px;top:5px;z-index:200}.tips[data-v-9e8c9ed2]{bottom:25px;font-size:12px;height:20px;line-height:20px;position:absolute;text-align:center;width:100%;z-index:200}.tips.success[data-v-9e8c9ed2]{background:hsla(0,0%,100%,.6);color:green}.tips.danger[data-v-9e8c9ed2]{background:rgba(0,0,0,.6);color:#ff0}.check-img[data-v-9e8c9ed2]{border-radius:50%;width:100%}
|
|
2
|
-
|
|
3
|
-
.box-card[data-v-69322010]{height:100%}.card-header[data-v-69322010]{padding:5px}.tree-h-flex[data-v-69322010]{align-items:center;display:flex;flex-wrap:nowrap;gap:8px;overflow:hidden}.tree-h-left[data-v-69322010]{flex:1 1 200px;min-width:0;overflow:hidden}.tree-h-right-group[data-v-69322010]{align-items:center;display:flex;flex-shrink:0;white-space:nowrap}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
|
|
6
|
-
require('./index.vue3.js');
|
|
7
|
-
var _pluginVue_exportHelper = require('../../../../../_virtual/_plugin-vue_export-helper.js');
|
|
8
6
|
|
|
9
|
-
var fmtree = /* @__PURE__ */ _pluginVue_exportHelper.default(index_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-69322010"]]);
|
|
10
7
|
|
|
11
|
-
|
|
8
|
+
|
|
9
|
+
exports.default = index_vue_vue_type_script_setup_true_lang.default;
|
|
@@ -6,10 +6,10 @@ var vue = require('vue');
|
|
|
6
6
|
var svg = require('@element-plus/icons-vue');
|
|
7
7
|
var index = require('../../../api/base/index.js');
|
|
8
8
|
|
|
9
|
-
const _hoisted_1 = {
|
|
10
|
-
const _hoisted_2 = {
|
|
11
|
-
const _hoisted_3 = {
|
|
12
|
-
const _hoisted_4 = {
|
|
9
|
+
const _hoisted_1 = { style: { "padding": "5px" } };
|
|
10
|
+
const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
|
|
11
|
+
const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
|
|
12
|
+
const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
|
|
13
13
|
const _hoisted_5 = { style: { "margin-bottom": "45px" } };
|
|
14
14
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
15
15
|
...{
|
|
@@ -113,9 +113,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
113
113
|
const _component_el_card = vue.resolveComponent("el-card");
|
|
114
114
|
const _directive_loading = vue.resolveDirective("loading");
|
|
115
115
|
return vue.openBlock(), vue.createBlock(_component_el_card, {
|
|
116
|
-
class: "box-card",
|
|
117
116
|
shadow: "hover",
|
|
118
|
-
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;"
|
|
117
|
+
"body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
|
|
118
|
+
style: { "height": "100%" }
|
|
119
119
|
}, {
|
|
120
120
|
header: vue.withCtx(() => [
|
|
121
121
|
vue.createElementVNode("div", _hoisted_1, [
|
|
@@ -6,13 +6,14 @@ var dragVerifyImgRotate = require('./dragVerify/dragVerifyImgRotate.vue.js');
|
|
|
6
6
|
require('./fmselect/index.vue.js');
|
|
7
7
|
require('./fmautocomplete/index.vue.js');
|
|
8
8
|
require('./inputdropdown/index.vue.js');
|
|
9
|
-
|
|
9
|
+
require('./fmtree/index.vue.js');
|
|
10
10
|
var index = require('./svgIcon/index.js');
|
|
11
11
|
var index_vue_vue_type_script_setup_true_lang = require('./transfer/index.vue2.js');
|
|
12
12
|
var index_vue_vue_type_script_setup_true_lang$1 = require('./noticeBar/index.vue2.js');
|
|
13
13
|
var index_vue_vue_type_script_setup_true_lang$2 = require('./fmselect/index.vue2.js');
|
|
14
14
|
var index_vue_vue_type_script_setup_true_lang$3 = require('./fmautocomplete/index.vue2.js');
|
|
15
15
|
var index_vue_vue_type_script_setup_true_lang$4 = require('./inputdropdown/index.vue2.js');
|
|
16
|
+
var index_vue_vue_type_script_setup_true_lang$5 = require('./fmtree/index.vue2.js');
|
|
16
17
|
|
|
17
18
|
const FmTransfer = index_vue_vue_type_script_setup_true_lang.default;
|
|
18
19
|
const FmNoticeBar = index_vue_vue_type_script_setup_true_lang$1.default;
|
|
@@ -20,7 +21,7 @@ const FmDragImg = dragVerifyImgRotate.default;
|
|
|
20
21
|
const Fmselect = index_vue_vue_type_script_setup_true_lang$2.default;
|
|
21
22
|
const FmAutocomplete = index_vue_vue_type_script_setup_true_lang$3.default;
|
|
22
23
|
const Fminputdropdown = index_vue_vue_type_script_setup_true_lang$4.default;
|
|
23
|
-
const FmTree =
|
|
24
|
+
const FmTree = index_vue_vue_type_script_setup_true_lang$5.default;
|
|
24
25
|
|
|
25
26
|
exports.elSvg = index.elSvg;
|
|
26
27
|
exports.FmAutocomplete = FmAutocomplete;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
|
+
var index = require('../../../api/base/index.js');
|
|
6
7
|
|
|
7
8
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
8
9
|
...{
|
|
@@ -40,6 +41,27 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
41
|
dropWidth: {
|
|
41
42
|
type: String,
|
|
42
43
|
default: "90px"
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* api service name
|
|
47
|
+
*/
|
|
48
|
+
apiService: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "baseData"
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* api service 下的方法
|
|
54
|
+
*/
|
|
55
|
+
apiAction: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "baseDataList"
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* 基础编码 自动获取数据
|
|
61
|
+
*/
|
|
62
|
+
basecode: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: ""
|
|
43
65
|
}
|
|
44
66
|
}, {
|
|
45
67
|
"id": {
|
|
@@ -58,6 +80,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
58
80
|
const modeValueId = vue.useModel(__props, "id");
|
|
59
81
|
const modeValueName = vue.useModel(__props, "name");
|
|
60
82
|
const props = __props;
|
|
83
|
+
const state = vue.reactive({
|
|
84
|
+
optionData: props.optionData
|
|
85
|
+
});
|
|
61
86
|
const emit = __emit;
|
|
62
87
|
const handCommand = (command) => {
|
|
63
88
|
const fitem = props.optionData.find((item) => item[props.bvalue] === command);
|
|
@@ -65,6 +90,13 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
90
|
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
66
91
|
emit("change", fitem);
|
|
67
92
|
};
|
|
93
|
+
vue.onMounted(async () => {
|
|
94
|
+
state.optionData = props.optionData;
|
|
95
|
+
if (props.basecode && props.basecode != "") {
|
|
96
|
+
const res = index.useBaseApi(props.apiService).get(null, props.apiAction + "/" + props.basecode);
|
|
97
|
+
state.optionData = res.data.result ?? [];
|
|
98
|
+
}
|
|
99
|
+
});
|
|
68
100
|
return (_ctx, _cache) => {
|
|
69
101
|
const _component_el_input = vue.resolveComponent("el-input");
|
|
70
102
|
const _component_el_dropdown_item = vue.resolveComponent("el-dropdown-item");
|
|
@@ -84,7 +116,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
84
116
|
(vue.openBlock(true), vue.createElementBlock(
|
|
85
117
|
vue.Fragment,
|
|
86
118
|
null,
|
|
87
|
-
vue.renderList(
|
|
119
|
+
vue.renderList(state.optionData, (item, index) => {
|
|
88
120
|
return vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
89
121
|
key: index,
|
|
90
122
|
command: item[__props.bvalue],
|
package/package.json
CHANGED