asiaint-lowcode 3.1.174 → 3.1.176

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 (55) hide show
  1. package/dist/asiaint-lowcode.d.ts +65 -0
  2. package/dist/asiaint-lowcode.js +7 -7
  3. package/dist/asiaint-lowcode.umd.cjs +234 -234
  4. package/dist/lazy/{Card-CdqSVMKp.js → Card-tY03_jsQ.js} +1 -1
  5. package/dist/lazy/{Cascader-D1H3atkH.js → Cascader-CoiEWibG.js} +1 -1
  6. package/dist/lazy/{Checkbox-rxwRKO2L.js → Checkbox-DgAWi7xv.js} +2 -2
  7. package/dist/lazy/{Collapse-C71dCSaP.js → Collapse-DoX4-z6R.js} +2 -2
  8. package/dist/lazy/Component-B1cRXfb6.js +198 -0
  9. package/dist/lazy/{Component-C14aJsIW.js → Component-CEPZFfnv.js} +1 -1
  10. package/dist/lazy/{Component-j-7aSjsD.js → Component-CwFNnxot.js} +1 -1
  11. package/dist/lazy/{Component-D-djkyEJ.js → Component-DYj0-oAE.js} +1 -1
  12. package/dist/lazy/{CurdCard-SpH6JL4Y.js → CurdCard-DfTd52sw.js} +1 -1
  13. package/dist/lazy/{Custom-BU5XOp-r.js → Custom-Dbj0V-xU.js} +1 -1
  14. package/dist/lazy/DatePicker-Bn2V6hsJ.js +73 -0
  15. package/dist/lazy/{DragList-CfBWQeQz.js → DragList-DqreIFnM.js} +1 -1
  16. package/dist/lazy/FilterSearch-DhDZ-EZP.js +149 -0
  17. package/dist/lazy/FloatCurd-Cfkz6IKM.js +268 -0
  18. package/dist/lazy/FloatSearchCurd-CuGQMSfs.js +447 -0
  19. package/dist/lazy/{FormList-Bb8pnChP.js → FormList-iRDxU3y1.js} +1 -1
  20. package/dist/lazy/{Grid-Db2yree5.js → Grid-BdWqDQr5.js} +1 -1
  21. package/dist/lazy/{InfiniteScroll-1DHgbFA8.js → InfiniteScroll-DLdq1kWV.js} +1 -1
  22. package/dist/lazy/{Inline-BjDXhX1N.js → Inline-BUA_Nnzb.js} +1 -1
  23. package/dist/lazy/{JsonEdit-B1SPhwLj.js → JsonEdit-Dza78rMu.js} +1 -1
  24. package/dist/lazy/{LogList-BUDvAMuS.js → LogList-BuZ8Xjtk.js} +1 -1
  25. package/dist/lazy/{ObjGroup-CNIY-lzc.js → ObjGroup-BVYeKRas.js} +1 -1
  26. package/dist/lazy/OfferDetails-BuFlnyVM.js +208 -0
  27. package/dist/lazy/Pagination-DIueKA4T.js +121 -0
  28. package/dist/lazy/Progress-MldyKkep.js +56 -0
  29. package/dist/lazy/{Radio-Ccv92FSa.js → Radio-Bod52dE2.js} +2 -2
  30. package/dist/lazy/{SearchSelect-CegeM7cQ.js → SearchSelect-CzIo7iiM.js} +2 -2
  31. package/dist/lazy/{Select-BwUZLLXi.js → Select-Cy9eA5-X.js} +2 -2
  32. package/dist/lazy/Table-BVg8ydp1.js +598 -0
  33. package/dist/lazy/Tabs-CbJpP5yI.js +154 -0
  34. package/dist/lazy/Tag-DfelP1C7.js +25 -0
  35. package/dist/lazy/{TextArea-BuVvhsWJ.js → TextArea-HCAqMgrp.js} +1 -1
  36. package/dist/lazy/{Title-32bZDihB.js → Title-7fiPAhd5.js} +1 -1
  37. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-LunhnrZy.js +26 -0
  38. package/dist/lazy/{Wrapper-BLTyLdnw.js → Wrapper-BR-FaBxi.js} +1 -1
  39. package/dist/lazy/{index-BbsPPc14.js → index-1omyaX4F.js} +9420 -9412
  40. package/dist/lazy/{useSelect-DsEZTPfh.js → useSelect-U2g9t7In.js} +1 -1
  41. package/dist/style.css +2 -2
  42. package/package.json +1 -1
  43. package/dist/lazy/Component-BcbHLE_g.js +0 -321
  44. package/dist/lazy/Component-DO3qZWym.js +0 -192
  45. package/dist/lazy/DatePicker-S3D1E9AQ.js +0 -73
  46. package/dist/lazy/FilterSearch-BbAQVwp0.js +0 -149
  47. package/dist/lazy/FloatCurd-1NLXV_L9.js +0 -268
  48. package/dist/lazy/FloatSearchCurd-HU1XecwR.js +0 -447
  49. package/dist/lazy/OfferDetails-Caj8FZUy.js +0 -206
  50. package/dist/lazy/Pagination-BguRKtZy.js +0 -121
  51. package/dist/lazy/Progress-B-vHTTf7.js +0 -54
  52. package/dist/lazy/Table-BAnOjOoV.js +0 -667
  53. package/dist/lazy/Tabs-Dgnv0RAm.js +0 -150
  54. package/dist/lazy/Tag-IQ_W6v0E.js +0 -22
  55. package/dist/lazy/Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js +0 -23
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asiaint-lowcode",
3
- "version": "3.1.174",
3
+ "version": "3.1.176",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,321 +0,0 @@
1
- import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { _ as H, u as K, d as Q } from "./index-BbsPPc14.js";
3
- import "element-plus";
4
- const Z = $({
5
- props: {
6
- width: {
7
- type: Number,
8
- default: 800
9
- },
10
- height: {
11
- type: Number,
12
- default: 300
13
- },
14
- lineWidth: {
15
- type: Number,
16
- default: 4
17
- },
18
- lineColor: {
19
- type: String,
20
- default: "#000000"
21
- },
22
- bgColor: {
23
- type: String,
24
- default: ""
25
- },
26
- isCrop: {
27
- type: Boolean,
28
- default: !1
29
- },
30
- isClearBgColor: {
31
- type: Boolean,
32
- default: !1
33
- },
34
- format: {
35
- type: String,
36
- default: "image/png"
37
- },
38
- quality: {
39
- type: Number,
40
- default: 1
41
- }
42
- },
43
- setup(a) {
44
- const n = v(!1), c = v(""), d = v([]), t = v(null), g = v(0), o = v(0), C = v(!1), f = v(1), l = v(null), S = N(() => a.height / a.width), u = N(() => a.bgColor ? a.bgColor : "rgba(255, 255, 255, 0)");
45
- L(u, (e) => {
46
- l.value && (l.value.style.background = e);
47
- });
48
- const s = () => {
49
- if (l.value) {
50
- l.value.style.width = `${a.width}px`;
51
- const e = parseFloat(window.getComputedStyle(l.value).width);
52
- l.value.style.height = `${S.value * e}px`, t.value = l.value.getContext("2d"), t.value && (t.value.scale(1 * f.value, 1 * f.value), f.value = e / a.width, t.value.scale(1 / f.value, 1 / f.value));
53
- }
54
- };
55
- x(() => {
56
- l.value && (l.value.height = a.height, l.value.width = a.width, l.value.style.background = u.value, s(), document.onmouseup = () => {
57
- C.value = !1;
58
- }), window.addEventListener("resize", s);
59
- }), F(() => {
60
- window.removeEventListener("resize", s);
61
- });
62
- const m = (e) => {
63
- g.value = e.x, o.value = e.y, t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.lineCap = "round", t.value.lineJoin = "round", t.value.lineWidth = a.lineWidth * f.value, t.value.stroke(), t.value.closePath(), d.value.push(e));
64
- }, y = (e) => {
65
- t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.strokeStyle = a.lineColor, t.value.lineWidth = a.lineWidth * f.value, t.value.lineCap = "round", t.value.lineJoin = "round", t.value.stroke(), t.value.closePath(), o.value = e.y, g.value = e.x, d.value.push(e));
66
- }, V = (e) => {
67
- t.value && (t.value.beginPath(), t.value.moveTo(g.value, o.value), t.value.lineTo(e.x, e.y), t.value.lineCap = "round", t.value.lineJoin = "round", t.value.stroke(), t.value.closePath(), d.value.push(e), d.value.push({ x: -1, y: -1 }));
68
- }, U = (e) => {
69
- const i = (e == null ? void 0 : e.format) || a.format, b = (e == null ? void 0 : e.quality) || a.quality;
70
- return new Promise((k, B) => {
71
- if (!n.value) {
72
- B("Warning: Not Signed!");
73
- return;
74
- }
75
- if (t.value) {
76
- const h = t.value.getImageData(0, 0, l.value.width, l.value.height);
77
- t.value.globalCompositeOperation = "destination-over", t.value.fillStyle = u.value, t.value.fillRect(0, 0, l.value.width, l.value.height), c.value = l.value.toDataURL(i, b);
78
- let p = c.value;
79
- if (t.value.clearRect(0, 0, l.value.width, l.value.height), t.value.putImageData(h, 0, 0), t.value.globalCompositeOperation = "source-over", a.isCrop) {
80
- const r = q(h.data), w = document.createElement("canvas"), M = w.getContext("2d");
81
- if (M) {
82
- w.width = r[2] - r[0], w.height = r[3] - r[1];
83
- const z = t.value.getImageData(r[0], r[1], r[2], r[3]);
84
- M.globalCompositeOperation = "destination-over", M.putImageData(z, 0, 0), M.fillStyle = u.value, M.fillRect(0, 0, w.width, w.height), p = w.toDataURL(i, b);
85
- }
86
- }
87
- k(p);
88
- }
89
- });
90
- }, O = () => {
91
- t.value && t.value.clearRect(0, 0, l.value.width, l.value.height), a.isClearBgColor && (d.value = [], n.value = !1, c.value = "");
92
- }, q = (e) => {
93
- let i = l.value.width, b = 0, k = l.value.height, B = 0;
94
- for (let h = 0; h < l.value.width; h++)
95
- for (let p = 0; p < l.value.height; p++) {
96
- const r = (h + l.value.width * p) * 4;
97
- (e[r] > 0 || e[r + 1] > 0 || e[r + 2] > 0 || e[r + 3] > 0) && (B = Math.max(p, B), b = Math.max(h, b), k = Math.min(p, k), i = Math.min(h, i));
98
- }
99
- return [i + 1, k + 1, b + 1, B + 1];
100
- };
101
- return {
102
- canvas: l,
103
- myBg: u,
104
- drawStart: m,
105
- drawMove: y,
106
- drawEnd: V,
107
- generate: U,
108
- reset: O,
109
- touchStart: (e) => {
110
- if (e.preventDefault(), n.value = !0, e.touches.length === 1 && l.value) {
111
- const i = {
112
- x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
113
- y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
114
- };
115
- m(i);
116
- }
117
- },
118
- touchMove: (e) => {
119
- if (e.preventDefault(), e.touches.length === 1) {
120
- const i = {
121
- x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
122
- y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
123
- };
124
- y(i);
125
- }
126
- },
127
- touchEnd: (e) => {
128
- if (e.preventDefault(), e.touches.length === 1) {
129
- const i = {
130
- x: e.targetTouches[0].clientX - l.value.getBoundingClientRect().left,
131
- y: e.targetTouches[0].clientY - l.value.getBoundingClientRect().top
132
- };
133
- V(i);
134
- }
135
- },
136
- mouseDown: (e) => {
137
- e.preventDefault(), C.value = !0, n.value = !0;
138
- const i = {
139
- x: e.offsetX,
140
- y: e.offsetY
141
- };
142
- m(i);
143
- },
144
- mouseMove: (e) => {
145
- if (e.preventDefault(), C.value) {
146
- const i = {
147
- x: e.offsetX,
148
- y: e.offsetY
149
- };
150
- y(i);
151
- }
152
- },
153
- mouseUp: (e) => {
154
- e.preventDefault();
155
- const i = {
156
- x: e.offsetX,
157
- y: e.offsetY
158
- };
159
- V(i), C.value = !1;
160
- }
161
- };
162
- }
163
- });
164
- function j(a, n, c, d, t, g) {
165
- return T(), E("canvas", {
166
- ref: "canvas",
167
- onMousedown: n[0] || (n[0] = (...o) => a.mouseDown && a.mouseDown(...o)),
168
- onMousemove: n[1] || (n[1] = (...o) => a.mouseMove && a.mouseMove(...o)),
169
- onMouseup: n[2] || (n[2] = (...o) => a.mouseUp && a.mouseUp(...o)),
170
- onTouchstart: n[3] || (n[3] = (...o) => a.touchStart && a.touchStart(...o)),
171
- onTouchmove: n[4] || (n[4] = (...o) => a.touchMove && a.touchMove(...o)),
172
- onTouchend: n[5] || (n[5] = (...o) => a.touchEnd && a.touchEnd(...o))
173
- }, null, 544);
174
- }
175
- const _ = /* @__PURE__ */ H(Z, [["render", j], ["__scopeId", "data-v-5f3bfcf7"]]), ee = { key: 0 }, te = { class: "vfc-esign-preview" }, le = ["src"], ae = {
176
- key: 1,
177
- class: "vfc-esign"
178
- }, ie = /* @__PURE__ */ $({
179
- __name: "Component",
180
- props: /* @__PURE__ */ J({
181
- lineWidth: { default: 6 },
182
- lineColor: { default: "#000000" },
183
- bgColor: { default: "#f6f6f6" },
184
- isCrop: { type: Boolean, default: !1 },
185
- width: { default: 700 },
186
- height: { default: 300 },
187
- disabled: { type: Boolean },
188
- format: { default: "image/png" }
189
- }, {
190
- modelValue: {},
191
- modelModifiers: {}
192
- }),
193
- emits: ["update:modelValue"],
194
- setup(a) {
195
- const n = a, c = v(), d = K(), t = A(a, "modelValue"), g = {
196
- size: "small",
197
- labelPosition: "right",
198
- items: [
199
- {
200
- component: "Inline",
201
- children: [
202
- {
203
- label: "画笔粗细",
204
- component: "InputNumber",
205
- name: "lineWidth",
206
- props: {
207
- controlsPosition: "right"
208
- }
209
- },
210
- { label: "画笔颜色", component: "ColorPicker", name: "lineColor" },
211
- { label: "画板背景色", component: "ColorPicker", name: "bgColor" }
212
- ],
213
- props: {
214
- align: "left",
215
- gap: 20
216
- },
217
- designKey: "design-ZuIT",
218
- name: "form-OqAi",
219
- style: {
220
- marginBottom: "10px"
221
- }
222
- }
223
- ]
224
- }, o = v({
225
- lineWidth: 6,
226
- lineColor: "#000000",
227
- bgColor: "#fff"
228
- }), C = () => {
229
- c.value.reset();
230
- }, f = () => {
231
- c.value.generate().then((u) => {
232
- t.value = u;
233
- }).catch((u) => {
234
- alert(u);
235
- });
236
- }, l = v(""), S = () => {
237
- l.value = t.value, t.value = "";
238
- };
239
- return x(() => {
240
- Object.assign(o.value, n);
241
- }), (u, s) => {
242
- const m = G("el-button");
243
- return W(d).read || t.value ? (T(), E("div", ee, [
244
- P("div", te, [
245
- P("img", {
246
- src: t.value,
247
- alt: "未签名"
248
- }, null, 8, le)
249
- ]),
250
- W(d).read ? Y("", !0) : (T(), X(m, {
251
- key: 0,
252
- disabled: u.disabled,
253
- onClick: S,
254
- type: "primary"
255
- }, {
256
- default: D(() => s[2] || (s[2] = [
257
- I("重写")
258
- ])),
259
- _: 1
260
- }, 8, ["disabled"]))
261
- ])) : (T(), E("div", ae, [
262
- R(W(Q), {
263
- modelValue: o.value,
264
- "onUpdate:modelValue": s[0] || (s[0] = (y) => o.value = y),
265
- schema: g,
266
- class: "vfc-esign-actions"
267
- }, null, 8, ["modelValue"]),
268
- R(_, {
269
- class: "vfc-esign-canvas",
270
- ref_key: "esign",
271
- ref: c,
272
- width: u.width,
273
- height: u.height,
274
- isCrop: u.isCrop,
275
- lineWidth: o.value.lineWidth,
276
- lineColor: o.value.lineColor,
277
- bgColor: o.value.bgColor,
278
- format: u.format
279
- }, null, 8, ["width", "height", "isCrop", "lineWidth", "lineColor", "bgColor", "format"]),
280
- P("div", null, [
281
- l.value ? (T(), X(m, {
282
- key: 0,
283
- disabled: u.disabled,
284
- onClick: s[1] || (s[1] = (y) => t.value = l.value),
285
- plain: "",
286
- type: "primary"
287
- }, {
288
- default: D(() => s[3] || (s[3] = [
289
- I("取消")
290
- ])),
291
- _: 1
292
- }, 8, ["disabled"])) : Y("", !0),
293
- R(m, {
294
- disabled: u.disabled,
295
- onClick: C,
296
- plain: "",
297
- type: "primary"
298
- }, {
299
- default: D(() => s[4] || (s[4] = [
300
- I("清空")
301
- ])),
302
- _: 1
303
- }, 8, ["disabled"]),
304
- R(m, {
305
- disabled: u.disabled,
306
- onClick: f,
307
- type: "primary"
308
- }, {
309
- default: D(() => s[5] || (s[5] = [
310
- I("保存")
311
- ])),
312
- _: 1
313
- }, 8, ["disabled"])
314
- ])
315
- ]));
316
- };
317
- }
318
- });
319
- export {
320
- ie as default
321
- };
@@ -1,192 +0,0 @@
1
- import { defineComponent as $, mergeModels as z, useModel as E, ref as I, resolveComponent as B, openBlock as t, createElementBlock as o, Fragment as d, createVNode as p, normalizeClass as L, createSlots as N, withCtx as g, createTextVNode as h, createElementVNode as s, createBlock as f, toDisplayString as u, createCommentVNode as m, unref as O, renderList as T } from "vue";
2
- import { genFileId as R, ElMessage as j, ElMessageBox as P } from "element-plus";
3
- import { c as q, I as c, a as A, _ as G } from "./index-BbsPPc14.js";
4
- const H = {
5
- key: 0,
6
- class: "smallDragStyle-text"
7
- }, J = { class: "el-upload__tip" }, K = {
8
- key: 0,
9
- class: "upload-bottom-part"
10
- }, Q = {
11
- key: 0,
12
- class: "small-file-list-wrapper"
13
- }, W = { class: "file-item-name" }, X = { class: "file-list-wrapper" }, Y = ["title"], Z = /* @__PURE__ */ $({
14
- __name: "Component",
15
- props: /* @__PURE__ */ z({
16
- action: {},
17
- multiple: { type: Boolean },
18
- accept: {},
19
- btnText: { default: "点击上传" },
20
- tip: {},
21
- limit: {},
22
- drag: { type: Boolean },
23
- name: { default: "file" },
24
- listType: { default: "text" },
25
- attachmentTitle: {},
26
- showFileList: { type: Boolean, default: !0 },
27
- autoUpload: { type: Boolean },
28
- beforeUpload: {},
29
- isOnlyOne: { type: Boolean, default: !1 },
30
- onChange: {},
31
- smallDragStyle: { type: Boolean },
32
- clearable: { type: Boolean, default: !0 }
33
- }, {
34
- modelValue: {
35
- default: () => []
36
- },
37
- modelModifiers: {}
38
- }),
39
- emits: ["update:modelValue"],
40
- setup(v) {
41
- const n = v, r = E(v, "modelValue"), { ruleModule: k, pageMethodMap: b } = q(), w = (e) => {
42
- if (n.beforeUpload)
43
- try {
44
- return k[n.beforeUpload](b, e);
45
- } catch (l) {
46
- console.error(l);
47
- }
48
- return !0;
49
- }, D = (e, l) => {
50
- if (n.onChange)
51
- try {
52
- k[n.onChange](b, e, l);
53
- } catch (i) {
54
- console.error(i);
55
- }
56
- }, C = (e) => {
57
- const l = r.value.findIndex((i) => i.uid === e.uid);
58
- l !== -1 && r.value.splice(l, 1);
59
- }, S = (e, l) => {
60
- console.log(e, l);
61
- }, M = (e) => {
62
- console.log(e);
63
- }, y = I(), U = (e, l) => {
64
- if (n.isOnlyOne && n.limit === 1) {
65
- y.value.clearFiles();
66
- const i = e[0];
67
- i.uid = R(), y.value.handleStart(i);
68
- } else
69
- j.warning(
70
- `The limit is ${n.limit}, you selected ${e.length} files this time, add up to ${e.length + l.length} totally`
71
- );
72
- }, _ = (e, l) => n.beforeUpload ? !1 : P.confirm(`Cancel the transfer of ${e.name} ?`).then(
73
- () => !0,
74
- () => !1
75
- );
76
- return (e, l) => {
77
- const i = B("el-button"), F = B("el-upload");
78
- return t(), o(d, null, [
79
- p(F, {
80
- "file-list": r.value,
81
- "onUpdate:fileList": l[0] || (l[0] = (a) => r.value = a),
82
- action: e.action,
83
- multiple: e.multiple,
84
- limit: e.limit,
85
- drag: e.drag,
86
- name: e.name,
87
- listType: e.listType,
88
- accept: e.accept,
89
- "show-file-list": e.showFileList,
90
- "on-preview": M,
91
- "on-remove": S,
92
- "before-remove": _,
93
- "before-upload": w,
94
- "on-change": D,
95
- "on-exceed": U,
96
- class: L({ dragUpload: e.drag, smallDragStyle: e.smallDragStyle }),
97
- ref_key: "upload",
98
- ref: y
99
- }, N({
100
- default: g(() => [
101
- e.listType === "text" ? (t(), o(d, { key: 0 }, [
102
- e.drag ? (t(), o(d, { key: 0 }, [
103
- e.smallDragStyle ? (t(), o("div", H, l[1] || (l[1] = [
104
- h("Drop file here or "),
105
- s("span", null, "click to upload", -1)
106
- ]))) : (t(), o(d, { key: 1 }, [
107
- p(c, {
108
- name: "icon-shangchuan",
109
- color: "var(--el-color-primary)"
110
- }),
111
- l[2] || (l[2] = s("div", null, [
112
- h("Drop file here or "),
113
- s("em", null, "click to upload")
114
- ], -1))
115
- ], 64))
116
- ], 64)) : (t(), f(i, {
117
- key: 1,
118
- type: "primary"
119
- }, {
120
- default: g(() => [
121
- h(u(e.btnText), 1)
122
- ]),
123
- _: 1
124
- }))
125
- ], 64)) : m("", !0),
126
- e.listType === "picture-card" ? (t(), f(O(A), {
127
- key: 1,
128
- name: "add"
129
- })) : m("", !0)
130
- ]),
131
- _: 2
132
- }, [
133
- e.tip ? {
134
- name: "tip",
135
- fn: g(() => [
136
- s("div", J, u(e.tip), 1)
137
- ]),
138
- key: "0"
139
- } : void 0
140
- ]), 1032, ["file-list", "action", "multiple", "limit", "drag", "name", "listType", "accept", "show-file-list", "class"]),
141
- e.drag && r.value.length > 0 ? (t(), o("div", K, [
142
- e.smallDragStyle ? (t(), o("div", Q, [
143
- (t(!0), o(d, null, T(r.value, (a) => (t(), o("div", {
144
- class: "file-item",
145
- key: a.uid
146
- }, [
147
- p(c, {
148
- name: "icon-fujian",
149
- size: "small"
150
- }),
151
- s("div", W, u(a.name), 1),
152
- e.clearable ? (t(), f(c, {
153
- key: 0,
154
- name: "icon-guanbi",
155
- class: "file-item-close",
156
- size: "x-small",
157
- onClick: (V) => C(a)
158
- }, null, 8, ["onClick"])) : m("", !0)
159
- ]))), 128))
160
- ])) : (t(), o(d, { key: 1 }, [
161
- s("div", null, u(e.attachmentTitle), 1),
162
- s("div", X, [
163
- (t(!0), o(d, null, T(r.value, (a) => (t(), o("div", {
164
- class: "file-item",
165
- key: a.uid
166
- }, [
167
- p(c, {
168
- name: "icon-fujiantubiao1",
169
- size: "ultra-large"
170
- }),
171
- s("div", {
172
- class: "file-item-name",
173
- title: a.name
174
- }, u(a.name), 9, Y),
175
- e.clearable ? (t(), f(c, {
176
- key: 0,
177
- name: "icon-guanbi",
178
- class: "file-item-close",
179
- size: "x-small",
180
- onClick: (V) => C(a)
181
- }, null, 8, ["onClick"])) : m("", !0)
182
- ]))), 128))
183
- ])
184
- ], 64))
185
- ])) : m("", !0)
186
- ], 64);
187
- };
188
- }
189
- }), te = /* @__PURE__ */ G(Z, [["__scopeId", "data-v-cf510f7a"]]);
190
- export {
191
- te as default
192
- };
@@ -1,73 +0,0 @@
1
- import { defineComponent as y, mergeModels as M, useModel as k, useAttrs as D, computed as l, inject as u, resolveComponent as I, openBlock as i, createElementBlock as E, toDisplayString as _, createBlock as S, mergeProps as V } from "vue";
2
- import { dayjs as b } from "element-plus";
3
- import { u as B } from "./index-BbsPPc14.js";
4
- const F = { key: 0 }, j = /* @__PURE__ */ y({
5
- __name: "DatePicker",
6
- props: /* @__PURE__ */ M({
7
- onChange: {},
8
- onInput: {},
9
- onEnter: {},
10
- rulePath: {},
11
- read: { type: Boolean },
12
- readTextColor: {},
13
- onClick: {},
14
- defaultStartTime: {},
15
- defaultEndTime: {},
16
- disabledDate: {}
17
- }, {
18
- modelValue: {},
19
- modelModifiers: {}
20
- }),
21
- emits: ["update:modelValue"],
22
- setup(r) {
23
- const a = k(r, "modelValue"), e = r, d = D(), m = l(() => {
24
- if (e.defaultStartTime && e.defaultEndTime)
25
- return [
26
- new Date(
27
- 2e3,
28
- 1,
29
- 1,
30
- parseInt(e.defaultStartTime.split(":")[0]),
31
- parseInt(e.defaultStartTime.split(":")[1]),
32
- parseInt(e.defaultStartTime.split(":")[2])
33
- ),
34
- new Date(
35
- 2e3,
36
- 2,
37
- 1,
38
- parseInt(e.defaultEndTime.split(":")[0]),
39
- parseInt(e.defaultEndTime.split(":")[1]),
40
- parseInt(e.defaultEndTime.split(":")[2])
41
- )
42
- ];
43
- }), p = B(), c = l(() => e.read || p.schema.read), f = l(() => a.value ? d.valueFormat ? b(a.value).format(d.valueFormat) : a.value : "--"), h = [
44
- {
45
- text: "Today",
46
- value: /* @__PURE__ */ new Date()
47
- }
48
- ], n = u("ruleModule", void 0), s = u("pageMethodMap", {}), v = (t) => {
49
- if (console.log("zytest-----handleChange", t), e.onChange && n)
50
- try {
51
- n[e.onChange](s, t);
52
- } catch (o) {
53
- console.error(o + `
54
- onChange: ${e.onChange}`);
55
- }
56
- }, g = (t) => e.disabledDate ? n[e.disabledDate](s, t) : !1;
57
- return (t, o) => {
58
- const T = I("el-date-picker");
59
- return c.value ? (i(), E("span", F, _(f.value), 1)) : (i(), S(T, V({ key: 1 }, t.$attrs, {
60
- modelValue: a.value,
61
- "onUpdate:modelValue": o[0] || (o[0] = (C) => a.value = C),
62
- style: { width: "100%" },
63
- shortcuts: h,
64
- "disabled-date": g,
65
- onChange: v,
66
- "default-time": m.value
67
- }), null, 16, ["modelValue", "default-time"]));
68
- };
69
- }
70
- });
71
- export {
72
- j as default
73
- };