@fmdevui/fm-dev 1.0.70 → 1.0.71

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/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- /*! fm-dev v1.0.70 */
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, unref, resolveDirective, resolveDynamicComponent, markRaw, toRaw as toRaw$1, hasInjectionContext, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs } from 'vue';
1
+ /*! fm-dev v1.0.71 */
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, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, resolveDynamicComponent } from 'vue';
3
3
  import crypto from 'crypto';
4
4
  import require$$0 from 'url';
5
5
  import require$$1 from 'http';
@@ -8427,6 +8427,17 @@ function formatAxis(param, t) {
8427
8427
  else if (hour < 22) return getMessage("eveningGreeting");
8428
8428
  else return getMessage("nightGreeting");
8429
8429
  }
8430
+ function getBdate(num = 1) {
8431
+ const firstDay = /* @__PURE__ */ new Date();
8432
+ firstDay.setDate(num);
8433
+ return formatDate(firstDay, "YYYY-mm-dd");
8434
+ }
8435
+ function getEdate(num = 0) {
8436
+ const lastDay = /* @__PURE__ */ new Date();
8437
+ lastDay.setMonth(lastDay.getMonth() + 1, 0);
8438
+ if (num > 0) lastDay.setDate(num);
8439
+ return formatDate(lastDay, "YYYY-mm-dd");
8440
+ }
8430
8441
 
8431
8442
  function useChangeColor() {
8432
8443
  const hexToRgb = (str) => {
@@ -29923,1462 +29934,561 @@ var svg = /*#__PURE__*/Object.freeze({
29923
29934
  ZoomOut: zoom_out_default
29924
29935
  });
29925
29936
 
29926
- var _sfc_main$3 = /* @__PURE__ */ defineComponent({
29927
- ...{
29928
- name: "Fminputdropdown"
29929
- },
29930
- __name: "index",
29931
- props: /* @__PURE__ */ mergeModels({
29932
- //数据
29933
- optionData: {
29934
- type: Array,
29935
- default: []
29936
- },
29937
- /**
29938
- * 值的属性值
29939
- */
29940
- bvalue: {
29941
- type: String,
29942
- default: "id"
29943
- },
29944
- /**
29945
- * 值的属性标签
29946
- */
29947
- blabel: {
29948
- type: String,
29949
- default: "name"
29950
- },
29951
- placeholder: {
29952
- type: String,
29953
- default: "\u8BF7\u9009\u62E9"
29954
- },
29955
- inputWidth: {
29956
- type: String,
29957
- default: "40%"
29958
- },
29959
- dropWidth: {
29960
- type: String,
29961
- default: "90px"
29962
- },
29963
- /**
29964
- * api service name
29965
- */
29966
- apiService: {
29967
- type: String,
29968
- default: "baseData"
29969
- },
29970
- /**
29971
- * api service 下的方法
29972
- */
29973
- apiAction: {
29974
- type: String,
29975
- default: "baseDataList"
29976
- },
29977
- /**
29978
- * 基础编码 自动获取数据
29979
- */
29980
- basecode: {
29981
- type: String,
29982
- default: ""
29983
- }
29984
- }, {
29985
- "id": {
29986
- type: Number,
29987
- default: 0
29988
- },
29989
- "idModifiers": {},
29990
- "name": {
29991
- type: String,
29992
- default: ""
29993
- },
29994
- "nameModifiers": {}
29995
- }),
29996
- emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
29997
- setup(__props, { emit: __emit }) {
29998
- const modeValueId = useModel(__props, "id");
29999
- const modeValueName = useModel(__props, "name");
30000
- const props = __props;
30001
- const state = reactive({
30002
- optionData: props.optionData
30003
- });
30004
- const emit = __emit;
30005
- const handCommand = (command) => {
30006
- const fitem = state.optionData.find((item) => item[props.bvalue] === command);
30007
- modeValueId.value = fitem != null ? [props.bvalue] : 0;
30008
- modeValueName.value = fitem != null ? fitem[props.blabel] : "";
30009
- emit("change", fitem);
30010
- };
30011
- onMounted(async () => {
30012
- state.optionData = props.optionData;
30013
- if (props.basecode && props.basecode != "") {
30014
- const res = await useBaseApi(props.apiService).get(null, props.apiAction + "/?codetype=" + props.basecode);
30015
- state.optionData = res.data.result ?? [];
30016
- }
30017
- });
30018
- const handRestdata = async () => {
30019
- if (props.basecode && props.basecode != "") {
30020
- const res = await useBaseApi(props.apiService).get(null, props.apiAction + "/?codetype=" + props.basecode);
30021
- state.optionData = res.data.result ?? [];
30022
- }
30023
- };
30024
- return (_ctx, _cache) => {
30025
- const _component_el_icon = resolveComponent("el-icon");
30026
- const _component_el_input = resolveComponent("el-input");
30027
- const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
30028
- const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
30029
- const _component_el_dropdown = resolveComponent("el-dropdown");
30030
- return openBlock(), createBlock(_component_el_dropdown, {
30031
- class: "fminputdropdown",
30032
- placement: "bottom",
30033
- trigger: "click",
30034
- style: { "width": "100%" },
30035
- onCommand: handCommand
30036
- }, {
30037
- dropdown: withCtx(() => [
30038
- createVNode(_component_el_dropdown_menu, {
30039
- style: normalizeStyle({ width: __props.dropWidth })
30040
- }, {
30041
- default: withCtx(() => [
30042
- (openBlock(true), createElementBlock(
30043
- Fragment,
30044
- null,
30045
- renderList(state.optionData, (item, index) => {
30046
- return openBlock(), createBlock(_component_el_dropdown_item, {
30047
- key: index,
30048
- command: item[__props.bvalue],
30049
- divided: ""
30050
- }, {
30051
- default: withCtx(() => [
30052
- createTextVNode(
30053
- toDisplayString$1(item[__props.blabel]),
30054
- 1
30055
- /* TEXT */
30056
- )
30057
- ]),
30058
- _: 2
30059
- /* DYNAMIC */
30060
- }, 1032, ["command"]);
30061
- }),
30062
- 128
30063
- /* KEYED_FRAGMENT */
30064
- ))
30065
- ]),
30066
- _: 1
30067
- /* STABLE */
30068
- }, 8, ["style"])
30069
- ]),
30070
- default: withCtx(() => [
30071
- createVNode(_component_el_input, {
30072
- modelValue: modeValueName.value,
30073
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
30074
- placeholder: props.placeholder,
30075
- style: normalizeStyle({ width: __props.inputWidth })
30076
- }, {
30077
- append: withCtx(() => [
30078
- createVNode(_component_el_icon, {
30079
- color: "#13c2c2",
30080
- onClick: handRestdata
30081
- }, {
30082
- default: withCtx(() => [
30083
- createVNode(unref(refresh_left_default))
30084
- ]),
30085
- _: 1
30086
- /* STABLE */
30087
- })
30088
- ]),
30089
- _: 1
30090
- /* STABLE */
30091
- }, 8, ["modelValue", "placeholder", "style"])
30092
- ]),
30093
- _: 1
30094
- /* STABLE */
30095
- });
30096
- };
29937
+ var __create$1 = Object.create;
29938
+ var __defProp$1 = Object.defineProperty;
29939
+ var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
29940
+ var __getOwnPropNames$1 = Object.getOwnPropertyNames;
29941
+ var __getProtoOf$1 = Object.getPrototypeOf;
29942
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
29943
+ var __esm$1 = (fn, res) => function __init() {
29944
+ return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
29945
+ };
29946
+ var __commonJS$1 = (cb, mod) => function __require() {
29947
+ return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
29948
+ };
29949
+ var __copyProps$1 = (to, from, except, desc) => {
29950
+ if (from && typeof from === "object" || typeof from === "function") {
29951
+ for (let key of __getOwnPropNames$1(from))
29952
+ if (!__hasOwnProp$1.call(to, key) && key !== except)
29953
+ __defProp$1(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable });
29954
+ }
29955
+ return to;
29956
+ };
29957
+ var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
29958
+ // If the importer is in node compatibility mode or this is not an ESM
29959
+ // file that has been converted to a CommonJS file using a Babel-
29960
+ // compatible transform (i.e. "__esModule" has not been set), then set
29961
+ // "default" to the CommonJS "module.exports" for node compatibility.
29962
+ __defProp$1(target2, "default", { value: mod, enumerable: true }) ,
29963
+ mod
29964
+ ));
29965
+
29966
+ // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
29967
+ var init_esm_shims$1 = __esm$1({
29968
+ "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
30097
29969
  }
30098
29970
  });
30099
29971
 
30100
- const _hoisted_1$1 = { style: { "padding": "5px" } };
30101
- const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
30102
- const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
30103
- const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
30104
- const _hoisted_5 = { style: { "margin-bottom": "45px" } };
30105
- var _sfc_main$2 = /* @__PURE__ */ defineComponent({
30106
- ...{
30107
- name: "FmTree"
30108
- },
30109
- __name: "index",
30110
- props: {
30111
- checkStrictly: { type: Boolean, default: true },
30112
- /**
30113
- * api service name
30114
- */
30115
- apiService: {
30116
- type: String,
30117
- default: "planOrder"
30118
- },
30119
- /**
30120
- * api service 下的方法
30121
- */
30122
- apiAction: {
30123
- type: String,
30124
- default: "autoQuerySearch"
30125
- },
30126
- paras: {
30127
- type: Object,
30128
- default: null
30129
- },
30130
- nodeKey: {
30131
- type: String,
30132
- default: "id"
30133
- },
30134
- defaultProps: {
30135
- type: Object,
30136
- default: { children: "children", label: "name" }
29972
+ // ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js
29973
+ var require_rfdc = __commonJS$1({
29974
+ "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
29975
+ init_esm_shims$1();
29976
+ module.exports = rfdc2;
29977
+ function copyBuffer(cur) {
29978
+ if (cur instanceof Buffer) {
29979
+ return Buffer.from(cur);
29980
+ }
29981
+ return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
30137
29982
  }
30138
- },
30139
- emits: ["node-click"],
30140
- setup(__props, { expose: __expose, emit: __emit }) {
30141
- const props = __props;
30142
- const filterText = ref("");
30143
- const treeRef = ref();
30144
- const state = reactive({
30145
- loading: false,
30146
- folderData: [],
30147
- isShowCheckbox: false,
30148
- strictly: false
30149
- });
30150
- onMounted(async () => {
30151
- await fetchTreeData();
30152
- });
30153
- watch(filterText, (val) => {
30154
- treeRef.value.filter(val);
30155
- });
30156
- const fetchTreeData = async (showLoading = true) => {
30157
- if (showLoading) state.loading = true;
30158
- var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
30159
- state.folderData = res.data.result ?? [];
30160
- if (showLoading) state.loading = false;
30161
- return res.data.result ?? [];
30162
- };
30163
- const getCheckedKeys = () => {
30164
- return treeRef.value.getCheckedKeys();
30165
- };
30166
- const filterNode = (value, data) => {
30167
- if (!value) return true;
30168
- return data.name.includes(value);
30169
- };
30170
- const handleCommand = async (command) => {
30171
- if ("expandAll" == command) {
30172
- for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
30173
- treeRef.value.store._getAllNodes()[i].expanded = true;
29983
+ function rfdc2(opts) {
29984
+ opts = opts || {};
29985
+ if (opts.circles) return rfdcCircles(opts);
29986
+ const constructorHandlers = /* @__PURE__ */ new Map();
29987
+ constructorHandlers.set(Date, (o) => new Date(o));
29988
+ constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
29989
+ constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
29990
+ if (opts.constructorHandlers) {
29991
+ for (const handler2 of opts.constructorHandlers) {
29992
+ constructorHandlers.set(handler2[0], handler2[1]);
30174
29993
  }
30175
- } else if ("collapseAll" == command) {
30176
- for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
30177
- treeRef.value.store._getAllNodes()[i].expanded = false;
29994
+ }
29995
+ let handler = null;
29996
+ return opts.proto ? cloneProto : clone;
29997
+ function cloneArray(a, fn) {
29998
+ const keys = Object.keys(a);
29999
+ const a2 = new Array(keys.length);
30000
+ for (let i = 0; i < keys.length; i++) {
30001
+ const k = keys[i];
30002
+ const cur = a[k];
30003
+ if (typeof cur !== "object" || cur === null) {
30004
+ a2[k] = cur;
30005
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30006
+ a2[k] = handler(cur, fn);
30007
+ } else if (ArrayBuffer.isView(cur)) {
30008
+ a2[k] = copyBuffer(cur);
30009
+ } else {
30010
+ a2[k] = fn(cur);
30011
+ }
30178
30012
  }
30179
- } else if ("refresh" == command) {
30180
- fetchTreeData();
30181
- } else if ("rootNode" == command) {
30182
- treeRef.value?.setCurrentKey();
30183
- emit("node-click", { id: 0, name: "" });
30013
+ return a2;
30184
30014
  }
30185
- };
30186
- const emit = __emit;
30187
- const nodeClick = (node) => {
30188
- emit("node-click", { id: node.id, name: node.name });
30189
- };
30190
- const setCurrentKey = (key, shouldAutoExpandParent) => {
30191
- treeRef.value?.setCurrentKey(key, shouldAutoExpandParent);
30192
- };
30193
- __expose({ fetchTreeData, getCheckedKeys, setCurrentKey });
30194
- return (_ctx, _cache) => {
30195
- const _component_el_input = resolveComponent("el-input");
30196
- const _component_el_checkbox = resolveComponent("el-checkbox");
30197
- const _component_el_icon = resolveComponent("el-icon");
30198
- const _component_el_button = resolveComponent("el-button");
30199
- const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
30200
- const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
30201
- const _component_el_dropdown = resolveComponent("el-dropdown");
30202
- const _component_el_tree = resolveComponent("el-tree");
30203
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
30204
- const _component_el_card = resolveComponent("el-card");
30205
- const _directive_loading = resolveDirective("loading");
30206
- return openBlock(), createBlock(_component_el_card, {
30207
- shadow: "hover",
30208
- "body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
30209
- style: { "height": "100%" }
30210
- }, {
30211
- header: withCtx(() => [
30212
- createElementVNode("div", _hoisted_1$1, [
30213
- createElementVNode("div", _hoisted_2, [
30214
- createElementVNode("div", _hoisted_3, [
30215
- createVNode(_component_el_input, {
30216
- "prefix-icon": unref(search_default),
30217
- modelValue: filterText.value,
30218
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
30219
- modelModifiers: { lazy: true },
30220
- clearable: "",
30221
- placeholder: "\u7C7B\u578B\u540D\u79F0"
30222
- }, null, 8, ["prefix-icon", "modelValue"])
30223
- ]),
30224
- createElementVNode("div", _hoisted_4, [
30225
- !props.checkStrictly && state.isShowCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
30226
- key: 0,
30227
- modelValue: state.strictly,
30228
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.strictly = $event),
30229
- label: "\u8054\u52A8",
30230
- style: { "margin-left": "8px" },
30231
- border: ""
30232
- }, null, 8, ["modelValue"])) : createCommentVNode("v-if", true),
30233
- createVNode(_component_el_dropdown, { onCommand: handleCommand }, {
30234
- dropdown: withCtx(() => [
30235
- createVNode(_component_el_dropdown_menu, null, {
30236
- default: withCtx(() => [
30237
- createVNode(_component_el_dropdown_item, { command: "expandAll" }, {
30238
- default: withCtx(() => _cache[2] || (_cache[2] = [
30239
- createTextVNode("\u5168\u90E8\u5C55\u5F00")
30240
- ])),
30241
- _: 1,
30242
- __: [2]
30243
- }),
30244
- createVNode(_component_el_dropdown_item, { command: "collapseAll" }, {
30245
- default: withCtx(() => _cache[3] || (_cache[3] = [
30246
- createTextVNode("\u5168\u90E8\u6298\u53E0")
30247
- ])),
30248
- _: 1,
30249
- __: [3]
30250
- }),
30251
- createVNode(_component_el_dropdown_item, { command: "rootNode" }, {
30252
- default: withCtx(() => _cache[4] || (_cache[4] = [
30253
- createTextVNode("\u6839\u8282\u70B9")
30254
- ])),
30255
- _: 1,
30256
- __: [4]
30257
- }),
30258
- createVNode(_component_el_dropdown_item, { command: "refresh" }, {
30259
- default: withCtx(() => _cache[5] || (_cache[5] = [
30260
- createTextVNode("\u5237\u65B0")
30261
- ])),
30262
- _: 1,
30263
- __: [5]
30264
- })
30265
- ]),
30266
- _: 1
30267
- /* STABLE */
30268
- })
30269
- ]),
30270
- default: withCtx(() => [
30271
- createVNode(_component_el_button, { style: { "margin-left": "8px", "width": "34px" } }, {
30272
- default: withCtx(() => [
30273
- createVNode(_component_el_icon, { class: "el-icon--center" }, {
30274
- default: withCtx(() => [
30275
- createVNode(unref(more_filled_default))
30276
- ]),
30277
- _: 1
30278
- /* STABLE */
30279
- })
30280
- ]),
30281
- _: 1
30282
- /* STABLE */
30283
- })
30284
- ]),
30285
- _: 1
30286
- /* STABLE */
30287
- })
30288
- ])
30289
- ])
30290
- ])
30291
- ]),
30292
- default: withCtx(() => [
30293
- withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
30294
- createVNode(_component_el_scrollbar, null, {
30295
- default: withCtx(() => [
30296
- createVNode(_component_el_tree, {
30297
- ref_key: "treeRef",
30298
- ref: treeRef,
30299
- class: "filter-tree",
30300
- data: state.folderData,
30301
- "node-key": __props.nodeKey,
30302
- props: __props.defaultProps,
30303
- "filter-node-method": filterNode,
30304
- onNodeClick: nodeClick,
30305
- "show-checkbox": state.isShowCheckbox,
30306
- "default-expand-all": "",
30307
- "highlight-current": "",
30308
- "check-strictly": !state.strictly
30309
- }, {
30310
- default: withCtx(({ node }) => [
30311
- createCommentVNode(' <el-icon v-if="node.level < 4" size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-FolderOpened /></el-icon>\r\n <el-icon v-else size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Folder /></el-icon> '),
30312
- createTextVNode(
30313
- " " + toDisplayString$1(node.label),
30314
- 1
30315
- /* TEXT */
30316
- )
30317
- ]),
30318
- _: 1
30319
- /* STABLE */
30320
- }, 8, ["data", "node-key", "props", "show-checkbox", "check-strictly"])
30321
- ]),
30322
- _: 1
30323
- /* STABLE */
30324
- })
30325
- ])), [
30326
- [_directive_loading, state.loading]
30327
- ])
30328
- ]),
30329
- _: 1
30330
- /* STABLE */
30331
- });
30332
- };
30333
- }
30334
- });
30335
-
30336
- const _hoisted_1 = ["src"];
30337
- var _sfc_main$1 = /* @__PURE__ */ defineComponent({
30338
- ...{
30339
- name: "svgIcon"
30340
- },
30341
- __name: "svgicon",
30342
- props: {
30343
- // svg 图标组件名字
30344
- name: {
30345
- type: String
30346
- },
30347
- // svg 大小
30348
- size: {
30349
- type: Number,
30350
- default: () => 14
30351
- },
30352
- // svg 颜色
30353
- color: {
30354
- type: String
30355
- }
30356
- },
30357
- setup(__props) {
30358
- const props = __props;
30359
- const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
30360
- const getIconName = computed(() => {
30361
- return props?.name;
30362
- });
30363
- const isShowIconSvg = computed(() => {
30364
- return props?.name?.startsWith("ele-");
30365
- });
30366
- const isShowIconImg = computed(() => {
30367
- return linesString.find((str) => props.name?.startsWith(str));
30368
- });
30369
- const setIconSvgStyle = computed(() => {
30370
- return `font-size: ${props.size}px;color: ${props.color};`;
30371
- });
30372
- const setIconImgOutStyle = computed(() => {
30373
- return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
30374
- });
30375
- const setIconSvgInsStyle = computed(() => {
30376
- const filterStyle = [];
30377
- const compatibles = ["-webkit", "-ms", "-o", "-moz"];
30378
- compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
30379
- return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
30380
- });
30381
- return (_ctx, _cache) => {
30382
- return isShowIconSvg.value ? (openBlock(), createElementBlock(
30383
- "i",
30384
- {
30385
- key: 0,
30386
- class: "el-icon",
30387
- style: normalizeStyle(setIconSvgStyle.value)
30388
- },
30389
- [
30390
- (openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
30391
- ],
30392
- 4
30393
- /* STYLE */
30394
- )) : isShowIconImg.value ? (openBlock(), createElementBlock(
30395
- "div",
30396
- {
30397
- key: 1,
30398
- style: normalizeStyle(setIconImgOutStyle.value)
30399
- },
30400
- [
30401
- createElementVNode("img", {
30402
- src: getIconName.value,
30403
- style: normalizeStyle(setIconSvgInsStyle.value)
30404
- }, null, 12, _hoisted_1)
30405
- ],
30406
- 4
30407
- /* STYLE */
30408
- )) : (openBlock(), createElementBlock(
30409
- "i",
30410
- {
30411
- key: 2,
30412
- class: normalizeClass(getIconName.value),
30413
- style: normalizeStyle(setIconSvgStyle.value)
30414
- },
30415
- null,
30416
- 6
30417
- /* CLASS, STYLE */
30418
- ));
30419
- };
30015
+ function clone(o) {
30016
+ if (typeof o !== "object" || o === null) return o;
30017
+ if (Array.isArray(o)) return cloneArray(o, clone);
30018
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30019
+ return handler(o, clone);
30020
+ }
30021
+ const o2 = {};
30022
+ for (const k in o) {
30023
+ if (Object.hasOwnProperty.call(o, k) === false) continue;
30024
+ const cur = o[k];
30025
+ if (typeof cur !== "object" || cur === null) {
30026
+ o2[k] = cur;
30027
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30028
+ o2[k] = handler(cur, clone);
30029
+ } else if (ArrayBuffer.isView(cur)) {
30030
+ o2[k] = copyBuffer(cur);
30031
+ } else {
30032
+ o2[k] = clone(cur);
30033
+ }
30034
+ }
30035
+ return o2;
30036
+ }
30037
+ function cloneProto(o) {
30038
+ if (typeof o !== "object" || o === null) return o;
30039
+ if (Array.isArray(o)) return cloneArray(o, cloneProto);
30040
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30041
+ return handler(o, cloneProto);
30042
+ }
30043
+ const o2 = {};
30044
+ for (const k in o) {
30045
+ const cur = o[k];
30046
+ if (typeof cur !== "object" || cur === null) {
30047
+ o2[k] = cur;
30048
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30049
+ o2[k] = handler(cur, cloneProto);
30050
+ } else if (ArrayBuffer.isView(cur)) {
30051
+ o2[k] = copyBuffer(cur);
30052
+ } else {
30053
+ o2[k] = cloneProto(cur);
30054
+ }
30055
+ }
30056
+ return o2;
30057
+ }
30058
+ }
30059
+ function rfdcCircles(opts) {
30060
+ const refs = [];
30061
+ const refsNew = [];
30062
+ const constructorHandlers = /* @__PURE__ */ new Map();
30063
+ constructorHandlers.set(Date, (o) => new Date(o));
30064
+ constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
30065
+ constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
30066
+ if (opts.constructorHandlers) {
30067
+ for (const handler2 of opts.constructorHandlers) {
30068
+ constructorHandlers.set(handler2[0], handler2[1]);
30069
+ }
30070
+ }
30071
+ let handler = null;
30072
+ return opts.proto ? cloneProto : clone;
30073
+ function cloneArray(a, fn) {
30074
+ const keys = Object.keys(a);
30075
+ const a2 = new Array(keys.length);
30076
+ for (let i = 0; i < keys.length; i++) {
30077
+ const k = keys[i];
30078
+ const cur = a[k];
30079
+ if (typeof cur !== "object" || cur === null) {
30080
+ a2[k] = cur;
30081
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30082
+ a2[k] = handler(cur, fn);
30083
+ } else if (ArrayBuffer.isView(cur)) {
30084
+ a2[k] = copyBuffer(cur);
30085
+ } else {
30086
+ const index = refs.indexOf(cur);
30087
+ if (index !== -1) {
30088
+ a2[k] = refsNew[index];
30089
+ } else {
30090
+ a2[k] = fn(cur);
30091
+ }
30092
+ }
30093
+ }
30094
+ return a2;
30095
+ }
30096
+ function clone(o) {
30097
+ if (typeof o !== "object" || o === null) return o;
30098
+ if (Array.isArray(o)) return cloneArray(o, clone);
30099
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30100
+ return handler(o, clone);
30101
+ }
30102
+ const o2 = {};
30103
+ refs.push(o);
30104
+ refsNew.push(o2);
30105
+ for (const k in o) {
30106
+ if (Object.hasOwnProperty.call(o, k) === false) continue;
30107
+ const cur = o[k];
30108
+ if (typeof cur !== "object" || cur === null) {
30109
+ o2[k] = cur;
30110
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30111
+ o2[k] = handler(cur, clone);
30112
+ } else if (ArrayBuffer.isView(cur)) {
30113
+ o2[k] = copyBuffer(cur);
30114
+ } else {
30115
+ const i = refs.indexOf(cur);
30116
+ if (i !== -1) {
30117
+ o2[k] = refsNew[i];
30118
+ } else {
30119
+ o2[k] = clone(cur);
30120
+ }
30121
+ }
30122
+ }
30123
+ refs.pop();
30124
+ refsNew.pop();
30125
+ return o2;
30126
+ }
30127
+ function cloneProto(o) {
30128
+ if (typeof o !== "object" || o === null) return o;
30129
+ if (Array.isArray(o)) return cloneArray(o, cloneProto);
30130
+ if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30131
+ return handler(o, cloneProto);
30132
+ }
30133
+ const o2 = {};
30134
+ refs.push(o);
30135
+ refsNew.push(o2);
30136
+ for (const k in o) {
30137
+ const cur = o[k];
30138
+ if (typeof cur !== "object" || cur === null) {
30139
+ o2[k] = cur;
30140
+ } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30141
+ o2[k] = handler(cur, cloneProto);
30142
+ } else if (ArrayBuffer.isView(cur)) {
30143
+ o2[k] = copyBuffer(cur);
30144
+ } else {
30145
+ const i = refs.indexOf(cur);
30146
+ if (i !== -1) {
30147
+ o2[k] = refsNew[i];
30148
+ } else {
30149
+ o2[k] = cloneProto(cur);
30150
+ }
30151
+ }
30152
+ }
30153
+ refs.pop();
30154
+ refsNew.pop();
30155
+ return o2;
30156
+ }
30157
+ }
30420
30158
  }
30421
30159
  });
30422
30160
 
30423
- function elSvg(app) {
30424
- const icons = svg;
30425
- for (const i in icons) {
30426
- if (!app._context.components[`ele-${icons[i].name}`]) {
30427
- app.component(`ele-${icons[i].name}`, icons[i]);
30428
- }
30161
+ // src/index.ts
30162
+ init_esm_shims$1();
30163
+
30164
+ // src/constants.ts
30165
+ init_esm_shims$1();
30166
+
30167
+ // src/env.ts
30168
+ init_esm_shims$1();
30169
+ var isBrowser = typeof navigator !== "undefined";
30170
+ var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
30171
+ typeof target.chrome !== "undefined" && !!target.chrome.devtools;
30172
+ isBrowser && target.self !== target.top;
30173
+ var _a$1;
30174
+ typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
30175
+
30176
+ // src/general.ts
30177
+ init_esm_shims$1();
30178
+ var import_rfdc = __toESM$1(require_rfdc());
30179
+ var classifyRE = /(?:^|[-_/])(\w)/g;
30180
+ function toUpper(_, c) {
30181
+ return c ? c.toUpperCase() : "";
30182
+ }
30183
+ function classify(str) {
30184
+ return str && `${str}`.replace(classifyRE, toUpper);
30185
+ }
30186
+ function basename(filename, ext) {
30187
+ let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
30188
+ if (normalizedFilename.endsWith(`index${ext}`)) {
30189
+ normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
30429
30190
  }
30430
- if (!app._context.components[`SvgIcon`]) {
30431
- app.component("SvgIcon", _sfc_main$1);
30191
+ const lastSlashIndex = normalizedFilename.lastIndexOf("/");
30192
+ const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
30193
+ {
30194
+ const extIndex = baseNameWithExt.lastIndexOf(ext);
30195
+ return baseNameWithExt.substring(0, extIndex);
30432
30196
  }
30433
30197
  }
30198
+ var deepClone = (0, import_rfdc.default)({ circles: true });
30434
30199
 
30435
- const FmTransfer = _sfc_main$8;
30436
- const FmNoticeBar = _sfc_main$7;
30437
- const FmDragImg = dragimg;
30438
- const Fmselect = _sfc_main$5;
30439
- const FmAutocomplete = _sfc_main$4;
30440
- const Fminputdropdown = _sfc_main$3;
30441
- const FmTree = _sfc_main$2;
30442
-
30443
- const makeInstaller = (components = []) => {
30444
- const install = (app) => {
30445
- components.forEach(
30446
- (component) => {
30447
- if (!app._context.components[component.name]) {
30448
- app.component(component.name, component);
30449
- }
30200
+ const DEBOUNCE_DEFAULTS = {
30201
+ trailing: true
30202
+ };
30203
+ function debounce(fn, wait = 25, options = {}) {
30204
+ options = { ...DEBOUNCE_DEFAULTS, ...options };
30205
+ if (!Number.isFinite(wait)) {
30206
+ throw new TypeError("Expected `wait` to be a finite number");
30207
+ }
30208
+ let leadingValue;
30209
+ let timeout;
30210
+ let resolveList = [];
30211
+ let currentPromise;
30212
+ let trailingArgs;
30213
+ const applyFn = (_this, args) => {
30214
+ currentPromise = _applyPromised(fn, _this, args);
30215
+ currentPromise.finally(() => {
30216
+ currentPromise = null;
30217
+ if (options.trailing && trailingArgs && !timeout) {
30218
+ const promise = applyFn(_this, trailingArgs);
30219
+ trailingArgs = null;
30220
+ return promise;
30450
30221
  }
30451
- );
30452
- if (app)
30453
- elSvg(app);
30222
+ });
30223
+ return currentPromise;
30454
30224
  };
30455
- return {
30456
- install
30225
+ return function(...args) {
30226
+ if (currentPromise) {
30227
+ if (options.trailing) {
30228
+ trailingArgs = args;
30229
+ }
30230
+ return currentPromise;
30231
+ }
30232
+ return new Promise((resolve) => {
30233
+ const shouldCallNow = !timeout && options.leading;
30234
+ clearTimeout(timeout);
30235
+ timeout = setTimeout(() => {
30236
+ timeout = null;
30237
+ const promise = options.leading ? leadingValue : applyFn(this, args);
30238
+ for (const _resolve of resolveList) {
30239
+ _resolve(promise);
30240
+ }
30241
+ resolveList = [];
30242
+ }, wait);
30243
+ if (shouldCallNow) {
30244
+ leadingValue = applyFn(this, args);
30245
+ resolve(leadingValue);
30246
+ } else {
30247
+ resolveList.push(resolve);
30248
+ }
30249
+ });
30457
30250
  };
30458
- };
30251
+ }
30252
+ async function _applyPromised(fn, _this, args) {
30253
+ return await fn.apply(_this, args);
30254
+ }
30459
30255
 
30460
- var _sfc_main = /* @__PURE__ */ defineComponent({
30461
- ...{
30462
- name: "FmLogin"
30463
- },
30464
- __name: "index",
30465
- setup(__props) {
30466
- const login = ref(false);
30467
- function handleLogin() {
30468
- login.value = true;
30256
+ function flatHooks(configHooks, hooks = {}, parentName) {
30257
+ for (const key in configHooks) {
30258
+ const subHook = configHooks[key];
30259
+ const name = parentName ? `${parentName}:${key}` : key;
30260
+ if (typeof subHook === "object" && subHook !== null) {
30261
+ flatHooks(subHook, hooks, name);
30262
+ } else if (typeof subHook === "function") {
30263
+ hooks[name] = subHook;
30469
30264
  }
30470
- return (_ctx, _cache) => {
30471
- return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
30472
- createElementVNode(
30473
- "h1",
30474
- null,
30475
- "login xxxxx ",
30476
- -1
30477
- /* CACHED */
30478
- )
30479
- ]));
30480
- };
30481
30265
  }
30482
- });
30483
-
30484
- const FmLogin = _sfc_main;
30485
-
30486
- const plugins = [
30487
- FmLogin,
30488
- FmTransfer,
30489
- FmNoticeBar,
30490
- Fmselect,
30491
- FmAutocomplete,
30492
- Fminputdropdown,
30493
- FmTree
30494
- ];
30495
-
30496
- var installer = makeInstaller([...plugins]);
30497
-
30498
- const cssCdnUrlList = [
30499
- // 调整为从本地引入,注释下面的 url
30500
- // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
30501
- // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
30502
- ];
30503
- const jsCdnUrlList = [];
30504
- function setCssCdn() {
30505
- if (cssCdnUrlList.length <= 0) return false;
30506
- cssCdnUrlList.map((v) => {
30507
- let link = document.createElement("link");
30508
- link.rel = "stylesheet";
30509
- link.href = v;
30510
- link.crossOrigin = "anonymous";
30511
- document.getElementsByTagName("head")[0].appendChild(link);
30512
- });
30266
+ return hooks;
30513
30267
  }
30514
- function setJsCdn() {
30515
- if (jsCdnUrlList.length <= 0) return false;
30516
- jsCdnUrlList.map((v) => {
30517
- let link = document.createElement("script");
30518
- link.src = v;
30519
- document.body.appendChild(link);
30520
- });
30268
+ const defaultTask = { run: (function_) => function_() };
30269
+ const _createTask = () => defaultTask;
30270
+ const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
30271
+ function serialTaskCaller(hooks, args) {
30272
+ const name = args.shift();
30273
+ const task = createTask(name);
30274
+ return hooks.reduce(
30275
+ (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
30276
+ Promise.resolve()
30277
+ );
30521
30278
  }
30522
- const setIntroduction = {
30523
- // 设置css
30524
- cssCdn: () => {
30525
- setCssCdn();
30526
- },
30527
- // 设置js
30528
- jsCdn: () => {
30529
- setJsCdn();
30279
+ function parallelTaskCaller(hooks, args) {
30280
+ const name = args.shift();
30281
+ const task = createTask(name);
30282
+ return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
30283
+ }
30284
+ function callEachWith(callbacks, arg0) {
30285
+ for (const callback of [...callbacks]) {
30286
+ callback(arg0);
30530
30287
  }
30531
- };
30288
+ }
30532
30289
 
30533
- const NextLoading = {
30534
- // 创建 loading
30535
- start: () => {
30536
- const bodys = document.body;
30537
- const div = document.createElement("div");
30538
- div.setAttribute("class", "loading-next");
30539
- const htmls = `
30540
- <div class="loading-next-box">
30541
- <div class="loading-next-box-warp">
30542
- <div class="loading-next-box-item"></div>
30543
- <div class="loading-next-box-item"></div>
30544
- <div class="loading-next-box-item"></div>
30545
- <div class="loading-next-box-item"></div>
30546
- <div class="loading-next-box-item"></div>
30547
- <div class="loading-next-box-item"></div>
30548
- <div class="loading-next-box-item"></div>
30549
- <div class="loading-next-box-item"></div>
30550
- <div class="loading-next-box-item"></div>
30551
- </div>
30552
- </div>
30553
- `;
30554
- div.innerHTML = htmls;
30555
- bodys.insertBefore(div, bodys.childNodes[0]);
30556
- window.nextLoading = true;
30557
- },
30558
- // 移除 loading
30559
- done: (time = 0) => {
30560
- nextTick(() => {
30561
- setTimeout(() => {
30562
- window.nextLoading = false;
30563
- const el = document.querySelector(".loading-next");
30564
- el?.parentNode?.removeChild(el);
30565
- }, time);
30566
- });
30290
+ class Hookable {
30291
+ constructor() {
30292
+ this._hooks = {};
30293
+ this._before = void 0;
30294
+ this._after = void 0;
30295
+ this._deprecatedMessages = void 0;
30296
+ this._deprecatedHooks = {};
30297
+ this.hook = this.hook.bind(this);
30298
+ this.callHook = this.callHook.bind(this);
30299
+ this.callHookWith = this.callHookWith.bind(this);
30567
30300
  }
30568
- };
30569
-
30570
- function useSysApi() {
30571
- return {
30572
- getSysInfo: (id) => {
30573
- return service({
30574
- url: `/api/sysTenant/sysInfo/${id}`,
30575
- method: "GET"
30576
- });
30577
- },
30578
- getSmPublicKey: () => {
30579
- return service({
30580
- url: `/api/sysConfig/smPublicKey`,
30581
- method: "GET"
30582
- });
30583
- },
30584
- getMenuTree: () => {
30585
- return service({
30586
- url: `/api/sysMenu/loginMenuTree`,
30587
- method: "GET"
30588
- });
30589
- },
30590
- getMenuUserMenuList: () => {
30591
- return service({
30592
- url: `/api/sysUserMenu/userMenuList`,
30593
- method: "GET"
30594
- });
30595
- },
30596
- addUserMenu: (data) => {
30597
- return service({
30598
- url: `/api/sysUserMenu/add`,
30599
- method: "POST",
30600
- data
30601
- });
30602
- },
30603
- setNoticeRead: (data) => {
30604
- return service({
30605
- url: `/api/sysNotice/setRead`,
30606
- method: "POST",
30607
- data
30608
- });
30609
- },
30610
- getNoticeTitle: () => {
30611
- return service({
30612
- url: `/api/sysNotice/noticeTitle`,
30613
- method: "GET"
30614
- });
30615
- },
30616
- getNoticeUnReadList: () => {
30617
- return service({
30618
- url: `/api/sysNotice/unReadList`,
30619
- method: "GET"
30620
- });
30621
- },
30622
- NoticePageReceived: (data) => {
30623
- return service({
30624
- url: `/api/sysNotice/pageReceived`,
30625
- method: "POST",
30626
- data
30627
- });
30628
- },
30629
- getUpgradeLastUnRead: () => {
30630
- return service({
30631
- url: `/api/sysUpgrade/lastUnRead`,
30632
- method: "GET"
30633
- });
30634
- },
30635
- // 获取用户信息
30636
- getUserInfo: () => {
30637
- return service({
30638
- url: `/api/sysAuth/userInfo`,
30639
- method: "GET"
30640
- });
30641
- },
30642
- getUserRoleTableList: () => {
30643
- return service({
30644
- url: `/api/sysRole/userRoleTableList`,
30645
- method: "GET"
30646
- });
30647
- },
30648
- getConstList: () => {
30649
- return service({
30650
- url: `/api/sysConst/list`,
30651
- method: "GET"
30652
- });
30653
- },
30654
- getPosList: () => {
30655
- return service({
30656
- url: `/api/sysPos/list`,
30657
- method: "GET"
30658
- });
30659
- },
30660
- getOwnRoleListById: (userid) => {
30661
- return service({
30662
- url: `/api/sysUser/ownRoleList/${userid}`,
30663
- method: "GET"
30664
- });
30665
- },
30666
- getRoleList: () => {
30667
- return service({
30668
- url: `/api/sysRole/list`,
30669
- method: "GET"
30670
- });
30671
- },
30672
- getSysOrgChildTreePidLevel: (pid, level) => {
30673
- return service({
30674
- url: `/api/sysOrg/childTree/${pid}/${level}`,
30675
- method: "GET"
30676
- });
30677
- },
30678
- getOrgList: (params) => {
30679
- return service({
30680
- url: `/api/sysOrg/list`,
30681
- method: "GET",
30682
- params
30683
- });
30684
- },
30685
- getUserBaseInfo: () => {
30686
- return service({
30687
- url: `/api/sysUser/baseInfo`,
30688
- method: "GET"
30689
- });
30690
- },
30691
- getOwnExtOrgListByid: (userid) => {
30692
- return service({
30693
- url: `/api/sysUser/ownExtOrgList/${userid}`,
30694
- method: "GET"
30695
- });
30696
- },
30697
- getAllDictList: () => {
30698
- return service({
30699
- url: `/api/sysDictType/allDictList`,
30700
- method: "GET"
30701
- });
30702
- },
30703
- verifyPwdExpirationTime: () => {
30704
- return service({
30705
- url: `/api/sysUser/verifyPwdExpirationTime`,
30706
- method: "POST"
30707
- });
30708
- },
30709
- changePwd: (data) => {
30710
- return service({
30711
- url: `/fmauth/sysauth/changePwd`,
30712
- method: "POST",
30713
- data
30714
- });
30715
- },
30716
- resetPwd: (data) => {
30717
- return service({
30718
- url: `/fmauth/sysauth/resetPwd`,
30719
- method: "POST",
30720
- data
30721
- });
30722
- },
30723
- unlockLogin: (data) => {
30724
- return service({
30725
- url: `/fmauth/sysauth/unlockLogin`,
30726
- method: "POST",
30727
- data
30728
- });
30729
- },
30730
- changeToken: (data) => {
30731
- return service({
30732
- url: `/fmauth/sysauth/changeToken`,
30733
- method: "POST",
30734
- data
30735
- });
30736
- },
30737
- Logout: () => {
30738
- return service({
30739
- url: `/fmauth/sysauth/logout`,
30740
- method: "POST"
30741
- });
30742
- },
30743
- unLockScreen: (password) => {
30744
- return service({
30745
- url: `/fmauth/sysauth/unlockScreen/?password=${password}`,
30746
- method: "POST"
30747
- });
30748
- },
30749
- getOnlineUserList: (data) => {
30750
- return service({
30751
- url: `/fmauth/sysOnlineUser/page`,
30752
- method: "POST",
30753
- data
30754
- });
30301
+ hook(name, function_, options = {}) {
30302
+ if (!name || typeof function_ !== "function") {
30303
+ return () => {
30304
+ };
30755
30305
  }
30756
- };
30757
- }
30758
- function feature(promise, errorExt) {
30759
- return promise.then((data) => [null, data]).catch((err) => {
30760
- if (errorExt) {
30761
- const parsedError = Object.assign({}, err, errorExt);
30762
- return [parsedError, void 0];
30306
+ const originalName = name;
30307
+ let dep;
30308
+ while (this._deprecatedHooks[name]) {
30309
+ dep = this._deprecatedHooks[name];
30310
+ name = dep.to;
30763
30311
  }
30764
- return [err, void 0];
30765
- });
30766
- }
30767
-
30768
- function useLoginApi() {
30769
- return {
30770
- signIn: (data) => {
30771
- return service({
30772
- url: "/fmauth/sysauth/login",
30773
- method: "post",
30774
- data
30775
- });
30776
- },
30777
- loginPhonenumber: (data) => {
30778
- return service({
30779
- url: "/fmauth/sysauth/loginPhone",
30780
- method: "post",
30781
- data
30782
- });
30783
- },
30784
- getCaptcha: () => {
30785
- return service({
30786
- url: "/fmauth/sysauth/captcha",
30787
- method: "get"
30788
- });
30789
- },
30790
- signOut: (data) => {
30791
- return service({
30792
- url: "/fmauth/sysauth/signOut",
30793
- method: "post",
30794
- data
30312
+ if (dep && !options.allowDeprecated) {
30313
+ let message = dep.message;
30314
+ if (!message) {
30315
+ message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
30316
+ }
30317
+ if (!this._deprecatedMessages) {
30318
+ this._deprecatedMessages = /* @__PURE__ */ new Set();
30319
+ }
30320
+ if (!this._deprecatedMessages.has(message)) {
30321
+ console.warn(message);
30322
+ this._deprecatedMessages.add(message);
30323
+ }
30324
+ }
30325
+ if (!function_.name) {
30326
+ try {
30327
+ Object.defineProperty(function_, "name", {
30328
+ get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
30329
+ configurable: true
30330
+ });
30331
+ } catch {
30332
+ }
30333
+ }
30334
+ this._hooks[name] = this._hooks[name] || [];
30335
+ this._hooks[name].push(function_);
30336
+ return () => {
30337
+ if (function_) {
30338
+ this.removeHook(name, function_);
30339
+ function_ = void 0;
30340
+ }
30341
+ };
30342
+ }
30343
+ hookOnce(name, function_) {
30344
+ let _unreg;
30345
+ let _function = (...arguments_) => {
30346
+ if (typeof _unreg === "function") {
30347
+ _unreg();
30348
+ }
30349
+ _unreg = void 0;
30350
+ _function = void 0;
30351
+ return function_(...arguments_);
30352
+ };
30353
+ _unreg = this.hook(name, _function);
30354
+ return _unreg;
30355
+ }
30356
+ removeHook(name, function_) {
30357
+ if (this._hooks[name]) {
30358
+ const index = this._hooks[name].indexOf(function_);
30359
+ if (index !== -1) {
30360
+ this._hooks[name].splice(index, 1);
30361
+ }
30362
+ if (this._hooks[name].length === 0) {
30363
+ delete this._hooks[name];
30364
+ }
30365
+ }
30366
+ }
30367
+ deprecateHook(name, deprecated) {
30368
+ this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
30369
+ const _hooks = this._hooks[name] || [];
30370
+ delete this._hooks[name];
30371
+ for (const hook of _hooks) {
30372
+ this.hook(name, hook);
30373
+ }
30374
+ }
30375
+ deprecateHooks(deprecatedHooks) {
30376
+ Object.assign(this._deprecatedHooks, deprecatedHooks);
30377
+ for (const name in deprecatedHooks) {
30378
+ this.deprecateHook(name, deprecatedHooks[name]);
30379
+ }
30380
+ }
30381
+ addHooks(configHooks) {
30382
+ const hooks = flatHooks(configHooks);
30383
+ const removeFns = Object.keys(hooks).map(
30384
+ (key) => this.hook(key, hooks[key])
30385
+ );
30386
+ return () => {
30387
+ for (const unreg of removeFns.splice(0, removeFns.length)) {
30388
+ unreg();
30389
+ }
30390
+ };
30391
+ }
30392
+ removeHooks(configHooks) {
30393
+ const hooks = flatHooks(configHooks);
30394
+ for (const key in hooks) {
30395
+ this.removeHook(key, hooks[key]);
30396
+ }
30397
+ }
30398
+ removeAllHooks() {
30399
+ for (const key in this._hooks) {
30400
+ delete this._hooks[key];
30401
+ }
30402
+ }
30403
+ callHook(name, ...arguments_) {
30404
+ arguments_.unshift(name);
30405
+ return this.callHookWith(serialTaskCaller, name, ...arguments_);
30406
+ }
30407
+ callHookParallel(name, ...arguments_) {
30408
+ arguments_.unshift(name);
30409
+ return this.callHookWith(parallelTaskCaller, name, ...arguments_);
30410
+ }
30411
+ callHookWith(caller, name, ...arguments_) {
30412
+ const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
30413
+ if (this._before) {
30414
+ callEachWith(this._before, event);
30415
+ }
30416
+ const result = caller(
30417
+ name in this._hooks ? [...this._hooks[name]] : [],
30418
+ arguments_
30419
+ );
30420
+ if (result instanceof Promise) {
30421
+ return result.finally(() => {
30422
+ if (this._after && event) {
30423
+ callEachWith(this._after, event);
30424
+ }
30795
30425
  });
30796
30426
  }
30797
- };
30427
+ if (this._after && event) {
30428
+ callEachWith(this._after, event);
30429
+ }
30430
+ return result;
30431
+ }
30432
+ beforeEach(function_) {
30433
+ this._before = this._before || [];
30434
+ this._before.push(function_);
30435
+ return () => {
30436
+ if (this._before !== void 0) {
30437
+ const index = this._before.indexOf(function_);
30438
+ if (index !== -1) {
30439
+ this._before.splice(index, 1);
30440
+ }
30441
+ }
30442
+ };
30443
+ }
30444
+ afterEach(function_) {
30445
+ this._after = this._after || [];
30446
+ this._after.push(function_);
30447
+ return () => {
30448
+ if (this._after !== void 0) {
30449
+ const index = this._after.indexOf(function_);
30450
+ if (index !== -1) {
30451
+ this._after.splice(index, 1);
30452
+ }
30453
+ }
30454
+ };
30455
+ }
30456
+ }
30457
+ function createHooks() {
30458
+ return new Hookable();
30798
30459
  }
30799
30460
 
30800
- var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
30801
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
30802
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
30803
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
30804
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
30805
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
30806
- return AccountTypeEnum2;
30807
- })(AccountTypeEnum || {});
30808
- var JobCreateTypeEnum = /* @__PURE__ */ ((JobCreateTypeEnum2) => {
30809
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_0"] = 0] = "NUMBER_0";
30810
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
30811
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
30812
- return JobCreateTypeEnum2;
30813
- })(JobCreateTypeEnum || {});
30814
- var HttpMethodEnum = /* @__PURE__ */ ((HttpMethodEnum2) => {
30815
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_0"] = 0] = "NUMBER_0";
30816
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_1"] = 1] = "NUMBER_1";
30817
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_2"] = 2] = "NUMBER_2";
30818
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_3"] = 3] = "NUMBER_3";
30819
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_4"] = 4] = "NUMBER_4";
30820
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_5"] = 5] = "NUMBER_5";
30821
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_6"] = 6] = "NUMBER_6";
30822
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_7"] = 7] = "NUMBER_7";
30823
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_8"] = 8] = "NUMBER_8";
30824
- return HttpMethodEnum2;
30825
- })(HttpMethodEnum || {});
30826
-
30827
- var __create$1 = Object.create;
30828
- var __defProp$1 = Object.defineProperty;
30829
- var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
30830
- var __getOwnPropNames$1 = Object.getOwnPropertyNames;
30831
- var __getProtoOf$1 = Object.getPrototypeOf;
30832
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
30833
- var __esm$1 = (fn, res) => function __init() {
30834
- return fn && (res = (0, fn[__getOwnPropNames$1(fn)[0]])(fn = 0)), res;
30461
+ var __create = Object.create;
30462
+ var __defProp = Object.defineProperty;
30463
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
30464
+ var __getOwnPropNames = Object.getOwnPropertyNames;
30465
+ var __getProtoOf = Object.getPrototypeOf;
30466
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
30467
+ var __esm = (fn, res) => function __init() {
30468
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
30835
30469
  };
30836
- var __commonJS$1 = (cb, mod) => function __require() {
30837
- return mod || (0, cb[__getOwnPropNames$1(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30470
+ var __commonJS = (cb, mod) => function __require() {
30471
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30838
30472
  };
30839
- var __copyProps$1 = (to, from, except, desc) => {
30473
+ var __copyProps = (to, from, except, desc) => {
30840
30474
  if (from && typeof from === "object" || typeof from === "function") {
30841
- for (let key of __getOwnPropNames$1(from))
30842
- if (!__hasOwnProp$1.call(to, key) && key !== except)
30843
- __defProp$1(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc$1(from, key)) || desc.enumerable });
30475
+ for (let key of __getOwnPropNames(from))
30476
+ if (!__hasOwnProp.call(to, key) && key !== except)
30477
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
30844
30478
  }
30845
30479
  return to;
30846
30480
  };
30847
- var __toESM$1 = (mod, isNodeMode, target2) => (target2 = mod != null ? __create$1(__getProtoOf$1(mod)) : {}, __copyProps$1(
30481
+ var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
30848
30482
  // If the importer is in node compatibility mode or this is not an ESM
30849
30483
  // file that has been converted to a CommonJS file using a Babel-
30850
30484
  // compatible transform (i.e. "__esModule" has not been set), then set
30851
30485
  // "default" to the CommonJS "module.exports" for node compatibility.
30852
- __defProp$1(target2, "default", { value: mod, enumerable: true }) ,
30486
+ __defProp(target22, "default", { value: mod, enumerable: true }) ,
30853
30487
  mod
30854
30488
  ));
30855
30489
 
30856
30490
  // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
30857
- var init_esm_shims$1 = __esm$1({
30858
- "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
30859
- }
30860
- });
30861
-
30862
- // ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js
30863
- var require_rfdc = __commonJS$1({
30864
- "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
30865
- init_esm_shims$1();
30866
- module.exports = rfdc2;
30867
- function copyBuffer(cur) {
30868
- if (cur instanceof Buffer) {
30869
- return Buffer.from(cur);
30870
- }
30871
- return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
30872
- }
30873
- function rfdc2(opts) {
30874
- opts = opts || {};
30875
- if (opts.circles) return rfdcCircles(opts);
30876
- const constructorHandlers = /* @__PURE__ */ new Map();
30877
- constructorHandlers.set(Date, (o) => new Date(o));
30878
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
30879
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
30880
- if (opts.constructorHandlers) {
30881
- for (const handler2 of opts.constructorHandlers) {
30882
- constructorHandlers.set(handler2[0], handler2[1]);
30883
- }
30884
- }
30885
- let handler = null;
30886
- return opts.proto ? cloneProto : clone;
30887
- function cloneArray(a, fn) {
30888
- const keys = Object.keys(a);
30889
- const a2 = new Array(keys.length);
30890
- for (let i = 0; i < keys.length; i++) {
30891
- const k = keys[i];
30892
- const cur = a[k];
30893
- if (typeof cur !== "object" || cur === null) {
30894
- a2[k] = cur;
30895
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30896
- a2[k] = handler(cur, fn);
30897
- } else if (ArrayBuffer.isView(cur)) {
30898
- a2[k] = copyBuffer(cur);
30899
- } else {
30900
- a2[k] = fn(cur);
30901
- }
30902
- }
30903
- return a2;
30904
- }
30905
- function clone(o) {
30906
- if (typeof o !== "object" || o === null) return o;
30907
- if (Array.isArray(o)) return cloneArray(o, clone);
30908
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30909
- return handler(o, clone);
30910
- }
30911
- const o2 = {};
30912
- for (const k in o) {
30913
- if (Object.hasOwnProperty.call(o, k) === false) continue;
30914
- const cur = o[k];
30915
- if (typeof cur !== "object" || cur === null) {
30916
- o2[k] = cur;
30917
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30918
- o2[k] = handler(cur, clone);
30919
- } else if (ArrayBuffer.isView(cur)) {
30920
- o2[k] = copyBuffer(cur);
30921
- } else {
30922
- o2[k] = clone(cur);
30923
- }
30924
- }
30925
- return o2;
30926
- }
30927
- function cloneProto(o) {
30928
- if (typeof o !== "object" || o === null) return o;
30929
- if (Array.isArray(o)) return cloneArray(o, cloneProto);
30930
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30931
- return handler(o, cloneProto);
30932
- }
30933
- const o2 = {};
30934
- for (const k in o) {
30935
- const cur = o[k];
30936
- if (typeof cur !== "object" || cur === null) {
30937
- o2[k] = cur;
30938
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30939
- o2[k] = handler(cur, cloneProto);
30940
- } else if (ArrayBuffer.isView(cur)) {
30941
- o2[k] = copyBuffer(cur);
30942
- } else {
30943
- o2[k] = cloneProto(cur);
30944
- }
30945
- }
30946
- return o2;
30947
- }
30948
- }
30949
- function rfdcCircles(opts) {
30950
- const refs = [];
30951
- const refsNew = [];
30952
- const constructorHandlers = /* @__PURE__ */ new Map();
30953
- constructorHandlers.set(Date, (o) => new Date(o));
30954
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
30955
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
30956
- if (opts.constructorHandlers) {
30957
- for (const handler2 of opts.constructorHandlers) {
30958
- constructorHandlers.set(handler2[0], handler2[1]);
30959
- }
30960
- }
30961
- let handler = null;
30962
- return opts.proto ? cloneProto : clone;
30963
- function cloneArray(a, fn) {
30964
- const keys = Object.keys(a);
30965
- const a2 = new Array(keys.length);
30966
- for (let i = 0; i < keys.length; i++) {
30967
- const k = keys[i];
30968
- const cur = a[k];
30969
- if (typeof cur !== "object" || cur === null) {
30970
- a2[k] = cur;
30971
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30972
- a2[k] = handler(cur, fn);
30973
- } else if (ArrayBuffer.isView(cur)) {
30974
- a2[k] = copyBuffer(cur);
30975
- } else {
30976
- const index = refs.indexOf(cur);
30977
- if (index !== -1) {
30978
- a2[k] = refsNew[index];
30979
- } else {
30980
- a2[k] = fn(cur);
30981
- }
30982
- }
30983
- }
30984
- return a2;
30985
- }
30986
- function clone(o) {
30987
- if (typeof o !== "object" || o === null) return o;
30988
- if (Array.isArray(o)) return cloneArray(o, clone);
30989
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30990
- return handler(o, clone);
30991
- }
30992
- const o2 = {};
30993
- refs.push(o);
30994
- refsNew.push(o2);
30995
- for (const k in o) {
30996
- if (Object.hasOwnProperty.call(o, k) === false) continue;
30997
- const cur = o[k];
30998
- if (typeof cur !== "object" || cur === null) {
30999
- o2[k] = cur;
31000
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
31001
- o2[k] = handler(cur, clone);
31002
- } else if (ArrayBuffer.isView(cur)) {
31003
- o2[k] = copyBuffer(cur);
31004
- } else {
31005
- const i = refs.indexOf(cur);
31006
- if (i !== -1) {
31007
- o2[k] = refsNew[i];
31008
- } else {
31009
- o2[k] = clone(cur);
31010
- }
31011
- }
31012
- }
31013
- refs.pop();
31014
- refsNew.pop();
31015
- return o2;
31016
- }
31017
- function cloneProto(o) {
31018
- if (typeof o !== "object" || o === null) return o;
31019
- if (Array.isArray(o)) return cloneArray(o, cloneProto);
31020
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
31021
- return handler(o, cloneProto);
31022
- }
31023
- const o2 = {};
31024
- refs.push(o);
31025
- refsNew.push(o2);
31026
- for (const k in o) {
31027
- const cur = o[k];
31028
- if (typeof cur !== "object" || cur === null) {
31029
- o2[k] = cur;
31030
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
31031
- o2[k] = handler(cur, cloneProto);
31032
- } else if (ArrayBuffer.isView(cur)) {
31033
- o2[k] = copyBuffer(cur);
31034
- } else {
31035
- const i = refs.indexOf(cur);
31036
- if (i !== -1) {
31037
- o2[k] = refsNew[i];
31038
- } else {
31039
- o2[k] = cloneProto(cur);
31040
- }
31041
- }
31042
- }
31043
- refs.pop();
31044
- refsNew.pop();
31045
- return o2;
31046
- }
31047
- }
31048
- }
31049
- });
31050
-
31051
- // src/index.ts
31052
- init_esm_shims$1();
31053
-
31054
- // src/constants.ts
31055
- init_esm_shims$1();
31056
-
31057
- // src/env.ts
31058
- init_esm_shims$1();
31059
- var isBrowser = typeof navigator !== "undefined";
31060
- var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
31061
- typeof target.chrome !== "undefined" && !!target.chrome.devtools;
31062
- isBrowser && target.self !== target.top;
31063
- var _a$1;
31064
- typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
31065
-
31066
- // src/general.ts
31067
- init_esm_shims$1();
31068
- var import_rfdc = __toESM$1(require_rfdc());
31069
- var classifyRE = /(?:^|[-_/])(\w)/g;
31070
- function toUpper(_, c) {
31071
- return c ? c.toUpperCase() : "";
31072
- }
31073
- function classify(str) {
31074
- return str && `${str}`.replace(classifyRE, toUpper);
31075
- }
31076
- function basename(filename, ext) {
31077
- let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
31078
- if (normalizedFilename.endsWith(`index${ext}`)) {
31079
- normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
31080
- }
31081
- const lastSlashIndex = normalizedFilename.lastIndexOf("/");
31082
- const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
31083
- {
31084
- const extIndex = baseNameWithExt.lastIndexOf(ext);
31085
- return baseNameWithExt.substring(0, extIndex);
31086
- }
31087
- }
31088
- var deepClone = (0, import_rfdc.default)({ circles: true });
31089
-
31090
- const DEBOUNCE_DEFAULTS = {
31091
- trailing: true
31092
- };
31093
- function debounce(fn, wait = 25, options = {}) {
31094
- options = { ...DEBOUNCE_DEFAULTS, ...options };
31095
- if (!Number.isFinite(wait)) {
31096
- throw new TypeError("Expected `wait` to be a finite number");
31097
- }
31098
- let leadingValue;
31099
- let timeout;
31100
- let resolveList = [];
31101
- let currentPromise;
31102
- let trailingArgs;
31103
- const applyFn = (_this, args) => {
31104
- currentPromise = _applyPromised(fn, _this, args);
31105
- currentPromise.finally(() => {
31106
- currentPromise = null;
31107
- if (options.trailing && trailingArgs && !timeout) {
31108
- const promise = applyFn(_this, trailingArgs);
31109
- trailingArgs = null;
31110
- return promise;
31111
- }
31112
- });
31113
- return currentPromise;
31114
- };
31115
- return function(...args) {
31116
- if (currentPromise) {
31117
- if (options.trailing) {
31118
- trailingArgs = args;
31119
- }
31120
- return currentPromise;
31121
- }
31122
- return new Promise((resolve) => {
31123
- const shouldCallNow = !timeout && options.leading;
31124
- clearTimeout(timeout);
31125
- timeout = setTimeout(() => {
31126
- timeout = null;
31127
- const promise = options.leading ? leadingValue : applyFn(this, args);
31128
- for (const _resolve of resolveList) {
31129
- _resolve(promise);
31130
- }
31131
- resolveList = [];
31132
- }, wait);
31133
- if (shouldCallNow) {
31134
- leadingValue = applyFn(this, args);
31135
- resolve(leadingValue);
31136
- } else {
31137
- resolveList.push(resolve);
31138
- }
31139
- });
31140
- };
31141
- }
31142
- async function _applyPromised(fn, _this, args) {
31143
- return await fn.apply(_this, args);
31144
- }
31145
-
31146
- function flatHooks(configHooks, hooks = {}, parentName) {
31147
- for (const key in configHooks) {
31148
- const subHook = configHooks[key];
31149
- const name = parentName ? `${parentName}:${key}` : key;
31150
- if (typeof subHook === "object" && subHook !== null) {
31151
- flatHooks(subHook, hooks, name);
31152
- } else if (typeof subHook === "function") {
31153
- hooks[name] = subHook;
31154
- }
31155
- }
31156
- return hooks;
31157
- }
31158
- const defaultTask = { run: (function_) => function_() };
31159
- const _createTask = () => defaultTask;
31160
- const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
31161
- function serialTaskCaller(hooks, args) {
31162
- const name = args.shift();
31163
- const task = createTask(name);
31164
- return hooks.reduce(
31165
- (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
31166
- Promise.resolve()
31167
- );
31168
- }
31169
- function parallelTaskCaller(hooks, args) {
31170
- const name = args.shift();
31171
- const task = createTask(name);
31172
- return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
31173
- }
31174
- function callEachWith(callbacks, arg0) {
31175
- for (const callback of [...callbacks]) {
31176
- callback(arg0);
31177
- }
31178
- }
31179
-
31180
- class Hookable {
31181
- constructor() {
31182
- this._hooks = {};
31183
- this._before = void 0;
31184
- this._after = void 0;
31185
- this._deprecatedMessages = void 0;
31186
- this._deprecatedHooks = {};
31187
- this.hook = this.hook.bind(this);
31188
- this.callHook = this.callHook.bind(this);
31189
- this.callHookWith = this.callHookWith.bind(this);
31190
- }
31191
- hook(name, function_, options = {}) {
31192
- if (!name || typeof function_ !== "function") {
31193
- return () => {
31194
- };
31195
- }
31196
- const originalName = name;
31197
- let dep;
31198
- while (this._deprecatedHooks[name]) {
31199
- dep = this._deprecatedHooks[name];
31200
- name = dep.to;
31201
- }
31202
- if (dep && !options.allowDeprecated) {
31203
- let message = dep.message;
31204
- if (!message) {
31205
- message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
31206
- }
31207
- if (!this._deprecatedMessages) {
31208
- this._deprecatedMessages = /* @__PURE__ */ new Set();
31209
- }
31210
- if (!this._deprecatedMessages.has(message)) {
31211
- console.warn(message);
31212
- this._deprecatedMessages.add(message);
31213
- }
31214
- }
31215
- if (!function_.name) {
31216
- try {
31217
- Object.defineProperty(function_, "name", {
31218
- get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
31219
- configurable: true
31220
- });
31221
- } catch {
31222
- }
31223
- }
31224
- this._hooks[name] = this._hooks[name] || [];
31225
- this._hooks[name].push(function_);
31226
- return () => {
31227
- if (function_) {
31228
- this.removeHook(name, function_);
31229
- function_ = void 0;
31230
- }
31231
- };
31232
- }
31233
- hookOnce(name, function_) {
31234
- let _unreg;
31235
- let _function = (...arguments_) => {
31236
- if (typeof _unreg === "function") {
31237
- _unreg();
31238
- }
31239
- _unreg = void 0;
31240
- _function = void 0;
31241
- return function_(...arguments_);
31242
- };
31243
- _unreg = this.hook(name, _function);
31244
- return _unreg;
31245
- }
31246
- removeHook(name, function_) {
31247
- if (this._hooks[name]) {
31248
- const index = this._hooks[name].indexOf(function_);
31249
- if (index !== -1) {
31250
- this._hooks[name].splice(index, 1);
31251
- }
31252
- if (this._hooks[name].length === 0) {
31253
- delete this._hooks[name];
31254
- }
31255
- }
31256
- }
31257
- deprecateHook(name, deprecated) {
31258
- this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
31259
- const _hooks = this._hooks[name] || [];
31260
- delete this._hooks[name];
31261
- for (const hook of _hooks) {
31262
- this.hook(name, hook);
31263
- }
31264
- }
31265
- deprecateHooks(deprecatedHooks) {
31266
- Object.assign(this._deprecatedHooks, deprecatedHooks);
31267
- for (const name in deprecatedHooks) {
31268
- this.deprecateHook(name, deprecatedHooks[name]);
31269
- }
31270
- }
31271
- addHooks(configHooks) {
31272
- const hooks = flatHooks(configHooks);
31273
- const removeFns = Object.keys(hooks).map(
31274
- (key) => this.hook(key, hooks[key])
31275
- );
31276
- return () => {
31277
- for (const unreg of removeFns.splice(0, removeFns.length)) {
31278
- unreg();
31279
- }
31280
- };
31281
- }
31282
- removeHooks(configHooks) {
31283
- const hooks = flatHooks(configHooks);
31284
- for (const key in hooks) {
31285
- this.removeHook(key, hooks[key]);
31286
- }
31287
- }
31288
- removeAllHooks() {
31289
- for (const key in this._hooks) {
31290
- delete this._hooks[key];
31291
- }
31292
- }
31293
- callHook(name, ...arguments_) {
31294
- arguments_.unshift(name);
31295
- return this.callHookWith(serialTaskCaller, name, ...arguments_);
31296
- }
31297
- callHookParallel(name, ...arguments_) {
31298
- arguments_.unshift(name);
31299
- return this.callHookWith(parallelTaskCaller, name, ...arguments_);
31300
- }
31301
- callHookWith(caller, name, ...arguments_) {
31302
- const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
31303
- if (this._before) {
31304
- callEachWith(this._before, event);
31305
- }
31306
- const result = caller(
31307
- name in this._hooks ? [...this._hooks[name]] : [],
31308
- arguments_
31309
- );
31310
- if (result instanceof Promise) {
31311
- return result.finally(() => {
31312
- if (this._after && event) {
31313
- callEachWith(this._after, event);
31314
- }
31315
- });
31316
- }
31317
- if (this._after && event) {
31318
- callEachWith(this._after, event);
31319
- }
31320
- return result;
31321
- }
31322
- beforeEach(function_) {
31323
- this._before = this._before || [];
31324
- this._before.push(function_);
31325
- return () => {
31326
- if (this._before !== void 0) {
31327
- const index = this._before.indexOf(function_);
31328
- if (index !== -1) {
31329
- this._before.splice(index, 1);
31330
- }
31331
- }
31332
- };
31333
- }
31334
- afterEach(function_) {
31335
- this._after = this._after || [];
31336
- this._after.push(function_);
31337
- return () => {
31338
- if (this._after !== void 0) {
31339
- const index = this._after.indexOf(function_);
31340
- if (index !== -1) {
31341
- this._after.splice(index, 1);
31342
- }
31343
- }
31344
- };
31345
- }
31346
- }
31347
- function createHooks() {
31348
- return new Hookable();
31349
- }
31350
-
31351
- var __create = Object.create;
31352
- var __defProp = Object.defineProperty;
31353
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
31354
- var __getOwnPropNames = Object.getOwnPropertyNames;
31355
- var __getProtoOf = Object.getPrototypeOf;
31356
- var __hasOwnProp = Object.prototype.hasOwnProperty;
31357
- var __esm = (fn, res) => function __init() {
31358
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
31359
- };
31360
- var __commonJS = (cb, mod) => function __require() {
31361
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
31362
- };
31363
- var __copyProps = (to, from, except, desc) => {
31364
- if (from && typeof from === "object" || typeof from === "function") {
31365
- for (let key of __getOwnPropNames(from))
31366
- if (!__hasOwnProp.call(to, key) && key !== except)
31367
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31368
- }
31369
- return to;
31370
- };
31371
- var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31372
- // If the importer is in node compatibility mode or this is not an ESM
31373
- // file that has been converted to a CommonJS file using a Babel-
31374
- // compatible transform (i.e. "__esModule" has not been set), then set
31375
- // "default" to the CommonJS "module.exports" for node compatibility.
31376
- __defProp(target22, "default", { value: mod, enumerable: true }) ,
31377
- mod
31378
- ));
31379
-
31380
- // ../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js
31381
- var init_esm_shims = __esm({
30491
+ var init_esm_shims = __esm({
31382
30492
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
31383
30493
  }
31384
30494
  });
@@ -37003,6 +36113,927 @@ id, setup, setupOptions) {
37003
36113
  return useStore;
37004
36114
  }
37005
36115
 
36116
+ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
36117
+ const state = reactive({
36118
+ optionsData: {}
36119
+ });
36120
+ const getOptionsData = async (apiService, apiAction, basecode, reload = false) => {
36121
+ if (!reload) {
36122
+ if (state.optionsData[basecode] && state.optionsData[basecode].length > 0) {
36123
+ return state.optionsData[basecode];
36124
+ }
36125
+ }
36126
+ const res = await useBaseApi(apiService).get(null, apiAction + "/?codetype=" + basecode);
36127
+ return state.optionsData[basecode] = res.data.result ?? [];
36128
+ };
36129
+ return {
36130
+ state,
36131
+ getOptionsData
36132
+ };
36133
+ });
36134
+
36135
+ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
36136
+ ...{
36137
+ name: "Fminputdropdown"
36138
+ },
36139
+ __name: "index",
36140
+ props: /* @__PURE__ */ mergeModels({
36141
+ //数据
36142
+ optionData: {
36143
+ type: Array,
36144
+ default: []
36145
+ },
36146
+ /**
36147
+ * 值的属性值
36148
+ */
36149
+ bvalue: {
36150
+ type: String,
36151
+ default: "id"
36152
+ },
36153
+ /**
36154
+ * 值的属性标签
36155
+ */
36156
+ blabel: {
36157
+ type: String,
36158
+ default: "name"
36159
+ },
36160
+ placeholder: {
36161
+ type: String,
36162
+ default: "\u8BF7\u9009\u62E9"
36163
+ },
36164
+ inputWidth: {
36165
+ type: String,
36166
+ default: "40%"
36167
+ },
36168
+ dropWidth: {
36169
+ type: String,
36170
+ default: "90px"
36171
+ },
36172
+ /**
36173
+ * api service name
36174
+ */
36175
+ apiService: {
36176
+ type: String,
36177
+ default: "baseData"
36178
+ },
36179
+ /**
36180
+ * api service 下的方法
36181
+ */
36182
+ apiAction: {
36183
+ type: String,
36184
+ default: "baseDataList"
36185
+ },
36186
+ /**
36187
+ * 基础编码 自动获取数据
36188
+ */
36189
+ basecode: {
36190
+ type: String,
36191
+ default: ""
36192
+ }
36193
+ }, {
36194
+ "id": {
36195
+ type: Number,
36196
+ default: 0
36197
+ },
36198
+ "idModifiers": {},
36199
+ "name": {
36200
+ type: String,
36201
+ default: ""
36202
+ },
36203
+ "nameModifiers": {}
36204
+ }),
36205
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:id", "update:name"]),
36206
+ setup(__props, { emit: __emit }) {
36207
+ const modeValueId = useModel(__props, "id");
36208
+ const modeValueName = useModel(__props, "name");
36209
+ const props = __props;
36210
+ const useBaseApi = usefminputdropdownstore();
36211
+ const state = reactive({
36212
+ optionData: props.optionData
36213
+ });
36214
+ const emit = __emit;
36215
+ const handCommand = (command) => {
36216
+ const fitem = state.optionData.find((item) => item[props.bvalue] === command);
36217
+ modeValueId.value = fitem != null ? [props.bvalue] : 0;
36218
+ modeValueName.value = fitem != null ? fitem[props.blabel] : "";
36219
+ emit("change", fitem);
36220
+ };
36221
+ onMounted(async () => {
36222
+ state.optionData = props.optionData;
36223
+ if (props.basecode && props.basecode != "") {
36224
+ const res = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode);
36225
+ state.optionData = res.data.result ?? [];
36226
+ }
36227
+ });
36228
+ const handRestdata = async () => {
36229
+ if (props.basecode && props.basecode != "") {
36230
+ const res = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true);
36231
+ state.optionData = res.data.result ?? [];
36232
+ }
36233
+ };
36234
+ return (_ctx, _cache) => {
36235
+ const _component_el_icon = resolveComponent("el-icon");
36236
+ const _component_el_input = resolveComponent("el-input");
36237
+ const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
36238
+ const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
36239
+ const _component_el_dropdown = resolveComponent("el-dropdown");
36240
+ return openBlock(), createBlock(_component_el_dropdown, {
36241
+ class: "fminputdropdown",
36242
+ placement: "bottom",
36243
+ trigger: "click",
36244
+ style: { "width": "100%" },
36245
+ onCommand: handCommand
36246
+ }, {
36247
+ dropdown: withCtx(() => [
36248
+ createVNode(_component_el_dropdown_menu, {
36249
+ style: normalizeStyle({ width: __props.dropWidth })
36250
+ }, {
36251
+ default: withCtx(() => [
36252
+ (openBlock(true), createElementBlock(
36253
+ Fragment,
36254
+ null,
36255
+ renderList(state.optionData, (item, index) => {
36256
+ return openBlock(), createBlock(_component_el_dropdown_item, {
36257
+ key: index,
36258
+ command: item[__props.bvalue],
36259
+ divided: ""
36260
+ }, {
36261
+ default: withCtx(() => [
36262
+ createTextVNode(
36263
+ toDisplayString$1(item[__props.blabel]),
36264
+ 1
36265
+ /* TEXT */
36266
+ )
36267
+ ]),
36268
+ _: 2
36269
+ /* DYNAMIC */
36270
+ }, 1032, ["command"]);
36271
+ }),
36272
+ 128
36273
+ /* KEYED_FRAGMENT */
36274
+ ))
36275
+ ]),
36276
+ _: 1
36277
+ /* STABLE */
36278
+ }, 8, ["style"])
36279
+ ]),
36280
+ default: withCtx(() => [
36281
+ createVNode(_component_el_input, {
36282
+ modelValue: modeValueName.value,
36283
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
36284
+ placeholder: props.placeholder,
36285
+ style: normalizeStyle({ width: __props.inputWidth })
36286
+ }, {
36287
+ append: withCtx(() => [
36288
+ createVNode(_component_el_icon, {
36289
+ color: "#13c2c2",
36290
+ onClick: handRestdata
36291
+ }, {
36292
+ default: withCtx(() => [
36293
+ createVNode(unref(refresh_left_default))
36294
+ ]),
36295
+ _: 1
36296
+ /* STABLE */
36297
+ })
36298
+ ]),
36299
+ _: 1
36300
+ /* STABLE */
36301
+ }, 8, ["modelValue", "placeholder", "style"])
36302
+ ]),
36303
+ _: 1
36304
+ /* STABLE */
36305
+ });
36306
+ };
36307
+ }
36308
+ });
36309
+
36310
+ const _hoisted_1$1 = { style: { "padding": "5px" } };
36311
+ const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
36312
+ const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
36313
+ const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
36314
+ const _hoisted_5 = { style: { "margin-bottom": "45px" } };
36315
+ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
36316
+ ...{
36317
+ name: "FmTree"
36318
+ },
36319
+ __name: "index",
36320
+ props: {
36321
+ checkStrictly: { type: Boolean, default: true },
36322
+ /**
36323
+ * api service name
36324
+ */
36325
+ apiService: {
36326
+ type: String,
36327
+ default: "planOrder"
36328
+ },
36329
+ /**
36330
+ * api service 下的方法
36331
+ */
36332
+ apiAction: {
36333
+ type: String,
36334
+ default: "autoQuerySearch"
36335
+ },
36336
+ paras: {
36337
+ type: Object,
36338
+ default: null
36339
+ },
36340
+ nodeKey: {
36341
+ type: String,
36342
+ default: "id"
36343
+ },
36344
+ defaultProps: {
36345
+ type: Object,
36346
+ default: { children: "children", label: "name" }
36347
+ }
36348
+ },
36349
+ emits: ["node-click"],
36350
+ setup(__props, { expose: __expose, emit: __emit }) {
36351
+ const props = __props;
36352
+ const filterText = ref("");
36353
+ const treeRef = ref();
36354
+ const state = reactive({
36355
+ loading: false,
36356
+ folderData: [],
36357
+ isShowCheckbox: false,
36358
+ strictly: false
36359
+ });
36360
+ onMounted(async () => {
36361
+ await fetchTreeData();
36362
+ });
36363
+ watch(filterText, (val) => {
36364
+ treeRef.value.filter(val);
36365
+ });
36366
+ const fetchTreeData = async (showLoading = true) => {
36367
+ if (showLoading) state.loading = true;
36368
+ var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
36369
+ state.folderData = res.data.result ?? [];
36370
+ if (showLoading) state.loading = false;
36371
+ return res.data.result ?? [];
36372
+ };
36373
+ const getCheckedKeys = () => {
36374
+ return treeRef.value.getCheckedKeys();
36375
+ };
36376
+ const filterNode = (value, data) => {
36377
+ if (!value) return true;
36378
+ return data.name.includes(value);
36379
+ };
36380
+ const handleCommand = async (command) => {
36381
+ if ("expandAll" == command) {
36382
+ for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
36383
+ treeRef.value.store._getAllNodes()[i].expanded = true;
36384
+ }
36385
+ } else if ("collapseAll" == command) {
36386
+ for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
36387
+ treeRef.value.store._getAllNodes()[i].expanded = false;
36388
+ }
36389
+ } else if ("refresh" == command) {
36390
+ fetchTreeData();
36391
+ } else if ("rootNode" == command) {
36392
+ treeRef.value?.setCurrentKey();
36393
+ emit("node-click", { id: 0, name: "" });
36394
+ }
36395
+ };
36396
+ const emit = __emit;
36397
+ const nodeClick = (node) => {
36398
+ emit("node-click", { id: node.id, name: node.name });
36399
+ };
36400
+ const setCurrentKey = (key, shouldAutoExpandParent) => {
36401
+ treeRef.value?.setCurrentKey(key, shouldAutoExpandParent);
36402
+ };
36403
+ __expose({ fetchTreeData, getCheckedKeys, setCurrentKey });
36404
+ return (_ctx, _cache) => {
36405
+ const _component_el_input = resolveComponent("el-input");
36406
+ const _component_el_checkbox = resolveComponent("el-checkbox");
36407
+ const _component_el_icon = resolveComponent("el-icon");
36408
+ const _component_el_button = resolveComponent("el-button");
36409
+ const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
36410
+ const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
36411
+ const _component_el_dropdown = resolveComponent("el-dropdown");
36412
+ const _component_el_tree = resolveComponent("el-tree");
36413
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
36414
+ const _component_el_card = resolveComponent("el-card");
36415
+ const _directive_loading = resolveDirective("loading");
36416
+ return openBlock(), createBlock(_component_el_card, {
36417
+ shadow: "hover",
36418
+ "body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
36419
+ style: { "height": "100%" }
36420
+ }, {
36421
+ header: withCtx(() => [
36422
+ createElementVNode("div", _hoisted_1$1, [
36423
+ createElementVNode("div", _hoisted_2, [
36424
+ createElementVNode("div", _hoisted_3, [
36425
+ createVNode(_component_el_input, {
36426
+ "prefix-icon": unref(search_default),
36427
+ modelValue: filterText.value,
36428
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
36429
+ modelModifiers: { lazy: true },
36430
+ clearable: "",
36431
+ placeholder: "\u7C7B\u578B\u540D\u79F0"
36432
+ }, null, 8, ["prefix-icon", "modelValue"])
36433
+ ]),
36434
+ createElementVNode("div", _hoisted_4, [
36435
+ !props.checkStrictly && state.isShowCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
36436
+ key: 0,
36437
+ modelValue: state.strictly,
36438
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.strictly = $event),
36439
+ label: "\u8054\u52A8",
36440
+ style: { "margin-left": "8px" },
36441
+ border: ""
36442
+ }, null, 8, ["modelValue"])) : createCommentVNode("v-if", true),
36443
+ createVNode(_component_el_dropdown, { onCommand: handleCommand }, {
36444
+ dropdown: withCtx(() => [
36445
+ createVNode(_component_el_dropdown_menu, null, {
36446
+ default: withCtx(() => [
36447
+ createVNode(_component_el_dropdown_item, { command: "expandAll" }, {
36448
+ default: withCtx(() => _cache[2] || (_cache[2] = [
36449
+ createTextVNode("\u5168\u90E8\u5C55\u5F00")
36450
+ ])),
36451
+ _: 1,
36452
+ __: [2]
36453
+ }),
36454
+ createVNode(_component_el_dropdown_item, { command: "collapseAll" }, {
36455
+ default: withCtx(() => _cache[3] || (_cache[3] = [
36456
+ createTextVNode("\u5168\u90E8\u6298\u53E0")
36457
+ ])),
36458
+ _: 1,
36459
+ __: [3]
36460
+ }),
36461
+ createVNode(_component_el_dropdown_item, { command: "rootNode" }, {
36462
+ default: withCtx(() => _cache[4] || (_cache[4] = [
36463
+ createTextVNode("\u6839\u8282\u70B9")
36464
+ ])),
36465
+ _: 1,
36466
+ __: [4]
36467
+ }),
36468
+ createVNode(_component_el_dropdown_item, { command: "refresh" }, {
36469
+ default: withCtx(() => _cache[5] || (_cache[5] = [
36470
+ createTextVNode("\u5237\u65B0")
36471
+ ])),
36472
+ _: 1,
36473
+ __: [5]
36474
+ })
36475
+ ]),
36476
+ _: 1
36477
+ /* STABLE */
36478
+ })
36479
+ ]),
36480
+ default: withCtx(() => [
36481
+ createVNode(_component_el_button, { style: { "margin-left": "8px", "width": "34px" } }, {
36482
+ default: withCtx(() => [
36483
+ createVNode(_component_el_icon, { class: "el-icon--center" }, {
36484
+ default: withCtx(() => [
36485
+ createVNode(unref(more_filled_default))
36486
+ ]),
36487
+ _: 1
36488
+ /* STABLE */
36489
+ })
36490
+ ]),
36491
+ _: 1
36492
+ /* STABLE */
36493
+ })
36494
+ ]),
36495
+ _: 1
36496
+ /* STABLE */
36497
+ })
36498
+ ])
36499
+ ])
36500
+ ])
36501
+ ]),
36502
+ default: withCtx(() => [
36503
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
36504
+ createVNode(_component_el_scrollbar, null, {
36505
+ default: withCtx(() => [
36506
+ createVNode(_component_el_tree, {
36507
+ ref_key: "treeRef",
36508
+ ref: treeRef,
36509
+ class: "filter-tree",
36510
+ data: state.folderData,
36511
+ "node-key": __props.nodeKey,
36512
+ props: __props.defaultProps,
36513
+ "filter-node-method": filterNode,
36514
+ onNodeClick: nodeClick,
36515
+ "show-checkbox": state.isShowCheckbox,
36516
+ "default-expand-all": "",
36517
+ "highlight-current": "",
36518
+ "check-strictly": !state.strictly
36519
+ }, {
36520
+ default: withCtx(({ node }) => [
36521
+ createCommentVNode(' <el-icon v-if="node.level < 4" size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-FolderOpened /></el-icon>\r\n <el-icon v-else size="16" style="margin-right: 3px; display: inline; vertical-align: middle"><ele-Folder /></el-icon> '),
36522
+ createTextVNode(
36523
+ " " + toDisplayString$1(node.label),
36524
+ 1
36525
+ /* TEXT */
36526
+ )
36527
+ ]),
36528
+ _: 1
36529
+ /* STABLE */
36530
+ }, 8, ["data", "node-key", "props", "show-checkbox", "check-strictly"])
36531
+ ]),
36532
+ _: 1
36533
+ /* STABLE */
36534
+ })
36535
+ ])), [
36536
+ [_directive_loading, state.loading]
36537
+ ])
36538
+ ]),
36539
+ _: 1
36540
+ /* STABLE */
36541
+ });
36542
+ };
36543
+ }
36544
+ });
36545
+
36546
+ const _hoisted_1 = ["src"];
36547
+ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
36548
+ ...{
36549
+ name: "svgIcon"
36550
+ },
36551
+ __name: "svgicon",
36552
+ props: {
36553
+ // svg 图标组件名字
36554
+ name: {
36555
+ type: String
36556
+ },
36557
+ // svg 大小
36558
+ size: {
36559
+ type: Number,
36560
+ default: () => 14
36561
+ },
36562
+ // svg 颜色
36563
+ color: {
36564
+ type: String
36565
+ }
36566
+ },
36567
+ setup(__props) {
36568
+ const props = __props;
36569
+ const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
36570
+ const getIconName = computed(() => {
36571
+ return props?.name;
36572
+ });
36573
+ const isShowIconSvg = computed(() => {
36574
+ return props?.name?.startsWith("ele-");
36575
+ });
36576
+ const isShowIconImg = computed(() => {
36577
+ return linesString.find((str) => props.name?.startsWith(str));
36578
+ });
36579
+ const setIconSvgStyle = computed(() => {
36580
+ return `font-size: ${props.size}px;color: ${props.color};`;
36581
+ });
36582
+ const setIconImgOutStyle = computed(() => {
36583
+ return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
36584
+ });
36585
+ const setIconSvgInsStyle = computed(() => {
36586
+ const filterStyle = [];
36587
+ const compatibles = ["-webkit", "-ms", "-o", "-moz"];
36588
+ compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
36589
+ return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
36590
+ });
36591
+ return (_ctx, _cache) => {
36592
+ return isShowIconSvg.value ? (openBlock(), createElementBlock(
36593
+ "i",
36594
+ {
36595
+ key: 0,
36596
+ class: "el-icon",
36597
+ style: normalizeStyle(setIconSvgStyle.value)
36598
+ },
36599
+ [
36600
+ (openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
36601
+ ],
36602
+ 4
36603
+ /* STYLE */
36604
+ )) : isShowIconImg.value ? (openBlock(), createElementBlock(
36605
+ "div",
36606
+ {
36607
+ key: 1,
36608
+ style: normalizeStyle(setIconImgOutStyle.value)
36609
+ },
36610
+ [
36611
+ createElementVNode("img", {
36612
+ src: getIconName.value,
36613
+ style: normalizeStyle(setIconSvgInsStyle.value)
36614
+ }, null, 12, _hoisted_1)
36615
+ ],
36616
+ 4
36617
+ /* STYLE */
36618
+ )) : (openBlock(), createElementBlock(
36619
+ "i",
36620
+ {
36621
+ key: 2,
36622
+ class: normalizeClass(getIconName.value),
36623
+ style: normalizeStyle(setIconSvgStyle.value)
36624
+ },
36625
+ null,
36626
+ 6
36627
+ /* CLASS, STYLE */
36628
+ ));
36629
+ };
36630
+ }
36631
+ });
36632
+
36633
+ function elSvg(app) {
36634
+ const icons = svg;
36635
+ for (const i in icons) {
36636
+ if (!app._context.components[`ele-${icons[i].name}`]) {
36637
+ app.component(`ele-${icons[i].name}`, icons[i]);
36638
+ }
36639
+ }
36640
+ if (!app._context.components[`SvgIcon`]) {
36641
+ app.component("SvgIcon", _sfc_main$1);
36642
+ }
36643
+ }
36644
+
36645
+ const FmTransfer = _sfc_main$8;
36646
+ const FmNoticeBar = _sfc_main$7;
36647
+ const FmDragImg = dragimg;
36648
+ const Fmselect = _sfc_main$5;
36649
+ const FmAutocomplete = _sfc_main$4;
36650
+ const Fminputdropdown = _sfc_main$3;
36651
+ const FmTree = _sfc_main$2;
36652
+
36653
+ const makeInstaller = (components = []) => {
36654
+ const install = (app) => {
36655
+ components.forEach(
36656
+ (component) => {
36657
+ if (!app._context.components[component.name]) {
36658
+ app.component(component.name, component);
36659
+ }
36660
+ }
36661
+ );
36662
+ if (app)
36663
+ elSvg(app);
36664
+ };
36665
+ return {
36666
+ install
36667
+ };
36668
+ };
36669
+
36670
+ var _sfc_main = /* @__PURE__ */ defineComponent({
36671
+ ...{
36672
+ name: "FmLogin"
36673
+ },
36674
+ __name: "index",
36675
+ setup(__props) {
36676
+ const login = ref(false);
36677
+ function handleLogin() {
36678
+ login.value = true;
36679
+ }
36680
+ return (_ctx, _cache) => {
36681
+ return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
36682
+ createElementVNode(
36683
+ "h1",
36684
+ null,
36685
+ "login xxxxx ",
36686
+ -1
36687
+ /* CACHED */
36688
+ )
36689
+ ]));
36690
+ };
36691
+ }
36692
+ });
36693
+
36694
+ const FmLogin = _sfc_main;
36695
+
36696
+ const plugins = [
36697
+ FmLogin,
36698
+ FmTransfer,
36699
+ FmNoticeBar,
36700
+ Fmselect,
36701
+ FmAutocomplete,
36702
+ Fminputdropdown,
36703
+ FmTree
36704
+ ];
36705
+
36706
+ var installer = makeInstaller([...plugins]);
36707
+
36708
+ const cssCdnUrlList = [
36709
+ // 调整为从本地引入,注释下面的 url
36710
+ // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
36711
+ // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
36712
+ ];
36713
+ const jsCdnUrlList = [];
36714
+ function setCssCdn() {
36715
+ if (cssCdnUrlList.length <= 0) return false;
36716
+ cssCdnUrlList.map((v) => {
36717
+ let link = document.createElement("link");
36718
+ link.rel = "stylesheet";
36719
+ link.href = v;
36720
+ link.crossOrigin = "anonymous";
36721
+ document.getElementsByTagName("head")[0].appendChild(link);
36722
+ });
36723
+ }
36724
+ function setJsCdn() {
36725
+ if (jsCdnUrlList.length <= 0) return false;
36726
+ jsCdnUrlList.map((v) => {
36727
+ let link = document.createElement("script");
36728
+ link.src = v;
36729
+ document.body.appendChild(link);
36730
+ });
36731
+ }
36732
+ const setIntroduction = {
36733
+ // 设置css
36734
+ cssCdn: () => {
36735
+ setCssCdn();
36736
+ },
36737
+ // 设置js
36738
+ jsCdn: () => {
36739
+ setJsCdn();
36740
+ }
36741
+ };
36742
+
36743
+ const NextLoading = {
36744
+ // 创建 loading
36745
+ start: () => {
36746
+ const bodys = document.body;
36747
+ const div = document.createElement("div");
36748
+ div.setAttribute("class", "loading-next");
36749
+ const htmls = `
36750
+ <div class="loading-next-box">
36751
+ <div class="loading-next-box-warp">
36752
+ <div class="loading-next-box-item"></div>
36753
+ <div class="loading-next-box-item"></div>
36754
+ <div class="loading-next-box-item"></div>
36755
+ <div class="loading-next-box-item"></div>
36756
+ <div class="loading-next-box-item"></div>
36757
+ <div class="loading-next-box-item"></div>
36758
+ <div class="loading-next-box-item"></div>
36759
+ <div class="loading-next-box-item"></div>
36760
+ <div class="loading-next-box-item"></div>
36761
+ </div>
36762
+ </div>
36763
+ `;
36764
+ div.innerHTML = htmls;
36765
+ bodys.insertBefore(div, bodys.childNodes[0]);
36766
+ window.nextLoading = true;
36767
+ },
36768
+ // 移除 loading
36769
+ done: (time = 0) => {
36770
+ nextTick(() => {
36771
+ setTimeout(() => {
36772
+ window.nextLoading = false;
36773
+ const el = document.querySelector(".loading-next");
36774
+ el?.parentNode?.removeChild(el);
36775
+ }, time);
36776
+ });
36777
+ }
36778
+ };
36779
+
36780
+ function useSysApi() {
36781
+ return {
36782
+ getSysInfo: (id) => {
36783
+ return service({
36784
+ url: `/api/sysTenant/sysInfo/${id}`,
36785
+ method: "GET"
36786
+ });
36787
+ },
36788
+ getSmPublicKey: () => {
36789
+ return service({
36790
+ url: `/api/sysConfig/smPublicKey`,
36791
+ method: "GET"
36792
+ });
36793
+ },
36794
+ getMenuTree: () => {
36795
+ return service({
36796
+ url: `/api/sysMenu/loginMenuTree`,
36797
+ method: "GET"
36798
+ });
36799
+ },
36800
+ getMenuUserMenuList: () => {
36801
+ return service({
36802
+ url: `/api/sysUserMenu/userMenuList`,
36803
+ method: "GET"
36804
+ });
36805
+ },
36806
+ addUserMenu: (data) => {
36807
+ return service({
36808
+ url: `/api/sysUserMenu/add`,
36809
+ method: "POST",
36810
+ data
36811
+ });
36812
+ },
36813
+ setNoticeRead: (data) => {
36814
+ return service({
36815
+ url: `/api/sysNotice/setRead`,
36816
+ method: "POST",
36817
+ data
36818
+ });
36819
+ },
36820
+ getNoticeTitle: () => {
36821
+ return service({
36822
+ url: `/api/sysNotice/noticeTitle`,
36823
+ method: "GET"
36824
+ });
36825
+ },
36826
+ getNoticeUnReadList: () => {
36827
+ return service({
36828
+ url: `/api/sysNotice/unReadList`,
36829
+ method: "GET"
36830
+ });
36831
+ },
36832
+ NoticePageReceived: (data) => {
36833
+ return service({
36834
+ url: `/api/sysNotice/pageReceived`,
36835
+ method: "POST",
36836
+ data
36837
+ });
36838
+ },
36839
+ getUpgradeLastUnRead: () => {
36840
+ return service({
36841
+ url: `/api/sysUpgrade/lastUnRead`,
36842
+ method: "GET"
36843
+ });
36844
+ },
36845
+ // 获取用户信息
36846
+ getUserInfo: () => {
36847
+ return service({
36848
+ url: `/api/sysAuth/userInfo`,
36849
+ method: "GET"
36850
+ });
36851
+ },
36852
+ getUserRoleTableList: () => {
36853
+ return service({
36854
+ url: `/api/sysRole/userRoleTableList`,
36855
+ method: "GET"
36856
+ });
36857
+ },
36858
+ getConstList: () => {
36859
+ return service({
36860
+ url: `/api/sysConst/list`,
36861
+ method: "GET"
36862
+ });
36863
+ },
36864
+ getPosList: () => {
36865
+ return service({
36866
+ url: `/api/sysPos/list`,
36867
+ method: "GET"
36868
+ });
36869
+ },
36870
+ getOwnRoleListById: (userid) => {
36871
+ return service({
36872
+ url: `/api/sysUser/ownRoleList/${userid}`,
36873
+ method: "GET"
36874
+ });
36875
+ },
36876
+ getRoleList: () => {
36877
+ return service({
36878
+ url: `/api/sysRole/list`,
36879
+ method: "GET"
36880
+ });
36881
+ },
36882
+ getSysOrgChildTreePidLevel: (pid, level) => {
36883
+ return service({
36884
+ url: `/api/sysOrg/childTree/${pid}/${level}`,
36885
+ method: "GET"
36886
+ });
36887
+ },
36888
+ getOrgList: (params) => {
36889
+ return service({
36890
+ url: `/api/sysOrg/list`,
36891
+ method: "GET",
36892
+ params
36893
+ });
36894
+ },
36895
+ getUserBaseInfo: () => {
36896
+ return service({
36897
+ url: `/api/sysUser/baseInfo`,
36898
+ method: "GET"
36899
+ });
36900
+ },
36901
+ getOwnExtOrgListByid: (userid) => {
36902
+ return service({
36903
+ url: `/api/sysUser/ownExtOrgList/${userid}`,
36904
+ method: "GET"
36905
+ });
36906
+ },
36907
+ getAllDictList: () => {
36908
+ return service({
36909
+ url: `/api/sysDictType/allDictList`,
36910
+ method: "GET"
36911
+ });
36912
+ },
36913
+ verifyPwdExpirationTime: () => {
36914
+ return service({
36915
+ url: `/api/sysUser/verifyPwdExpirationTime`,
36916
+ method: "POST"
36917
+ });
36918
+ },
36919
+ changePwd: (data) => {
36920
+ return service({
36921
+ url: `/fmauth/sysauth/changePwd`,
36922
+ method: "POST",
36923
+ data
36924
+ });
36925
+ },
36926
+ resetPwd: (data) => {
36927
+ return service({
36928
+ url: `/fmauth/sysauth/resetPwd`,
36929
+ method: "POST",
36930
+ data
36931
+ });
36932
+ },
36933
+ unlockLogin: (data) => {
36934
+ return service({
36935
+ url: `/fmauth/sysauth/unlockLogin`,
36936
+ method: "POST",
36937
+ data
36938
+ });
36939
+ },
36940
+ changeToken: (data) => {
36941
+ return service({
36942
+ url: `/fmauth/sysauth/changeToken`,
36943
+ method: "POST",
36944
+ data
36945
+ });
36946
+ },
36947
+ Logout: () => {
36948
+ return service({
36949
+ url: `/fmauth/sysauth/logout`,
36950
+ method: "POST"
36951
+ });
36952
+ },
36953
+ unLockScreen: (password) => {
36954
+ return service({
36955
+ url: `/fmauth/sysauth/unlockScreen/?password=${password}`,
36956
+ method: "POST"
36957
+ });
36958
+ },
36959
+ getOnlineUserList: (data) => {
36960
+ return service({
36961
+ url: `/fmauth/sysOnlineUser/page`,
36962
+ method: "POST",
36963
+ data
36964
+ });
36965
+ }
36966
+ };
36967
+ }
36968
+ function feature(promise, errorExt) {
36969
+ return promise.then((data) => [null, data]).catch((err) => {
36970
+ if (errorExt) {
36971
+ const parsedError = Object.assign({}, err, errorExt);
36972
+ return [parsedError, void 0];
36973
+ }
36974
+ return [err, void 0];
36975
+ });
36976
+ }
36977
+
36978
+ function useLoginApi() {
36979
+ return {
36980
+ signIn: (data) => {
36981
+ return service({
36982
+ url: "/fmauth/sysauth/login",
36983
+ method: "post",
36984
+ data
36985
+ });
36986
+ },
36987
+ loginPhonenumber: (data) => {
36988
+ return service({
36989
+ url: "/fmauth/sysauth/loginPhone",
36990
+ method: "post",
36991
+ data
36992
+ });
36993
+ },
36994
+ getCaptcha: () => {
36995
+ return service({
36996
+ url: "/fmauth/sysauth/captcha",
36997
+ method: "get"
36998
+ });
36999
+ },
37000
+ signOut: (data) => {
37001
+ return service({
37002
+ url: "/fmauth/sysauth/signOut",
37003
+ method: "post",
37004
+ data
37005
+ });
37006
+ }
37007
+ };
37008
+ }
37009
+
37010
+ var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
37011
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
37012
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
37013
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
37014
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
37015
+ AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
37016
+ return AccountTypeEnum2;
37017
+ })(AccountTypeEnum || {});
37018
+ var JobCreateTypeEnum = /* @__PURE__ */ ((JobCreateTypeEnum2) => {
37019
+ JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_0"] = 0] = "NUMBER_0";
37020
+ JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
37021
+ JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
37022
+ return JobCreateTypeEnum2;
37023
+ })(JobCreateTypeEnum || {});
37024
+ var HttpMethodEnum = /* @__PURE__ */ ((HttpMethodEnum2) => {
37025
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_0"] = 0] = "NUMBER_0";
37026
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_1"] = 1] = "NUMBER_1";
37027
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_2"] = 2] = "NUMBER_2";
37028
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_3"] = 3] = "NUMBER_3";
37029
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_4"] = 4] = "NUMBER_4";
37030
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_5"] = 5] = "NUMBER_5";
37031
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_6"] = 6] = "NUMBER_6";
37032
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_7"] = 7] = "NUMBER_7";
37033
+ HttpMethodEnum2[HttpMethodEnum2["NUMBER_8"] = 8] = "NUMBER_8";
37034
+ return HttpMethodEnum2;
37035
+ })(HttpMethodEnum || {});
37036
+
37006
37037
  const pinia = createPinia();
37007
37038
 
37008
37039
  const useKeepALiveNames = defineStore("keepALiveNames", {
@@ -53243,4 +53274,4 @@ const version = "1.0.0";
53243
53274
 
53244
53275
  const install = installer.install;
53245
53276
 
53246
- export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, FmTree, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getCountryCode, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
53277
+ export { AccountTypeEnum, FmAutocomplete, FmDragImg, FmLogin, FmNoticeBar, FmTransfer, FmTree, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };