asiaint-lowcode 3.1.19 → 3.1.21
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/README.md +31 -31
- package/dist/asiaint-lowcode.js +1 -1
- package/dist/asiaint-lowcode.umd.cjs +126 -98
- package/dist/index.d.ts +6 -6
- package/dist/lazy/{Card-C6-Pw2Kt.js → Card-DP_im0t0.js} +7 -6
- package/dist/lazy/{Cascader-BQlg_B1J.js → Cascader-Bymky24b.js} +14 -13
- package/dist/lazy/{Checkbox-BL9wugR4.js → Checkbox-eq-syYnm.js} +19 -18
- package/dist/lazy/{Collapse-VBM-r16N.js → Collapse-CtBwlWmC.js} +1 -1
- package/dist/lazy/Component-BjTiydgq.js +121 -0
- package/dist/lazy/{Component-TPlA312X.js → Component-CvLIZQ8-.js} +1 -1
- package/dist/lazy/{Component-B16t7OV8.js → Component-DhpjEfpC.js} +1 -1
- package/dist/lazy/{Component-D4pyG7EA.js → Component-DzP4ePYA.js} +2 -2
- package/dist/lazy/{Component-C2I5t5q4.js → Component-arXOIAcw.js} +1 -1
- package/dist/lazy/{Component-BNs8l3D0.js → Component-mJhYJo7Y.js} +2 -2
- package/dist/lazy/CurdCard-BLRicN8s.js +206 -0
- package/dist/lazy/{Custom-Ne8yN2Ea.js → Custom-l010DzNp.js} +7 -7
- package/dist/lazy/{DatePicker-BUZW95kN.js → DatePicker-BVlaRwaH.js} +1 -1
- package/dist/lazy/{DragList-ClgQ3QJ7.js → DragList-DgHMldOj.js} +4 -3
- package/dist/lazy/FilterSearch-DeDhZJ9X.js +149 -0
- package/dist/lazy/{FormList-rqifCuNE.js → FormList-CAhLwu-f.js} +1 -1
- package/dist/lazy/{Grid-D760rpVd.js → Grid-DTC6W7rx.js} +1 -1
- package/dist/lazy/{Inline-C2kevZlA.js → Inline-DIisEVxD.js} +3 -3
- package/dist/lazy/{JsonEdit-BGNMo9TC.js → JsonEdit-BuB4Cyjp.js} +3 -3
- package/dist/lazy/{LogList-DistvWBw.js → LogList-CUKZE5YZ.js} +7 -7
- package/dist/lazy/{ObjGroup-Do3MBFB4.js → ObjGroup-r41RqIB5.js} +1 -1
- package/dist/lazy/{OfferDetails-1lpktyAd.js → OfferDetails-CDw1FUji.js} +11 -11
- package/dist/lazy/{Pagination-Bs6c14gG.js → Pagination-B3I40w4b.js} +7 -7
- package/dist/lazy/{Progress-BYMD3T21.js → Progress-CbKa3A52.js} +5 -5
- package/dist/lazy/{Radio-Cpxboojo.js → Radio-50G6EN-w.js} +21 -20
- package/dist/lazy/{SearchSelect-Dx30Uf_w.js → SearchSelect-hVJIPM-X.js} +34 -32
- package/dist/lazy/{Select-DfBKMQek.js → Select-CBJMdEem.js} +14 -13
- package/dist/lazy/{Table-DtB409LT.js → Table-_aDuQdYX.js} +79 -78
- package/dist/lazy/{Tabs-CFDgaNmd.js → Tabs-o0SIg45e.js} +1 -1
- package/dist/lazy/{Wrapper-BpsPO0Yu.js → Wrapper-B2kzkjgz.js} +9 -9
- package/dist/lazy/{index-Ch0AEG6l.js → index-6IzTZ8mI.js} +484 -448
- package/dist/lazy/{useSelect-MBMFJjvJ.js → useSelect-CIXrOFmJ.js} +1 -1
- package/dist/style.css +2 -2
- package/global.d.ts +10 -10
- package/package.json +36 -36
- package/dist/lazy/Component-B9_KjLaT.js +0 -118
- package/dist/lazy/CurdCard-C0CV5eG_.js +0 -198
- package/dist/lazy/FilterSearch-EYXFcLfg.js +0 -140
package/global.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare module 'vue' {
|
|
2
|
-
export interface GlobalComponents {
|
|
3
|
-
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
-
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
-
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
-
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export {}
|
|
1
|
+
declare module 'vue' {
|
|
2
|
+
export interface GlobalComponents {
|
|
3
|
+
FormRender: (typeof import('asiaint-lowcode'))['FormRender']
|
|
4
|
+
FormDesign: (typeof import('asiaint-lowcode'))['FormDesign']
|
|
5
|
+
TableRender: (typeof import('asiaint-lowcode'))['TableRender']
|
|
6
|
+
PageRender: (typeof import('asiaint-lowcode'))['PageRender']
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export {}
|
package/package.json
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "asiaint-lowcode",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"type": "module",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"build": "vite build",
|
|
8
|
-
"v": "npm version patch",
|
|
9
|
-
"release": "vite build && npm publish"
|
|
10
|
-
},
|
|
11
|
-
"peerDependencies": {
|
|
12
|
-
"vue": "^3.2.0",
|
|
13
|
-
"element-plus": "^2.6.0"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"element-plus": "^2.8.3",
|
|
17
|
-
"vue": "^3.5.8"
|
|
18
|
-
},
|
|
19
|
-
"devDependencies": {
|
|
20
|
-
"vite-plugin-dts": "^3.7.3",
|
|
21
|
-
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"dist",
|
|
25
|
-
"global.d.ts"
|
|
26
|
-
],
|
|
27
|
-
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
-
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
-
"types": "dist/index.d.ts",
|
|
30
|
-
"keywords": [
|
|
31
|
-
"component",
|
|
32
|
-
"vue",
|
|
33
|
-
"form",
|
|
34
|
-
"element-ui"
|
|
35
|
-
]
|
|
36
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "asiaint-lowcode",
|
|
3
|
+
"version": "3.1.21",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"v": "npm version patch",
|
|
9
|
+
"release": "vite build && npm publish"
|
|
10
|
+
},
|
|
11
|
+
"peerDependencies": {
|
|
12
|
+
"vue": "^3.2.0",
|
|
13
|
+
"element-plus": "^2.6.0"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"element-plus": "^2.8.3",
|
|
17
|
+
"vue": "^3.5.8"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"vite-plugin-dts": "^3.7.3",
|
|
21
|
+
"vite-plugin-libcss": "^1.1.1"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"global.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"main": "./dist/asiaint-lowcode.js",
|
|
28
|
+
"module": "./dist/asiaint-lowcode.js",
|
|
29
|
+
"types": "dist/index.d.ts",
|
|
30
|
+
"keywords": [
|
|
31
|
+
"component",
|
|
32
|
+
"vue",
|
|
33
|
+
"form",
|
|
34
|
+
"element-ui"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as k, createElementVNode as c, toDisplayString as B, createElementBlock as _, createCommentVNode as f, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
|
|
2
|
-
import { h as F, I as j, b as D } from "./index-Ch0AEG6l.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
|
|
5
|
-
key: 0,
|
|
6
|
-
class: "tree-node-present"
|
|
7
|
-
}, G = /* @__PURE__ */ w({
|
|
8
|
-
__name: "Component",
|
|
9
|
-
props: {
|
|
10
|
-
onNodeClick: {},
|
|
11
|
-
onLoad: {},
|
|
12
|
-
btns: {},
|
|
13
|
-
data: {},
|
|
14
|
-
props: {},
|
|
15
|
-
nodeKey: {}
|
|
16
|
-
},
|
|
17
|
-
setup(g) {
|
|
18
|
-
const o = g, a = C("ruleModule", void 0), l = C("pageMethodMap", {}), i = v(), K = (e, t) => {
|
|
19
|
-
i.value = e[o.nodeKey];
|
|
20
|
-
}, M = (e, t, r) => {
|
|
21
|
-
if (e && a)
|
|
22
|
-
try {
|
|
23
|
-
a[e](l, { node: t, data: r });
|
|
24
|
-
} catch (s) {
|
|
25
|
-
console.error(s);
|
|
26
|
-
}
|
|
27
|
-
}, x = (e, t) => {
|
|
28
|
-
if (o.onNodeClick && a)
|
|
29
|
-
try {
|
|
30
|
-
a[o.onNodeClick](l, { node: e, data: t });
|
|
31
|
-
} catch (r) {
|
|
32
|
-
console.error(r);
|
|
33
|
-
}
|
|
34
|
-
}, L = (e, t, r) => {
|
|
35
|
-
if (o.onLoad && a)
|
|
36
|
-
try {
|
|
37
|
-
a[o.onLoad](l, { node: e, resolve: t, reject: r });
|
|
38
|
-
} catch (s) {
|
|
39
|
-
console.error(s);
|
|
40
|
-
}
|
|
41
|
-
}, h = v([]);
|
|
42
|
-
return $(
|
|
43
|
-
//默认展开根节点
|
|
44
|
-
() => o.data,
|
|
45
|
-
() => {
|
|
46
|
-
if (!o.data || !Array.isArray(o.data) || o.data.length === 0)
|
|
47
|
-
return;
|
|
48
|
-
const t = [o.data[0][o.nodeKey]];
|
|
49
|
-
h.value = t;
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
immediate: !0
|
|
53
|
-
}
|
|
54
|
-
), (e, t) => {
|
|
55
|
-
const r = m("el-tooltip"), s = m("el-button"), b = m("el-tree");
|
|
56
|
-
return d(), y(b, A(e.$attrs, {
|
|
57
|
-
onNodeClick: x,
|
|
58
|
-
load: L,
|
|
59
|
-
ref: "treeRef",
|
|
60
|
-
class: "crm-tree",
|
|
61
|
-
indent: 32,
|
|
62
|
-
"current-node-key": i.value,
|
|
63
|
-
onCurrentChange: K,
|
|
64
|
-
"node-key": e.nodeKey,
|
|
65
|
-
props: o.props,
|
|
66
|
-
data: e.data,
|
|
67
|
-
"default-expanded-keys": h.value
|
|
68
|
-
}), {
|
|
69
|
-
default: k(({ node: p, data: u }) => [
|
|
70
|
-
c("div", R, [
|
|
71
|
-
c("div", S, [
|
|
72
|
-
c("span", q, B(p.label), 1),
|
|
73
|
-
u[e.nodeKey] === i.value ? (d(), _("div", z, "Present")) : f("", !0)
|
|
74
|
-
]),
|
|
75
|
-
c("div", null, [
|
|
76
|
-
(d(!0), _(N, null, E(e.btns, (n) => (d(), _(N, {
|
|
77
|
-
key: n.key
|
|
78
|
-
}, [
|
|
79
|
-
I(F)(n.hidden, { $node: p, $data: u }) ? f("", !0) : (d(), y(s, {
|
|
80
|
-
key: 0,
|
|
81
|
-
link: "",
|
|
82
|
-
onClick: P((H) => M(n.onClick || "", p, u), ["stop"]),
|
|
83
|
-
disabled: n.disabled,
|
|
84
|
-
type: n.type
|
|
85
|
-
}, {
|
|
86
|
-
default: k(() => [
|
|
87
|
-
V(r, {
|
|
88
|
-
class: "box-item",
|
|
89
|
-
effect: "dark",
|
|
90
|
-
content: n.text,
|
|
91
|
-
placement: "top",
|
|
92
|
-
"popper-class": "low-tsp"
|
|
93
|
-
}, {
|
|
94
|
-
default: k(() => [
|
|
95
|
-
n.icon ? (d(), y(j, {
|
|
96
|
-
key: 0,
|
|
97
|
-
name: n.icon.name,
|
|
98
|
-
color: n.icon.color,
|
|
99
|
-
class: "btn-icon"
|
|
100
|
-
}, null, 8, ["name", "color"])) : f("", !0)
|
|
101
|
-
]),
|
|
102
|
-
_: 2
|
|
103
|
-
}, 1032, ["content"])
|
|
104
|
-
]),
|
|
105
|
-
_: 2
|
|
106
|
-
}, 1032, ["onClick", "disabled", "type"]))
|
|
107
|
-
], 64))), 128))
|
|
108
|
-
])
|
|
109
|
-
])
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 16, ["current-node-key", "node-key", "props", "data", "default-expanded-keys"]);
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
}), T = /* @__PURE__ */ D(G, [["__scopeId", "data-v-3eedac4e"]]);
|
|
116
|
-
export {
|
|
117
|
-
T as default
|
|
118
|
-
};
|
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, inject as $, ref as k, resolveComponent as y, openBlock as a, createElementBlock as t, normalizeClass as h, normalizeStyle as U, createElementVNode as d, createBlock as c, createCommentVNode as p, toDisplayString as z, withCtx as v, Fragment as B, renderList as R, createTextVNode as A, createVNode as s, unref as g, withKeys as O, withDirectives as q, vShow as G } from "vue";
|
|
2
|
-
import { u as H, I as u, a as V, B as J, i as Q, b as W } from "./index-Ch0AEG6l.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const X = ["id"], Y = { class: "left-part" }, Z = { class: "title" }, x = { class: "right-part" }, ee = { key: 0 }, le = {
|
|
5
|
-
key: 1,
|
|
6
|
-
class: "switch-panel"
|
|
7
|
-
}, oe = { key: 3 }, ae = /* @__PURE__ */ K({
|
|
8
|
-
__name: "CurdCard",
|
|
9
|
-
props: {
|
|
10
|
-
name: {},
|
|
11
|
-
children: {},
|
|
12
|
-
defaultCollapse: { type: Boolean },
|
|
13
|
-
collapsible: { type: Boolean },
|
|
14
|
-
onCollapsed: {},
|
|
15
|
-
typeSwitch: { type: Boolean },
|
|
16
|
-
title: {},
|
|
17
|
-
btns: {},
|
|
18
|
-
type: {},
|
|
19
|
-
mainIcon: {},
|
|
20
|
-
extraIcons: {},
|
|
21
|
-
displayType: {},
|
|
22
|
-
radioList: {},
|
|
23
|
-
onRadioChange: {},
|
|
24
|
-
radioDefault: {},
|
|
25
|
-
formSlots: {},
|
|
26
|
-
style: { type: [Boolean, null, String, Object, Array] },
|
|
27
|
-
hasSearchInput: { type: Boolean },
|
|
28
|
-
searchPlaceholder: {}
|
|
29
|
-
},
|
|
30
|
-
setup(D) {
|
|
31
|
-
const m = $("ruleModule", void 0), I = $("pageMethodMap", {}), T = k(""), n = D, b = k(n.radioDefault ?? "2"), _ = (e) => {
|
|
32
|
-
if (e && m)
|
|
33
|
-
try {
|
|
34
|
-
m[e](I);
|
|
35
|
-
} catch (o) {
|
|
36
|
-
console.error(o);
|
|
37
|
-
}
|
|
38
|
-
}, L = (e) => {
|
|
39
|
-
n.onRadioChange && m && m[n.onRadioChange](I, e);
|
|
40
|
-
}, N = () => {
|
|
41
|
-
r.value = !r.value, n.onCollapsed && m && m[n.onCollapsed](I, r.value);
|
|
42
|
-
}, r = k(n.defaultCollapse ?? !1), f = k(n.displayType || (n.typeSwitch ? "card" : "table")), P = H(), w = (e) => {
|
|
43
|
-
f.value = e;
|
|
44
|
-
const o = Q(P.schema.items, n.name), C = (S) => {
|
|
45
|
-
S.forEach((i) => {
|
|
46
|
-
i.component === "Table" && i.props && (i.props.displayType = e), i.children && i.children.length > 0 && C(i.children);
|
|
47
|
-
});
|
|
48
|
-
};
|
|
49
|
-
o && o.children && C(o.children);
|
|
50
|
-
}, M = () => {
|
|
51
|
-
};
|
|
52
|
-
return w(f.value), (e, o) => {
|
|
53
|
-
const C = y("el-radio"), S = y("el-radio-group"), i = y("el-tooltip"), j = y("el-input"), E = y("el-collapse-transition");
|
|
54
|
-
return a(), t("div", {
|
|
55
|
-
class: h(["crm-curd-card", { gridItem: e.type === "gridItem" }]),
|
|
56
|
-
style: U(e.style),
|
|
57
|
-
id: e.name
|
|
58
|
-
}, [
|
|
59
|
-
d("div", {
|
|
60
|
-
class: h(["card-header", {
|
|
61
|
-
inline: e.type === "inline",
|
|
62
|
-
mix: e.type === "mix",
|
|
63
|
-
default: e.type === "default",
|
|
64
|
-
gridItem: e.type === "gridItem",
|
|
65
|
-
collapsedPadding: r.value && e.onCollapsed || e.hasSearchInput
|
|
66
|
-
}])
|
|
67
|
-
}, [
|
|
68
|
-
d("div", Y, [
|
|
69
|
-
e.mainIcon ? (a(), c(u, {
|
|
70
|
-
key: 0,
|
|
71
|
-
class: "title-icon",
|
|
72
|
-
size: "large",
|
|
73
|
-
name: e.mainIcon.name,
|
|
74
|
-
color: e.mainIcon.color
|
|
75
|
-
}, null, 8, ["name", "color"])) : p("", !0),
|
|
76
|
-
d("span", Z, z(e.title), 1),
|
|
77
|
-
e.radioList ? (a(), c(S, {
|
|
78
|
-
key: 1,
|
|
79
|
-
class: "ml-9",
|
|
80
|
-
modelValue: b.value,
|
|
81
|
-
"onUpdate:modelValue": o[0] || (o[0] = (l) => b.value = l),
|
|
82
|
-
onChange: o[1] || (o[1] = (l) => L(b.value))
|
|
83
|
-
}, {
|
|
84
|
-
default: v(() => [
|
|
85
|
-
(a(!0), t(B, null, R(e.radioList, (l) => (a(), c(C, {
|
|
86
|
-
value: l.value,
|
|
87
|
-
key: l.value
|
|
88
|
-
}, {
|
|
89
|
-
default: v(() => [
|
|
90
|
-
A(z(l.label), 1)
|
|
91
|
-
]),
|
|
92
|
-
_: 2
|
|
93
|
-
}, 1032, ["value"]))), 128))
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
}, 8, ["modelValue"])) : p("", !0),
|
|
97
|
-
(a(!0), t(B, null, R(e.extraIcons, (l) => (a(), t(B, {
|
|
98
|
-
key: l.name
|
|
99
|
-
}, [
|
|
100
|
-
l.tips ? (a(), c(i, {
|
|
101
|
-
key: 0,
|
|
102
|
-
content: l.tips,
|
|
103
|
-
placement: "right"
|
|
104
|
-
}, {
|
|
105
|
-
default: v(() => [
|
|
106
|
-
s(u, {
|
|
107
|
-
class: "extra-icon",
|
|
108
|
-
name: l.name,
|
|
109
|
-
color: l.color,
|
|
110
|
-
onClick: (F) => _(l.onClick)
|
|
111
|
-
}, null, 8, ["name", "color", "onClick"])
|
|
112
|
-
]),
|
|
113
|
-
_: 2
|
|
114
|
-
}, 1032, ["content"])) : (a(), c(u, {
|
|
115
|
-
key: 1,
|
|
116
|
-
class: "extra-icon",
|
|
117
|
-
name: l.name,
|
|
118
|
-
color: l.color,
|
|
119
|
-
onClick: (F) => _(l.onClick)
|
|
120
|
-
}, null, 8, ["name", "color", "onClick"]))
|
|
121
|
-
], 64))), 128))
|
|
122
|
-
]),
|
|
123
|
-
d("div", x, [
|
|
124
|
-
e.formSlots ? (a(), t("div", ee, [
|
|
125
|
-
s(g(V), { list: e.formSlots }, null, 8, ["list"])
|
|
126
|
-
])) : p("", !0),
|
|
127
|
-
e.typeSwitch ? (a(), t("div", le, [
|
|
128
|
-
d("div", {
|
|
129
|
-
class: h(["switch-icon-wrapper", { active: f.value === "card" }]),
|
|
130
|
-
onClick: o[2] || (o[2] = (l) => w("card"))
|
|
131
|
-
}, [
|
|
132
|
-
s(u, { name: "icon-kapian" })
|
|
133
|
-
], 2),
|
|
134
|
-
d("div", {
|
|
135
|
-
class: h(["switch-icon-wrapper", { active: f.value === "table" }]),
|
|
136
|
-
onClick: o[3] || (o[3] = (l) => w("table"))
|
|
137
|
-
}, [
|
|
138
|
-
s(u, { name: "icon-biaoge" })
|
|
139
|
-
], 2)
|
|
140
|
-
])) : p("", !0),
|
|
141
|
-
e.collapsible ? (a(), t("div", {
|
|
142
|
-
key: 2,
|
|
143
|
-
class: h(["collapse-icon-wrapper", { collapsed: r.value }]),
|
|
144
|
-
onClick: N
|
|
145
|
-
}, [
|
|
146
|
-
s(u, { name: "icon-shaixuan" })
|
|
147
|
-
], 2)) : p("", !0),
|
|
148
|
-
e.btns && e.btns.length > 0 ? (a(), t("div", oe, [
|
|
149
|
-
s(g(J), {
|
|
150
|
-
btns: e.btns || []
|
|
151
|
-
}, null, 8, ["btns"])
|
|
152
|
-
])) : p("", !0)
|
|
153
|
-
])
|
|
154
|
-
], 2),
|
|
155
|
-
e.hasSearchInput ? (a(), t("div", {
|
|
156
|
-
key: 0,
|
|
157
|
-
class: h(["card-search-input", { collapsedPadding: r.value && e.onCollapsed }])
|
|
158
|
-
}, [
|
|
159
|
-
s(j, {
|
|
160
|
-
modelValue: T.value,
|
|
161
|
-
"onUpdate:modelValue": o[4] || (o[4] = (l) => T.value = l),
|
|
162
|
-
placeholder: e.searchPlaceholder,
|
|
163
|
-
size: "large",
|
|
164
|
-
onKeyup: O(M, ["enter"])
|
|
165
|
-
}, {
|
|
166
|
-
prefix: v(() => o[5] || (o[5] = [])),
|
|
167
|
-
suffix: v(() => [
|
|
168
|
-
s(u, {
|
|
169
|
-
class: "cursor-pointer",
|
|
170
|
-
name: "icon-lujing2",
|
|
171
|
-
color: "#666666",
|
|
172
|
-
size: "normal",
|
|
173
|
-
onClick: M
|
|
174
|
-
})
|
|
175
|
-
]),
|
|
176
|
-
_: 1
|
|
177
|
-
}, 8, ["modelValue", "placeholder"])
|
|
178
|
-
], 2)) : p("", !0),
|
|
179
|
-
e.onCollapsed ? (a(), c(g(V), {
|
|
180
|
-
key: 2,
|
|
181
|
-
list: e.children
|
|
182
|
-
}, null, 8, ["list"])) : (a(), c(E, { key: 1 }, {
|
|
183
|
-
default: v(() => [
|
|
184
|
-
q(d("div", null, [
|
|
185
|
-
s(g(V), { list: e.children }, null, 8, ["list"])
|
|
186
|
-
], 512), [
|
|
187
|
-
[G, !r.value]
|
|
188
|
-
])
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}))
|
|
192
|
-
], 14, X);
|
|
193
|
-
};
|
|
194
|
-
}
|
|
195
|
-
}), ie = /* @__PURE__ */ W(ae, [["__scopeId", "data-v-8f9eda87"]]);
|
|
196
|
-
export {
|
|
197
|
-
ie as default
|
|
198
|
-
};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, ref as d, readonly as D, onUnmounted as E, resolveComponent as h, openBlock as p, createElementBlock as v, createElementVNode as t, createVNode as o, withKeys as K, withCtx as c, createBlock as R, createTextVNode as C, toDisplayString as S, createCommentVNode as U, Fragment as $, renderList as L, normalizeClass as T, withDirectives as q, unref as A, vShow as G } from "vue";
|
|
2
|
-
import { c as H, j as J, I as k, a as O, b as P } from "./index-Ch0AEG6l.js";
|
|
3
|
-
import "element-plus";
|
|
4
|
-
const Q = { class: "filter-search-header" }, W = { class: "input-tag-wrapper" }, X = { class: "input-action" }, Y = { class: "input-action-tag-wrapper" }, Z = /* @__PURE__ */ j({
|
|
5
|
-
__name: "FilterSearch",
|
|
6
|
-
props: {
|
|
7
|
-
name: {},
|
|
8
|
-
children: {},
|
|
9
|
-
placeholder: {},
|
|
10
|
-
defaultCollapse: { type: Boolean },
|
|
11
|
-
searchTypes: {},
|
|
12
|
-
onSearch: {},
|
|
13
|
-
onSearchTypeChange: {}
|
|
14
|
-
},
|
|
15
|
-
setup(V, { expose: w }) {
|
|
16
|
-
const a = V, i = d(a.defaultCollapse), n = d(a.searchTypes ? a.searchTypes[0] : null), x = () => n.value, b = (e) => {
|
|
17
|
-
if (a.searchTypes) {
|
|
18
|
-
const l = a.searchTypes.find((u) => u.value === e);
|
|
19
|
-
l && (n.value = l);
|
|
20
|
-
}
|
|
21
|
-
}, r = d(""), z = (e) => {
|
|
22
|
-
r.value = e;
|
|
23
|
-
}, F = () => r.value, B = (e) => {
|
|
24
|
-
n.value = e;
|
|
25
|
-
try {
|
|
26
|
-
f[a.onSearchTypeChange](_, e);
|
|
27
|
-
} catch (l) {
|
|
28
|
-
console.error(l);
|
|
29
|
-
}
|
|
30
|
-
}, m = async () => {
|
|
31
|
-
try {
|
|
32
|
-
await f[a.onSearch](_, r.value);
|
|
33
|
-
} catch (e) {
|
|
34
|
-
console.error(e);
|
|
35
|
-
}
|
|
36
|
-
}, I = () => {
|
|
37
|
-
i.value = !i.value;
|
|
38
|
-
}, { ruleModule: f, pageMethodMap: _ } = H(), y = D({
|
|
39
|
-
setSearchValue: z,
|
|
40
|
-
getSearchValue: F,
|
|
41
|
-
getSearchType: x,
|
|
42
|
-
setSearchType: b,
|
|
43
|
-
type: "filterSearch"
|
|
44
|
-
});
|
|
45
|
-
if (a.name) {
|
|
46
|
-
const e = J(a.name, y);
|
|
47
|
-
E(() => {
|
|
48
|
-
e();
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
return w(y), (e, l) => {
|
|
52
|
-
const u = h("el-tag"), N = h("el-input"), M = h("el-collapse-transition");
|
|
53
|
-
return p(), v("div", null, [
|
|
54
|
-
t("div", Q, [
|
|
55
|
-
o(N, {
|
|
56
|
-
modelValue: r.value,
|
|
57
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => r.value = s),
|
|
58
|
-
placeholder: e.placeholder,
|
|
59
|
-
size: "large",
|
|
60
|
-
onKeyup: K(m, ["enter"]),
|
|
61
|
-
class: "filter-search-input",
|
|
62
|
-
clearable: !0
|
|
63
|
-
}, {
|
|
64
|
-
prefix: c(() => [
|
|
65
|
-
t("div", W, [
|
|
66
|
-
n.value ? (p(), R(u, {
|
|
67
|
-
key: 0,
|
|
68
|
-
class: "search-tag",
|
|
69
|
-
type: "primary"
|
|
70
|
-
}, {
|
|
71
|
-
default: c(() => [
|
|
72
|
-
C(S(n.value.label), 1)
|
|
73
|
-
]),
|
|
74
|
-
_: 1
|
|
75
|
-
})) : U("", !0)
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
suffix: c(() => [
|
|
79
|
-
o(k, {
|
|
80
|
-
name: "icon-lujing2",
|
|
81
|
-
size: "small",
|
|
82
|
-
color: "#666666",
|
|
83
|
-
onClick: m,
|
|
84
|
-
class: "search-icon"
|
|
85
|
-
})
|
|
86
|
-
]),
|
|
87
|
-
_: 1
|
|
88
|
-
}, 8, ["modelValue", "placeholder"]),
|
|
89
|
-
t("div", X, [
|
|
90
|
-
t("div", Y, [
|
|
91
|
-
(p(!0), v($, null, L(e.searchTypes, (s) => {
|
|
92
|
-
var g;
|
|
93
|
-
return p(), v("div", {
|
|
94
|
-
class: "input-action-tag",
|
|
95
|
-
key: s.value
|
|
96
|
-
}, [
|
|
97
|
-
o(u, {
|
|
98
|
-
class: T({ "is-active": ((g = n.value) == null ? void 0 : g.value) === s.value }),
|
|
99
|
-
type: "info",
|
|
100
|
-
round: "",
|
|
101
|
-
size: "large",
|
|
102
|
-
onClick: (ee) => B(s)
|
|
103
|
-
}, {
|
|
104
|
-
default: c(() => [
|
|
105
|
-
C(S(s.label), 1)
|
|
106
|
-
]),
|
|
107
|
-
_: 2
|
|
108
|
-
}, 1032, ["class", "onClick"])
|
|
109
|
-
]);
|
|
110
|
-
}), 128))
|
|
111
|
-
]),
|
|
112
|
-
t("div", {
|
|
113
|
-
class: T(["filter-wrapper", { active: !i.value }]),
|
|
114
|
-
onClick: I
|
|
115
|
-
}, [
|
|
116
|
-
o(k, {
|
|
117
|
-
name: "icon-shaixuan",
|
|
118
|
-
size: "small"
|
|
119
|
-
}),
|
|
120
|
-
l[1] || (l[1] = t("span", { class: "filter-text" }, "Filter", -1))
|
|
121
|
-
], 2)
|
|
122
|
-
])
|
|
123
|
-
]),
|
|
124
|
-
o(M, null, {
|
|
125
|
-
default: c(() => [
|
|
126
|
-
q(t("div", null, [
|
|
127
|
-
o(A(O), { list: e.children }, null, 8, ["list"])
|
|
128
|
-
], 512), [
|
|
129
|
-
[G, !i.value]
|
|
130
|
-
])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
]);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
}), ne = /* @__PURE__ */ P(Z, [["__scopeId", "data-v-e505bc33"]]);
|
|
138
|
-
export {
|
|
139
|
-
ne as default
|
|
140
|
-
};
|