@ditari/bsui 1.0.7 → 1.0.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/dist/cjs/components/components.cjs.js +1 -1
- package/dist/cjs/components/components.d.ts +2 -0
- package/dist/cjs/components/desensitize/Desensitize.cjs.js +1 -0
- package/dist/cjs/components/desensitize/Desensitize.d.ts +30 -0
- package/dist/cjs/components/desensitize/index.cjs.js +1 -0
- package/dist/cjs/components/desensitize/index.d.ts +30 -0
- package/dist/cjs/components/dic/DicReplace.cjs.js +1 -0
- package/dist/cjs/components/dic/DicReplace.d.ts +23 -0
- package/dist/cjs/components/dic/dic.worker.cjs.js +1 -0
- package/dist/cjs/components/dic/index.cjs.js +1 -0
- package/dist/cjs/components/dic/index.d.ts +23 -0
- package/dist/cjs/components/index.cjs.js +1 -1
- package/dist/cjs/components/menu/Menu.cjs.js +1 -1
- package/dist/cjs/components/select/Select.vue.cjs.js +1 -1
- package/dist/cjs/components/select/dic.worker.cjs.js +1 -0
- package/dist/cjs/components/table/Table.cjs.js +1 -0
- package/dist/cjs/components/table/Table.d.ts +71 -0
- package/dist/cjs/components/table/index.cjs.js +1 -1
- package/dist/cjs/components/table/index.d.ts +29 -102
- package/dist/cjs/components/table/interface/table.d.ts +33 -0
- package/dist/cjs/hooks/http/index.cjs.js +1 -1
- package/dist/cjs/hooks/http/index.d.ts +4 -7
- package/dist/cjs/utils/html.cjs.js +1 -0
- package/dist/cjs/utils/html.d.ts +1 -0
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/css/desensitize/style/index.css +1 -0
- package/dist/css/grid/style/index.css +1 -1
- package/dist/css/index.css +1 -1
- package/dist/css/table/style/index.css +1 -0
- package/dist/esm/components/components.d.ts +2 -0
- package/dist/esm/components/components.esm.js +18 -14
- package/dist/esm/components/desensitize/Desensitize.d.ts +30 -0
- package/dist/esm/components/desensitize/Desensitize.esm.js +46 -0
- package/dist/esm/components/desensitize/index.d.ts +30 -0
- package/dist/esm/components/desensitize/index.esm.js +7 -0
- package/dist/esm/components/dic/DicReplace.d.ts +23 -0
- package/dist/esm/components/dic/DicReplace.esm.js +38 -0
- package/dist/esm/components/dic/dic.worker.esm.js +17 -0
- package/dist/esm/components/dic/index.d.ts +23 -0
- package/dist/esm/components/dic/index.esm.js +7 -0
- package/dist/esm/components/index.esm.js +22 -18
- package/dist/esm/components/menu/Menu.esm.js +8 -9
- package/dist/esm/components/select/Select.vue.esm.js +32 -28
- package/dist/esm/components/select/dic.worker.esm.js +12 -0
- package/dist/esm/components/select/index.d.ts +39 -58
- package/dist/esm/components/table/Table.d.ts +71 -0
- package/dist/esm/components/table/Table.esm.js +214 -0
- package/dist/esm/components/table/index.d.ts +29 -102
- package/dist/esm/components/table/index.esm.js +4 -5
- package/dist/esm/components/table/interface/table.d.ts +33 -0
- package/dist/esm/hooks/http/index.d.ts +4 -7
- package/dist/esm/hooks/http/index.esm.js +26 -25
- package/dist/esm/utils/html.d.ts +1 -0
- package/dist/esm/utils/html.esm.js +15 -0
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/style/desensitize/style/index.scss +7 -0
- package/dist/style/grid/style/index.scss +15 -6
- package/dist/style/index.scss +2 -0
- package/dist/style/table/style/index.scss +10 -0
- package/dist/style/theme/variable.scss +1 -0
- package/package.json +1 -1
- package/src/components/components.ts +2 -0
- package/src/components/desensitize/Desensitize.tsx +69 -0
- package/src/components/desensitize/index.ts +5 -0
- package/src/components/desensitize/style/index.scss +7 -0
- package/src/components/dic/DicReplace.tsx +55 -0
- package/src/components/dic/dic.worker.ts +25 -0
- package/src/components/dic/index.ts +5 -0
- package/src/components/grid/style/index.scss +15 -6
- package/src/components/index.scss +2 -0
- package/src/components/menu/Menu.jsx +2 -3
- package/src/components/select/Select.vue +11 -5
- package/src/components/select/{dic-worker.ts → dic.worker.ts} +4 -3
- package/src/components/table/Table.tsx +343 -0
- package/src/components/table/{Table.vue → TableBak.vue} +39 -27
- package/src/components/table/index.ts +1 -2
- package/src/components/table/interface/table.ts +54 -0
- package/src/components/table/style/index.scss +10 -0
- package/src/components/theme/variable.scss +1 -0
- package/src/hooks/http/index.ts +12 -14
- package/src/utils/html.ts +17 -0
- package/src/utils/index.ts +1 -0
- package/dist/cjs/components/select/dic-worker.cjs.js +0 -1
- package/dist/cjs/components/table/Field.vue.cjs.js +0 -1
- package/dist/cjs/components/table/Field.vue.cjs2.js +0 -1
- package/dist/cjs/components/table/Field.vue.d.ts +0 -28
- package/dist/cjs/components/table/Table.vue.cjs.js +0 -1
- package/dist/cjs/components/table/Table.vue.cjs2.js +0 -1
- package/dist/cjs/components/table/Table.vue.cjs3.js +0 -1
- package/dist/cjs/components/table/Table.vue.d.ts +0 -142
- package/dist/esm/components/select/dic-worker.esm.js +0 -12
- package/dist/esm/components/table/Field.vue.d.ts +0 -28
- package/dist/esm/components/table/Field.vue.esm.js +0 -38
- package/dist/esm/components/table/Field.vue.esm2.js +0 -4
- package/dist/esm/components/table/Table.vue.d.ts +0 -142
- package/dist/esm/components/table/Table.vue.esm.js +0 -238
- package/dist/esm/components/table/Table.vue.esm2.js +0 -4
- package/dist/esm/components/table/Table.vue.esm3.js +0 -5
- package/dist/esm/style.css +0 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
value: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
style: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
rule: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
value: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
style: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
rule: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
style: string;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { defineComponent as o, ref as d, computed as v, createVNode as l, Fragment as c, withDirectives as u, resolveComponent as r, vShow as s } from "vue";
|
|
2
|
+
import { EyeOutlined as m, EyeInvisibleOutlined as p } from "@ant-design/icons-vue";
|
|
3
|
+
import { prefixName as f } from "../theme/index.esm.js";
|
|
4
|
+
const y = `${f}-desensitize`, S = /* @__PURE__ */ o({
|
|
5
|
+
name: "DDesensitize",
|
|
6
|
+
components: {
|
|
7
|
+
EyeOutlined: m,
|
|
8
|
+
EyeInvisibleOutlined: p
|
|
9
|
+
},
|
|
10
|
+
props: {
|
|
11
|
+
value: {
|
|
12
|
+
// type: [string,number] 可以使用PropType 来声明对象类型
|
|
13
|
+
// type: String as () => string | number,
|
|
14
|
+
type: String,
|
|
15
|
+
required: !0
|
|
16
|
+
},
|
|
17
|
+
// 替换样式
|
|
18
|
+
style: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "*"
|
|
21
|
+
},
|
|
22
|
+
// 替换位置
|
|
23
|
+
rule: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: !0
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(t) {
|
|
29
|
+
const e = d(!0), a = v(() => {
|
|
30
|
+
const n = t.value, i = t.rule;
|
|
31
|
+
return i === "mobile" ? n.replace(/(\d{3})\d{4}(\d{4})/, "$1 * * * * $2") : i === "id" ? n.replace(/(\d{4})\d{10}(\w{4})/, "$1 * * * * * $2") : n;
|
|
32
|
+
});
|
|
33
|
+
return () => l(c, null, [l("div", {
|
|
34
|
+
class: y
|
|
35
|
+
}, [l("span", {
|
|
36
|
+
class: "value"
|
|
37
|
+
}, [e.value ? a.value : t.value]), l("span", null, [u(l(r("eye-outlined"), {
|
|
38
|
+
onClick: () => e.value = !e.value
|
|
39
|
+
}, null), [[s, !e.value]]), u(l(r("eye-invisible-outlined"), {
|
|
40
|
+
onClick: () => e.value = !e.value
|
|
41
|
+
}, null), [[s, e.value]])])])]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
export {
|
|
45
|
+
S as default
|
|
46
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare const DDesensitize: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
value: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
style: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
rule: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
value: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
style: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
rule: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
style: string;
|
|
29
|
+
}>>;
|
|
30
|
+
export default DDesensitize;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: any;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
name: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
type: any;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
name: string;
|
|
21
|
+
value: any;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { defineComponent as c, ref as o, watchEffect as u, createVNode as m, Fragment as p } from "vue";
|
|
2
|
+
import f from "./dic.worker.esm.js";
|
|
3
|
+
import { useDataDicStore as i } from "../../store/modules/DataDictionary.esm.js";
|
|
4
|
+
const w = /* @__PURE__ */ c({
|
|
5
|
+
name: "DicReplace",
|
|
6
|
+
props: {
|
|
7
|
+
// 字典名称
|
|
8
|
+
name: {
|
|
9
|
+
type: String,
|
|
10
|
+
default: ""
|
|
11
|
+
},
|
|
12
|
+
// 值
|
|
13
|
+
value: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(a) {
|
|
19
|
+
const {
|
|
20
|
+
list: n
|
|
21
|
+
} = i(), s = o(!1), r = o(""), e = new f();
|
|
22
|
+
return e.onerror = () => {
|
|
23
|
+
s.value = !1;
|
|
24
|
+
}, e.onmessage = (t) => {
|
|
25
|
+
r.value = t.data;
|
|
26
|
+
}, u(() => {
|
|
27
|
+
const t = a.value, l = a.name;
|
|
28
|
+
e.postMessage({
|
|
29
|
+
list: n,
|
|
30
|
+
name: l,
|
|
31
|
+
value: t
|
|
32
|
+
});
|
|
33
|
+
}), m(p, null, [r.value]);
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
w as default
|
|
38
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const o =
|
|
2
|
+
"KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3NlbGYuYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsZnVuY3Rpb24oYSl7Y29uc3QgdD1hLmRhdGEubmFtZT8/IiIsZT1hLmRhdGEudmFsdWU/PyIiLG49KChKU09OLnBhcnNlKGEuZGF0YS5saXN0KT8/W10pW3RdfHxbXSkuZmlsdGVyKHM9PnMudmFsdWU9PT1lKS5tYXAocz0+cy5sYWJlbCkuam9pbigiIik7c2VsZi5wb3N0TWVzc2FnZShuKX0sITEpfSkoKTsK",
|
|
3
|
+
e =
|
|
4
|
+
typeof window < "u" &&
|
|
5
|
+
window.Blob &&
|
|
6
|
+
new Blob([atob(o)], { type: "text/javascript;charset=utf-8" });
|
|
7
|
+
function t() {
|
|
8
|
+
const n = e && (window.URL || window.webkitURL).createObjectURL(e);
|
|
9
|
+
try {
|
|
10
|
+
return n
|
|
11
|
+
? new Worker(n)
|
|
12
|
+
: new Worker("data:application/javascript;base64," + o);
|
|
13
|
+
} finally {
|
|
14
|
+
n && (window.URL || window.webkitURL).revokeObjectURL(n);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export { t as default };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const DDicReplace: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: any;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
name: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
type: any;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>>, {
|
|
20
|
+
name: string;
|
|
21
|
+
value: any;
|
|
22
|
+
}>>;
|
|
23
|
+
export default DDicReplace;
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { createPinia as i } from "pinia";
|
|
2
|
-
import { createPersistedState as
|
|
3
|
-
import * as
|
|
4
|
-
import { DTable as
|
|
2
|
+
import { createPersistedState as c } from "pinia-plugin-persistedstate";
|
|
3
|
+
import * as a from "./components.esm.js";
|
|
4
|
+
import { DTable as u } from "./table/index.esm.js";
|
|
5
5
|
import { DSelect as S } from "./select/index.esm.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
import { DDesensitize as g } from "./desensitize/index.esm.js";
|
|
7
|
+
import { DDicReplace as h } from "./dic/index.esm.js";
|
|
8
|
+
import { default as G } from "./form/index.esm.js";
|
|
9
|
+
import { DGrid as R, DGridItem as T } from "./grid/index.esm.js";
|
|
10
|
+
import { DList as k, DMain as w, DNavTabs as y, DShow as z } from "./layout/index.esm.js";
|
|
11
|
+
const s = a, m = function(o, e) {
|
|
12
|
+
Object.keys(s).forEach((n) => {
|
|
13
|
+
const r = s[n];
|
|
12
14
|
r.install && o.use(r);
|
|
13
15
|
});
|
|
14
16
|
const t = i();
|
|
15
17
|
t.use(
|
|
16
|
-
|
|
18
|
+
c({
|
|
17
19
|
storage: sessionStorage
|
|
18
20
|
})
|
|
19
21
|
), o.use(t), o.provide("menuIcon", e.menuIcon), console.log("options", e);
|
|
@@ -21,15 +23,17 @@ const n = c, m = function(o, e) {
|
|
|
21
23
|
install: m
|
|
22
24
|
};
|
|
23
25
|
export {
|
|
24
|
-
g as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
g as DDesensitize,
|
|
27
|
+
G as DForm,
|
|
28
|
+
R as DGrid,
|
|
29
|
+
T as DGridItem,
|
|
30
|
+
k as DList,
|
|
31
|
+
w as DMain,
|
|
32
|
+
y as DNavTabs,
|
|
30
33
|
S as DSelect,
|
|
31
|
-
|
|
32
|
-
|
|
34
|
+
z as DShow,
|
|
35
|
+
u as DTable,
|
|
36
|
+
h as DicReplace,
|
|
33
37
|
p as default,
|
|
34
38
|
m as install
|
|
35
39
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as b, inject as C, ref as d, createVNode as n, resolveComponent as l, isVNode as K, Fragment as s, withDirectives as M, vShow as j, h as k } from "vue";
|
|
2
2
|
import { storeToRefs as N } from "pinia";
|
|
3
|
-
import "@ant-design/icons-vue";
|
|
4
3
|
import { useMenuStore as w } from "../../store/modules/Menu.esm.js";
|
|
5
4
|
import { useSettingsStore as I } from "../../store/modules/Settings.esm.js";
|
|
6
5
|
function D(o) {
|
|
7
6
|
return typeof o == "function" || Object.prototype.toString.call(o) === "[object Object]" && !K(o);
|
|
8
7
|
}
|
|
9
|
-
const _ = /* @__PURE__ */
|
|
8
|
+
const _ = /* @__PURE__ */ b({
|
|
10
9
|
name: "DMenu",
|
|
11
10
|
setup() {
|
|
12
11
|
const {
|
|
@@ -16,7 +15,7 @@ const _ = /* @__PURE__ */ y({
|
|
|
16
15
|
list: p
|
|
17
16
|
} = w(), f = I(), {
|
|
18
17
|
getCollapsed: m
|
|
19
|
-
} = N(f), c = d([
|
|
18
|
+
} = N(f), c = d([]), i = d([]), v = ({
|
|
20
19
|
item: e,
|
|
21
20
|
key: t,
|
|
22
21
|
keyPath: r
|
|
@@ -27,9 +26,9 @@ const _ = /* @__PURE__ */ y({
|
|
|
27
26
|
}, {
|
|
28
27
|
icon: () => u(e),
|
|
29
28
|
default: () => e.title
|
|
30
|
-
})]),
|
|
31
|
-
className:
|
|
32
|
-
}, [e.title.substring(0, 1)]), [[j, m.value]])]),
|
|
29
|
+
})]), S = ["anticon", "anticon-menu", "ant-menu-item-icon"], u = (e) => n(s, null, [e.icon ? g(e.icon) : M(n("div", {
|
|
30
|
+
className: S
|
|
31
|
+
}, [e.title.substring(0, 1)]), [[j, m.value]])]), g = (e) => o === "nativeHtml" ? n("span", {
|
|
33
32
|
innerHTML: e
|
|
34
33
|
}, null) : k(l(o), {
|
|
35
34
|
prop: e
|
|
@@ -39,10 +38,10 @@ const _ = /* @__PURE__ */ y({
|
|
|
39
38
|
title: () => e.title,
|
|
40
39
|
icon: () => u(e),
|
|
41
40
|
default: () => e.children.map(
|
|
42
|
-
(t) => !t.children || t.children.length === 0 ?
|
|
41
|
+
(t) => !t.children || t.children.length === 0 ? y(t) : a(t)
|
|
43
42
|
// 递归调用
|
|
44
43
|
)
|
|
45
|
-
})]),
|
|
44
|
+
})]), y = (e) => n(s, null, [n(l("a-menu-item"), {
|
|
46
45
|
key: e.url
|
|
47
46
|
}, {
|
|
48
47
|
default: () => e.title
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useDataDicStore as
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as D, ref as p, resolveComponent as _, openBlock as k, createBlock as B, unref as n, isRef as L } from "vue";
|
|
2
|
+
import { useDataDicStore as x } from "../../store/modules/DataDictionary.esm.js";
|
|
3
|
+
import V from "./dic.worker.esm.js";
|
|
4
|
+
const W = {
|
|
5
5
|
name: "DSelect"
|
|
6
|
-
},
|
|
7
|
-
...
|
|
6
|
+
}, N = /* @__PURE__ */ D({
|
|
7
|
+
...W,
|
|
8
8
|
props: {
|
|
9
9
|
value: { default: null },
|
|
10
10
|
name: { default: "" },
|
|
@@ -12,51 +12,55 @@ const V = {
|
|
|
12
12
|
placeholder: { default: "请填写默认占位符啊!老铁" }
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:value", "change"],
|
|
15
|
-
setup(
|
|
16
|
-
const r =
|
|
17
|
-
function
|
|
15
|
+
setup(t, { emit: d }) {
|
|
16
|
+
const r = t, { getDicByKey: h, list: m } = x(), { modelValue: c, data: S, onSearch: v, onSelect: g, onChange: C } = w();
|
|
17
|
+
function w() {
|
|
18
18
|
let s = !0, a = [];
|
|
19
|
-
const o = p(a),
|
|
19
|
+
const o = p(a), l = p(r.value), u = new V();
|
|
20
20
|
u.onerror = () => {
|
|
21
|
-
s = !1, a =
|
|
21
|
+
s = !1, a = h(r.name);
|
|
22
22
|
}, u.onmessage = (e) => {
|
|
23
23
|
o.value = [...e.data];
|
|
24
|
-
}, i(
|
|
25
|
-
const
|
|
24
|
+
}, i(l.value);
|
|
25
|
+
const b = (e) => {
|
|
26
26
|
s ? i(e) : o.value = a.filter((f) => f.value.toLowerCase().indexOf(e.toLowerCase()) !== -1 || f.label.toLowerCase().includes(e.toLowerCase())).splice(0, 10);
|
|
27
27
|
};
|
|
28
28
|
function i(e) {
|
|
29
29
|
u.postMessage({
|
|
30
|
-
list: JSON.stringify(
|
|
30
|
+
list: JSON.stringify(m[r.name]),
|
|
31
31
|
keywords: e
|
|
32
32
|
});
|
|
33
33
|
}
|
|
34
34
|
return {
|
|
35
35
|
data: o,
|
|
36
|
-
modelValue:
|
|
37
|
-
onSearch:
|
|
36
|
+
modelValue: l,
|
|
37
|
+
onSearch: b,
|
|
38
38
|
onSelect: (e) => {
|
|
39
|
-
d("update:value", e)
|
|
39
|
+
d("update:value", e);
|
|
40
|
+
},
|
|
41
|
+
onChange: () => {
|
|
42
|
+
d("change", l.value);
|
|
40
43
|
}
|
|
41
44
|
};
|
|
42
45
|
}
|
|
43
46
|
return (s, a) => {
|
|
44
|
-
const o =
|
|
45
|
-
return
|
|
46
|
-
value:
|
|
47
|
-
"onUpdate:value": a[0] || (a[0] = (
|
|
47
|
+
const o = _("a-select");
|
|
48
|
+
return k(), B(o, {
|
|
49
|
+
value: n(c),
|
|
50
|
+
"onUpdate:value": a[0] || (a[0] = (l) => L(c) ? c.value = l : null),
|
|
48
51
|
"allow-clear": "",
|
|
49
52
|
"show-search": "",
|
|
50
53
|
"filter-option": !1,
|
|
51
|
-
options:
|
|
52
|
-
placeholder:
|
|
53
|
-
disabled:
|
|
54
|
-
onSelect:
|
|
55
|
-
onSearch:
|
|
56
|
-
|
|
54
|
+
options: n(S),
|
|
55
|
+
placeholder: t.placeholder,
|
|
56
|
+
disabled: t.disabled,
|
|
57
|
+
onSelect: n(g),
|
|
58
|
+
onSearch: n(v),
|
|
59
|
+
onChange: n(C)
|
|
60
|
+
}, null, 8, ["value", "options", "placeholder", "disabled", "onSelect", "onSearch", "onChange"]);
|
|
57
61
|
};
|
|
58
62
|
}
|
|
59
63
|
});
|
|
60
64
|
export {
|
|
61
|
-
|
|
65
|
+
N as default
|
|
62
66
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const n = "KGZ1bmN0aW9uKCl7InVzZSBzdHJpY3QiO3NlbGYuYWRkRXZlbnRMaXN0ZW5lcigibWVzc2FnZSIsZnVuY3Rpb24oZSl7Y29uc3Qgcz1lLmRhdGEua2V5d29yZHM/PyIiLHQ9SlNPTi5wYXJzZShlLmRhdGEubGlzdCk/P1tdLGE9dC5maWx0ZXIobz0+by52YWx1ZS50b0xvd2VyQ2FzZSgpLmluZGV4T2Yocy50b0xvd2VyQ2FzZSgpKSE9PS0xfHxvLmxhYmVsLnRvTG93ZXJDYXNlKCkuaW5jbHVkZXMocy50b0xvd2VyQ2FzZSgpKSk7YS5sZW5ndGg9PT0wP3NlbGYucG9zdE1lc3NhZ2UodC5zcGxpY2UoMCwxMCkpOnNlbGYucG9zdE1lc3NhZ2UoYS5zcGxpY2UoMCwxMCkpfSwhMSl9KSgpOwo=", e = typeof window < "u" && window.Blob && new Blob([atob(n)], { type: "text/javascript;charset=utf-8" });
|
|
2
|
+
function d() {
|
|
3
|
+
const o = e && (window.URL || window.webkitURL).createObjectURL(e);
|
|
4
|
+
try {
|
|
5
|
+
return o ? new Worker(o) : new Worker("data:application/javascript;base64," + n);
|
|
6
|
+
} finally {
|
|
7
|
+
o && (window.URL || window.webkitURL).revokeObjectURL(o);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
d as default
|
|
12
|
+
};
|
|
@@ -1,71 +1,52 @@
|
|
|
1
|
-
export declare const DSelect: import("../../utils/install").SFCWithInstall<
|
|
2
|
-
|
|
3
|
-
{
|
|
4
|
-
value: {
|
|
1
|
+
export declare const DSelect: import("../../utils/install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
value: {
|
|
5
3
|
type: import("vue").PropType<any>;
|
|
6
4
|
required: true;
|
|
7
5
|
default: null;
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
};
|
|
7
|
+
name: {
|
|
10
8
|
type: import("vue").PropType<string>;
|
|
11
9
|
required: true;
|
|
12
10
|
default: string;
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
15
13
|
type: import("vue").PropType<boolean | undefined>;
|
|
16
14
|
required: false;
|
|
17
15
|
default: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
};
|
|
17
|
+
placeholder: {
|
|
20
18
|
type: import("vue").PropType<string | undefined>;
|
|
21
19
|
required: false;
|
|
22
20
|
default: string;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
type: import("vue").PropType<string | undefined>;
|
|
55
|
-
required: false;
|
|
56
|
-
default: string;
|
|
57
|
-
};
|
|
58
|
-
}>
|
|
59
|
-
> & {
|
|
60
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
61
|
-
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
name: string;
|
|
65
|
-
value: any;
|
|
66
|
-
disabled: boolean | undefined;
|
|
67
|
-
placeholder: string | undefined;
|
|
68
|
-
}
|
|
69
|
-
>
|
|
70
|
-
>;
|
|
21
|
+
};
|
|
22
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
value: {
|
|
24
|
+
type: import("vue").PropType<any>;
|
|
25
|
+
required: true;
|
|
26
|
+
default: null;
|
|
27
|
+
};
|
|
28
|
+
name: {
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
30
|
+
required: true;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: import("vue").PropType<boolean | undefined>;
|
|
35
|
+
required: false;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
placeholder: {
|
|
39
|
+
type: import("vue").PropType<string | undefined>;
|
|
40
|
+
required: false;
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>> & {
|
|
44
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
name: string;
|
|
48
|
+
value: any;
|
|
49
|
+
disabled: boolean | undefined;
|
|
50
|
+
placeholder: string | undefined;
|
|
51
|
+
}>>;
|
|
71
52
|
export default DSelect;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { PropType } from "vue";
|
|
2
|
+
import type { Key } from "./interface/table";
|
|
3
|
+
/**
|
|
4
|
+
* 表格组件定义
|
|
5
|
+
*/
|
|
6
|
+
declare const DXTable: import("vue").DefineComponent<{
|
|
7
|
+
data: {
|
|
8
|
+
type: PropType<any>;
|
|
9
|
+
required: boolean;
|
|
10
|
+
};
|
|
11
|
+
height: {
|
|
12
|
+
type: PropType<number>;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
keys: PropType<Key[] | undefined>;
|
|
16
|
+
rowKey: {
|
|
17
|
+
type: PropType<string>;
|
|
18
|
+
required: boolean;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
loading: {
|
|
22
|
+
type: PropType<false | undefined>;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
pagination: {
|
|
26
|
+
type: PropType<any>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
config: {
|
|
30
|
+
type: PropType<import("./interface/table").Config>;
|
|
31
|
+
default: () => {};
|
|
32
|
+
};
|
|
33
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
34
|
+
"update:keys": (keys: []) => null;
|
|
35
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
36
|
+
data: {
|
|
37
|
+
type: PropType<any>;
|
|
38
|
+
required: boolean;
|
|
39
|
+
};
|
|
40
|
+
height: {
|
|
41
|
+
type: PropType<number>;
|
|
42
|
+
default: number;
|
|
43
|
+
};
|
|
44
|
+
keys: PropType<Key[] | undefined>;
|
|
45
|
+
rowKey: {
|
|
46
|
+
type: PropType<string>;
|
|
47
|
+
required: boolean;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
loading: {
|
|
51
|
+
type: PropType<false | undefined>;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
pagination: {
|
|
55
|
+
type: PropType<any>;
|
|
56
|
+
default: () => {};
|
|
57
|
+
};
|
|
58
|
+
config: {
|
|
59
|
+
type: PropType<import("./interface/table").Config>;
|
|
60
|
+
default: () => {};
|
|
61
|
+
};
|
|
62
|
+
}>> & {
|
|
63
|
+
"onUpdate:keys"?: ((keys: []) => any) | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
height: number;
|
|
66
|
+
loading: false | undefined;
|
|
67
|
+
rowKey: string;
|
|
68
|
+
pagination: any;
|
|
69
|
+
config: import("./interface/table").Config;
|
|
70
|
+
}>;
|
|
71
|
+
export default DXTable;
|