@skyfox2000/webui 1.6.6 → 1.6.8
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/lib/assets/modules/{baseLayout-Q_-85t5x.js → baseLayout-CLYEvEZ4.js} +3 -3
- package/lib/assets/modules/{file-upload-C3fQyOcW.js → file-upload-JSdbDIS7.js} +1 -1
- package/lib/assets/modules/{index-BxppYXRI.js → index--7cem1cg.js} +2 -2
- package/lib/assets/modules/{index-CQ1CKyZE.js → index-DDdkKF8p.js} +2 -2
- package/lib/assets/modules/{index-DD-b_Aw7.js → index-DeciUTEK.js} +1 -1
- package/lib/assets/modules/{menuTabs-BRD9IqUS.js → menuTabs-B6rKn3BF.js} +2 -2
- package/lib/assets/modules/{toolIcon-CXETWWwt.js → toolIcon-h7IPQaWC.js} +1 -1
- package/lib/assets/modules/{upload-template-wBTe_VKy.js → upload-template-W04BQpEb.js} +5 -5
- package/lib/assets/modules/{uploadList-BIql2SCu.js → uploadList-D4k7XnhK.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/src/components/content/toolpanel/index.vue.d.ts +15 -0
- package/lib/src/components/form/autoComplete/index.vue.d.ts +111 -0
- package/lib/src/components/form/autoComplete/index.vue.js +156 -0
- package/lib/src/components/form/autoComplete/index.vue.js.map +1 -0
- package/lib/src/components/form/cascader/index.vue.d.ts +91 -0
- package/lib/src/components/form/input/index.vue.d.ts +29 -0
- package/lib/src/components/form/radio/index.vue.d.ts +115 -0
- package/lib/src/components/form/select/index.vue.d.ts +130 -0
- package/lib/src/components/form/switch/index.vue.d.ts +96 -0
- package/lib/src/components/form/transfer/index.vue.d.ts +33 -0
- package/lib/src/components/form/treeSelect/index.vue.d.ts +48 -0
- package/lib/src/components/form/upload/uploadList.vue.d.ts +42 -0
- package/lib/src/components/form/upload/uploadList.vue.js +713 -0
- package/lib/src/components/form/upload/uploadList.vue.js.map +1 -0
- package/lib/webui.es.js +13 -13
- package/package.json +3 -3
- package/src/components/form/autoComplete/index.vue +2 -1
- package/src/components/form/upload/uploadList.vue +1 -1
- package/src/locales/index.ts +4 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
|
|
2
2
|
import { Layout as i, LayoutSider as k } from "ant-design-vue";
|
|
3
|
-
import { a as b } from "./toolIcon-
|
|
4
|
-
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-
|
|
5
|
-
import { al as v, a as B, an as E } from "./upload-template-
|
|
3
|
+
import { a as b } from "./toolIcon-h7IPQaWC.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-B6rKn3BF.js";
|
|
5
|
+
import { al as v, a as B, an as E } from "./upload-template-W04BQpEb.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import L from "vue-m-message";
|
|
@@ -4,7 +4,7 @@ var h = (i, e, a) => U(i, typeof e != "symbol" ? e + "" : e, a);
|
|
|
4
4
|
import { hostUrl as E } from "@skyfox2000/fapi";
|
|
5
5
|
import m from "dayjs";
|
|
6
6
|
import f from "vue-m-message";
|
|
7
|
-
import { $ as n, M as y, u as F } from "./upload-template-
|
|
7
|
+
import { $ as n, M as y, u as F } from "./upload-template-W04BQpEb.js";
|
|
8
8
|
import { isMicroApp as g } from "@skyfox2000/microbase";
|
|
9
9
|
var l = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Uploading = "uploading", i.Success = "success", i.Error = "error", i.Online = "online", i.Offline = "offline", i))(l || {});
|
|
10
10
|
class M {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, provide as N, ref as A, watch as m, onMounted as V, createBlock as r, openBlock as d, unref as o, withCtx as n, createElementVNode as $, renderSlot as C, createVNode as D, createCommentVNode as u, createTextVNode as v, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-DeciUTEK.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-
|
|
5
|
+
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-W04BQpEb.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import H from "async-validator";
|
|
2
2
|
import { httpPost as $, ResStatus as M } from "@skyfox2000/fapi";
|
|
3
|
-
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-
|
|
3
|
+
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-W04BQpEb.js";
|
|
4
4
|
import E from "vue-m-message";
|
|
5
5
|
import { defineComponent as S, useAttrs as B, createElementBlock as P, openBlock as y, createVNode as z, unref as v, mergeProps as _, computed as x, createBlock as D, withCtx as A, normalizeStyle as N } from "vue";
|
|
6
6
|
import { Spin as L, Alert as O } from "ant-design-vue";
|
|
7
|
-
import { _ as K } from "./toolIcon-
|
|
7
|
+
import { _ as K } from "./toolIcon-h7IPQaWC.js";
|
|
8
8
|
const W = (l) => {
|
|
9
9
|
const e = l.split(`
|
|
10
10
|
`).filter((i) => i.trim() !== "");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
2
|
import { Button as _ } from "ant-design-vue";
|
|
3
|
-
import { a as P, _ as k } from "./toolIcon-
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-h7IPQaWC.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as x, createBlock as _, createCommentVNode as h, openBlock as c, unref as t, mergeProps as $, useAttrs as Y, computed as O, ref as b, watch as S, withCtx as m, createElementBlock as f, normalizeStyle as T, createElementVNode as g, inject as Z, onMounted as P, createVNode as u, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as G, reactive as Q, nextTick as X, withModifiers as ee } from "vue";
|
|
2
|
-
import { a as A, _ as k } from "./toolIcon-
|
|
3
|
-
import { c as D, Y as j, an as E, a1 as K, a0 as R, at as F, u as H, $ as w, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-
|
|
2
|
+
import { a as A, _ as k } from "./toolIcon-h7IPQaWC.js";
|
|
3
|
+
import { c as D, Y as j, an as E, a1 as K, a0 as R, at as F, u as H, $ as w, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-W04BQpEb.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { theme as M, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as W, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
|
|
6
6
|
import { isMicroApp as fe } from "@skyfox2000/microbase";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as s, openBlock as l, unref as a, withCtx as p, renderSlot as f, createCommentVNode as u, mergeProps as d } from "vue";
|
|
2
2
|
import { Tooltip as I } from "ant-design-vue";
|
|
3
3
|
import { SERVER_HOST as r } from "@skyfox2000/fapi";
|
|
4
|
-
import { c as S } from "./upload-template-
|
|
4
|
+
import { c as S } from "./upload-template-W04BQpEb.js";
|
|
5
5
|
const T = /* @__PURE__ */ i({
|
|
6
6
|
__name: "index",
|
|
7
7
|
props: {
|
|
@@ -4011,10 +4011,10 @@ const me = ii({
|
|
|
4011
4011
|
});
|
|
4012
4012
|
async function Ii(e) {
|
|
4013
4013
|
try {
|
|
4014
|
-
const t = await fetch(`${za}locales/${e}.json`);
|
|
4015
|
-
if (!
|
|
4014
|
+
const t = Date.now(), a = await fetch(`${za}locales/${e}.json?t=${t}`);
|
|
4015
|
+
if (!a.ok)
|
|
4016
4016
|
throw new Error(`Failed to load locale ${e}`);
|
|
4017
|
-
return await
|
|
4017
|
+
return await a.json();
|
|
4018
4018
|
} catch (t) {
|
|
4019
4019
|
return t instanceof TypeError && console.error(`Error loading locale ${e}:`, t), {};
|
|
4020
4020
|
}
|
|
@@ -4068,8 +4068,8 @@ async function qs(e) {
|
|
|
4068
4068
|
async function vc(e = "/", t) {
|
|
4069
4069
|
za = e;
|
|
4070
4070
|
try {
|
|
4071
|
-
const n = await fetch(`${za}locales/languages.json`);
|
|
4072
|
-
|
|
4071
|
+
const n = Date.now(), s = await fetch(`${za}locales/languages.json?t=${n}`);
|
|
4072
|
+
s.ok && (qt = await s.json());
|
|
4073
4073
|
} catch (n) {
|
|
4074
4074
|
n instanceof TypeError && console.error("[Locale] Network error:", n);
|
|
4075
4075
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as ce, ref as R, computed as I, watch as $, resolveDirective as de, createElementBlock as m, openBlock as d, normalizeClass as z, unref as n, createElementVNode as w, withDirectives as b, createCommentVNode as y, createBlock as V, mergeProps as G, withCtx as v, createVNode as p, createTextVNode as E, toDisplayString as P, Fragment as pe, renderList as me } from "vue";
|
|
2
|
-
import { _ as H } from "./index-
|
|
3
|
-
import { a as B, _ as K } from "./toolIcon-
|
|
2
|
+
import { _ as H } from "./index-DeciUTEK.js";
|
|
3
|
+
import { a as B, _ as K } from "./toolIcon-h7IPQaWC.js";
|
|
4
4
|
import { httpPost as N, ResStatus as j } from "@skyfox2000/fapi";
|
|
5
|
-
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-
|
|
5
|
+
import { L as X, u as Y, $ as a, v as fe, _ as he } from "./upload-template-W04BQpEb.js";
|
|
6
6
|
import U from "vue-m-message";
|
|
7
7
|
import { Upload as J, Tag as we, Popconfirm as ve, Progress as xe } from "ant-design-vue";
|
|
8
|
-
import { U as r, f as be, p as W } from "./file-upload-
|
|
8
|
+
import { U as r, f as be, p as W } from "./file-upload-JSdbDIS7.js";
|
|
9
9
|
import { combineParams as Z } from "@skyfox2000/microbase";
|
|
10
10
|
import "async-validator";
|
|
11
11
|
import "dayjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as V, defineAsyncComponent as J, ref as m, watch as K, onMounted as W, createElementBlock as x, openBlock as p, Fragment as z, createElementVNode as f, createVNode as N, toDisplayString as $, unref as l, createBlock as A, withKeys as v, normalizeClass as O, withModifiers as w, withCtx as L, createCommentVNode as q } from "vue";
|
|
2
2
|
import "ant-design-vue";
|
|
3
|
-
import { _ as D } from "../../assets/modules/toolIcon-
|
|
3
|
+
import { _ as D } from "../../assets/modules/toolIcon-h7IPQaWC.js";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { $ as b } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as b } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { _ as Q } from "../../assets/modules/index
|
|
7
|
+
import { _ as Q } from "../../assets/modules/index--7cem1cg.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as y, unref as n, resolveDynamicComponent as I } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as g } from "../../assets/modules/baseLayout-CLYEvEZ4.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import b from "vue-m-message";
|
package/lib/es/Error403/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as r, withCtx as e, createVNode as m, createTextVNode as c, toDisplayString as a } from "vue";
|
|
2
|
-
import { r as s } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as s } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
package/lib/es/Error404/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as i, createBlock as n, openBlock as p, unref as e, withCtx as r, createVNode as m, createTextVNode as a, toDisplayString as c } from "vue";
|
|
2
|
-
import { r as u } from "../../assets/modules/upload-template-
|
|
2
|
+
import { r as u } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
3
3
|
import "@skyfox2000/microbase";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
5
|
import "vue-m-message";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as be, ref as p, computed as S, watch as H, onMounted as he, createBlock as Q, openBlock as f, unref as r, withCtx as D, renderSlot as W, createElementBlock as g, createCommentVNode as B, createElementVNode as b, createVNode as _, createTextVNode as J, toDisplayString as E, normalizeClass as Fe, Fragment as ie, renderList as ne } from "vue";
|
|
2
|
-
import { _ as Y } from "../../assets/modules/index-
|
|
2
|
+
import { _ as Y } from "../../assets/modules/index-DeciUTEK.js";
|
|
3
3
|
import { Modal as Ce, Upload as ce, Space as Ue } from "ant-design-vue";
|
|
4
4
|
import { httpGet as _e, ResStatus as de } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as a, H as Ee, a8 as Te, af as Re } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
6
6
|
import m from "vue-m-message";
|
|
7
|
-
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-
|
|
8
|
-
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-
|
|
7
|
+
import { c as pe, _ as Z, h as Se, p as De, i as ke } from "../../assets/modules/index-DDdkKF8p.js";
|
|
8
|
+
import { A as Pe, p as Le, U as ue } from "../../assets/modules/file-upload-JSdbDIS7.js";
|
|
9
9
|
import "@skyfox2000/microbase";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, ref as d, watch as _, onMounted as v, resolveComponent as h, createBlock as o, openBlock as t, withCtx as s, createElementVNode as C, normalizeClass as x, createVNode as w, KeepAlive as I, unref as n, resolveDynamicComponent as g } from "vue";
|
|
2
|
-
import { _ as y } from "../../assets/modules/baseLayout-
|
|
3
|
-
import { al as A, a as S } from "../../assets/modules/upload-template-
|
|
2
|
+
import { _ as y } from "../../assets/modules/baseLayout-CLYEvEZ4.js";
|
|
3
|
+
import { al as A, a as S } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
4
4
|
import "@skyfox2000/microbase";
|
|
5
5
|
import "@skyfox2000/fapi";
|
|
6
6
|
import k from "vue-m-message";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as T, ref as l, watch as x, onMounted as F, createBlock as C, openBlock as q, unref as u, withCtx as d, createVNode as f, createTextVNode as L, toDisplayString as b } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-DeciUTEK.js";
|
|
3
3
|
import { Modal as D, Space as z } from "ant-design-vue";
|
|
4
4
|
import { httpPost as N, ResStatus as O } from "@skyfox2000/fapi";
|
|
5
|
-
import { ao as n, $ as w } from "../../assets/modules/upload-template-
|
|
5
|
+
import { ao as n, $ as w } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
|
-
import { U as M } from "../../assets/modules/file-upload-
|
|
7
|
+
import { U as M } from "../../assets/modules/file-upload-JSdbDIS7.js";
|
|
8
8
|
import "@skyfox2000/microbase";
|
|
9
9
|
import "async-validator";
|
|
10
10
|
import "dayjs";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as $ } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as $ } from "../../assets/modules/uploadList-D4k7XnhK.js";
|
|
13
13
|
const H = /* @__PURE__ */ T({
|
|
14
14
|
__name: "templateFile",
|
|
15
15
|
props: {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { defineComponent as F, ref as s, watch as y, onMounted as z, createBlock as D, openBlock as _, unref as u, withCtx as p, createVNode as m, mergeProps as L, createTextVNode as w, toDisplayString as C } from "vue";
|
|
2
|
-
import { _ as g } from "../../assets/modules/index-
|
|
2
|
+
import { _ as g } from "../../assets/modules/index-DeciUTEK.js";
|
|
3
3
|
import { Modal as k, Space as N } from "ant-design-vue";
|
|
4
4
|
import { ResStatus as T } from "@skyfox2000/fapi";
|
|
5
|
-
import { $ as v, ab as $ } from "../../assets/modules/upload-template-
|
|
5
|
+
import { $ as v, ab as $ } from "../../assets/modules/upload-template-W04BQpEb.js";
|
|
6
6
|
import A from "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
9
9
|
import "dayjs";
|
|
10
|
-
import { A as E } from "../../assets/modules/file-upload-
|
|
10
|
+
import { A as E } from "../../assets/modules/file-upload-JSdbDIS7.js";
|
|
11
11
|
import "vue-draggable-next";
|
|
12
|
-
import { U as B } from "../../assets/modules/uploadList-
|
|
12
|
+
import { U as B } from "../../assets/modules/uploadList-D4k7XnhK.js";
|
|
13
13
|
const W = /* @__PURE__ */ F({
|
|
14
14
|
__name: "uploadForm",
|
|
15
15
|
props: {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ToolPanelProps } from './types';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<ToolPanelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ToolPanelProps> & Readonly<{}>, {
|
|
3
|
+
showSearch: boolean;
|
|
4
|
+
width: {
|
|
5
|
+
expanded: string;
|
|
6
|
+
collapsed: string;
|
|
7
|
+
};
|
|
8
|
+
mode: import("@/components/").DisplayMode;
|
|
9
|
+
collapsed: import("@/components/").PanelCollapsed;
|
|
10
|
+
allowGroupCollapse: boolean;
|
|
11
|
+
rowCount: number;
|
|
12
|
+
showModeToggle: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { OptionItemProps } from '@/index';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
value: {
|
|
5
|
+
type: PropType<string | number | string[] | null>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
autoClean: {
|
|
9
|
+
type: PropType<boolean>;
|
|
10
|
+
default: boolean;
|
|
11
|
+
};
|
|
12
|
+
autoload: {
|
|
13
|
+
type: PropType<boolean>;
|
|
14
|
+
required: boolean;
|
|
15
|
+
default: undefined;
|
|
16
|
+
};
|
|
17
|
+
url: {
|
|
18
|
+
type: PropType<import("@skyfox2000/fapi").IUrlInfo>;
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
data: {
|
|
22
|
+
type: PropType<OptionItemProps[]>;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
labels: {
|
|
26
|
+
type: PropType<string | number | (string | number)[]>;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
formData: {
|
|
30
|
+
type: PropType<Record<string, any>>;
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
outFields: {
|
|
34
|
+
type: PropType<Record<string, string>>;
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
reloadEvent: {
|
|
38
|
+
type: PropType<string>;
|
|
39
|
+
required: boolean;
|
|
40
|
+
};
|
|
41
|
+
changeEvent: {
|
|
42
|
+
type: PropType<[string | string[], string]>;
|
|
43
|
+
required: boolean;
|
|
44
|
+
};
|
|
45
|
+
optionCtrl: {
|
|
46
|
+
type: PropType<import("../../../typings/option").OptionControl>;
|
|
47
|
+
required: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
50
|
+
"update:value": (...args: any[]) => void;
|
|
51
|
+
select: (...args: any[]) => void;
|
|
52
|
+
change: (...args: any[]) => void;
|
|
53
|
+
"update:labels": (...args: any[]) => void;
|
|
54
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
55
|
+
value: {
|
|
56
|
+
type: PropType<string | number | string[] | null>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
59
|
+
autoClean: {
|
|
60
|
+
type: PropType<boolean>;
|
|
61
|
+
default: boolean;
|
|
62
|
+
};
|
|
63
|
+
autoload: {
|
|
64
|
+
type: PropType<boolean>;
|
|
65
|
+
required: boolean;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
url: {
|
|
69
|
+
type: PropType<import("@skyfox2000/fapi").IUrlInfo>;
|
|
70
|
+
required: boolean;
|
|
71
|
+
};
|
|
72
|
+
data: {
|
|
73
|
+
type: PropType<OptionItemProps[]>;
|
|
74
|
+
required: boolean;
|
|
75
|
+
};
|
|
76
|
+
labels: {
|
|
77
|
+
type: PropType<string | number | (string | number)[]>;
|
|
78
|
+
required: boolean;
|
|
79
|
+
};
|
|
80
|
+
formData: {
|
|
81
|
+
type: PropType<Record<string, any>>;
|
|
82
|
+
required: boolean;
|
|
83
|
+
};
|
|
84
|
+
outFields: {
|
|
85
|
+
type: PropType<Record<string, string>>;
|
|
86
|
+
required: boolean;
|
|
87
|
+
};
|
|
88
|
+
reloadEvent: {
|
|
89
|
+
type: PropType<string>;
|
|
90
|
+
required: boolean;
|
|
91
|
+
};
|
|
92
|
+
changeEvent: {
|
|
93
|
+
type: PropType<[string | string[], string]>;
|
|
94
|
+
required: boolean;
|
|
95
|
+
};
|
|
96
|
+
optionCtrl: {
|
|
97
|
+
type: PropType<import("../../../typings/option").OptionControl>;
|
|
98
|
+
required: boolean;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
onSelect?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
"onUpdate:labels"?: ((...args: any[]) => any) | undefined;
|
|
105
|
+
}>, {
|
|
106
|
+
value: string | number | string[] | null;
|
|
107
|
+
autoClean: boolean;
|
|
108
|
+
autoload: boolean;
|
|
109
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
110
|
+
declare const _default: typeof __VLS_export;
|
|
111
|
+
export default _default;
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { ref, onUnmounted, useAttrs, watch, shallowRef, onActivated } from 'vue';
|
|
2
|
+
import { AutoComplete, Input } from 'ant-design-vue';
|
|
3
|
+
import { $t } from '@/locales/index';
|
|
4
|
+
import { useInputFactory, OptionCommProps, onOptionChanged, loadOption, unloadOption, getSelectedLabels, formValidate, outFormDataFields, } from '@/index';
|
|
5
|
+
import { useOptionFactory } from '@/utils/page';
|
|
6
|
+
import { combineParams } from '@skyfox2000/microbase';
|
|
7
|
+
const props = defineProps({
|
|
8
|
+
...OptionCommProps,
|
|
9
|
+
value: {
|
|
10
|
+
type: [String, Number, Array, null],
|
|
11
|
+
default: undefined,
|
|
12
|
+
},
|
|
13
|
+
autoClean: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
default: true,
|
|
16
|
+
},
|
|
17
|
+
});
|
|
18
|
+
defineOptions({
|
|
19
|
+
inheritAttrs: false,
|
|
20
|
+
});
|
|
21
|
+
const attrs = useAttrs();
|
|
22
|
+
const inputFactory = useInputFactory();
|
|
23
|
+
const defaultCtrl = useOptionFactory(props.url, props);
|
|
24
|
+
const optionCtrl = props.optionCtrl ?? defaultCtrl.optionCtrl;
|
|
25
|
+
optionCtrl.inputFactory = shallowRef(inputFactory);
|
|
26
|
+
optionCtrl.fieldMap = {
|
|
27
|
+
...{
|
|
28
|
+
label: 'Name',
|
|
29
|
+
value: 'Id',
|
|
30
|
+
},
|
|
31
|
+
...optionCtrl?.fieldMap,
|
|
32
|
+
};
|
|
33
|
+
const innerValue = ref(undefined);
|
|
34
|
+
watch(() => props.value, () => {
|
|
35
|
+
innerValue.value = props.value;
|
|
36
|
+
}, { immediate: true });
|
|
37
|
+
watch(() => innerValue.value, (newVal) => {
|
|
38
|
+
if (props.autoClean && props.formData && props.outFields && newVal !== props.value) {
|
|
39
|
+
outFormDataFields(props.formData, props.outFields, null);
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
const { editorCtrl, errInfo, labelText } = inputFactory;
|
|
43
|
+
const emit = defineEmits(['update:value', 'select', 'change', 'update:labels']);
|
|
44
|
+
inputFactory.inputEmit = emit;
|
|
45
|
+
const selectOptions = ref(optionCtrl?.options.value || []);
|
|
46
|
+
if (optionCtrl) {
|
|
47
|
+
watch(() => optionCtrl.options.value, (newOptions) => {
|
|
48
|
+
selectOptions.value = newOptions || [];
|
|
49
|
+
}, { immediate: true, deep: true });
|
|
50
|
+
}
|
|
51
|
+
const onSearch = (value) => {
|
|
52
|
+
selectOptions.value = [];
|
|
53
|
+
if (value === '')
|
|
54
|
+
return;
|
|
55
|
+
let search_value = value.trim();
|
|
56
|
+
let query = {
|
|
57
|
+
Query: {
|
|
58
|
+
SearchField: '%' + search_value + '%',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
optionCtrl.params = combineParams(optionCtrl.params, query);
|
|
62
|
+
if (optionCtrl)
|
|
63
|
+
loadOption(true, optionCtrl, props);
|
|
64
|
+
};
|
|
65
|
+
const onSelected = (value) => {
|
|
66
|
+
const selectedOptions = onOptionChanged(optionCtrl, props, value);
|
|
67
|
+
emit('update:value', value);
|
|
68
|
+
emit('select', value);
|
|
69
|
+
const labels = getSelectedLabels(selectedOptions);
|
|
70
|
+
emit('update:labels', labels);
|
|
71
|
+
if (errInfo?.value.errClass && editorCtrl) {
|
|
72
|
+
formValidate(editorCtrl);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
onActivated(() => {
|
|
76
|
+
if (optionCtrl && optionCtrl.autoload)
|
|
77
|
+
optionCtrl.reload.value = true;
|
|
78
|
+
});
|
|
79
|
+
onUnmounted(() => {
|
|
80
|
+
if (optionCtrl)
|
|
81
|
+
unloadOption(optionCtrl, props);
|
|
82
|
+
});
|
|
83
|
+
const __VLS_ctx = {
|
|
84
|
+
...{},
|
|
85
|
+
...{},
|
|
86
|
+
...{},
|
|
87
|
+
...{},
|
|
88
|
+
...{},
|
|
89
|
+
};
|
|
90
|
+
let __VLS_components;
|
|
91
|
+
let __VLS_intrinsics;
|
|
92
|
+
let __VLS_directives;
|
|
93
|
+
__VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({});
|
|
94
|
+
let __VLS_0;
|
|
95
|
+
AutoComplete;
|
|
96
|
+
const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
|
|
97
|
+
...{ 'onSearch': {} },
|
|
98
|
+
...{ 'onSelect': {} },
|
|
99
|
+
value: (__VLS_ctx.innerValue),
|
|
100
|
+
...{ class: (['w-full', __VLS_ctx.errInfo?.errClass]) },
|
|
101
|
+
options: (__VLS_ctx.selectOptions),
|
|
102
|
+
...(__VLS_ctx.attrs),
|
|
103
|
+
allowClear: (false),
|
|
104
|
+
}));
|
|
105
|
+
const __VLS_2 = __VLS_1({
|
|
106
|
+
...{ 'onSearch': {} },
|
|
107
|
+
...{ 'onSelect': {} },
|
|
108
|
+
value: (__VLS_ctx.innerValue),
|
|
109
|
+
...{ class: (['w-full', __VLS_ctx.errInfo?.errClass]) },
|
|
110
|
+
options: (__VLS_ctx.selectOptions),
|
|
111
|
+
...(__VLS_ctx.attrs),
|
|
112
|
+
allowClear: (false),
|
|
113
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
114
|
+
let __VLS_5;
|
|
115
|
+
const __VLS_6 = ({ search: {} },
|
|
116
|
+
{ onSearch: (__VLS_ctx.onSearch) });
|
|
117
|
+
const __VLS_7 = ({ select: {} },
|
|
118
|
+
{ onSelect: (__VLS_ctx.onSelected) });
|
|
119
|
+
;
|
|
120
|
+
const { default: __VLS_8 } = __VLS_3.slots;
|
|
121
|
+
let __VLS_9;
|
|
122
|
+
Input;
|
|
123
|
+
const __VLS_10 = __VLS_asFunctionalComponent1(__VLS_9, new __VLS_9({
|
|
124
|
+
allowClear: true,
|
|
125
|
+
placeholder: (__VLS_ctx.$t('webui.components.form.autoComplete.pleaseInputAndSelect', [__VLS_ctx.labelText])),
|
|
126
|
+
}));
|
|
127
|
+
const __VLS_11 = __VLS_10({
|
|
128
|
+
allowClear: true,
|
|
129
|
+
placeholder: (__VLS_ctx.$t('webui.components.form.autoComplete.pleaseInputAndSelect', [__VLS_ctx.labelText])),
|
|
130
|
+
}, ...__VLS_functionalComponentArgsRest(__VLS_10));
|
|
131
|
+
{
|
|
132
|
+
const { option: __VLS_14 } = __VLS_3.slots;
|
|
133
|
+
const [{ label }] = __VLS_vSlot(__VLS_14);
|
|
134
|
+
(label);
|
|
135
|
+
[innerValue, errInfo, selectOptions, attrs, onSearch, onSelected, $t, labelText,];
|
|
136
|
+
}
|
|
137
|
+
[];
|
|
138
|
+
var __VLS_3;
|
|
139
|
+
var __VLS_4;
|
|
140
|
+
[];
|
|
141
|
+
const __VLS_export = (await import('vue')).defineComponent({
|
|
142
|
+
emits: {},
|
|
143
|
+
props: {
|
|
144
|
+
...OptionCommProps,
|
|
145
|
+
value: {
|
|
146
|
+
type: [String, Number, Array, null],
|
|
147
|
+
default: undefined,
|
|
148
|
+
},
|
|
149
|
+
autoClean: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: true,
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
});
|
|
155
|
+
export default {};
|
|
156
|
+
//# sourceMappingURL=index.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.js","sourceRoot":"","sources":["../../../../../src/components/form/autoComplete/index.vue"],"names":[],"mappings":"AAAA,OAuKO,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,UAAU,EAAY,WAAW,EAAE,MAAM,KAAK,CAAC;AAC3F,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EACJ,eAAe,EACf,eAAe,EAEf,eAAe,EACf,UAAU,EACV,YAAY,EAEZ,iBAAiB,EACjB,YAAY,EACZ,iBAAiB,GACnB,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,u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} from '@/index';
|
|
2
|
+
import { IUrlInfo } from '@skyfox2000/fapi';
|
|
3
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
autoload: {
|
|
5
|
+
type: import("vue").PropType<boolean>;
|
|
6
|
+
required: boolean;
|
|
7
|
+
default: undefined;
|
|
8
|
+
};
|
|
9
|
+
url: {
|
|
10
|
+
type: import("vue").PropType<IUrlInfo>;
|
|
11
|
+
required: boolean;
|
|
12
|
+
};
|
|
13
|
+
data: {
|
|
14
|
+
type: import("vue").PropType<OptionItemProps[]>;
|
|
15
|
+
required: boolean;
|
|
16
|
+
};
|
|
17
|
+
labels: {
|
|
18
|
+
type: import("vue").PropType<string | number | (string | number)[]>;
|
|
19
|
+
required: boolean;
|
|
20
|
+
};
|
|
21
|
+
formData: {
|
|
22
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
23
|
+
required: boolean;
|
|
24
|
+
};
|
|
25
|
+
outFields: {
|
|
26
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
27
|
+
required: boolean;
|
|
28
|
+
};
|
|
29
|
+
reloadEvent: {
|
|
30
|
+
type: import("vue").PropType<string>;
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
changeEvent: {
|
|
34
|
+
type: import("vue").PropType<[string | string[], string]>;
|
|
35
|
+
required: boolean;
|
|
36
|
+
};
|
|
37
|
+
optionCtrl: {
|
|
38
|
+
type: import("vue").PropType<import("../../../typings/option").OptionControl>;
|
|
39
|
+
required: boolean;
|
|
40
|
+
};
|
|
41
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
|
+
"update:value": (...args: any[]) => void;
|
|
43
|
+
change: (...args: any[]) => void;
|
|
44
|
+
"update:labels": (...args: any[]) => void;
|
|
45
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
46
|
+
autoload: {
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
48
|
+
required: boolean;
|
|
49
|
+
default: undefined;
|
|
50
|
+
};
|
|
51
|
+
url: {
|
|
52
|
+
type: import("vue").PropType<IUrlInfo>;
|
|
53
|
+
required: boolean;
|
|
54
|
+
};
|
|
55
|
+
data: {
|
|
56
|
+
type: import("vue").PropType<OptionItemProps[]>;
|
|
57
|
+
required: boolean;
|
|
58
|
+
};
|
|
59
|
+
labels: {
|
|
60
|
+
type: import("vue").PropType<string | number | (string | number)[]>;
|
|
61
|
+
required: boolean;
|
|
62
|
+
};
|
|
63
|
+
formData: {
|
|
64
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
65
|
+
required: boolean;
|
|
66
|
+
};
|
|
67
|
+
outFields: {
|
|
68
|
+
type: import("vue").PropType<Record<string, string>>;
|
|
69
|
+
required: boolean;
|
|
70
|
+
};
|
|
71
|
+
reloadEvent: {
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
73
|
+
required: boolean;
|
|
74
|
+
};
|
|
75
|
+
changeEvent: {
|
|
76
|
+
type: import("vue").PropType<[string | string[], string]>;
|
|
77
|
+
required: boolean;
|
|
78
|
+
};
|
|
79
|
+
optionCtrl: {
|
|
80
|
+
type: import("vue").PropType<import("../../../typings/option").OptionControl>;
|
|
81
|
+
required: boolean;
|
|
82
|
+
};
|
|
83
|
+
}>> & Readonly<{
|
|
84
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
85
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
86
|
+
"onUpdate:labels"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}>, {
|
|
88
|
+
autoload: boolean;
|
|
89
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
declare const _default: typeof __VLS_export;
|
|
91
|
+
export default _default;
|