@fmdevui/fm-dev 1.0.69 → 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.69 */
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,1456 +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: ""
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"() {
29969
+ }
29970
+ });
29971
+
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);
29983
29982
  }
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 = props.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 ?? [];
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]);
29993
+ }
30016
29994
  }
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 ?? [];
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
+ }
30012
+ }
30013
+ return a2;
30022
30014
  }
30023
- };
30024
- return (_ctx, _cache) => {
30025
- const _component_el_button = resolveComponent("el-button");
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
- placement: "bottom",
30032
- trigger: "click",
30033
- style: { "width": "100%" },
30034
- onCommand: handCommand
30035
- }, {
30036
- dropdown: withCtx(() => [
30037
- createVNode(_component_el_dropdown_menu, {
30038
- style: normalizeStyle({ width: __props.dropWidth })
30039
- }, {
30040
- default: withCtx(() => [
30041
- (openBlock(true), createElementBlock(
30042
- Fragment,
30043
- null,
30044
- renderList(state.optionData, (item, index) => {
30045
- return openBlock(), createBlock(_component_el_dropdown_item, {
30046
- key: index,
30047
- command: item[__props.bvalue],
30048
- divided: ""
30049
- }, {
30050
- default: withCtx(() => [
30051
- createTextVNode(
30052
- toDisplayString$1(item[__props.blabel]),
30053
- 1
30054
- /* TEXT */
30055
- )
30056
- ]),
30057
- _: 2
30058
- /* DYNAMIC */
30059
- }, 1032, ["command"]);
30060
- }),
30061
- 128
30062
- /* KEYED_FRAGMENT */
30063
- ))
30064
- ]),
30065
- _: 1
30066
- /* STABLE */
30067
- }, 8, ["style"])
30068
- ]),
30069
- default: withCtx(() => [
30070
- createVNode(_component_el_input, {
30071
- modelValue: modeValueName.value,
30072
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
30073
- placeholder: props.placeholder,
30074
- style: normalizeStyle({ width: __props.inputWidth })
30075
- }, {
30076
- append: withCtx(() => [
30077
- createVNode(_component_el_button, {
30078
- type: "success",
30079
- icon: unref(brush_default),
30080
- onClick: handRestdata
30081
- }, null, 8, ["icon"])
30082
- ]),
30083
- _: 1
30084
- /* STABLE */
30085
- }, 8, ["modelValue", "placeholder", "style"])
30086
- ]),
30087
- _: 1
30088
- /* STABLE */
30089
- });
30090
- };
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
+ }
30091
30158
  }
30092
30159
  });
30093
30160
 
30094
- const _hoisted_1$1 = { style: { "padding": "5px" } };
30095
- const _hoisted_2 = { style: { "display": "flex", "align-items": "center", "gap": "8px", "flex-wrap": "nowrap", "overflow": "hidden" } };
30096
- const _hoisted_3 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
30097
- const _hoisted_4 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
30098
- const _hoisted_5 = { style: { "margin-bottom": "45px" } };
30099
- var _sfc_main$2 = /* @__PURE__ */ defineComponent({
30100
- ...{
30101
- name: "FmTree"
30102
- },
30103
- __name: "index",
30104
- props: {
30105
- checkStrictly: { type: Boolean, default: true },
30106
- /**
30107
- * api service name
30108
- */
30109
- apiService: {
30110
- type: String,
30111
- default: "planOrder"
30112
- },
30113
- /**
30114
- * api service 下的方法
30115
- */
30116
- apiAction: {
30117
- type: String,
30118
- default: "autoQuerySearch"
30119
- },
30120
- paras: {
30121
- type: Object,
30122
- default: null
30123
- },
30124
- nodeKey: {
30125
- type: String,
30126
- default: "id"
30127
- },
30128
- defaultProps: {
30129
- type: Object,
30130
- default: { children: "children", label: "name" }
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);
30190
+ }
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);
30196
+ }
30197
+ }
30198
+ var deepClone = (0, import_rfdc.default)({ circles: true });
30199
+
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;
30221
+ }
30222
+ });
30223
+ return currentPromise;
30224
+ };
30225
+ return function(...args) {
30226
+ if (currentPromise) {
30227
+ if (options.trailing) {
30228
+ trailingArgs = args;
30229
+ }
30230
+ return currentPromise;
30131
30231
  }
30132
- },
30133
- emits: ["node-click"],
30134
- setup(__props, { expose: __expose, emit: __emit }) {
30135
- const props = __props;
30136
- const filterText = ref("");
30137
- const treeRef = ref();
30138
- const state = reactive({
30139
- loading: false,
30140
- folderData: [],
30141
- isShowCheckbox: false,
30142
- strictly: false
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
+ }
30143
30249
  });
30144
- onMounted(async () => {
30145
- await fetchTreeData();
30146
- });
30147
- watch(filterText, (val) => {
30148
- treeRef.value.filter(val);
30149
- });
30150
- const fetchTreeData = async (showLoading = true) => {
30151
- if (showLoading) state.loading = true;
30152
- var res = await useBaseApi(props.apiService).get(props.paras, props.apiAction);
30153
- state.folderData = res.data.result ?? [];
30154
- if (showLoading) state.loading = false;
30155
- return res.data.result ?? [];
30156
- };
30157
- const getCheckedKeys = () => {
30158
- return treeRef.value.getCheckedKeys();
30159
- };
30160
- const filterNode = (value, data) => {
30161
- if (!value) return true;
30162
- return data.name.includes(value);
30163
- };
30164
- const handleCommand = async (command) => {
30165
- if ("expandAll" == command) {
30166
- for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
30167
- treeRef.value.store._getAllNodes()[i].expanded = true;
30168
- }
30169
- } else if ("collapseAll" == command) {
30170
- for (let i = 0; i < treeRef.value.store._getAllNodes().length; i++) {
30171
- treeRef.value.store._getAllNodes()[i].expanded = false;
30172
- }
30173
- } else if ("refresh" == command) {
30174
- fetchTreeData();
30175
- } else if ("rootNode" == command) {
30176
- treeRef.value?.setCurrentKey();
30177
- emit("node-click", { id: 0, name: "" });
30250
+ };
30251
+ }
30252
+ async function _applyPromised(fn, _this, args) {
30253
+ return await fn.apply(_this, args);
30254
+ }
30255
+
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;
30264
+ }
30265
+ }
30266
+ return hooks;
30267
+ }
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
+ );
30278
+ }
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);
30287
+ }
30288
+ }
30289
+
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);
30300
+ }
30301
+ hook(name, function_, options = {}) {
30302
+ if (!name || typeof function_ !== "function") {
30303
+ return () => {
30304
+ };
30305
+ }
30306
+ const originalName = name;
30307
+ let dep;
30308
+ while (this._deprecatedHooks[name]) {
30309
+ dep = this._deprecatedHooks[name];
30310
+ name = dep.to;
30311
+ }
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;
30178
30340
  }
30179
30341
  };
30180
- const emit = __emit;
30181
- const nodeClick = (node) => {
30182
- emit("node-click", { id: node.id, name: node.name });
30183
- };
30184
- const setCurrentKey = (key, shouldAutoExpandParent) => {
30185
- treeRef.value?.setCurrentKey(key, shouldAutoExpandParent);
30186
- };
30187
- __expose({ fetchTreeData, getCheckedKeys, setCurrentKey });
30188
- return (_ctx, _cache) => {
30189
- const _component_el_input = resolveComponent("el-input");
30190
- const _component_el_checkbox = resolveComponent("el-checkbox");
30191
- const _component_el_icon = resolveComponent("el-icon");
30192
- const _component_el_button = resolveComponent("el-button");
30193
- const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
30194
- const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
30195
- const _component_el_dropdown = resolveComponent("el-dropdown");
30196
- const _component_el_tree = resolveComponent("el-tree");
30197
- const _component_el_scrollbar = resolveComponent("el-scrollbar");
30198
- const _component_el_card = resolveComponent("el-card");
30199
- const _directive_loading = resolveDirective("loading");
30200
- return openBlock(), createBlock(_component_el_card, {
30201
- shadow: "hover",
30202
- "body-style": "height:100%;overflow:auto;padding:5px;width:100%;",
30203
- style: { "height": "100%" }
30204
- }, {
30205
- header: withCtx(() => [
30206
- createElementVNode("div", _hoisted_1$1, [
30207
- createElementVNode("div", _hoisted_2, [
30208
- createElementVNode("div", _hoisted_3, [
30209
- createVNode(_component_el_input, {
30210
- "prefix-icon": unref(search_default),
30211
- modelValue: filterText.value,
30212
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
30213
- modelModifiers: { lazy: true },
30214
- clearable: "",
30215
- placeholder: "\u7C7B\u578B\u540D\u79F0"
30216
- }, null, 8, ["prefix-icon", "modelValue"])
30217
- ]),
30218
- createElementVNode("div", _hoisted_4, [
30219
- !props.checkStrictly && state.isShowCheckbox ? (openBlock(), createBlock(_component_el_checkbox, {
30220
- key: 0,
30221
- modelValue: state.strictly,
30222
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => state.strictly = $event),
30223
- label: "\u8054\u52A8",
30224
- style: { "margin-left": "8px" },
30225
- border: ""
30226
- }, null, 8, ["modelValue"])) : createCommentVNode("v-if", true),
30227
- createVNode(_component_el_dropdown, { onCommand: handleCommand }, {
30228
- dropdown: withCtx(() => [
30229
- createVNode(_component_el_dropdown_menu, null, {
30230
- default: withCtx(() => [
30231
- createVNode(_component_el_dropdown_item, { command: "expandAll" }, {
30232
- default: withCtx(() => _cache[2] || (_cache[2] = [
30233
- createTextVNode("\u5168\u90E8\u5C55\u5F00")
30234
- ])),
30235
- _: 1,
30236
- __: [2]
30237
- }),
30238
- createVNode(_component_el_dropdown_item, { command: "collapseAll" }, {
30239
- default: withCtx(() => _cache[3] || (_cache[3] = [
30240
- createTextVNode("\u5168\u90E8\u6298\u53E0")
30241
- ])),
30242
- _: 1,
30243
- __: [3]
30244
- }),
30245
- createVNode(_component_el_dropdown_item, { command: "rootNode" }, {
30246
- default: withCtx(() => _cache[4] || (_cache[4] = [
30247
- createTextVNode("\u6839\u8282\u70B9")
30248
- ])),
30249
- _: 1,
30250
- __: [4]
30251
- }),
30252
- createVNode(_component_el_dropdown_item, { command: "refresh" }, {
30253
- default: withCtx(() => _cache[5] || (_cache[5] = [
30254
- createTextVNode("\u5237\u65B0")
30255
- ])),
30256
- _: 1,
30257
- __: [5]
30258
- })
30259
- ]),
30260
- _: 1
30261
- /* STABLE */
30262
- })
30263
- ]),
30264
- default: withCtx(() => [
30265
- createVNode(_component_el_button, { style: { "margin-left": "8px", "width": "34px" } }, {
30266
- default: withCtx(() => [
30267
- createVNode(_component_el_icon, { class: "el-icon--center" }, {
30268
- default: withCtx(() => [
30269
- createVNode(unref(more_filled_default))
30270
- ]),
30271
- _: 1
30272
- /* STABLE */
30273
- })
30274
- ]),
30275
- _: 1
30276
- /* STABLE */
30277
- })
30278
- ]),
30279
- _: 1
30280
- /* STABLE */
30281
- })
30282
- ])
30283
- ])
30284
- ])
30285
- ]),
30286
- default: withCtx(() => [
30287
- withDirectives((openBlock(), createElementBlock("div", _hoisted_5, [
30288
- createVNode(_component_el_scrollbar, null, {
30289
- default: withCtx(() => [
30290
- createVNode(_component_el_tree, {
30291
- ref_key: "treeRef",
30292
- ref: treeRef,
30293
- class: "filter-tree",
30294
- data: state.folderData,
30295
- "node-key": __props.nodeKey,
30296
- props: __props.defaultProps,
30297
- "filter-node-method": filterNode,
30298
- onNodeClick: nodeClick,
30299
- "show-checkbox": state.isShowCheckbox,
30300
- "default-expand-all": "",
30301
- "highlight-current": "",
30302
- "check-strictly": !state.strictly
30303
- }, {
30304
- default: withCtx(({ node }) => [
30305
- 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> '),
30306
- createTextVNode(
30307
- " " + toDisplayString$1(node.label),
30308
- 1
30309
- /* TEXT */
30310
- )
30311
- ]),
30312
- _: 1
30313
- /* STABLE */
30314
- }, 8, ["data", "node-key", "props", "show-checkbox", "check-strictly"])
30315
- ]),
30316
- _: 1
30317
- /* STABLE */
30318
- })
30319
- ])), [
30320
- [_directive_loading, state.loading]
30321
- ])
30322
- ]),
30323
- _: 1
30324
- /* STABLE */
30325
- });
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_);
30326
30352
  };
30353
+ _unreg = this.hook(name, _function);
30354
+ return _unreg;
30327
30355
  }
30328
- });
30329
-
30330
- const _hoisted_1 = ["src"];
30331
- var _sfc_main$1 = /* @__PURE__ */ defineComponent({
30332
- ...{
30333
- name: "svgIcon"
30334
- },
30335
- __name: "svgicon",
30336
- props: {
30337
- // svg 图标组件名字
30338
- name: {
30339
- type: String
30340
- },
30341
- // svg 大小
30342
- size: {
30343
- type: Number,
30344
- default: () => 14
30345
- },
30346
- // svg 颜色
30347
- color: {
30348
- type: String
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
+ }
30349
30365
  }
30350
- },
30351
- setup(__props) {
30352
- const props = __props;
30353
- const linesString = ["https", "http", "/src", "/assets", "data:image", window.__env__.VITE_PUBLIC_PATH];
30354
- const getIconName = computed(() => {
30355
- return props?.name;
30356
- });
30357
- const isShowIconSvg = computed(() => {
30358
- return props?.name?.startsWith("ele-");
30359
- });
30360
- const isShowIconImg = computed(() => {
30361
- return linesString.find((str) => props.name?.startsWith(str));
30362
- });
30363
- const setIconSvgStyle = computed(() => {
30364
- return `font-size: ${props.size}px;color: ${props.color};`;
30365
- });
30366
- const setIconImgOutStyle = computed(() => {
30367
- return `width: ${props.size}px;height: ${props.size}px;display: inline-block;overflow: hidden;`;
30368
- });
30369
- const setIconSvgInsStyle = computed(() => {
30370
- const filterStyle = [];
30371
- const compatibles = ["-webkit", "-ms", "-o", "-moz"];
30372
- compatibles.forEach((j) => filterStyle.push(`${j}-filter: drop-shadow(${props.color} ${props.size}px 0);`));
30373
- return `width: ${props.size}px;height: ${props.size}px;position: relative;left: -${props.size}px;${filterStyle.join("")}`;
30374
- });
30375
- return (_ctx, _cache) => {
30376
- return isShowIconSvg.value ? (openBlock(), createElementBlock(
30377
- "i",
30378
- {
30379
- key: 0,
30380
- class: "el-icon",
30381
- style: normalizeStyle(setIconSvgStyle.value)
30382
- },
30383
- [
30384
- (openBlock(), createBlock(resolveDynamicComponent(getIconName.value)))
30385
- ],
30386
- 4
30387
- /* STYLE */
30388
- )) : isShowIconImg.value ? (openBlock(), createElementBlock(
30389
- "div",
30390
- {
30391
- key: 1,
30392
- style: normalizeStyle(setIconImgOutStyle.value)
30393
- },
30394
- [
30395
- createElementVNode("img", {
30396
- src: getIconName.value,
30397
- style: normalizeStyle(setIconSvgInsStyle.value)
30398
- }, null, 12, _hoisted_1)
30399
- ],
30400
- 4
30401
- /* STYLE */
30402
- )) : (openBlock(), createElementBlock(
30403
- "i",
30404
- {
30405
- key: 2,
30406
- class: normalizeClass(getIconName.value),
30407
- style: normalizeStyle(setIconSvgStyle.value)
30408
- },
30409
- null,
30410
- 6
30411
- /* CLASS, STYLE */
30412
- ));
30413
- };
30414
30366
  }
30415
- });
30416
-
30417
- function elSvg(app) {
30418
- const icons = svg;
30419
- for (const i in icons) {
30420
- if (!app._context.components[`ele-${icons[i].name}`]) {
30421
- app.component(`ele-${icons[i].name}`, icons[i]);
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);
30422
30373
  }
30423
30374
  }
30424
- if (!app._context.components[`SvgIcon`]) {
30425
- app.component("SvgIcon", _sfc_main$1);
30375
+ deprecateHooks(deprecatedHooks) {
30376
+ Object.assign(this._deprecatedHooks, deprecatedHooks);
30377
+ for (const name in deprecatedHooks) {
30378
+ this.deprecateHook(name, deprecatedHooks[name]);
30379
+ }
30426
30380
  }
30427
- }
30428
-
30429
- const FmTransfer = _sfc_main$8;
30430
- const FmNoticeBar = _sfc_main$7;
30431
- const FmDragImg = dragimg;
30432
- const Fmselect = _sfc_main$5;
30433
- const FmAutocomplete = _sfc_main$4;
30434
- const Fminputdropdown = _sfc_main$3;
30435
- const FmTree = _sfc_main$2;
30436
-
30437
- const makeInstaller = (components = []) => {
30438
- const install = (app) => {
30439
- components.forEach(
30440
- (component) => {
30441
- if (!app._context.components[component.name]) {
30442
- app.component(component.name, component);
30443
- }
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();
30444
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_
30445
30419
  );
30446
- if (app)
30447
- elSvg(app);
30448
- };
30449
- return {
30450
- install
30451
- };
30452
- };
30453
-
30454
- var _sfc_main = /* @__PURE__ */ defineComponent({
30455
- ...{
30456
- name: "FmLogin"
30457
- },
30458
- __name: "index",
30459
- setup(__props) {
30460
- const login = ref(false);
30461
- function handleLogin() {
30462
- login.value = true;
30420
+ if (result instanceof Promise) {
30421
+ return result.finally(() => {
30422
+ if (this._after && event) {
30423
+ callEachWith(this._after, event);
30424
+ }
30425
+ });
30463
30426
  }
30464
- return (_ctx, _cache) => {
30465
- return openBlock(), createElementBlock("div", { onClick: handleLogin }, _cache[0] || (_cache[0] = [
30466
- createElementVNode(
30467
- "h1",
30468
- null,
30469
- "login xxxxx ",
30470
- -1
30471
- /* CACHED */
30472
- )
30473
- ]));
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
+ }
30474
30442
  };
30475
30443
  }
30476
- });
30477
-
30478
- const FmLogin = _sfc_main;
30479
-
30480
- const plugins = [
30481
- FmLogin,
30482
- FmTransfer,
30483
- FmNoticeBar,
30484
- Fmselect,
30485
- FmAutocomplete,
30486
- Fminputdropdown,
30487
- FmTree
30488
- ];
30489
-
30490
- var installer = makeInstaller([...plugins]);
30491
-
30492
- const cssCdnUrlList = [
30493
- // 调整为从本地引入,注释下面的 url
30494
- // '//at.alicdn.com/t/c/font_2298093_rnp72ifj3ba.css',
30495
- // '//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css',
30496
- ];
30497
- const jsCdnUrlList = [];
30498
- function setCssCdn() {
30499
- if (cssCdnUrlList.length <= 0) return false;
30500
- cssCdnUrlList.map((v) => {
30501
- let link = document.createElement("link");
30502
- link.rel = "stylesheet";
30503
- link.href = v;
30504
- link.crossOrigin = "anonymous";
30505
- document.getElementsByTagName("head")[0].appendChild(link);
30506
- });
30507
- }
30508
- function setJsCdn() {
30509
- if (jsCdnUrlList.length <= 0) return false;
30510
- jsCdnUrlList.map((v) => {
30511
- let link = document.createElement("script");
30512
- link.src = v;
30513
- document.body.appendChild(link);
30514
- });
30515
- }
30516
- const setIntroduction = {
30517
- // 设置css
30518
- cssCdn: () => {
30519
- setCssCdn();
30520
- },
30521
- // 设置js
30522
- jsCdn: () => {
30523
- setJsCdn();
30524
- }
30525
- };
30526
-
30527
- const NextLoading = {
30528
- // 创建 loading
30529
- start: () => {
30530
- const bodys = document.body;
30531
- const div = document.createElement("div");
30532
- div.setAttribute("class", "loading-next");
30533
- const htmls = `
30534
- <div class="loading-next-box">
30535
- <div class="loading-next-box-warp">
30536
- <div class="loading-next-box-item"></div>
30537
- <div class="loading-next-box-item"></div>
30538
- <div class="loading-next-box-item"></div>
30539
- <div class="loading-next-box-item"></div>
30540
- <div class="loading-next-box-item"></div>
30541
- <div class="loading-next-box-item"></div>
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>
30546
- </div>
30547
- `;
30548
- div.innerHTML = htmls;
30549
- bodys.insertBefore(div, bodys.childNodes[0]);
30550
- window.nextLoading = true;
30551
- },
30552
- // 移除 loading
30553
- done: (time = 0) => {
30554
- nextTick(() => {
30555
- setTimeout(() => {
30556
- window.nextLoading = false;
30557
- const el = document.querySelector(".loading-next");
30558
- el?.parentNode?.removeChild(el);
30559
- }, time);
30560
- });
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
+ };
30561
30455
  }
30562
- };
30563
-
30564
- function useSysApi() {
30565
- return {
30566
- getSysInfo: (id) => {
30567
- return service({
30568
- url: `/api/sysTenant/sysInfo/${id}`,
30569
- method: "GET"
30570
- });
30571
- },
30572
- getSmPublicKey: () => {
30573
- return service({
30574
- url: `/api/sysConfig/smPublicKey`,
30575
- method: "GET"
30576
- });
30577
- },
30578
- getMenuTree: () => {
30579
- return service({
30580
- url: `/api/sysMenu/loginMenuTree`,
30581
- method: "GET"
30582
- });
30583
- },
30584
- getMenuUserMenuList: () => {
30585
- return service({
30586
- url: `/api/sysUserMenu/userMenuList`,
30587
- method: "GET"
30588
- });
30589
- },
30590
- addUserMenu: (data) => {
30591
- return service({
30592
- url: `/api/sysUserMenu/add`,
30593
- method: "POST",
30594
- data
30595
- });
30596
- },
30597
- setNoticeRead: (data) => {
30598
- return service({
30599
- url: `/api/sysNotice/setRead`,
30600
- method: "POST",
30601
- data
30602
- });
30603
- },
30604
- getNoticeTitle: () => {
30605
- return service({
30606
- url: `/api/sysNotice/noticeTitle`,
30607
- method: "GET"
30608
- });
30609
- },
30610
- getNoticeUnReadList: () => {
30611
- return service({
30612
- url: `/api/sysNotice/unReadList`,
30613
- method: "GET"
30614
- });
30615
- },
30616
- NoticePageReceived: (data) => {
30617
- return service({
30618
- url: `/api/sysNotice/pageReceived`,
30619
- method: "POST",
30620
- data
30621
- });
30622
- },
30623
- getUpgradeLastUnRead: () => {
30624
- return service({
30625
- url: `/api/sysUpgrade/lastUnRead`,
30626
- method: "GET"
30627
- });
30628
- },
30629
- // 获取用户信息
30630
- getUserInfo: () => {
30631
- return service({
30632
- url: `/api/sysAuth/userInfo`,
30633
- method: "GET"
30634
- });
30635
- },
30636
- getUserRoleTableList: () => {
30637
- return service({
30638
- url: `/api/sysRole/userRoleTableList`,
30639
- method: "GET"
30640
- });
30641
- },
30642
- getConstList: () => {
30643
- return service({
30644
- url: `/api/sysConst/list`,
30645
- method: "GET"
30646
- });
30647
- },
30648
- getPosList: () => {
30649
- return service({
30650
- url: `/api/sysPos/list`,
30651
- method: "GET"
30652
- });
30653
- },
30654
- getOwnRoleListById: (userid) => {
30655
- return service({
30656
- url: `/api/sysUser/ownRoleList/${userid}`,
30657
- method: "GET"
30658
- });
30659
- },
30660
- getRoleList: () => {
30661
- return service({
30662
- url: `/api/sysRole/list`,
30663
- method: "GET"
30664
- });
30665
- },
30666
- getSysOrgChildTreePidLevel: (pid, level) => {
30667
- return service({
30668
- url: `/api/sysOrg/childTree/${pid}/${level}`,
30669
- method: "GET"
30670
- });
30671
- },
30672
- getOrgList: (params) => {
30673
- return service({
30674
- url: `/api/sysOrg/list`,
30675
- method: "GET",
30676
- params
30677
- });
30678
- },
30679
- getUserBaseInfo: () => {
30680
- return service({
30681
- url: `/api/sysUser/baseInfo`,
30682
- method: "GET"
30683
- });
30684
- },
30685
- getOwnExtOrgListByid: (userid) => {
30686
- return service({
30687
- url: `/api/sysUser/ownExtOrgList/${userid}`,
30688
- method: "GET"
30689
- });
30690
- },
30691
- getAllDictList: () => {
30692
- return service({
30693
- url: `/api/sysDictType/allDictList`,
30694
- method: "GET"
30695
- });
30696
- },
30697
- verifyPwdExpirationTime: () => {
30698
- return service({
30699
- url: `/api/sysUser/verifyPwdExpirationTime`,
30700
- method: "POST"
30701
- });
30702
- },
30703
- changePwd: (data) => {
30704
- return service({
30705
- url: `/fmauth/sysauth/changePwd`,
30706
- method: "POST",
30707
- data
30708
- });
30709
- },
30710
- resetPwd: (data) => {
30711
- return service({
30712
- url: `/fmauth/sysauth/resetPwd`,
30713
- method: "POST",
30714
- data
30715
- });
30716
- },
30717
- unlockLogin: (data) => {
30718
- return service({
30719
- url: `/fmauth/sysauth/unlockLogin`,
30720
- method: "POST",
30721
- data
30722
- });
30723
- },
30724
- changeToken: (data) => {
30725
- return service({
30726
- url: `/fmauth/sysauth/changeToken`,
30727
- method: "POST",
30728
- data
30729
- });
30730
- },
30731
- Logout: () => {
30732
- return service({
30733
- url: `/fmauth/sysauth/logout`,
30734
- method: "POST"
30735
- });
30736
- },
30737
- unLockScreen: (password) => {
30738
- return service({
30739
- url: `/fmauth/sysauth/unlockScreen/?password=${password}`,
30740
- method: "POST"
30741
- });
30742
- },
30743
- getOnlineUserList: (data) => {
30744
- return service({
30745
- url: `/fmauth/sysOnlineUser/page`,
30746
- method: "POST",
30747
- data
30748
- });
30749
- }
30750
- };
30751
- }
30752
- function feature(promise, errorExt) {
30753
- return promise.then((data) => [null, data]).catch((err) => {
30754
- if (errorExt) {
30755
- const parsedError = Object.assign({}, err, errorExt);
30756
- return [parsedError, void 0];
30757
- }
30758
- return [err, void 0];
30759
- });
30760
30456
  }
30761
-
30762
- function useLoginApi() {
30763
- return {
30764
- signIn: (data) => {
30765
- return service({
30766
- url: "/fmauth/sysauth/login",
30767
- method: "post",
30768
- data
30769
- });
30770
- },
30771
- loginPhonenumber: (data) => {
30772
- return service({
30773
- url: "/fmauth/sysauth/loginPhone",
30774
- method: "post",
30775
- data
30776
- });
30777
- },
30778
- getCaptcha: () => {
30779
- return service({
30780
- url: "/fmauth/sysauth/captcha",
30781
- method: "get"
30782
- });
30783
- },
30784
- signOut: (data) => {
30785
- return service({
30786
- url: "/fmauth/sysauth/signOut",
30787
- method: "post",
30788
- data
30789
- });
30790
- }
30791
- };
30457
+ function createHooks() {
30458
+ return new Hookable();
30792
30459
  }
30793
30460
 
30794
- var AccountTypeEnum = /* @__PURE__ */ ((AccountTypeEnum2) => {
30795
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_666"] = 666] = "NUMBER_666";
30796
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_777"] = 777] = "NUMBER_777";
30797
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_888"] = 888] = "NUMBER_888";
30798
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_987"] = 987] = "NUMBER_987";
30799
- AccountTypeEnum2[AccountTypeEnum2["NUMBER_999"] = 999] = "NUMBER_999";
30800
- return AccountTypeEnum2;
30801
- })(AccountTypeEnum || {});
30802
- var JobCreateTypeEnum = /* @__PURE__ */ ((JobCreateTypeEnum2) => {
30803
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_0"] = 0] = "NUMBER_0";
30804
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_1"] = 1] = "NUMBER_1";
30805
- JobCreateTypeEnum2[JobCreateTypeEnum2["NUMBER_2"] = 2] = "NUMBER_2";
30806
- return JobCreateTypeEnum2;
30807
- })(JobCreateTypeEnum || {});
30808
- var HttpMethodEnum = /* @__PURE__ */ ((HttpMethodEnum2) => {
30809
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_0"] = 0] = "NUMBER_0";
30810
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_1"] = 1] = "NUMBER_1";
30811
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_2"] = 2] = "NUMBER_2";
30812
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_3"] = 3] = "NUMBER_3";
30813
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_4"] = 4] = "NUMBER_4";
30814
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_5"] = 5] = "NUMBER_5";
30815
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_6"] = 6] = "NUMBER_6";
30816
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_7"] = 7] = "NUMBER_7";
30817
- HttpMethodEnum2[HttpMethodEnum2["NUMBER_8"] = 8] = "NUMBER_8";
30818
- return HttpMethodEnum2;
30819
- })(HttpMethodEnum || {});
30820
-
30821
- var __create$1 = Object.create;
30822
- var __defProp$1 = Object.defineProperty;
30823
- var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
30824
- var __getOwnPropNames$1 = Object.getOwnPropertyNames;
30825
- var __getProtoOf$1 = Object.getPrototypeOf;
30826
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
30827
- var __esm$1 = (fn, res) => function __init() {
30828
- 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;
30829
30469
  };
30830
- var __commonJS$1 = (cb, mod) => function __require() {
30831
- 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;
30832
30472
  };
30833
- var __copyProps$1 = (to, from, except, desc) => {
30473
+ var __copyProps = (to, from, except, desc) => {
30834
30474
  if (from && typeof from === "object" || typeof from === "function") {
30835
- for (let key of __getOwnPropNames$1(from))
30836
- if (!__hasOwnProp$1.call(to, key) && key !== except)
30837
- __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 });
30838
30478
  }
30839
30479
  return to;
30840
30480
  };
30841
- 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(
30842
30482
  // If the importer is in node compatibility mode or this is not an ESM
30843
30483
  // file that has been converted to a CommonJS file using a Babel-
30844
30484
  // compatible transform (i.e. "__esModule" has not been set), then set
30845
30485
  // "default" to the CommonJS "module.exports" for node compatibility.
30846
- __defProp$1(target2, "default", { value: mod, enumerable: true }) ,
30486
+ __defProp(target22, "default", { value: mod, enumerable: true }) ,
30847
30487
  mod
30848
30488
  ));
30849
30489
 
30850
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
30851
- var init_esm_shims$1 = __esm$1({
30852
- "../../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"() {
30853
- }
30854
- });
30855
-
30856
- // ../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js
30857
- var require_rfdc = __commonJS$1({
30858
- "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(exports, module) {
30859
- init_esm_shims$1();
30860
- module.exports = rfdc2;
30861
- function copyBuffer(cur) {
30862
- if (cur instanceof Buffer) {
30863
- return Buffer.from(cur);
30864
- }
30865
- return new cur.constructor(cur.buffer.slice(), cur.byteOffset, cur.length);
30866
- }
30867
- function rfdc2(opts) {
30868
- opts = opts || {};
30869
- if (opts.circles) return rfdcCircles(opts);
30870
- const constructorHandlers = /* @__PURE__ */ new Map();
30871
- constructorHandlers.set(Date, (o) => new Date(o));
30872
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
30873
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
30874
- if (opts.constructorHandlers) {
30875
- for (const handler2 of opts.constructorHandlers) {
30876
- constructorHandlers.set(handler2[0], handler2[1]);
30877
- }
30878
- }
30879
- let handler = null;
30880
- return opts.proto ? cloneProto : clone;
30881
- function cloneArray(a, fn) {
30882
- const keys = Object.keys(a);
30883
- const a2 = new Array(keys.length);
30884
- for (let i = 0; i < keys.length; i++) {
30885
- const k = keys[i];
30886
- const cur = a[k];
30887
- if (typeof cur !== "object" || cur === null) {
30888
- a2[k] = cur;
30889
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30890
- a2[k] = handler(cur, fn);
30891
- } else if (ArrayBuffer.isView(cur)) {
30892
- a2[k] = copyBuffer(cur);
30893
- } else {
30894
- a2[k] = fn(cur);
30895
- }
30896
- }
30897
- return a2;
30898
- }
30899
- function clone(o) {
30900
- if (typeof o !== "object" || o === null) return o;
30901
- if (Array.isArray(o)) return cloneArray(o, clone);
30902
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30903
- return handler(o, clone);
30904
- }
30905
- const o2 = {};
30906
- for (const k in o) {
30907
- if (Object.hasOwnProperty.call(o, k) === false) continue;
30908
- const cur = o[k];
30909
- if (typeof cur !== "object" || cur === null) {
30910
- o2[k] = cur;
30911
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30912
- o2[k] = handler(cur, clone);
30913
- } else if (ArrayBuffer.isView(cur)) {
30914
- o2[k] = copyBuffer(cur);
30915
- } else {
30916
- o2[k] = clone(cur);
30917
- }
30918
- }
30919
- return o2;
30920
- }
30921
- function cloneProto(o) {
30922
- if (typeof o !== "object" || o === null) return o;
30923
- if (Array.isArray(o)) return cloneArray(o, cloneProto);
30924
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30925
- return handler(o, cloneProto);
30926
- }
30927
- const o2 = {};
30928
- for (const k in o) {
30929
- const cur = o[k];
30930
- if (typeof cur !== "object" || cur === null) {
30931
- o2[k] = cur;
30932
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30933
- o2[k] = handler(cur, cloneProto);
30934
- } else if (ArrayBuffer.isView(cur)) {
30935
- o2[k] = copyBuffer(cur);
30936
- } else {
30937
- o2[k] = cloneProto(cur);
30938
- }
30939
- }
30940
- return o2;
30941
- }
30942
- }
30943
- function rfdcCircles(opts) {
30944
- const refs = [];
30945
- const refsNew = [];
30946
- const constructorHandlers = /* @__PURE__ */ new Map();
30947
- constructorHandlers.set(Date, (o) => new Date(o));
30948
- constructorHandlers.set(Map, (o, fn) => new Map(cloneArray(Array.from(o), fn)));
30949
- constructorHandlers.set(Set, (o, fn) => new Set(cloneArray(Array.from(o), fn)));
30950
- if (opts.constructorHandlers) {
30951
- for (const handler2 of opts.constructorHandlers) {
30952
- constructorHandlers.set(handler2[0], handler2[1]);
30953
- }
30954
- }
30955
- let handler = null;
30956
- return opts.proto ? cloneProto : clone;
30957
- function cloneArray(a, fn) {
30958
- const keys = Object.keys(a);
30959
- const a2 = new Array(keys.length);
30960
- for (let i = 0; i < keys.length; i++) {
30961
- const k = keys[i];
30962
- const cur = a[k];
30963
- if (typeof cur !== "object" || cur === null) {
30964
- a2[k] = cur;
30965
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30966
- a2[k] = handler(cur, fn);
30967
- } else if (ArrayBuffer.isView(cur)) {
30968
- a2[k] = copyBuffer(cur);
30969
- } else {
30970
- const index = refs.indexOf(cur);
30971
- if (index !== -1) {
30972
- a2[k] = refsNew[index];
30973
- } else {
30974
- a2[k] = fn(cur);
30975
- }
30976
- }
30977
- }
30978
- return a2;
30979
- }
30980
- function clone(o) {
30981
- if (typeof o !== "object" || o === null) return o;
30982
- if (Array.isArray(o)) return cloneArray(o, clone);
30983
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
30984
- return handler(o, clone);
30985
- }
30986
- const o2 = {};
30987
- refs.push(o);
30988
- refsNew.push(o2);
30989
- for (const k in o) {
30990
- if (Object.hasOwnProperty.call(o, k) === false) continue;
30991
- const cur = o[k];
30992
- if (typeof cur !== "object" || cur === null) {
30993
- o2[k] = cur;
30994
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
30995
- o2[k] = handler(cur, clone);
30996
- } else if (ArrayBuffer.isView(cur)) {
30997
- o2[k] = copyBuffer(cur);
30998
- } else {
30999
- const i = refs.indexOf(cur);
31000
- if (i !== -1) {
31001
- o2[k] = refsNew[i];
31002
- } else {
31003
- o2[k] = clone(cur);
31004
- }
31005
- }
31006
- }
31007
- refs.pop();
31008
- refsNew.pop();
31009
- return o2;
31010
- }
31011
- function cloneProto(o) {
31012
- if (typeof o !== "object" || o === null) return o;
31013
- if (Array.isArray(o)) return cloneArray(o, cloneProto);
31014
- if (o.constructor !== Object && (handler = constructorHandlers.get(o.constructor))) {
31015
- return handler(o, cloneProto);
31016
- }
31017
- const o2 = {};
31018
- refs.push(o);
31019
- refsNew.push(o2);
31020
- for (const k in o) {
31021
- const cur = o[k];
31022
- if (typeof cur !== "object" || cur === null) {
31023
- o2[k] = cur;
31024
- } else if (cur.constructor !== Object && (handler = constructorHandlers.get(cur.constructor))) {
31025
- o2[k] = handler(cur, cloneProto);
31026
- } else if (ArrayBuffer.isView(cur)) {
31027
- o2[k] = copyBuffer(cur);
31028
- } else {
31029
- const i = refs.indexOf(cur);
31030
- if (i !== -1) {
31031
- o2[k] = refsNew[i];
31032
- } else {
31033
- o2[k] = cloneProto(cur);
31034
- }
31035
- }
31036
- }
31037
- refs.pop();
31038
- refsNew.pop();
31039
- return o2;
31040
- }
31041
- }
31042
- }
31043
- });
31044
-
31045
- // src/index.ts
31046
- init_esm_shims$1();
31047
-
31048
- // src/constants.ts
31049
- init_esm_shims$1();
31050
-
31051
- // src/env.ts
31052
- init_esm_shims$1();
31053
- var isBrowser = typeof navigator !== "undefined";
31054
- var target = typeof window !== "undefined" ? window : typeof globalThis !== "undefined" ? globalThis : typeof global !== "undefined" ? global : {};
31055
- typeof target.chrome !== "undefined" && !!target.chrome.devtools;
31056
- isBrowser && target.self !== target.top;
31057
- var _a$1;
31058
- typeof navigator !== "undefined" && ((_a$1 = navigator.userAgent) == null ? void 0 : _a$1.toLowerCase().includes("electron"));
31059
-
31060
- // src/general.ts
31061
- init_esm_shims$1();
31062
- var import_rfdc = __toESM$1(require_rfdc());
31063
- var classifyRE = /(?:^|[-_/])(\w)/g;
31064
- function toUpper(_, c) {
31065
- return c ? c.toUpperCase() : "";
31066
- }
31067
- function classify(str) {
31068
- return str && `${str}`.replace(classifyRE, toUpper);
31069
- }
31070
- function basename(filename, ext) {
31071
- let normalizedFilename = filename.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
31072
- if (normalizedFilename.endsWith(`index${ext}`)) {
31073
- normalizedFilename = normalizedFilename.replace(`/index${ext}`, ext);
31074
- }
31075
- const lastSlashIndex = normalizedFilename.lastIndexOf("/");
31076
- const baseNameWithExt = normalizedFilename.substring(lastSlashIndex + 1);
31077
- {
31078
- const extIndex = baseNameWithExt.lastIndexOf(ext);
31079
- return baseNameWithExt.substring(0, extIndex);
31080
- }
31081
- }
31082
- var deepClone = (0, import_rfdc.default)({ circles: true });
31083
-
31084
- const DEBOUNCE_DEFAULTS = {
31085
- trailing: true
31086
- };
31087
- function debounce(fn, wait = 25, options = {}) {
31088
- options = { ...DEBOUNCE_DEFAULTS, ...options };
31089
- if (!Number.isFinite(wait)) {
31090
- throw new TypeError("Expected `wait` to be a finite number");
31091
- }
31092
- let leadingValue;
31093
- let timeout;
31094
- let resolveList = [];
31095
- let currentPromise;
31096
- let trailingArgs;
31097
- const applyFn = (_this, args) => {
31098
- currentPromise = _applyPromised(fn, _this, args);
31099
- currentPromise.finally(() => {
31100
- currentPromise = null;
31101
- if (options.trailing && trailingArgs && !timeout) {
31102
- const promise = applyFn(_this, trailingArgs);
31103
- trailingArgs = null;
31104
- return promise;
31105
- }
31106
- });
31107
- return currentPromise;
31108
- };
31109
- return function(...args) {
31110
- if (currentPromise) {
31111
- if (options.trailing) {
31112
- trailingArgs = args;
31113
- }
31114
- return currentPromise;
31115
- }
31116
- return new Promise((resolve) => {
31117
- const shouldCallNow = !timeout && options.leading;
31118
- clearTimeout(timeout);
31119
- timeout = setTimeout(() => {
31120
- timeout = null;
31121
- const promise = options.leading ? leadingValue : applyFn(this, args);
31122
- for (const _resolve of resolveList) {
31123
- _resolve(promise);
31124
- }
31125
- resolveList = [];
31126
- }, wait);
31127
- if (shouldCallNow) {
31128
- leadingValue = applyFn(this, args);
31129
- resolve(leadingValue);
31130
- } else {
31131
- resolveList.push(resolve);
31132
- }
31133
- });
31134
- };
31135
- }
31136
- async function _applyPromised(fn, _this, args) {
31137
- return await fn.apply(_this, args);
31138
- }
31139
-
31140
- function flatHooks(configHooks, hooks = {}, parentName) {
31141
- for (const key in configHooks) {
31142
- const subHook = configHooks[key];
31143
- const name = parentName ? `${parentName}:${key}` : key;
31144
- if (typeof subHook === "object" && subHook !== null) {
31145
- flatHooks(subHook, hooks, name);
31146
- } else if (typeof subHook === "function") {
31147
- hooks[name] = subHook;
31148
- }
31149
- }
31150
- return hooks;
31151
- }
31152
- const defaultTask = { run: (function_) => function_() };
31153
- const _createTask = () => defaultTask;
31154
- const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
31155
- function serialTaskCaller(hooks, args) {
31156
- const name = args.shift();
31157
- const task = createTask(name);
31158
- return hooks.reduce(
31159
- (promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
31160
- Promise.resolve()
31161
- );
31162
- }
31163
- function parallelTaskCaller(hooks, args) {
31164
- const name = args.shift();
31165
- const task = createTask(name);
31166
- return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
31167
- }
31168
- function callEachWith(callbacks, arg0) {
31169
- for (const callback of [...callbacks]) {
31170
- callback(arg0);
31171
- }
31172
- }
31173
-
31174
- class Hookable {
31175
- constructor() {
31176
- this._hooks = {};
31177
- this._before = void 0;
31178
- this._after = void 0;
31179
- this._deprecatedMessages = void 0;
31180
- this._deprecatedHooks = {};
31181
- this.hook = this.hook.bind(this);
31182
- this.callHook = this.callHook.bind(this);
31183
- this.callHookWith = this.callHookWith.bind(this);
31184
- }
31185
- hook(name, function_, options = {}) {
31186
- if (!name || typeof function_ !== "function") {
31187
- return () => {
31188
- };
31189
- }
31190
- const originalName = name;
31191
- let dep;
31192
- while (this._deprecatedHooks[name]) {
31193
- dep = this._deprecatedHooks[name];
31194
- name = dep.to;
31195
- }
31196
- if (dep && !options.allowDeprecated) {
31197
- let message = dep.message;
31198
- if (!message) {
31199
- message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
31200
- }
31201
- if (!this._deprecatedMessages) {
31202
- this._deprecatedMessages = /* @__PURE__ */ new Set();
31203
- }
31204
- if (!this._deprecatedMessages.has(message)) {
31205
- console.warn(message);
31206
- this._deprecatedMessages.add(message);
31207
- }
31208
- }
31209
- if (!function_.name) {
31210
- try {
31211
- Object.defineProperty(function_, "name", {
31212
- get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
31213
- configurable: true
31214
- });
31215
- } catch {
31216
- }
31217
- }
31218
- this._hooks[name] = this._hooks[name] || [];
31219
- this._hooks[name].push(function_);
31220
- return () => {
31221
- if (function_) {
31222
- this.removeHook(name, function_);
31223
- function_ = void 0;
31224
- }
31225
- };
31226
- }
31227
- hookOnce(name, function_) {
31228
- let _unreg;
31229
- let _function = (...arguments_) => {
31230
- if (typeof _unreg === "function") {
31231
- _unreg();
31232
- }
31233
- _unreg = void 0;
31234
- _function = void 0;
31235
- return function_(...arguments_);
31236
- };
31237
- _unreg = this.hook(name, _function);
31238
- return _unreg;
31239
- }
31240
- removeHook(name, function_) {
31241
- if (this._hooks[name]) {
31242
- const index = this._hooks[name].indexOf(function_);
31243
- if (index !== -1) {
31244
- this._hooks[name].splice(index, 1);
31245
- }
31246
- if (this._hooks[name].length === 0) {
31247
- delete this._hooks[name];
31248
- }
31249
- }
31250
- }
31251
- deprecateHook(name, deprecated) {
31252
- this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
31253
- const _hooks = this._hooks[name] || [];
31254
- delete this._hooks[name];
31255
- for (const hook of _hooks) {
31256
- this.hook(name, hook);
31257
- }
31258
- }
31259
- deprecateHooks(deprecatedHooks) {
31260
- Object.assign(this._deprecatedHooks, deprecatedHooks);
31261
- for (const name in deprecatedHooks) {
31262
- this.deprecateHook(name, deprecatedHooks[name]);
31263
- }
31264
- }
31265
- addHooks(configHooks) {
31266
- const hooks = flatHooks(configHooks);
31267
- const removeFns = Object.keys(hooks).map(
31268
- (key) => this.hook(key, hooks[key])
31269
- );
31270
- return () => {
31271
- for (const unreg of removeFns.splice(0, removeFns.length)) {
31272
- unreg();
31273
- }
31274
- };
31275
- }
31276
- removeHooks(configHooks) {
31277
- const hooks = flatHooks(configHooks);
31278
- for (const key in hooks) {
31279
- this.removeHook(key, hooks[key]);
31280
- }
31281
- }
31282
- removeAllHooks() {
31283
- for (const key in this._hooks) {
31284
- delete this._hooks[key];
31285
- }
31286
- }
31287
- callHook(name, ...arguments_) {
31288
- arguments_.unshift(name);
31289
- return this.callHookWith(serialTaskCaller, name, ...arguments_);
31290
- }
31291
- callHookParallel(name, ...arguments_) {
31292
- arguments_.unshift(name);
31293
- return this.callHookWith(parallelTaskCaller, name, ...arguments_);
31294
- }
31295
- callHookWith(caller, name, ...arguments_) {
31296
- const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
31297
- if (this._before) {
31298
- callEachWith(this._before, event);
31299
- }
31300
- const result = caller(
31301
- name in this._hooks ? [...this._hooks[name]] : [],
31302
- arguments_
31303
- );
31304
- if (result instanceof Promise) {
31305
- return result.finally(() => {
31306
- if (this._after && event) {
31307
- callEachWith(this._after, event);
31308
- }
31309
- });
31310
- }
31311
- if (this._after && event) {
31312
- callEachWith(this._after, event);
31313
- }
31314
- return result;
31315
- }
31316
- beforeEach(function_) {
31317
- this._before = this._before || [];
31318
- this._before.push(function_);
31319
- return () => {
31320
- if (this._before !== void 0) {
31321
- const index = this._before.indexOf(function_);
31322
- if (index !== -1) {
31323
- this._before.splice(index, 1);
31324
- }
31325
- }
31326
- };
31327
- }
31328
- afterEach(function_) {
31329
- this._after = this._after || [];
31330
- this._after.push(function_);
31331
- return () => {
31332
- if (this._after !== void 0) {
31333
- const index = this._after.indexOf(function_);
31334
- if (index !== -1) {
31335
- this._after.splice(index, 1);
31336
- }
31337
- }
31338
- };
31339
- }
31340
- }
31341
- function createHooks() {
31342
- return new Hookable();
31343
- }
31344
-
31345
- var __create = Object.create;
31346
- var __defProp = Object.defineProperty;
31347
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
31348
- var __getOwnPropNames = Object.getOwnPropertyNames;
31349
- var __getProtoOf = Object.getPrototypeOf;
31350
- var __hasOwnProp = Object.prototype.hasOwnProperty;
31351
- var __esm = (fn, res) => function __init() {
31352
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
31353
- };
31354
- var __commonJS = (cb, mod) => function __require() {
31355
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
31356
- };
31357
- var __copyProps = (to, from, except, desc) => {
31358
- if (from && typeof from === "object" || typeof from === "function") {
31359
- for (let key of __getOwnPropNames(from))
31360
- if (!__hasOwnProp.call(to, key) && key !== except)
31361
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31362
- }
31363
- return to;
31364
- };
31365
- var __toESM = (mod, isNodeMode, target22) => (target22 = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
31366
- // If the importer is in node compatibility mode or this is not an ESM
31367
- // file that has been converted to a CommonJS file using a Babel-
31368
- // compatible transform (i.e. "__esModule" has not been set), then set
31369
- // "default" to the CommonJS "module.exports" for node compatibility.
31370
- __defProp(target22, "default", { value: mod, enumerable: true }) ,
31371
- mod
31372
- ));
31373
-
31374
- // ../../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
31375
- var init_esm_shims = __esm({
30491
+ var init_esm_shims = __esm({
31376
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"() {
31377
30493
  }
31378
30494
  });
@@ -36997,6 +36113,927 @@ id, setup, setupOptions) {
36997
36113
  return useStore;
36998
36114
  }
36999
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
+
37000
37037
  const pinia = createPinia();
37001
37038
 
37002
37039
  const useKeepALiveNames = defineStore("keepALiveNames", {
@@ -53237,4 +53274,4 @@ const version = "1.0.0";
53237
53274
 
53238
53275
  const install = installer.install;
53239
53276
 
53240
- 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 };