asiaint-lowcode 3.1.83 → 3.1.84

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.
Files changed (41) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +97 -97
  3. package/dist/lazy/{Card-a50WX_tn.js → Card-BFUokup_.js} +1 -1
  4. package/dist/lazy/{Cascader-Z11PwUmX.js → Cascader-CZzFVn2b.js} +1 -1
  5. package/dist/lazy/{Checkbox-DQdBkyJn.js → Checkbox-DTRlFiX7.js} +2 -2
  6. package/dist/lazy/{Collapse-D4LiDAoT.js → Collapse-B4eV4bPX.js} +1 -1
  7. package/dist/lazy/Component-BwgjFzRw.js +190 -0
  8. package/dist/lazy/{Component-BhHxaDF-.js → Component-DBDxC3bJ.js} +1 -1
  9. package/dist/lazy/{Component-FPNNnS-Z.js → Component-DU2p72lO.js} +1 -1
  10. package/dist/lazy/{Component-BDQAh28W.js → Component-DdDAnfCO.js} +1 -1
  11. package/dist/lazy/{Component-yM7LTwYK.js → Component-DiNukMBD.js} +1 -1
  12. package/dist/lazy/{Component-tpuLlYfD.js → Component-IdWNXrrg.js} +1 -1
  13. package/dist/lazy/{CurdCard-CXmEARBi.js → CurdCard-DGWEGh09.js} +1 -1
  14. package/dist/lazy/{Custom-H9mZB_0L.js → Custom-4W1qiWut.js} +1 -1
  15. package/dist/lazy/{DatePicker-DuIv9AqI.js → DatePicker-CsbYtE8n.js} +1 -1
  16. package/dist/lazy/{DragList-Dumjqte7.js → DragList-ByZA1yh_.js} +1 -1
  17. package/dist/lazy/FilterSearch-BBlCrsIv.js +149 -0
  18. package/dist/lazy/{FloatCurd-D8xkKSPn.js → FloatCurd-DotoAxI4.js} +1 -1
  19. package/dist/lazy/{FormList-CAoJHUmR.js → FormList-CHt7ydWx.js} +1 -1
  20. package/dist/lazy/{Grid-CM0WDasd.js → Grid-FhXcS4qm.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-Cq7psLIk.js → InfiniteScroll-C5eT3gAh.js} +1 -1
  22. package/dist/lazy/{Inline-CEHMZ1qC.js → Inline-B2OcerX4.js} +1 -1
  23. package/dist/lazy/{JsonEdit-tKSC0wP_.js → JsonEdit-CX9YW345.js} +1 -1
  24. package/dist/lazy/{LogList-u9_vsMyK.js → LogList-GPYWUphW.js} +1 -1
  25. package/dist/lazy/{ObjGroup-Cf3_d1Nu.js → ObjGroup-CClw5oHe.js} +1 -1
  26. package/dist/lazy/{OfferDetails-BpnCsiiA.js → OfferDetails-Biq2BM1w.js} +1 -1
  27. package/dist/lazy/{Pagination-CzJnZ4eH.js → Pagination-DYqz_Avf.js} +1 -1
  28. package/dist/lazy/{Progress-DqLoJOcn.js → Progress-DLOBlgWL.js} +1 -1
  29. package/dist/lazy/{Radio-DTjsZB4J.js → Radio-CjJOFY1b.js} +2 -2
  30. package/dist/lazy/{SearchSelect-DHG_sScj.js → SearchSelect-DiqCeF7s.js} +2 -2
  31. package/dist/lazy/{Select-CYZtUnTk.js → Select-bD3Qs-DX.js} +2 -2
  32. package/dist/lazy/{Table-UCq8-KQL.js → Table-DMilpo0t.js} +1 -1
  33. package/dist/lazy/{Tabs-185yDooH.js → Tabs-Cva4fuaz.js} +1 -1
  34. package/dist/lazy/{TextArea-BuyEMvPh.js → TextArea-B15bhbqV.js} +1 -1
  35. package/dist/lazy/{Wrapper-BTcRRCd9.js → Wrapper-XYuj-tFV.js} +1 -1
  36. package/dist/lazy/{index-Dm8I8BdS.js → index-B8_pseN5.js} +33 -33
  37. package/dist/lazy/{useSelect-CLZcfFbw.js → useSelect-BNm4EV-Y.js} +1 -1
  38. package/dist/style.css +2 -2
  39. package/package.json +1 -1
  40. package/dist/lazy/Component-D3ED7gyO.js +0 -164
  41. package/dist/lazy/FilterSearch-CiLfbTHH.js +0 -128
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.83",
3
+ "version": "3.1.84",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,164 +0,0 @@
1
- import { defineComponent as V, mergeModels as _, useModel as $, ref as E, resolveComponent as C, openBlock as o, createElementBlock as n, Fragment as d, createVNode as c, normalizeClass as I, createSlots as L, withCtx as f, createTextVNode as y, createElementVNode as i, createBlock as g, toDisplayString as u, createCommentVNode as p, unref as N, renderList as O } from "vue";
2
- import { genFileId as R, ElMessage as z, ElMessageBox as j } from "element-plus";
3
- import { c as P, I as h, a as q, _ as A } from "./index-Dm8I8BdS.js";
4
- const G = {
5
- key: 0,
6
- class: "smallDragStyle-text"
7
- }, H = { class: "el-upload__tip" }, J = {
8
- key: 0,
9
- class: "upload-bottom-part"
10
- }, K = { class: "file-list-wrapper" }, Q = { class: "file-item-name" }, W = /* @__PURE__ */ V({
11
- __name: "Component",
12
- props: /* @__PURE__ */ _({
13
- action: {},
14
- multiple: { type: Boolean },
15
- btnText: { default: "点击上传" },
16
- tip: {},
17
- limit: {},
18
- drag: { type: Boolean },
19
- name: { default: "file" },
20
- listType: { default: "text" },
21
- attachmentTitle: {},
22
- showFileList: { type: Boolean, default: !0 },
23
- autoUpload: { type: Boolean },
24
- beforeUpload: {},
25
- isOnlyOne: { type: Boolean, default: !1 },
26
- onChange: {},
27
- smallDragStyle: { type: Boolean },
28
- clearable: { type: Boolean, default: !0 }
29
- }, {
30
- modelValue: {
31
- default: () => []
32
- },
33
- modelModifiers: {}
34
- }),
35
- emits: ["update:modelValue"],
36
- setup(v) {
37
- const t = v, r = $(v, "modelValue"), { ruleModule: k, pageMethodMap: b } = P(), B = (e) => {
38
- if (t.beforeUpload)
39
- try {
40
- return k[t.beforeUpload](b, e);
41
- } catch (l) {
42
- console.error(l);
43
- }
44
- return !0;
45
- }, T = (e, l) => {
46
- if (t.onChange)
47
- try {
48
- k[t.onChange](b, e, l);
49
- } catch (a) {
50
- console.error(a);
51
- }
52
- }, w = (e) => {
53
- const l = r.value.findIndex((a) => a.uid === e.uid);
54
- l !== -1 && r.value.splice(l, 1);
55
- }, D = (e, l) => {
56
- console.log(e, l);
57
- }, M = (e) => {
58
- console.log(e);
59
- }, m = E(), S = (e, l) => {
60
- if (t.isOnlyOne && t.limit === 1) {
61
- m.value.clearFiles();
62
- const a = e[0];
63
- a.uid = R(), m.value.handleStart(a);
64
- } else
65
- z.warning(
66
- `The limit is ${t.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
67
- );
68
- }, U = (e, l) => t.beforeUpload ? !1 : j.confirm(`Cancel the transfer of ${e.name} ?`).then(
69
- () => !0,
70
- () => !1
71
- );
72
- return (e, l) => {
73
- const a = C("el-button"), F = C("el-upload");
74
- return o(), n(d, null, [
75
- c(F, {
76
- "file-list": r.value,
77
- "onUpdate:fileList": l[0] || (l[0] = (s) => r.value = s),
78
- action: e.action,
79
- multiple: e.multiple,
80
- limit: e.limit,
81
- drag: e.drag,
82
- name: e.name,
83
- listType: e.listType,
84
- "show-file-list": e.showFileList,
85
- "on-preview": M,
86
- "on-remove": D,
87
- "before-remove": U,
88
- "before-upload": B,
89
- "on-change": T,
90
- "on-exceed": S,
91
- class: I({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
92
- ref_key: "upload",
93
- ref: m
94
- }, L({
95
- default: f(() => [
96
- e.listType === "text" ? (o(), n(d, { key: 0 }, [
97
- e.drag ? (o(), n(d, { key: 0 }, [
98
- e.smallDragStyle ? (o(), n("div", G, l[1] || (l[1] = [
99
- y("Drop file here or "),
100
- i("span", null, "click to upload", -1)
101
- ]))) : (o(), n(d, { key: 1 }, [
102
- c(h, {
103
- name: "icon-shangchuan",
104
- color: "var(--el-color-primary)"
105
- }),
106
- l[2] || (l[2] = i("div", null, [
107
- y("Drop file here or "),
108
- i("em", null, "click to upload")
109
- ], -1))
110
- ], 64))
111
- ], 64)) : (o(), g(a, {
112
- key: 1,
113
- type: "primary"
114
- }, {
115
- default: f(() => [
116
- y(u(e.btnText), 1)
117
- ]),
118
- _: 1
119
- }))
120
- ], 64)) : p("", !0),
121
- e.listType === "picture-card" ? (o(), g(N(q), {
122
- key: 1,
123
- name: "add"
124
- })) : p("", !0)
125
- ]),
126
- _: 2
127
- }, [
128
- e.tip ? {
129
- name: "tip",
130
- fn: f(() => [
131
- i("div", H, u(e.tip), 1)
132
- ]),
133
- key: "0"
134
- } : void 0
135
- ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "show-file-list", "class"]),
136
- e.drag && r.value.length > 0 ? (o(), n("div", J, [
137
- i("div", null, u(e.attachmentTitle), 1),
138
- i("div", K, [
139
- (o(!0), n(d, null, O(r.value, (s) => (o(), n("div", {
140
- class: "file-item",
141
- key: s.uid
142
- }, [
143
- c(h, {
144
- name: "icon-fujiantubiao1",
145
- size: "ultra-large"
146
- }),
147
- i("div", Q, u(s.name), 1),
148
- e.clearable ? (o(), g(h, {
149
- key: 0,
150
- name: "icon-guanbi",
151
- class: "file-item-close",
152
- size: "x-small",
153
- onClick: (X) => w(s)
154
- }, null, 8, ["onClick"])) : p("", !0)
155
- ]))), 128))
156
- ])
157
- ])) : p("", !0)
158
- ], 64);
159
- };
160
- }
161
- }), ee = /* @__PURE__ */ A(W, [["__scopeId", "data-v-2249ee01"]]);
162
- export {
163
- ee as default
164
- };
@@ -1,128 +0,0 @@
1
- import { defineComponent as M, ref as m, readonly as K, onUnmounted as U, resolveComponent as c, openBlock as f, createElementBlock as _, createElementVNode as u, createVNode as o, withKeys as j, withModifiers as E, withCtx as i, Fragment as N, renderList as R, createBlock as D, normalizeClass as L, withDirectives as $, unref as q, vShow as A } from "vue";
2
- import { c as G, j as H, I as C, b as J, _ as O } from "./index-Dm8I8BdS.js";
3
- import "element-plus";
4
- const P = { class: "filter-search-header" }, Q = /* @__PURE__ */ M({
5
- __name: "FilterSearch",
6
- props: {
7
- name: {},
8
- children: {},
9
- placeholder: {},
10
- defaultCollapse: { type: Boolean },
11
- searchTypes: {},
12
- onSearch: {},
13
- onChange: {},
14
- onSearchTypeChange: {}
15
- },
16
- setup(g, { expose: S }) {
17
- const a = g, r = m(a.defaultCollapse), s = m(a.searchTypes ? a.searchTypes[0].value : null), T = () => s.value, V = (e) => {
18
- if (a.searchTypes) {
19
- const l = a.searchTypes.find((d) => d.value === e);
20
- l && (s.value = l.value);
21
- }
22
- }, t = m(""), w = (e) => {
23
- t.value = e;
24
- }, x = () => t.value, k = (e) => {
25
- try {
26
- p[a.onSearchTypeChange](h, e);
27
- } catch (l) {
28
- console.error(l);
29
- }
30
- }, I = (e) => {
31
- if (a.onChange)
32
- try {
33
- p[a.onChange](h, e);
34
- } catch (l) {
35
- console.error(l);
36
- }
37
- }, v = async () => {
38
- try {
39
- await p[a.onSearch](h, t.value);
40
- } catch (e) {
41
- console.error(e);
42
- }
43
- }, b = () => {
44
- r.value = !r.value;
45
- }, { ruleModule: p, pageMethodMap: h } = G(), y = K({
46
- setSearchValue: w,
47
- getSearchValue: x,
48
- getSearchType: T,
49
- setSearchType: V,
50
- type: "filterSearch"
51
- });
52
- if (a.name) {
53
- const e = H(a.name, y);
54
- U(() => {
55
- e();
56
- });
57
- }
58
- return S(y), (e, l) => {
59
- const d = c("el-option"), z = c("el-select"), F = c("el-input"), B = c("el-collapse-transition");
60
- return f(), _("div", null, [
61
- u("div", P, [
62
- o(F, {
63
- modelValue: t.value,
64
- "onUpdate:modelValue": l[1] || (l[1] = (n) => t.value = n),
65
- placeholder: e.placeholder,
66
- size: "large",
67
- onKeyup: j(E(v, ["stop"]), ["enter"]),
68
- class: "filter-search-input",
69
- clearable: !0,
70
- onInput: I
71
- }, {
72
- prefix: i(() => [
73
- o(z, {
74
- modelValue: s.value,
75
- "onUpdate:modelValue": l[0] || (l[0] = (n) => s.value = n),
76
- size: "small",
77
- class: "filter-search-select",
78
- onChange: k
79
- }, {
80
- default: i(() => [
81
- (f(!0), _(N, null, R(e.searchTypes, (n) => (f(), D(d, {
82
- key: n.value,
83
- label: n.label,
84
- value: n.value
85
- }, null, 8, ["label", "value"]))), 128))
86
- ]),
87
- _: 1
88
- }, 8, ["modelValue"])
89
- ]),
90
- suffix: i(() => [
91
- o(C, {
92
- name: "icon-lujing2",
93
- size: "small",
94
- color: "#666666",
95
- onClick: v,
96
- class: "search-icon"
97
- })
98
- ]),
99
- _: 1
100
- }, 8, ["modelValue", "placeholder", "onKeyup"]),
101
- u("div", {
102
- class: L(["filter-wrapper", { active: !r.value }]),
103
- onClick: b
104
- }, [
105
- o(C, {
106
- name: "icon-shaixuan",
107
- size: "small"
108
- }),
109
- l[2] || (l[2] = u("span", { class: "filter-text" }, "Filter", -1))
110
- ], 2)
111
- ]),
112
- o(B, null, {
113
- default: i(() => [
114
- $(u("div", null, [
115
- o(q(J), { list: e.children }, null, 8, ["list"])
116
- ], 512), [
117
- [A, !r.value]
118
- ])
119
- ]),
120
- _: 1
121
- })
122
- ]);
123
- };
124
- }
125
- }), Z = /* @__PURE__ */ O(Q, [["__scopeId", "data-v-1a0dd89e"]]);
126
- export {
127
- Z as default
128
- };