z-vue-design 0.0.45 → 0.0.46

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "z-vue-design",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "main": "./dist/z-vue-design.umd.js",
5
5
  "module": "./dist/z-vue-design.es.js",
6
6
  "style": "./dist/styles/z-vue-design.css",
@@ -36,7 +36,9 @@
36
36
  "uuid": "^11.1.0",
37
37
  "vite-plugin-dts": "^4.5.3",
38
38
  "vue": "^3.5.13",
39
- "vue-router": "^4.5.0"
39
+ "vue-router": "^4.5.0",
40
+ "vxe-pc-ui": "4.8.3",
41
+ "vxe-table": "4.15.0"
40
42
  },
41
43
  "devDependencies": {
42
44
  "@vitejs/plugin-vue": "^5.2.1",
@@ -1,151 +0,0 @@
1
- import { _ as T } from "./index-6Ix6s3k-.mjs";
2
- function A(t, F) {
3
- const o = T({}, t);
4
- for (let E = 0; E < F.length; E += 1) {
5
- const e = F[E];
6
- delete o[e];
7
- }
8
- return o;
9
- }
10
- const N = {
11
- /**
12
- * BACKSPACE
13
- */
14
- BACKSPACE: 8,
15
- /**
16
- * TAB
17
- */
18
- TAB: 9,
19
- /**
20
- * ENTER
21
- */
22
- ENTER: 13,
23
- /**
24
- * SHIFT
25
- */
26
- SHIFT: 16,
27
- /**
28
- * CTRL
29
- */
30
- CTRL: 17,
31
- /**
32
- * ALT
33
- */
34
- ALT: 18,
35
- /**
36
- * CAPS_LOCK
37
- */
38
- CAPS_LOCK: 20,
39
- /**
40
- * ESC
41
- */
42
- ESC: 27,
43
- /**
44
- * PAGE_UP
45
- */
46
- PAGE_UP: 33,
47
- /**
48
- * PAGE_DOWN
49
- */
50
- PAGE_DOWN: 34,
51
- /**
52
- * LEFT
53
- */
54
- LEFT: 37,
55
- /**
56
- * UP
57
- */
58
- UP: 38,
59
- /**
60
- * RIGHT
61
- */
62
- RIGHT: 39,
63
- /**
64
- * DOWN
65
- */
66
- DOWN: 40,
67
- /**
68
- * N
69
- */
70
- N: 78,
71
- /**
72
- * P
73
- */
74
- P: 80,
75
- /**
76
- * META
77
- */
78
- META: 91,
79
- /**
80
- * WIN_KEY_RIGHT
81
- */
82
- WIN_KEY_RIGHT: 92,
83
- /**
84
- * CONTEXT_MENU
85
- */
86
- CONTEXT_MENU: 93,
87
- /**
88
- * F1
89
- */
90
- F1: 112,
91
- /**
92
- * F2
93
- */
94
- F2: 113,
95
- /**
96
- * F3
97
- */
98
- F3: 114,
99
- /**
100
- * F4
101
- */
102
- F4: 115,
103
- /**
104
- * F5
105
- */
106
- F5: 116,
107
- /**
108
- * F6
109
- */
110
- F6: 117,
111
- /**
112
- * F7
113
- */
114
- F7: 118,
115
- /**
116
- * F8
117
- */
118
- F8: 119,
119
- /**
120
- * F9
121
- */
122
- F9: 120,
123
- /**
124
- * F10
125
- */
126
- F10: 121,
127
- /**
128
- * F11
129
- */
130
- F11: 122,
131
- /**
132
- * F12
133
- */
134
- F12: 123,
135
- /**
136
- * SEMICOLON
137
- */
138
- SEMICOLON: 186,
139
- /**
140
- * EQUALS
141
- */
142
- EQUALS: 187,
143
- /**
144
- * WIN_KEY
145
- */
146
- WIN_KEY: 224
147
- };
148
- export {
149
- N as K,
150
- A as o
151
- };
@@ -1,339 +0,0 @@
1
- import { $ as A, a0 as N, _ as j, P as c, b as h, I as F } from "./index-6Ix6s3k-.mjs";
2
- import { defineComponent as C, reactive as W, getCurrentInstance as L, onMounted as U, onUpdated as V, onUnmounted as K, watch as B, shallowRef as D, createVNode as S, ref as P, computed as E } from "vue";
3
- const ie = C({
4
- compatConfig: {
5
- MODE: 3
6
- },
7
- name: "ResizeObserver",
8
- props: {
9
- disabled: Boolean,
10
- onResize: Function
11
- },
12
- emits: ["resize"],
13
- setup(e, i) {
14
- let {
15
- slots: n
16
- } = i;
17
- const t = W({
18
- width: 0,
19
- height: 0,
20
- offsetHeight: 0,
21
- offsetWidth: 0
22
- });
23
- let r = null, l = null;
24
- const p = () => {
25
- l && (l.disconnect(), l = null);
26
- }, f = (s) => {
27
- const {
28
- onResize: u
29
- } = e, v = s[0].target, {
30
- width: k,
31
- height: _
32
- } = v.getBoundingClientRect(), {
33
- offsetWidth: g,
34
- offsetHeight: m
35
- } = v, y = Math.floor(k), w = Math.floor(_);
36
- if (t.width !== y || t.height !== w || t.offsetWidth !== g || t.offsetHeight !== m) {
37
- const O = {
38
- width: y,
39
- height: w,
40
- offsetWidth: g,
41
- offsetHeight: m
42
- };
43
- j(t, O), u && Promise.resolve().then(() => {
44
- u(j(j({}, O), {
45
- offsetWidth: g,
46
- offsetHeight: m
47
- }), v);
48
- });
49
- }
50
- }, a = L(), d = () => {
51
- const {
52
- disabled: s
53
- } = e;
54
- if (s) {
55
- p();
56
- return;
57
- }
58
- const u = A(a);
59
- u !== r && (p(), r = u), !l && u && (l = new N(f), l.observe(u));
60
- };
61
- return U(() => {
62
- d();
63
- }), V(() => {
64
- d();
65
- }), K(() => {
66
- p();
67
- }), B(() => e.disabled, () => {
68
- d();
69
- }, {
70
- flush: "post"
71
- }), () => {
72
- var s;
73
- return (s = n.default) === null || s === void 0 ? void 0 : s.call(n)[0];
74
- };
75
- }
76
- });
77
- var G = function(e, i) {
78
- var n = {};
79
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && i.indexOf(t) < 0 && (n[t] = e[t]);
80
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
81
- i.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
82
- return n;
83
- };
84
- const J = C({
85
- compatConfig: {
86
- MODE: 3
87
- },
88
- // inheritAttrs: false,
89
- props: {
90
- disabled: c.looseBool,
91
- type: c.string,
92
- value: c.any,
93
- tag: {
94
- type: String,
95
- default: "input"
96
- },
97
- size: c.string,
98
- onChange: Function,
99
- onInput: Function,
100
- onBlur: Function,
101
- onFocus: Function,
102
- onKeydown: Function,
103
- onCompositionstart: Function,
104
- onCompositionend: Function,
105
- onKeyup: Function,
106
- onPaste: Function,
107
- onMousedown: Function
108
- },
109
- emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
110
- setup(e, i) {
111
- let {
112
- expose: n
113
- } = i;
114
- const t = D(null);
115
- return n({
116
- focus: () => {
117
- t.value && t.value.focus();
118
- },
119
- blur: () => {
120
- t.value && t.value.blur();
121
- },
122
- input: t,
123
- setSelectionRange: (a, d, s) => {
124
- var u;
125
- (u = t.value) === null || u === void 0 || u.setSelectionRange(a, d, s);
126
- },
127
- select: () => {
128
- var a;
129
- (a = t.value) === null || a === void 0 || a.select();
130
- },
131
- getSelectionStart: () => {
132
- var a;
133
- return (a = t.value) === null || a === void 0 ? void 0 : a.selectionStart;
134
- },
135
- getSelectionEnd: () => {
136
- var a;
137
- return (a = t.value) === null || a === void 0 ? void 0 : a.selectionEnd;
138
- },
139
- getScrollTop: () => {
140
- var a;
141
- return (a = t.value) === null || a === void 0 ? void 0 : a.scrollTop;
142
- }
143
- }), () => {
144
- const {
145
- tag: a,
146
- value: d
147
- } = e, s = G(e, ["tag", "value"]);
148
- return S(a, h(h({}, s), {}, {
149
- ref: t,
150
- value: d
151
- }), null);
152
- };
153
- }
154
- });
155
- function Q(e) {
156
- return Object.keys(e).reduce((i, n) => {
157
- const t = e[n];
158
- return typeof t > "u" || t === null || (i += `${n}: ${e[n]};`), i;
159
- }, "");
160
- }
161
- var X = function(e, i) {
162
- var n = {};
163
- for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && i.indexOf(t) < 0 && (n[t] = e[t]);
164
- if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var r = 0, t = Object.getOwnPropertySymbols(e); r < t.length; r++)
165
- i.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
166
- return n;
167
- };
168
- const re = C({
169
- compatConfig: {
170
- MODE: 3
171
- },
172
- inheritAttrs: !1,
173
- props: {
174
- disabled: c.looseBool,
175
- type: c.string,
176
- value: c.any,
177
- lazy: c.bool.def(!0),
178
- tag: {
179
- type: String,
180
- default: "input"
181
- },
182
- size: c.string,
183
- style: c.oneOfType([String, Object]),
184
- class: c.string
185
- },
186
- emits: ["change", "input", "blur", "keydown", "focus", "compositionstart", "compositionend", "keyup", "paste", "mousedown"],
187
- setup(e, i) {
188
- let {
189
- emit: n,
190
- attrs: t,
191
- expose: r
192
- } = i;
193
- const l = D(null), p = P(), f = P(!1);
194
- B([() => e.value, f], () => {
195
- f.value || (p.value = e.value);
196
- }, {
197
- immediate: !0
198
- });
199
- const a = (o) => {
200
- n("change", o);
201
- }, d = (o) => {
202
- f.value = !0, o.target.composing = !0, n("compositionstart", o);
203
- }, s = (o) => {
204
- f.value = !1, o.target.composing = !1, n("compositionend", o);
205
- const b = document.createEvent("HTMLEvents");
206
- b.initEvent("input", !0, !0), o.target.dispatchEvent(b), a(o);
207
- }, u = (o) => {
208
- if (f.value && e.lazy) {
209
- p.value = o.target.value;
210
- return;
211
- }
212
- n("input", o);
213
- }, v = (o) => {
214
- n("blur", o);
215
- }, k = (o) => {
216
- n("focus", o);
217
- }, _ = () => {
218
- l.value && l.value.focus();
219
- }, g = () => {
220
- l.value && l.value.blur();
221
- }, m = (o) => {
222
- n("keydown", o);
223
- }, y = (o) => {
224
- n("keyup", o);
225
- }, w = (o, b, z) => {
226
- var x;
227
- (x = l.value) === null || x === void 0 || x.setSelectionRange(o, b, z);
228
- }, O = () => {
229
- var o;
230
- (o = l.value) === null || o === void 0 || o.select();
231
- };
232
- r({
233
- focus: _,
234
- blur: g,
235
- input: E(() => {
236
- var o;
237
- return (o = l.value) === null || o === void 0 ? void 0 : o.input;
238
- }),
239
- setSelectionRange: w,
240
- select: O,
241
- getSelectionStart: () => {
242
- var o;
243
- return (o = l.value) === null || o === void 0 ? void 0 : o.getSelectionStart();
244
- },
245
- getSelectionEnd: () => {
246
- var o;
247
- return (o = l.value) === null || o === void 0 ? void 0 : o.getSelectionEnd();
248
- },
249
- getScrollTop: () => {
250
- var o;
251
- return (o = l.value) === null || o === void 0 ? void 0 : o.getScrollTop();
252
- }
253
- });
254
- const $ = (o) => {
255
- n("mousedown", o);
256
- }, q = (o) => {
257
- n("paste", o);
258
- }, H = E(() => e.style && typeof e.style != "string" ? Q(e.style) : e.style);
259
- return () => {
260
- const {
261
- style: o,
262
- lazy: b
263
- } = e, z = X(e, ["style", "lazy"]);
264
- return S(J, h(h(h({}, z), t), {}, {
265
- style: H.value,
266
- onInput: u,
267
- onChange: a,
268
- onBlur: v,
269
- onFocus: k,
270
- ref: l,
271
- value: p.value,
272
- onCompositionstart: d,
273
- onCompositionend: s,
274
- onKeyup: y,
275
- onKeydown: m,
276
- onPaste: q,
277
- onMousedown: $
278
- }), null);
279
- };
280
- }
281
- }), ae = () => {
282
- if (typeof navigator > "u" || typeof window > "u")
283
- return !1;
284
- const e = navigator.userAgent || navigator.vendor || window.opera;
285
- return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e == null ? void 0 : e.substring(0, 4));
286
- };
287
- var Y = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, name: "down", theme: "outlined" };
288
- function M(e) {
289
- for (var i = 1; i < arguments.length; i++) {
290
- var n = arguments[i] != null ? Object(arguments[i]) : {}, t = Object.keys(n);
291
- typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
292
- return Object.getOwnPropertyDescriptor(n, r).enumerable;
293
- }))), t.forEach(function(r) {
294
- Z(e, r, n[r]);
295
- });
296
- }
297
- return e;
298
- }
299
- function Z(e, i, n) {
300
- return i in e ? Object.defineProperty(e, i, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = n, e;
301
- }
302
- var I = function(i, n) {
303
- var t = M({}, i, n.attrs);
304
- return S(F, M({}, t, {
305
- icon: Y
306
- }), null);
307
- };
308
- I.displayName = "DownOutlined";
309
- I.inheritAttrs = !1;
310
- var ee = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" };
311
- function R(e) {
312
- for (var i = 1; i < arguments.length; i++) {
313
- var n = arguments[i] != null ? Object(arguments[i]) : {}, t = Object.keys(n);
314
- typeof Object.getOwnPropertySymbols == "function" && (t = t.concat(Object.getOwnPropertySymbols(n).filter(function(r) {
315
- return Object.getOwnPropertyDescriptor(n, r).enumerable;
316
- }))), t.forEach(function(r) {
317
- te(e, r, n[r]);
318
- });
319
- }
320
- return e;
321
- }
322
- function te(e, i, n) {
323
- return i in e ? Object.defineProperty(e, i, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[i] = n, e;
324
- }
325
- var T = function(i, n) {
326
- var t = R({}, i, n.attrs);
327
- return S(F, R({}, t, {
328
- icon: ee
329
- }), null);
330
- };
331
- T.displayName = "SearchOutlined";
332
- T.inheritAttrs = !1;
333
- export {
334
- re as B,
335
- I as D,
336
- ie as R,
337
- T as S,
338
- ae as i
339
- };