@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.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.91 */
|
|
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';
|
|
5
5
|
import VxeUI from 'vxe-pc-ui';
|
|
6
6
|
import ExcelJS from 'exceljs';
|
|
7
7
|
import * as svg from '@element-plus/icons-vue';
|
|
8
|
-
import { CaretTop, ArrowDown, ArrowUp, Search, MoreFilled, Avatar, Loading, Lock, CircleCloseFilled } from '@element-plus/icons-vue';
|
|
9
|
-
import { isRef, unref, watch, nextTick, computed, defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, renderSlot, inject, withDirectives, resolveDirective,
|
|
8
|
+
import { CaretTop, ArrowDown, ArrowUp, RefreshLeft, Search, MoreFilled, Avatar, Loading, Lock, CircleCloseFilled } from '@element-plus/icons-vue';
|
|
9
|
+
import { isRef, unref, watch, nextTick, computed, reactive, defineComponent, ref, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode, renderSlot, inject, withDirectives, resolveDirective, provide, useAttrs, useSlots, createSlots, renderList, normalizeProps, guardReactiveProps, createElementBlock, toDisplayString, createElementVNode, onMounted, onActivated, normalizeClass, createCommentVNode, getCurrentInstance, onBeforeUnmount, vShow, markRaw, resolveDynamicComponent, Fragment, createTextVNode, withModifiers, toHandlers, onUpdated, normalizeStyle, defineAsyncComponent, onBeforeMount, onUnmounted, useModel, mergeModels, onBeforeUpdate, Transition, KeepAlive, TransitionGroup } from 'vue';
|
|
10
10
|
import { ElLoading, ElMessage, ElNotification, localeContextKey, dayjs, ElMessageBox } from 'element-plus';
|
|
11
11
|
import { get, merge, debounce as debounce$1 } from 'lodash-es';
|
|
12
12
|
import Cookies from 'js-cookie';
|
|
@@ -3895,6 +3895,36 @@ const useUserInfo = defineStore("userInfo", {
|
|
|
3895
3895
|
const setDictLangMessageAsync = async (dict) => {
|
|
3896
3896
|
};
|
|
3897
3897
|
|
|
3898
|
+
const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
|
|
3899
|
+
const state = reactive({
|
|
3900
|
+
optionsData: {}
|
|
3901
|
+
});
|
|
3902
|
+
const getOptionsData = async (apiService, apiAction, basecode, reload = false, multibasecode = []) => {
|
|
3903
|
+
var _a, _b;
|
|
3904
|
+
if (!reload) {
|
|
3905
|
+
if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
|
|
3906
|
+
return state.optionsData[basecode];
|
|
3907
|
+
}
|
|
3908
|
+
}
|
|
3909
|
+
const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode + "&mcodes=" + multibasecode.join(","));
|
|
3910
|
+
if (multibasecode.length > 0) {
|
|
3911
|
+
const mdata = (_a = res.data.result) != null ? _a : [];
|
|
3912
|
+
multibasecode.forEach((p) => {
|
|
3913
|
+
const tempdata = mdata.filter((x) => {
|
|
3914
|
+
return x.code == p;
|
|
3915
|
+
});
|
|
3916
|
+
state.optionsData[p] = tempdata != null ? tempdata : [];
|
|
3917
|
+
});
|
|
3918
|
+
} else {
|
|
3919
|
+
return state.optionsData[basecode] = (_b = res.data.result) != null ? _b : [];
|
|
3920
|
+
}
|
|
3921
|
+
};
|
|
3922
|
+
return {
|
|
3923
|
+
state,
|
|
3924
|
+
getOptionsData
|
|
3925
|
+
};
|
|
3926
|
+
});
|
|
3927
|
+
|
|
3898
3928
|
function authDirective(app) {
|
|
3899
3929
|
app.directive("auth", {
|
|
3900
3930
|
mounted(el, binding) {
|
|
@@ -20135,7 +20165,7 @@ const setupVXETable = (app) => {
|
|
|
20135
20165
|
app.use(VxeUITable);
|
|
20136
20166
|
};
|
|
20137
20167
|
|
|
20138
|
-
var _sfc_main$
|
|
20168
|
+
var _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
20139
20169
|
...{
|
|
20140
20170
|
name: "FButton"
|
|
20141
20171
|
},
|
|
@@ -20205,7 +20235,7 @@ var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
20205
20235
|
}
|
|
20206
20236
|
});
|
|
20207
20237
|
|
|
20208
|
-
const FButton = _sfc_main$
|
|
20238
|
+
const FButton = _sfc_main$I;
|
|
20209
20239
|
|
|
20210
20240
|
const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
|
|
20211
20241
|
const translate = (path, option, locale) => get(locale, path, path).replace(
|
|
@@ -20852,7 +20882,7 @@ function showTabelColumn(field) {
|
|
|
20852
20882
|
|
|
20853
20883
|
const _hoisted_1$s = { key: 0 };
|
|
20854
20884
|
const _hoisted_2$i = { key: 0 };
|
|
20855
|
-
var _sfc_main$
|
|
20885
|
+
var _sfc_main$H = /* @__PURE__ */ defineComponent({
|
|
20856
20886
|
...{
|
|
20857
20887
|
name: "FInput"
|
|
20858
20888
|
},
|
|
@@ -21105,13 +21135,13 @@ var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
21105
21135
|
}
|
|
21106
21136
|
});
|
|
21107
21137
|
|
|
21108
|
-
const FInput = _sfc_main$
|
|
21138
|
+
const FInput = _sfc_main$H;
|
|
21109
21139
|
|
|
21110
21140
|
const _hoisted_1$r = {
|
|
21111
21141
|
key: 0,
|
|
21112
21142
|
class: "back_to_top"
|
|
21113
21143
|
};
|
|
21114
|
-
var _sfc_main$
|
|
21144
|
+
var _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
21115
21145
|
...{
|
|
21116
21146
|
name: "FLayoutPage"
|
|
21117
21147
|
},
|
|
@@ -21201,9 +21231,9 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
21201
21231
|
}
|
|
21202
21232
|
});
|
|
21203
21233
|
|
|
21204
|
-
const FLayoutPage = _sfc_main$
|
|
21234
|
+
const FLayoutPage = _sfc_main$G;
|
|
21205
21235
|
|
|
21206
|
-
var _sfc_main$
|
|
21236
|
+
var _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
21207
21237
|
...{
|
|
21208
21238
|
name: "FLayoutPageItem"
|
|
21209
21239
|
},
|
|
@@ -21231,7 +21261,7 @@ var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
21231
21261
|
}
|
|
21232
21262
|
});
|
|
21233
21263
|
|
|
21234
|
-
const FLayoutPageItem = _sfc_main$
|
|
21264
|
+
const FLayoutPageItem = _sfc_main$F;
|
|
21235
21265
|
|
|
21236
21266
|
function debounce(func, delay = 500, immediate, resultCallback) {
|
|
21237
21267
|
let timer = null;
|
|
@@ -21275,7 +21305,7 @@ function toLine(name) {
|
|
|
21275
21305
|
}
|
|
21276
21306
|
|
|
21277
21307
|
const _hoisted_1$q = ["id"];
|
|
21278
|
-
var _sfc_main$
|
|
21308
|
+
var _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
21279
21309
|
...{
|
|
21280
21310
|
name: "FChart"
|
|
21281
21311
|
},
|
|
@@ -21374,13 +21404,13 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
21374
21404
|
}
|
|
21375
21405
|
});
|
|
21376
21406
|
|
|
21377
|
-
const FChart = _sfc_main$
|
|
21407
|
+
const FChart = _sfc_main$E;
|
|
21378
21408
|
|
|
21379
21409
|
const _hoisted_1$p = {
|
|
21380
21410
|
key: 1,
|
|
21381
21411
|
class: "f_select__pagination"
|
|
21382
21412
|
};
|
|
21383
|
-
var _sfc_main$
|
|
21413
|
+
var _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
21384
21414
|
...{
|
|
21385
21415
|
name: "FSelect"
|
|
21386
21416
|
},
|
|
@@ -21631,9 +21661,9 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
21631
21661
|
}
|
|
21632
21662
|
});
|
|
21633
21663
|
|
|
21634
|
-
const FSelect = _sfc_main$
|
|
21664
|
+
const FSelect = _sfc_main$D;
|
|
21635
21665
|
|
|
21636
|
-
var _sfc_main$
|
|
21666
|
+
var _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
21637
21667
|
...{
|
|
21638
21668
|
name: "RenderComp"
|
|
21639
21669
|
},
|
|
@@ -21658,7 +21688,7 @@ const _hoisted_2$h = { class: "inside_box_title" };
|
|
|
21658
21688
|
const _hoisted_3$a = { class: "check-box" };
|
|
21659
21689
|
const _hoisted_4$7 = { class: "more_dropdown_icon" };
|
|
21660
21690
|
const _hoisted_5$6 = { class: "out_box" };
|
|
21661
|
-
var _sfc_main$
|
|
21691
|
+
var _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
21662
21692
|
...{
|
|
21663
21693
|
name: "MoreChoose"
|
|
21664
21694
|
},
|
|
@@ -21973,7 +22003,7 @@ function useComputed() {
|
|
|
21973
22003
|
};
|
|
21974
22004
|
}
|
|
21975
22005
|
|
|
21976
|
-
var _sfc_main$
|
|
22006
|
+
var _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
21977
22007
|
...{
|
|
21978
22008
|
name: "FQueryCondition"
|
|
21979
22009
|
},
|
|
@@ -22392,7 +22422,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22392
22422
|
opt.labelRender ? {
|
|
22393
22423
|
name: "label",
|
|
22394
22424
|
fn: withCtx(() => [
|
|
22395
|
-
createVNode(_sfc_main$
|
|
22425
|
+
createVNode(_sfc_main$C, {
|
|
22396
22426
|
form: unref(queryState).form,
|
|
22397
22427
|
render: opt.labelRender
|
|
22398
22428
|
}, null, 8, ["form", "render"])
|
|
@@ -22488,7 +22518,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22488
22518
|
_: 1
|
|
22489
22519
|
/* STABLE */
|
|
22490
22520
|
})) : createCommentVNode("v-if", true),
|
|
22491
|
-
createVNode(_sfc_main$
|
|
22521
|
+
createVNode(_sfc_main$B, {
|
|
22492
22522
|
isDropDownSelectMore: __props.isDropDownSelectMore,
|
|
22493
22523
|
moreCheckList: __props.moreCheckList,
|
|
22494
22524
|
popoverAttrsBind: popoverAttrsBind.value,
|
|
@@ -22514,7 +22544,7 @@ var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
22514
22544
|
}
|
|
22515
22545
|
});
|
|
22516
22546
|
|
|
22517
|
-
var _sfc_main$
|
|
22547
|
+
var _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
22518
22548
|
...{
|
|
22519
22549
|
name: "RenderCol"
|
|
22520
22550
|
},
|
|
@@ -22680,7 +22710,7 @@ const _hoisted_4$6 = {
|
|
|
22680
22710
|
key: 0,
|
|
22681
22711
|
class: "f-table-select__page"
|
|
22682
22712
|
};
|
|
22683
|
-
var _sfc_main$
|
|
22713
|
+
var _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
22684
22714
|
...{
|
|
22685
22715
|
name: "FSelectTable"
|
|
22686
22716
|
},
|
|
@@ -23304,7 +23334,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23304
23334
|
[
|
|
23305
23335
|
__props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
|
|
23306
23336
|
createVNode(
|
|
23307
|
-
_sfc_main$
|
|
23337
|
+
_sfc_main$A,
|
|
23308
23338
|
mergeProps({
|
|
23309
23339
|
ref_key: "fQueryConditionRef",
|
|
23310
23340
|
ref: fQueryConditionRef,
|
|
@@ -23430,7 +23460,7 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23430
23460
|
fixed: item.fixed
|
|
23431
23461
|
}, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
|
|
23432
23462
|
default: withCtx((scope) => [
|
|
23433
|
-
item.render ? (openBlock(), createBlock(_sfc_main$
|
|
23463
|
+
item.render ? (openBlock(), createBlock(_sfc_main$z, {
|
|
23434
23464
|
key: 0,
|
|
23435
23465
|
column: item,
|
|
23436
23466
|
row: scope.row,
|
|
@@ -23493,11 +23523,11 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
23493
23523
|
}
|
|
23494
23524
|
});
|
|
23495
23525
|
|
|
23496
|
-
const FSelectTable = _sfc_main$
|
|
23526
|
+
const FSelectTable = _sfc_main$y;
|
|
23497
23527
|
|
|
23498
|
-
const FQueryCondition = _sfc_main$
|
|
23528
|
+
const FQueryCondition = _sfc_main$A;
|
|
23499
23529
|
|
|
23500
|
-
var _sfc_main$
|
|
23530
|
+
var _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
23501
23531
|
...{
|
|
23502
23532
|
name: "RenderComp"
|
|
23503
23533
|
},
|
|
@@ -23517,7 +23547,7 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
|
23517
23547
|
}
|
|
23518
23548
|
});
|
|
23519
23549
|
|
|
23520
|
-
var _sfc_main$
|
|
23550
|
+
var _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
23521
23551
|
...{
|
|
23522
23552
|
name: "RenderBtn"
|
|
23523
23553
|
},
|
|
@@ -23542,7 +23572,7 @@ const _hoisted_1$m = {
|
|
|
23542
23572
|
class: "text_show"
|
|
23543
23573
|
};
|
|
23544
23574
|
const _hoisted_2$f = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
|
|
23545
|
-
var _sfc_main$
|
|
23575
|
+
var _sfc_main$v = /* @__PURE__ */ defineComponent({
|
|
23546
23576
|
...{
|
|
23547
23577
|
name: "FForm"
|
|
23548
23578
|
},
|
|
@@ -23913,7 +23943,7 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23913
23943
|
item.labelSlotName || item.labelRender ? {
|
|
23914
23944
|
name: "label",
|
|
23915
23945
|
fn: withCtx(() => [
|
|
23916
|
-
item.labelRender ? (openBlock(), createBlock(_sfc_main$
|
|
23946
|
+
item.labelRender ? (openBlock(), createBlock(_sfc_main$x, {
|
|
23917
23947
|
key: 0,
|
|
23918
23948
|
render: item.labelRender,
|
|
23919
23949
|
item
|
|
@@ -23945,7 +23975,7 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23945
23975
|
Fragment,
|
|
23946
23976
|
null,
|
|
23947
23977
|
[
|
|
23948
|
-
val.render ? (openBlock(), createBlock(_sfc_main$
|
|
23978
|
+
val.render ? (openBlock(), createBlock(_sfc_main$w, {
|
|
23949
23979
|
key: index,
|
|
23950
23980
|
item: val,
|
|
23951
23981
|
render: val.render
|
|
@@ -23992,10 +24022,10 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
|
23992
24022
|
}
|
|
23993
24023
|
});
|
|
23994
24024
|
|
|
23995
|
-
const FForm = _sfc_main$
|
|
24025
|
+
const FForm = _sfc_main$v;
|
|
23996
24026
|
|
|
23997
24027
|
const _hoisted_1$l = ["src"];
|
|
23998
|
-
var _sfc_main$
|
|
24028
|
+
var _sfc_main$u = /* @__PURE__ */ defineComponent({
|
|
23999
24029
|
...{
|
|
24000
24030
|
name: "svgIcon"
|
|
24001
24031
|
},
|
|
@@ -24093,13 +24123,13 @@ function elSvg(app) {
|
|
|
24093
24123
|
}
|
|
24094
24124
|
}
|
|
24095
24125
|
if (!app._context.components[`SvgIcon`]) {
|
|
24096
|
-
app.component("SvgIcon", _sfc_main$
|
|
24126
|
+
app.component("SvgIcon", _sfc_main$u);
|
|
24097
24127
|
}
|
|
24098
24128
|
}
|
|
24099
24129
|
|
|
24100
24130
|
const emitter = mitt();
|
|
24101
24131
|
|
|
24102
|
-
var _sfc_main$
|
|
24132
|
+
var _sfc_main$t = /* @__PURE__ */ defineComponent({
|
|
24103
24133
|
...{
|
|
24104
24134
|
name: "FLayout"
|
|
24105
24135
|
},
|
|
@@ -24185,7 +24215,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
|
24185
24215
|
}
|
|
24186
24216
|
});
|
|
24187
24217
|
|
|
24188
|
-
const FLayout = _sfc_main$
|
|
24218
|
+
const FLayout = _sfc_main$t;
|
|
24189
24219
|
|
|
24190
24220
|
function commonFunction() {
|
|
24191
24221
|
const { copy, isSupported } = useClipboard();
|
|
@@ -24587,7 +24617,7 @@ const _hoisted_119 = {
|
|
|
24587
24617
|
class: "traditionalColors-chines",
|
|
24588
24618
|
style: { "cursor": "grab", "color": "gray" }
|
|
24589
24619
|
};
|
|
24590
|
-
var _sfc_main$
|
|
24620
|
+
var _sfc_main$s = /* @__PURE__ */ defineComponent({
|
|
24591
24621
|
...{
|
|
24592
24622
|
name: "FSettings"
|
|
24593
24623
|
},
|
|
@@ -26350,9 +26380,9 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
|
26350
26380
|
}
|
|
26351
26381
|
});
|
|
26352
26382
|
|
|
26353
|
-
const FSettings = _sfc_main$
|
|
26383
|
+
const FSettings = _sfc_main$s;
|
|
26354
26384
|
|
|
26355
|
-
var _sfc_main$
|
|
26385
|
+
var _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
26356
26386
|
...{
|
|
26357
26387
|
name: "FModifyRecord"
|
|
26358
26388
|
},
|
|
@@ -26615,7 +26645,304 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
26615
26645
|
}
|
|
26616
26646
|
});
|
|
26617
26647
|
|
|
26618
|
-
const FModifyRecord = _sfc_main$
|
|
26648
|
+
const FModifyRecord = _sfc_main$r;
|
|
26649
|
+
|
|
26650
|
+
var _sfc_main$q = /* @__PURE__ */ defineComponent({
|
|
26651
|
+
...{
|
|
26652
|
+
name: "Fminputdropdown"
|
|
26653
|
+
},
|
|
26654
|
+
__name: "index",
|
|
26655
|
+
props: /* @__PURE__ */ mergeModels({
|
|
26656
|
+
//数据
|
|
26657
|
+
optionData: {
|
|
26658
|
+
type: Array,
|
|
26659
|
+
default: []
|
|
26660
|
+
},
|
|
26661
|
+
/**
|
|
26662
|
+
* 值的属性值
|
|
26663
|
+
*/
|
|
26664
|
+
bvalue: {
|
|
26665
|
+
type: String,
|
|
26666
|
+
default: "id"
|
|
26667
|
+
},
|
|
26668
|
+
/**
|
|
26669
|
+
* 值的属性标签
|
|
26670
|
+
*/
|
|
26671
|
+
blabel: {
|
|
26672
|
+
type: String,
|
|
26673
|
+
default: "name"
|
|
26674
|
+
},
|
|
26675
|
+
placeholder: {
|
|
26676
|
+
type: String,
|
|
26677
|
+
default: "\u8BF7\u9009\u62E9"
|
|
26678
|
+
},
|
|
26679
|
+
inputWidth: {
|
|
26680
|
+
type: String,
|
|
26681
|
+
default: "40%"
|
|
26682
|
+
},
|
|
26683
|
+
dropWidth: {
|
|
26684
|
+
type: String,
|
|
26685
|
+
default: "90px"
|
|
26686
|
+
},
|
|
26687
|
+
dropHeight: {
|
|
26688
|
+
type: String,
|
|
26689
|
+
default: "180px"
|
|
26690
|
+
},
|
|
26691
|
+
/**
|
|
26692
|
+
* api service name
|
|
26693
|
+
*/
|
|
26694
|
+
apiService: {
|
|
26695
|
+
type: String,
|
|
26696
|
+
default: "baseData"
|
|
26697
|
+
},
|
|
26698
|
+
/**
|
|
26699
|
+
* api service 下的方法
|
|
26700
|
+
*/
|
|
26701
|
+
apiAction: {
|
|
26702
|
+
type: String,
|
|
26703
|
+
default: "baseDataList"
|
|
26704
|
+
},
|
|
26705
|
+
/**
|
|
26706
|
+
* 基础编码 自动获取数据
|
|
26707
|
+
*/
|
|
26708
|
+
basecode: {
|
|
26709
|
+
type: String,
|
|
26710
|
+
default: ""
|
|
26711
|
+
},
|
|
26712
|
+
/**
|
|
26713
|
+
* 基础编码 多个编码合在一起调用
|
|
26714
|
+
*/
|
|
26715
|
+
multibasecode: {
|
|
26716
|
+
type: Array,
|
|
26717
|
+
default: []
|
|
26718
|
+
},
|
|
26719
|
+
/**
|
|
26720
|
+
* 是否默认加载数据
|
|
26721
|
+
*/
|
|
26722
|
+
autoLoadData: {
|
|
26723
|
+
type: Boolean,
|
|
26724
|
+
default: true
|
|
26725
|
+
}
|
|
26726
|
+
}, {
|
|
26727
|
+
"id": { default: 0, required: false },
|
|
26728
|
+
"idModifiers": {},
|
|
26729
|
+
"name": { default: "", required: false },
|
|
26730
|
+
"nameModifiers": {}
|
|
26731
|
+
}),
|
|
26732
|
+
emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
|
|
26733
|
+
setup(__props, { emit: __emit }) {
|
|
26734
|
+
const modeValueId = useModel(__props, "id");
|
|
26735
|
+
const modeValueName = useModel(__props, "name");
|
|
26736
|
+
const props = __props;
|
|
26737
|
+
const state = reactive({
|
|
26738
|
+
optionData: props.optionData
|
|
26739
|
+
});
|
|
26740
|
+
const emit = __emit;
|
|
26741
|
+
const handCommand = (command) => {
|
|
26742
|
+
const fitem = state.optionData.find((item) => item[props.bvalue] === command);
|
|
26743
|
+
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
26744
|
+
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
26745
|
+
emit("change", fitem);
|
|
26746
|
+
};
|
|
26747
|
+
const handelChange = (val) => {
|
|
26748
|
+
emit("change", val);
|
|
26749
|
+
};
|
|
26750
|
+
onMounted(async () => {
|
|
26751
|
+
if (props.optionData.length > 0) {
|
|
26752
|
+
state.optionData = props.optionData;
|
|
26753
|
+
}
|
|
26754
|
+
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
26755
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26756
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
26757
|
+
}
|
|
26758
|
+
});
|
|
26759
|
+
const handRestdata = async () => {
|
|
26760
|
+
if (props.basecode && props.basecode != "") {
|
|
26761
|
+
const useBaseApi = usefminputdropdownstore();
|
|
26762
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
26763
|
+
}
|
|
26764
|
+
};
|
|
26765
|
+
return (_ctx, _cache) => {
|
|
26766
|
+
const _component_el_icon = resolveComponent("el-icon");
|
|
26767
|
+
const _component_el_input = resolveComponent("el-input");
|
|
26768
|
+
const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
|
|
26769
|
+
const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
|
|
26770
|
+
const _component_el_dropdown = resolveComponent("el-dropdown");
|
|
26771
|
+
return openBlock(), createBlock(_component_el_dropdown, {
|
|
26772
|
+
class: "fminputdropdown",
|
|
26773
|
+
placement: "bottom",
|
|
26774
|
+
trigger: "click",
|
|
26775
|
+
style: { "width": "100%" },
|
|
26776
|
+
onCommand: handCommand
|
|
26777
|
+
}, {
|
|
26778
|
+
dropdown: withCtx(() => [
|
|
26779
|
+
createVNode(_component_el_dropdown_menu, {
|
|
26780
|
+
style: normalizeStyle({ width: __props.dropWidth, height: __props.dropHeight })
|
|
26781
|
+
}, {
|
|
26782
|
+
default: withCtx(() => [
|
|
26783
|
+
(openBlock(true), createElementBlock(
|
|
26784
|
+
Fragment,
|
|
26785
|
+
null,
|
|
26786
|
+
renderList(state.optionData, (item, index) => {
|
|
26787
|
+
return openBlock(), createBlock(_component_el_dropdown_item, {
|
|
26788
|
+
key: index,
|
|
26789
|
+
command: item[__props.bvalue],
|
|
26790
|
+
divided: ""
|
|
26791
|
+
}, {
|
|
26792
|
+
default: withCtx(() => [
|
|
26793
|
+
createTextVNode(
|
|
26794
|
+
toDisplayString(item[__props.blabel]),
|
|
26795
|
+
1
|
|
26796
|
+
/* TEXT */
|
|
26797
|
+
)
|
|
26798
|
+
]),
|
|
26799
|
+
_: 2
|
|
26800
|
+
/* DYNAMIC */
|
|
26801
|
+
}, 1032, ["command"]);
|
|
26802
|
+
}),
|
|
26803
|
+
128
|
|
26804
|
+
/* KEYED_FRAGMENT */
|
|
26805
|
+
))
|
|
26806
|
+
]),
|
|
26807
|
+
_: 1
|
|
26808
|
+
/* STABLE */
|
|
26809
|
+
}, 8, ["style"])
|
|
26810
|
+
]),
|
|
26811
|
+
default: withCtx(() => [
|
|
26812
|
+
createVNode(_component_el_input, {
|
|
26813
|
+
modelValue: modeValueName.value,
|
|
26814
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
26815
|
+
placeholder: props.placeholder,
|
|
26816
|
+
style: normalizeStyle({ width: __props.inputWidth }),
|
|
26817
|
+
onChange: handelChange
|
|
26818
|
+
}, {
|
|
26819
|
+
append: withCtx(() => [
|
|
26820
|
+
createVNode(_component_el_icon, {
|
|
26821
|
+
color: "#13c2c2",
|
|
26822
|
+
onClick: handRestdata
|
|
26823
|
+
}, {
|
|
26824
|
+
default: withCtx(() => [
|
|
26825
|
+
createVNode(unref(RefreshLeft))
|
|
26826
|
+
]),
|
|
26827
|
+
_: 1
|
|
26828
|
+
/* STABLE */
|
|
26829
|
+
})
|
|
26830
|
+
]),
|
|
26831
|
+
_: 1
|
|
26832
|
+
/* STABLE */
|
|
26833
|
+
}, 8, ["modelValue", "placeholder", "style"])
|
|
26834
|
+
]),
|
|
26835
|
+
_: 1
|
|
26836
|
+
/* STABLE */
|
|
26837
|
+
});
|
|
26838
|
+
};
|
|
26839
|
+
}
|
|
26840
|
+
});
|
|
26841
|
+
|
|
26842
|
+
const Fminputdropdown = _sfc_main$q;
|
|
26843
|
+
|
|
26844
|
+
var _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
26845
|
+
...{ name: "FmInputNumber" },
|
|
26846
|
+
__name: "index",
|
|
26847
|
+
props: /* @__PURE__ */ mergeModels({
|
|
26848
|
+
placeholder: {
|
|
26849
|
+
type: String,
|
|
26850
|
+
default: "\u8BF7\u8F93\u5165\u91D1\u989D"
|
|
26851
|
+
},
|
|
26852
|
+
defaultValue: {
|
|
26853
|
+
type: Number,
|
|
26854
|
+
default: -1
|
|
26855
|
+
},
|
|
26856
|
+
bType: {
|
|
26857
|
+
type: String,
|
|
26858
|
+
default: "money"
|
|
26859
|
+
}
|
|
26860
|
+
}, {
|
|
26861
|
+
"modelValue": { required: true, default: 0 },
|
|
26862
|
+
"modelModifiers": {}
|
|
26863
|
+
}),
|
|
26864
|
+
emits: ["update:modelValue"],
|
|
26865
|
+
setup(__props) {
|
|
26866
|
+
const modelValue = useModel(__props, "modelValue");
|
|
26867
|
+
const props = __props;
|
|
26868
|
+
const handleInput = (val) => {
|
|
26869
|
+
if (val == "" && props.defaultValue != -1) {
|
|
26870
|
+
modelValue.value = props.defaultValue;
|
|
26871
|
+
return;
|
|
26872
|
+
}
|
|
26873
|
+
if (props.bType == "number") {
|
|
26874
|
+
modelValue.value = parseInt(val);
|
|
26875
|
+
return;
|
|
26876
|
+
}
|
|
26877
|
+
let cleaned = String(val).replace(/[^\d.]/g, "");
|
|
26878
|
+
const dotIndex = cleaned.indexOf(".");
|
|
26879
|
+
if (dotIndex !== -1) {
|
|
26880
|
+
const before = cleaned.substring(0, dotIndex + 1);
|
|
26881
|
+
const after = cleaned.substring(dotIndex + 1).replace(/\./g, "");
|
|
26882
|
+
cleaned = before + after;
|
|
26883
|
+
}
|
|
26884
|
+
if (cleaned.startsWith(".")) {
|
|
26885
|
+
cleaned = "0" + cleaned;
|
|
26886
|
+
}
|
|
26887
|
+
const parts = cleaned.split(".");
|
|
26888
|
+
parts[0] = parts[0].replace(/^0+/, "") || "0";
|
|
26889
|
+
cleaned = parts.join(".");
|
|
26890
|
+
if (cleaned.includes(".")) {
|
|
26891
|
+
const [intPart, decPart] = cleaned.split(".");
|
|
26892
|
+
cleaned = `${intPart}.${decPart.substring(0, 2)}`;
|
|
26893
|
+
}
|
|
26894
|
+
modelValue.value = cleaned;
|
|
26895
|
+
};
|
|
26896
|
+
watch(() => modelValue.value, (newvalue, oldValue) => {
|
|
26897
|
+
if (newvalue == "") {
|
|
26898
|
+
modelValue.value = props.defaultValue == -1 ? 0 : props.defaultValue;
|
|
26899
|
+
}
|
|
26900
|
+
});
|
|
26901
|
+
return (_ctx, _cache) => {
|
|
26902
|
+
const _component_el_input = resolveComponent("el-input");
|
|
26903
|
+
return openBlock(), createBlock(_component_el_input, {
|
|
26904
|
+
modelValue: modelValue.value,
|
|
26905
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
|
|
26906
|
+
placeholder: __props.placeholder,
|
|
26907
|
+
onInput: handleInput
|
|
26908
|
+
}, createSlots({
|
|
26909
|
+
_: 2
|
|
26910
|
+
/* DYNAMIC */
|
|
26911
|
+
}, [
|
|
26912
|
+
_ctx.$slots.prepend ? {
|
|
26913
|
+
name: "prepend",
|
|
26914
|
+
fn: withCtx(() => [
|
|
26915
|
+
renderSlot(_ctx.$slots, "prepend")
|
|
26916
|
+
]),
|
|
26917
|
+
key: "0"
|
|
26918
|
+
} : void 0,
|
|
26919
|
+
_ctx.$slots.append ? {
|
|
26920
|
+
name: "append",
|
|
26921
|
+
fn: withCtx(() => [
|
|
26922
|
+
renderSlot(_ctx.$slots, "append")
|
|
26923
|
+
]),
|
|
26924
|
+
key: "1"
|
|
26925
|
+
} : void 0,
|
|
26926
|
+
_ctx.$slots.prefix ? {
|
|
26927
|
+
name: "prefix",
|
|
26928
|
+
fn: withCtx(() => [
|
|
26929
|
+
renderSlot(_ctx.$slots, "prefix")
|
|
26930
|
+
]),
|
|
26931
|
+
key: "2"
|
|
26932
|
+
} : void 0,
|
|
26933
|
+
_ctx.$slots.suffix ? {
|
|
26934
|
+
name: "suffix",
|
|
26935
|
+
fn: withCtx(() => [
|
|
26936
|
+
renderSlot(_ctx.$slots, "suffix")
|
|
26937
|
+
]),
|
|
26938
|
+
key: "3"
|
|
26939
|
+
} : void 0
|
|
26940
|
+
]), 1032, ["modelValue", "placeholder"]);
|
|
26941
|
+
};
|
|
26942
|
+
}
|
|
26943
|
+
});
|
|
26944
|
+
|
|
26945
|
+
const FmInputNumber = _sfc_main$p;
|
|
26619
26946
|
|
|
26620
26947
|
const makeInstaller = (components = []) => {
|
|
26621
26948
|
const install = (app) => {
|
|
@@ -27107,6 +27434,7 @@ const FmCascader = _sfc_main$n;
|
|
|
27107
27434
|
const plugins = [
|
|
27108
27435
|
FButton,
|
|
27109
27436
|
FInput,
|
|
27437
|
+
Fminputdropdown,
|
|
27110
27438
|
FLayoutPage,
|
|
27111
27439
|
FLayoutPageItem,
|
|
27112
27440
|
FSelect,
|
|
@@ -27118,7 +27446,8 @@ const plugins = [
|
|
|
27118
27446
|
FSettings,
|
|
27119
27447
|
FModifyRecord,
|
|
27120
27448
|
FmTree,
|
|
27121
|
-
FmCascader
|
|
27449
|
+
FmCascader,
|
|
27450
|
+
FmInputNumber
|
|
27122
27451
|
];
|
|
27123
27452
|
|
|
27124
27453
|
var installer = makeInstaller([...plugins]);
|
|
@@ -30988,4 +31317,4 @@ var upgradeInfo = /*#__PURE__*/Object.freeze({
|
|
|
30988
31317
|
default: _sfc_main
|
|
30989
31318
|
});
|
|
30990
31319
|
|
|
30991
|
-
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|
|
31320
|
+
export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, usefminputdropdownstore, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
|