@fmdeui/fmui 1.0.89 → 1.0.91
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 +5 -1
- package/es/components/fm-inputdropdown/index.d.ts +185 -0
- package/es/components/fm-inputdropdown/index.vue.d.ts +228 -0
- package/es/components/fm-inputnumber/index.d.ts +94 -0
- package/es/components/fm-inputnumber/index.vue.d.ts +63 -0
- package/es/components/index.d.ts +2 -0
- package/es/components/select-table/index.d.ts +3 -3
- package/es/components/select-table/src/index.vue.d.ts +1 -1
- package/es/index.mjs +1 -0
- package/es/packages/components/fm-inputdropdown/index.mjs +6 -0
- package/es/packages/components/fm-inputdropdown/index.vue.mjs +5 -0
- package/es/packages/components/fm-inputdropdown/index.vue2.mjs +198 -0
- package/es/packages/components/fm-inputnumber/index.mjs +6 -0
- package/es/packages/components/fm-inputnumber/index.vue.mjs +5 -0
- package/es/packages/components/fm-inputnumber/index.vue2.mjs +104 -0
- package/es/packages/components/index.mjs +2 -0
- package/es/packages/stores/ainputdropdow.mjs +36 -0
- package/es/packages/stores/index.mjs +1 -0
- package/es/stores/ainputdropdow.d.ts +17 -0
- package/es/stores/index.d.ts +1 -0
- package/index.js +369 -39
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +371 -42
- package/lib/component.js +28 -24
- package/lib/components/fm-inputdropdown/index.d.ts +185 -0
- package/lib/components/fm-inputdropdown/index.vue.d.ts +228 -0
- package/lib/components/fm-inputnumber/index.d.ts +94 -0
- package/lib/components/fm-inputnumber/index.vue.d.ts +63 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/select-table/index.d.ts +3 -3
- package/lib/components/select-table/src/index.vue.d.ts +1 -1
- package/lib/index.js +2 -0
- package/lib/packages/components/fm-inputdropdown/index.js +8 -0
- package/lib/packages/components/fm-inputdropdown/index.vue.js +9 -0
- package/lib/packages/components/fm-inputdropdown/index.vue2.js +202 -0
- package/lib/packages/components/fm-inputnumber/index.js +8 -0
- package/lib/packages/components/fm-inputnumber/index.vue.js +9 -0
- package/lib/packages/components/fm-inputnumber/index.vue2.js +108 -0
- package/lib/packages/components/index.js +6 -2
- package/lib/packages/stores/ainputdropdow.js +38 -0
- package/lib/packages/stores/index.js +2 -0
- package/lib/stores/ainputdropdow.d.ts +17 -0
- package/lib/stores/index.d.ts +1 -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/{lib → es}/index.css +0 -0
- /package/{es/component.css → lib/make-installer.css} +0 -0
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.91 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
|
|
@@ -3897,6 +3897,36 @@
|
|
|
3897
3897
|
const setDictLangMessageAsync = async (dict) => {
|
|
3898
3898
|
};
|
|
3899
3899
|
|
|
3900
|
+
const usefminputdropdownstore = pinia$1.defineStore("fminputdropdownstore", () => {
|
|
3901
|
+
const state = vue.reactive({
|
|
3902
|
+
optionsData: {}
|
|
3903
|
+
});
|
|
3904
|
+
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
|
|
3905
|
+
var _a, _b;
|
|
3906
|
+
if (!reload) {
|
|
3907
|
+
if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
|
|
3908
|
+
return state.optionsData[basecode];
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3911
|
+
const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
3912
|
+
if (multibasecode.length > 0) {
|
|
3913
|
+
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
3914
|
+
multibasecode.forEach((p) => {
|
|
3915
|
+
const tempdata = mdata.filter((x) => {
|
|
3916
|
+
return x.code == p;
|
|
3917
|
+
});
|
|
3918
|
+
state.optionsData[p] = tempdata != null ? tempdata : [];
|
|
3919
|
+
});
|
|
3920
|
+
} else {
|
|
3921
|
+
return state.optionsData[basecode] = (_b = res.data.result) != null ? _b : [];
|
|
3922
|
+
}
|
|
3923
|
+
};
|
|
3924
|
+
return {
|
|
3925
|
+
state,
|
|
3926
|
+
getOptionsData
|
|
3927
|
+
};
|
|
3928
|
+
});
|
|
3929
|
+
|
|
3900
3930
|
function authDirective(app) {
|
|
3901
3931
|
app.directive("auth", {
|
|
3902
3932
|
mounted(el, binding) {
|
|
@@ -20137,7 +20167,7 @@
|
|
|
20137
20167
|
app.use(VxeUITable);
|
|
20138
20168
|
};
|
|
20139
20169
|
|
|
20140
|
-
var _sfc_main$
|
|
20170
|
+
var _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
|
|
20141
20171
|
...{
|
|
20142
20172
|
name: "FButton"
|
|
20143
20173
|
},
|
|
@@ -20207,7 +20237,7 @@
|
|
|
20207
20237
|
}
|
|
20208
20238
|
});
|
|
20209
20239
|
|
|
20210
|
-
const FButton = _sfc_main$
|
|
20240
|
+
const FButton = _sfc_main$I;
|
|
20211
20241
|
|
|
20212
20242
|
const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
|
|
20213
20243
|
const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(
|
|
@@ -20854,7 +20884,7 @@
|
|
|
20854
20884
|
|
|
20855
20885
|
const _hoisted_1$s = { key: 0 };
|
|
20856
20886
|
const _hoisted_2$i = { key: 0 };
|
|
20857
|
-
var _sfc_main$
|
|
20887
|
+
var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
|
|
20858
20888
|
...{
|
|
20859
20889
|
name: "FInput"
|
|
20860
20890
|
},
|
|
@@ -21107,13 +21137,13 @@
|
|
|
21107
21137
|
}
|
|
21108
21138
|
});
|
|
21109
21139
|
|
|
21110
|
-
const FInput = _sfc_main$
|
|
21140
|
+
const FInput = _sfc_main$H;
|
|
21111
21141
|
|
|
21112
21142
|
const _hoisted_1$r = {
|
|
21113
21143
|
key: 0,
|
|
21114
21144
|
class: "back_to_top"
|
|
21115
21145
|
};
|
|
21116
|
-
var _sfc_main$
|
|
21146
|
+
var _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
|
|
21117
21147
|
...{
|
|
21118
21148
|
name: "FLayoutPage"
|
|
21119
21149
|
},
|
|
@@ -21203,9 +21233,9 @@
|
|
|
21203
21233
|
}
|
|
21204
21234
|
});
|
|
21205
21235
|
|
|
21206
|
-
const FLayoutPage = _sfc_main$
|
|
21236
|
+
const FLayoutPage = _sfc_main$G;
|
|
21207
21237
|
|
|
21208
|
-
var _sfc_main$
|
|
21238
|
+
var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
|
|
21209
21239
|
...{
|
|
21210
21240
|
name: "FLayoutPageItem"
|
|
21211
21241
|
},
|
|
@@ -21233,7 +21263,7 @@
|
|
|
21233
21263
|
}
|
|
21234
21264
|
});
|
|
21235
21265
|
|
|
21236
|
-
const FLayoutPageItem = _sfc_main$
|
|
21266
|
+
const FLayoutPageItem = _sfc_main$F;
|
|
21237
21267
|
|
|
21238
21268
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
21239
21269
|
let timer = null;
|
|
@@ -21277,7 +21307,7 @@
|
|
|
21277
21307
|
}
|
|
21278
21308
|
|
|
21279
21309
|
const _hoisted_1$q = ["id"];
|
|
21280
|
-
var _sfc_main$
|
|
21310
|
+
var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
|
|
21281
21311
|
...{
|
|
21282
21312
|
name: "FChart"
|
|
21283
21313
|
},
|
|
@@ -21376,13 +21406,13 @@
|
|
|
21376
21406
|
}
|
|
21377
21407
|
});
|
|
21378
21408
|
|
|
21379
|
-
const FChart = _sfc_main$
|
|
21409
|
+
const FChart = _sfc_main$E;
|
|
21380
21410
|
|
|
21381
21411
|
const _hoisted_1$p = {
|
|
21382
21412
|
key: 1,
|
|
21383
21413
|
class: "f_select__pagination"
|
|
21384
21414
|
};
|
|
21385
|
-
var _sfc_main$
|
|
21415
|
+
var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
21386
21416
|
...{
|
|
21387
21417
|
name: "FSelect"
|
|
21388
21418
|
},
|
|
@@ -21633,9 +21663,9 @@
|
|
|
21633
21663
|
}
|
|
21634
21664
|
});
|
|
21635
21665
|
|
|
21636
|
-
const FSelect = _sfc_main$
|
|
21666
|
+
const FSelect = _sfc_main$D;
|
|
21637
21667
|
|
|
21638
|
-
var _sfc_main$
|
|
21668
|
+
var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
|
|
21639
21669
|
...{
|
|
21640
21670
|
name: "RenderComp"
|
|
21641
21671
|
},
|
|
@@ -21660,7 +21690,7 @@
|
|
|
21660
21690
|
const _hoisted_3$a = { class: "check-box" };
|
|
21661
21691
|
const _hoisted_4$7 = { class: "more_dropdown_icon" };
|
|
21662
21692
|
const _hoisted_5$6 = { class: "out_box" };
|
|
21663
|
-
var _sfc_main$
|
|
21693
|
+
var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
21664
21694
|
...{
|
|
21665
21695
|
name: "MoreChoose"
|
|
21666
21696
|
},
|
|
@@ -21975,7 +22005,7 @@
|
|
|
21975
22005
|
};
|
|
21976
22006
|
}
|
|
21977
22007
|
|
|
21978
|
-
var _sfc_main$
|
|
22008
|
+
var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
|
|
21979
22009
|
...{
|
|
21980
22010
|
name: "FQueryCondition"
|
|
21981
22011
|
},
|
|
@@ -22394,7 +22424,7 @@
|
|
|
22394
22424
|
opt.labelRender ? {
|
|
22395
22425
|
name: "label",
|
|
22396
22426
|
fn: vue.withCtx(() => [
|
|
22397
|
-
vue.createVNode(_sfc_main$
|
|
22427
|
+
vue.createVNode(_sfc_main$C, {
|
|
22398
22428
|
form: vue.unref(queryState).form,
|
|
22399
22429
|
render: opt.labelRender
|
|
22400
22430
|
}, null, 8, ["form", "render"])
|
|
@@ -22490,7 +22520,7 @@
|
|
|
22490
22520
|
_: 1
|
|
22491
22521
|
/* STABLE */
|
|
22492
22522
|
})) : vue.createCommentVNode("v-if", true),
|
|
22493
|
-
vue.createVNode(_sfc_main$
|
|
22523
|
+
vue.createVNode(_sfc_main$B, {
|
|
22494
22524
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22495
22525
|
moreCheckList: __props.moreCheckList,
|
|
22496
22526
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22516,7 +22546,7 @@
|
|
|
22516
22546
|
}
|
|
22517
22547
|
});
|
|
22518
22548
|
|
|
22519
|
-
var _sfc_main$
|
|
22549
|
+
var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
|
|
22520
22550
|
...{
|
|
22521
22551
|
name: "RenderCol"
|
|
22522
22552
|
},
|
|
@@ -22682,7 +22712,7 @@
|
|
|
22682
22712
|
key: 0,
|
|
22683
22713
|
class: "f-table-select__page"
|
|
22684
22714
|
};
|
|
22685
|
-
var _sfc_main$
|
|
22715
|
+
var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
|
|
22686
22716
|
...{
|
|
22687
22717
|
name: "FSelectTable"
|
|
22688
22718
|
},
|
|
@@ -23306,7 +23336,7 @@
|
|
|
23306
23336
|
[
|
|
23307
23337
|
__props.isShowQuery ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
|
|
23308
23338
|
vue.createVNode(
|
|
23309
|
-
_sfc_main$
|
|
23339
|
+
_sfc_main$A,
|
|
23310
23340
|
vue.mergeProps({
|
|
23311
23341
|
ref_key: "fQueryConditionRef",
|
|
23312
23342
|
ref: fQueryConditionRef,
|
|
@@ -23432,7 +23462,7 @@
|
|
|
23432
23462
|
fixed: item.fixed
|
|
23433
23463
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23434
23464
|
default: vue.withCtx((scope) => [
|
|
23435
|
-
item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23465
|
+
item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
|
|
23436
23466
|
key: 0,
|
|
23437
23467
|
column: item,
|
|
23438
23468
|
row: scope.row,
|
|
@@ -23495,11 +23525,11 @@
|
|
|
23495
23525
|
}
|
|
23496
23526
|
});
|
|
23497
23527
|
|
|
23498
|
-
const FSelectTable = _sfc_main$
|
|
23528
|
+
const FSelectTable = _sfc_main$y;
|
|
23499
23529
|
|
|
23500
|
-
const FQueryCondition = _sfc_main$
|
|
23530
|
+
const FQueryCondition = _sfc_main$A;
|
|
23501
23531
|
|
|
23502
|
-
var _sfc_main$
|
|
23532
|
+
var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
|
|
23503
23533
|
...{
|
|
23504
23534
|
name: "RenderComp"
|
|
23505
23535
|
},
|
|
@@ -23519,7 +23549,7 @@
|
|
|
23519
23549
|
}
|
|
23520
23550
|
});
|
|
23521
23551
|
|
|
23522
|
-
var _sfc_main$
|
|
23552
|
+
var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
23523
23553
|
...{
|
|
23524
23554
|
name: "RenderBtn"
|
|
23525
23555
|
},
|
|
@@ -23544,7 +23574,7 @@
|
|
|
23544
23574
|
class: "text_show"
|
|
23545
23575
|
};
|
|
23546
23576
|
const _hoisted_2$f = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23547
|
-
var _sfc_main$
|
|
23577
|
+
var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
|
|
23548
23578
|
...{
|
|
23549
23579
|
name: "FForm"
|
|
23550
23580
|
},
|
|
@@ -23915,7 +23945,7 @@
|
|
|
23915
23945
|
item.labelSlotName || item.labelRender ? {
|
|
23916
23946
|
name: "label",
|
|
23917
23947
|
fn: vue.withCtx(() => [
|
|
23918
|
-
item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23948
|
+
item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
|
|
23919
23949
|
key: 0,
|
|
23920
23950
|
render: item.labelRender,
|
|
23921
23951
|
item
|
|
@@ -23947,7 +23977,7 @@
|
|
|
23947
23977
|
vue.Fragment,
|
|
23948
23978
|
null,
|
|
23949
23979
|
[
|
|
23950
|
-
val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$
|
|
23980
|
+
val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
|
|
23951
23981
|
key: index,
|
|
23952
23982
|
item: val,
|
|
23953
23983
|
render: val.render
|
|
@@ -23994,10 +24024,10 @@
|
|
|
23994
24024
|
}
|
|
23995
24025
|
});
|
|
23996
24026
|
|
|
23997
|
-
const FForm = _sfc_main$
|
|
24027
|
+
const FForm = _sfc_main$v;
|
|
23998
24028
|
|
|
23999
24029
|
const _hoisted_1$l = ["src"];
|
|
24000
|
-
var _sfc_main$
|
|
24030
|
+
var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
24001
24031
|
...{
|
|
24002
24032
|
name: "svgIcon"
|
|
24003
24033
|
},
|
|
@@ -24095,13 +24125,13 @@
|
|
|
24095
24125
|
}
|
|
24096
24126
|
}
|
|
24097
24127
|
if (!app._context.components[`SvgIcon`]) {
|
|
24098
|
-
app.component("SvgIcon", _sfc_main$
|
|
24128
|
+
app.component("SvgIcon", _sfc_main$u);
|
|
24099
24129
|
}
|
|
24100
24130
|
}
|
|
24101
24131
|
|
|
24102
24132
|
const emitter = mitt();
|
|
24103
24133
|
|
|
24104
|
-
var _sfc_main$
|
|
24134
|
+
var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
24105
24135
|
...{
|
|
24106
24136
|
name: "FLayout"
|
|
24107
24137
|
},
|
|
@@ -24187,7 +24217,7 @@
|
|
|
24187
24217
|
}
|
|
24188
24218
|
});
|
|
24189
24219
|
|
|
24190
|
-
const FLayout = _sfc_main$
|
|
24220
|
+
const FLayout = _sfc_main$t;
|
|
24191
24221
|
|
|
24192
24222
|
function commonFunction() {
|
|
24193
24223
|
const { copy, isSupported } = core.useClipboard();
|
|
@@ -24589,7 +24619,7 @@
|
|
|
24589
24619
|
class: "traditionalColors-chines",
|
|
24590
24620
|
style: { "cursor": "grab", "color": "gray" }
|
|
24591
24621
|
};
|
|
24592
|
-
var _sfc_main$
|
|
24622
|
+
var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
24593
24623
|
...{
|
|
24594
24624
|
name: "FSettings"
|
|
24595
24625
|
},
|
|
@@ -26352,9 +26382,9 @@
|
|
|
26352
26382
|
}
|
|
26353
26383
|
});
|
|
26354
26384
|
|
|
26355
|
-
const FSettings = _sfc_main$
|
|
26385
|
+
const FSettings = _sfc_main$s;
|
|
26356
26386
|
|
|
26357
|
-
var _sfc_main$
|
|
26387
|
+
var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
26358
26388
|
...{
|
|
26359
26389
|
name: "FModifyRecord"
|
|
26360
26390
|
},
|
|
@@ -26617,7 +26647,304 @@
|
|
|
26617
26647
|
}
|
|
26618
26648
|
});
|
|
26619
26649
|
|
|
26620
|
-
const FModifyRecord = _sfc_main$
|
|
26650
|
+
const FModifyRecord = _sfc_main$r;
|
|
26651
|
+
|
|
26652
|
+
var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
|
|
26653
|
+
...{
|
|
26654
|
+
name: "Fminputdropdown"
|
|
26655
|
+
},
|
|
26656
|
+
__name: "index",
|
|
26657
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
26658
|
+
//数据
|
|
26659
|
+
optionData: {
|
|
26660
|
+
type: Array,
|
|
26661
|
+
default: []
|
|
26662
|
+
},
|
|
26663
|
+
/**
|
|
26664
|
+
* 值的属性值
|
|
26665
|
+
*/
|
|
26666
|
+
bvalue: {
|
|
26667
|
+
type: String,
|
|
26668
|
+
default: "id"
|
|
26669
|
+
},
|
|
26670
|
+
/**
|
|
26671
|
+
* 值的属性标签
|
|
26672
|
+
*/
|
|
26673
|
+
blabel: {
|
|
26674
|
+
type: String,
|
|
26675
|
+
default: "name"
|
|
26676
|
+
},
|
|
26677
|
+
placeholder: {
|
|
26678
|
+
type: String,
|
|
26679
|
+
default: "\u8BF7\u9009\u62E9"
|
|
26680
|
+
},
|
|
26681
|
+
inputWidth: {
|
|
26682
|
+
type: String,
|
|
26683
|
+
default: "40%"
|
|
26684
|
+
},
|
|
26685
|
+
dropWidth: {
|
|
26686
|
+
type: String,
|
|
26687
|
+
default: "90px"
|
|
26688
|
+
},
|
|
26689
|
+
dropHeight: {
|
|
26690
|
+
type: String,
|
|
26691
|
+
default: "180px"
|
|
26692
|
+
},
|
|
26693
|
+
/**
|
|
26694
|
+
* api service name
|
|
26695
|
+
*/
|
|
26696
|
+
apiService: {
|
|
26697
|
+
type: String,
|
|
26698
|
+
default: "baseData"
|
|
26699
|
+
},
|
|
26700
|
+
/**
|
|
26701
|
+
* api service 下的方法
|
|
26702
|
+
*/
|
|
26703
|
+
apiAction: {
|
|
26704
|
+
type: String,
|
|
26705
|
+
default: "baseDataList"
|
|
26706
|
+
},
|
|
26707
|
+
/**
|
|
26708
|
+
* 基础编码 自动获取数据
|
|
26709
|
+
*/
|
|
26710
|
+
basecode: {
|
|
26711
|
+
type: String,
|
|
26712
|
+
default: ""
|
|
26713
|
+
},
|
|
26714
|
+
/**
|
|
26715
|
+
* 基础编码 多个编码合在一起调用
|
|
26716
|
+
*/
|
|
26717
|
+
multibasecode: {
|
|
26718
|
+
type: Array,
|
|
26719
|
+
default: []
|
|
26720
|
+
},
|
|
26721
|
+
/**
|
|
26722
|
+
* 是否默认加载数据
|
|
26723
|
+
*/
|
|
26724
|
+
autoLoadData: {
|
|
26725
|
+
type: Boolean,
|
|
26726
|
+
default: true
|
|
26727
|
+
}
|
|
26728
|
+
}, {
|
|
26729
|
+
"id": { default: 0, required: false },
|
|
26730
|
+
"idModifiers": {},
|
|
26731
|
+
"name": { default: "", required: false },
|
|
26732
|
+
"nameModifiers": {}
|
|
26733
|
+
}),
|
|
26734
|
+
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:id", "update:name"]),
|
|
26735
|
+
setup(__props, { emit: __emit }) {
|
|
26736
|
+
const modeValueId = vue.useModel(__props, "id");
|
|
26737
|
+
const modeValueName = vue.useModel(__props, "name");
|
|
26738
|
+
const props = __props;
|
|
26739
|
+
const state = vue.reactive({
|
|
26740
|
+
optionData: props.optionData
|
|
26741
|
+
});
|
|
26742
|
+
const emit = __emit;
|
|
26743
|
+
const handCommand = (command) => {
|
|
26744
|
+
const fitem = state.optionData.find((item) => item[props.bvalue] === command);
|
|
26745
|
+
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
26746
|
+
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
26747
|
+
emit("change", fitem);
|
|
26748
|
+
};
|
|
26749
|
+
const handelChange = (val) => {
|
|
26750
|
+
emit("change", val);
|
|
26751
|
+
};
|
|
26752
|
+
vue.onMounted(async () => {
|
|
26753
|
+
if (props.optionData.length > 0) {
|
|
26754
|
+
state.optionData = props.optionData;
|
|
26755
|
+
}
|
|
26756
|
+
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
26757
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26758
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
26759
|
+
}
|
|
26760
|
+
});
|
|
26761
|
+
const handRestdata = async () => {
|
|
26762
|
+
if (props.basecode && props.basecode != "") {
|
|
26763
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26764
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
26765
|
+
}
|
|
26766
|
+
};
|
|
26767
|
+
return (_ctx, _cache) => {
|
|
26768
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
26769
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
26770
|
+
const _component_el_dropdown_item = vue.resolveComponent("el-dropdown-item");
|
|
26771
|
+
const _component_el_dropdown_menu = vue.resolveComponent("el-dropdown-menu");
|
|
26772
|
+
const _component_el_dropdown = vue.resolveComponent("el-dropdown");
|
|
26773
|
+
return vue.openBlock(), vue.createBlock(_component_el_dropdown, {
|
|
26774
|
+
class: "fminputdropdown",
|
|
26775
|
+
placement: "bottom",
|
|
26776
|
+
trigger: "click",
|
|
26777
|
+
style: { "width": "100%" },
|
|
26778
|
+
onCommand: handCommand
|
|
26779
|
+
}, {
|
|
26780
|
+
dropdown: vue.withCtx(() => [
|
|
26781
|
+
vue.createVNode(_component_el_dropdown_menu, {
|
|
26782
|
+
style: vue.normalizeStyle({ width: __props.dropWidth, height: __props.dropHeight })
|
|
26783
|
+
}, {
|
|
26784
|
+
default: vue.withCtx(() => [
|
|
26785
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
26786
|
+
vue.Fragment,
|
|
26787
|
+
null,
|
|
26788
|
+
vue.renderList(state.optionData, (item, index) => {
|
|
26789
|
+
return vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
|
|
26790
|
+
key: index,
|
|
26791
|
+
command: item[__props.bvalue],
|
|
26792
|
+
divided: ""
|
|
26793
|
+
}, {
|
|
26794
|
+
default: vue.withCtx(() => [
|
|
26795
|
+
vue.createTextVNode(
|
|
26796
|
+
vue.toDisplayString(item[__props.blabel]),
|
|
26797
|
+
1
|
|
26798
|
+
/* TEXT */
|
|
26799
|
+
)
|
|
26800
|
+
]),
|
|
26801
|
+
_: 2
|
|
26802
|
+
/* DYNAMIC */
|
|
26803
|
+
}, 1032, ["command"]);
|
|
26804
|
+
}),
|
|
26805
|
+
128
|
|
26806
|
+
/* KEYED_FRAGMENT */
|
|
26807
|
+
))
|
|
26808
|
+
]),
|
|
26809
|
+
_: 1
|
|
26810
|
+
/* STABLE */
|
|
26811
|
+
}, 8, ["style"])
|
|
26812
|
+
]),
|
|
26813
|
+
default: vue.withCtx(() => [
|
|
26814
|
+
vue.createVNode(_component_el_input, {
|
|
26815
|
+
modelValue: modeValueName.value,
|
|
26816
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
26817
|
+
placeholder: props.placeholder,
|
|
26818
|
+
style: vue.normalizeStyle({ width: __props.inputWidth }),
|
|
26819
|
+
onChange: handelChange
|
|
26820
|
+
}, {
|
|
26821
|
+
append: vue.withCtx(() => [
|
|
26822
|
+
vue.createVNode(_component_el_icon, {
|
|
26823
|
+
color: "#13c2c2",
|
|
26824
|
+
onClick: handRestdata
|
|
26825
|
+
}, {
|
|
26826
|
+
default: vue.withCtx(() => [
|
|
26827
|
+
vue.createVNode(vue.unref(svg.RefreshLeft))
|
|
26828
|
+
]),
|
|
26829
|
+
_: 1
|
|
26830
|
+
/* STABLE */
|
|
26831
|
+
})
|
|
26832
|
+
]),
|
|
26833
|
+
_: 1
|
|
26834
|
+
/* STABLE */
|
|
26835
|
+
}, 8, ["modelValue", "placeholder", "style"])
|
|
26836
|
+
]),
|
|
26837
|
+
_: 1
|
|
26838
|
+
/* STABLE */
|
|
26839
|
+
});
|
|
26840
|
+
};
|
|
26841
|
+
}
|
|
26842
|
+
});
|
|
26843
|
+
|
|
26844
|
+
const Fminputdropdown = _sfc_main$q;
|
|
26845
|
+
|
|
26846
|
+
var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
|
|
26847
|
+
...{ name: "FmInputNumber" },
|
|
26848
|
+
__name: "index",
|
|
26849
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
26850
|
+
placeholder: {
|
|
26851
|
+
type: String,
|
|
26852
|
+
default: "\u8BF7\u8F93\u5165\u91D1\u989D"
|
|
26853
|
+
},
|
|
26854
|
+
defaultValue: {
|
|
26855
|
+
type: Number,
|
|
26856
|
+
default: -1
|
|
26857
|
+
},
|
|
26858
|
+
bType: {
|
|
26859
|
+
type: String,
|
|
26860
|
+
default: "money"
|
|
26861
|
+
}
|
|
26862
|
+
}, {
|
|
26863
|
+
"modelValue": { required: true, default: 0 },
|
|
26864
|
+
"modelModifiers": {}
|
|
26865
|
+
}),
|
|
26866
|
+
emits: ["update:modelValue"],
|
|
26867
|
+
setup(__props) {
|
|
26868
|
+
const modelValue = vue.useModel(__props, "modelValue");
|
|
26869
|
+
const props = __props;
|
|
26870
|
+
const handleInput = (val) => {
|
|
26871
|
+
if (val == "" && props.defaultValue != -1) {
|
|
26872
|
+
modelValue.value = props.defaultValue;
|
|
26873
|
+
return;
|
|
26874
|
+
}
|
|
26875
|
+
if (props.bType == "number") {
|
|
26876
|
+
modelValue.value = parseInt(val);
|
|
26877
|
+
return;
|
|
26878
|
+
}
|
|
26879
|
+
let cleaned = String(val).replace(/[^\d.]/g, "");
|
|
26880
|
+
const dotIndex = cleaned.indexOf(".");
|
|
26881
|
+
if (dotIndex !== -1) {
|
|
26882
|
+
const before = cleaned.substring(0, dotIndex + 1);
|
|
26883
|
+
const after = cleaned.substring(dotIndex + 1).replace(/\./g, "");
|
|
26884
|
+
cleaned = before + after;
|
|
26885
|
+
}
|
|
26886
|
+
if (cleaned.startsWith(".")) {
|
|
26887
|
+
cleaned = "0" + cleaned;
|
|
26888
|
+
}
|
|
26889
|
+
const parts = cleaned.split(".");
|
|
26890
|
+
parts[0] = parts[0].replace(/^0+/, "") || "0";
|
|
26891
|
+
cleaned = parts.join(".");
|
|
26892
|
+
if (cleaned.includes(".")) {
|
|
26893
|
+
const [intPart, decPart] = cleaned.split(".");
|
|
26894
|
+
cleaned = `${intPart}.${decPart.substring(0, 2)}`;
|
|
26895
|
+
}
|
|
26896
|
+
modelValue.value = cleaned;
|
|
26897
|
+
};
|
|
26898
|
+
vue.watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
26899
|
+
if (newvalue == "") {
|
|
26900
|
+
modelValue.value = props.defaultValue == -1 ? 0 : props.defaultValue;
|
|
26901
|
+
}
|
|
26902
|
+
});
|
|
26903
|
+
return (_ctx, _cache) => {
|
|
26904
|
+
const _component_el_input = vue.resolveComponent("el-input");
|
|
26905
|
+
return vue.openBlock(), vue.createBlock(_component_el_input, {
|
|
26906
|
+
modelValue: modelValue.value,
|
|
26907
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
26908
|
+
placeholder: __props.placeholder,
|
|
26909
|
+
onInput: handleInput
|
|
26910
|
+
}, vue.createSlots({
|
|
26911
|
+
_: 2
|
|
26912
|
+
/* DYNAMIC */
|
|
26913
|
+
}, [
|
|
26914
|
+
_ctx.$slots.prepend ? {
|
|
26915
|
+
name: "prepend",
|
|
26916
|
+
fn: vue.withCtx(() => [
|
|
26917
|
+
vue.renderSlot(_ctx.$slots, "prepend")
|
|
26918
|
+
]),
|
|
26919
|
+
key: "0"
|
|
26920
|
+
} : void 0,
|
|
26921
|
+
_ctx.$slots.append ? {
|
|
26922
|
+
name: "append",
|
|
26923
|
+
fn: vue.withCtx(() => [
|
|
26924
|
+
vue.renderSlot(_ctx.$slots, "append")
|
|
26925
|
+
]),
|
|
26926
|
+
key: "1"
|
|
26927
|
+
} : void 0,
|
|
26928
|
+
_ctx.$slots.prefix ? {
|
|
26929
|
+
name: "prefix",
|
|
26930
|
+
fn: vue.withCtx(() => [
|
|
26931
|
+
vue.renderSlot(_ctx.$slots, "prefix")
|
|
26932
|
+
]),
|
|
26933
|
+
key: "2"
|
|
26934
|
+
} : void 0,
|
|
26935
|
+
_ctx.$slots.suffix ? {
|
|
26936
|
+
name: "suffix",
|
|
26937
|
+
fn: vue.withCtx(() => [
|
|
26938
|
+
vue.renderSlot(_ctx.$slots, "suffix")
|
|
26939
|
+
]),
|
|
26940
|
+
key: "3"
|
|
26941
|
+
} : void 0
|
|
26942
|
+
]), 1032, ["modelValue", "placeholder"]);
|
|
26943
|
+
};
|
|
26944
|
+
}
|
|
26945
|
+
});
|
|
26946
|
+
|
|
26947
|
+
const FmInputNumber = _sfc_main$p;
|
|
26621
26948
|
|
|
26622
26949
|
const makeInstaller = (components = []) => {
|
|
26623
26950
|
const install = (app) => {
|
|
@@ -27109,6 +27436,7 @@
|
|
|
27109
27436
|
const plugins = [
|
|
27110
27437
|
FButton,
|
|
27111
27438
|
FInput,
|
|
27439
|
+
Fminputdropdown,
|
|
27112
27440
|
FLayoutPage,
|
|
27113
27441
|
FLayoutPageItem,
|
|
27114
27442
|
FSelect,
|
|
@@ -27120,7 +27448,8 @@
|
|
|
27120
27448
|
FSettings,
|
|
27121
27449
|
FModifyRecord,
|
|
27122
27450
|
FmTree,
|
|
27123
|
-
FmCascader
|
|
27451
|
+
FmCascader,
|
|
27452
|
+
FmInputNumber
|
|
27124
27453
|
];
|
|
27125
27454
|
|
|
27126
27455
|
var installer = makeInstaller([...plugins]);
|
|
@@ -31121,6 +31450,7 @@
|
|
|
31121
31450
|
exports.useThemeConfig = useThemeConfig;
|
|
31122
31451
|
exports.useUserInfo = useUserInfo;
|
|
31123
31452
|
exports.useVxeTable = useVxeTable;
|
|
31453
|
+
exports.usefminputdropdownstore = usefminputdropdownstore;
|
|
31124
31454
|
exports.userAccount = userAccount;
|
|
31125
31455
|
exports.userEmail = userEmail;
|
|
31126
31456
|
exports.userFriendName = userFriendName;
|