@qxs-bns/components 0.0.1 → 0.0.2

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 (44) hide show
  1. package/index.cjs +1 -1
  2. package/package.json +3 -3
  3. package/package.json.cjs +1 -1
  4. package/package.json.js +1 -1
  5. package/src/defaults.cjs +1 -1
  6. package/src/file-upload/index.cjs +1 -1
  7. package/src/file-upload/src/file-upload.vue.cjs +1 -1
  8. package/src/file-upload/src/file-upload.vue.js +32 -33
  9. package/src/file-upload/src/file-upload.vue2.cjs +1 -1
  10. package/src/fixed-action-bar/index.cjs +1 -1
  11. package/src/fixed-action-bar/src/fixed-action-bar.vue.cjs +1 -1
  12. package/src/fixed-action-bar/src/fixed-action-bar.vue.js +31 -41
  13. package/src/fixed-action-bar/src/fixed-action-bar.vue2.cjs +1 -1
  14. package/src/image-upload/index.cjs +1 -1
  15. package/src/image-upload/src/image-upload.vue.cjs +1 -1
  16. package/src/image-upload/src/image-upload.vue.js +55 -56
  17. package/src/image-upload/src/image-upload.vue2.cjs +1 -1
  18. package/src/photo-crop-tool/index.cjs +1 -1
  19. package/src/photo-crop-tool/src/photo-crop-tool.vue.cjs +1 -1
  20. package/src/photo-crop-tool/src/photo-crop-tool.vue.js +117 -135
  21. package/src/photo-crop-tool/src/photo-crop-tool.vue2.cjs +1 -1
  22. package/types/index.d.ts +6 -1
  23. package/types/src/base/style/css.d.ts +0 -0
  24. package/types/src/base/style/index.d.ts +1 -0
  25. package/types/src/components.d.ts +4 -0
  26. package/types/src/defaults.d.ts +5 -0
  27. package/types/src/file-upload/index.d.ts +36 -0
  28. package/types/src/file-upload/src/file-upload.vue.d.ts +158 -0
  29. package/types/src/file-upload/style/index.d.ts +1 -0
  30. package/types/src/fixed-action-bar/index.d.ts +40 -0
  31. package/types/src/fixed-action-bar/src/fixed-action-bar.vue.d.ts +23 -0
  32. package/types/src/fixed-action-bar/style/index.d.ts +1 -0
  33. package/types/src/image-upload/index.d.ts +46 -0
  34. package/types/src/image-upload/src/image-upload.vue.d.ts +47 -0
  35. package/types/src/image-upload/style/index.d.ts +1 -0
  36. package/types/src/make-installer.d.ts +9 -0
  37. package/types/src/photo-crop-tool/index.d.ts +54 -0
  38. package/types/src/photo-crop-tool/src/composables.d.ts +6 -0
  39. package/types/src/photo-crop-tool/src/photo-crop-tool.vue.d.ts +65 -0
  40. package/types/src/photo-crop-tool/style/index.d.ts +1 -0
  41. package/types/src/rich-editor/index.d.ts +3 -0
  42. package/types/src/rich-editor/src/rich-editor.vue.d.ts +2 -0
  43. package/types/src/rich-editor/style/index.d.ts +1 -0
  44. package/types/src/withInstall.d.ts +4 -0
@@ -1,24 +1,8 @@
1
- var A = ($, X, i) => new Promise((L, F) => {
2
- var f = (v) => {
3
- try {
4
- h(i.next(v));
5
- } catch (o) {
6
- F(o);
7
- }
8
- }, b = (v) => {
9
- try {
10
- h(i.throw(v));
11
- } catch (o) {
12
- F(o);
13
- }
14
- }, h = (v) => v.done ? L(v.value) : Promise.resolve(v.value).then(f, b);
15
- h((i = i.apply($, X)).next());
16
- });
17
- import { defineComponent as ie, ref as W, computed as C, watch as ae, onMounted as oe, nextTick as ue, onUnmounted as ne, openBlock as D, createElementBlock as O, normalizeClass as x, unref as m, toDisplayString as se, Fragment as he, createElementVNode as k, normalizeStyle as ve } from "vue";
18
- import { useNamespace as re } from "../../../packages/hooks/src/use-namespace/index.js";
19
- import { useElementSize as G, useDraggable as fe } from "../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.12_typescript@5.6.3_/node_modules/@vueuse/core/index.js";
20
- import { useCanvas as ce } from "./composables.js";
21
- const de = ["src"], xe = /* @__PURE__ */ ie({
1
+ import { defineComponent as le, ref as H, computed as E, watch as ie, onMounted as ae, nextTick as oe, onUnmounted as ue, openBlock as $, createElementBlock as X, normalizeClass as y, unref as g, toDisplayString as ne, Fragment as se, createElementVNode as W, normalizeStyle as he } from "vue";
2
+ import { useNamespace as ve } from "../../../packages/hooks/src/use-namespace/index.js";
3
+ import { useElementSize as Q, useDraggable as re } from "../../../node_modules/.pnpm/@vueuse_core@10.11.1_vue@3.5.12_typescript@5.6.3_/node_modules/@vueuse/core/index.js";
4
+ import { useCanvas as fe } from "./composables.js";
5
+ const ce = ["src"], we = /* @__PURE__ */ le({
22
6
  name: "QxsPhotoCropTool",
23
7
  __name: "photo-crop-tool",
24
8
  props: {
@@ -47,172 +31,170 @@ const de = ["src"], xe = /* @__PURE__ */ ie({
47
31
  default: () => "fixed"
48
32
  }
49
33
  },
50
- setup($, { expose: X }) {
51
- const i = $;
52
- let L = 0, F = 0, f = 0, b = 0;
53
- const h = re("photo-crop-tool"), v = W(null), o = W(null), B = W(null), S = W(""), r = W(""), Y = W({
34
+ setup(q, { expose: A }) {
35
+ const i = q;
36
+ let Y = 0, j = 0, f = 0, T = 0;
37
+ const c = ve("photo-crop-tool"), M = H(null), n = H(null), C = H(null), L = H(""), h = H(""), S = H({
54
38
  x: 0,
55
39
  y: 0
56
- }), e = W({
40
+ }), e = H({
57
41
  width: i.defaultWidth,
58
42
  height: i.defaultHeight,
59
43
  x: 0,
60
44
  y: 0
61
- }), { width: I, height: N } = G(v), { width: J } = G(B), { x: p, y: g, style: K } = fe(v, {
62
- containerElement: o,
63
- draggingElement: v,
64
- disabled: C(() => !!r.value),
45
+ }), { width: k, height: F } = Q(M), { width: G } = Q(C), { x: d, y: p, style: J } = re(M, {
46
+ containerElement: n,
47
+ draggingElement: M,
48
+ disabled: E(() => !!h.value),
65
49
  exact: !0,
66
- initialValue: Y
67
- }), j = C(() => i.imgFile ? URL.createObjectURL(i.imgFile) : "");
68
- ae(() => i.imgFile, (t) => {
69
- t && !t.type.startsWith("image/") ? S.value = "文件类型错误" : S.value = "";
50
+ initialValue: S
51
+ }), U = E(() => i.imgFile ? URL.createObjectURL(i.imgFile) : "");
52
+ ie(() => i.imgFile, (t) => {
53
+ t && !t.type.startsWith("image/") ? L.value = "文件类型错误" : L.value = "";
70
54
  });
71
- const Z = C(() => {
55
+ const K = E(() => {
72
56
  var t;
73
- return (((t = B.value) == null ? void 0 : t.naturalWidth) || 0) / J.value;
74
- }), d = C(() => {
57
+ return (((t = C.value) == null ? void 0 : t.naturalWidth) || 0) / G.value;
58
+ }), r = E(() => {
75
59
  const t = {
76
60
  left: 0,
77
61
  top: 0
78
62
  };
79
- return r.value === "bottom-right" ? (t.left = e.value.x, t.top = e.value.y) : r.value === "top-left" ? (t.left = e.value.x - I.value, t.top = e.value.y - N.value) : r.value === "top-right" ? (t.top = e.value.y - N.value, t.left = e.value.x) : r.value === "bottom-left" && (t.left = e.value.x - I.value, t.top = e.value.y), t;
80
- }), ee = C(() => {
63
+ return h.value === "bottom-right" ? (t.left = e.value.x, t.top = e.value.y) : h.value === "top-left" ? (t.left = e.value.x - k.value, t.top = e.value.y - F.value) : h.value === "top-right" ? (t.top = e.value.y - F.value, t.left = e.value.x) : h.value === "bottom-left" && (t.left = e.value.x - k.value, t.top = e.value.y), t;
64
+ }), Z = E(() => {
81
65
  const { aspectRatio: t } = i, l = {
82
66
  width: `${e.value.width || i.defaultWidth}`,
83
67
  height: `${e.value.height || i.defaultHeight}`,
84
68
  "aspect-ratio": t,
85
- top: `${d.value.top}px`,
86
- left: `${d.value.left}px`
69
+ top: `${r.value.top}px`,
70
+ left: `${r.value.left}px`
87
71
  };
88
- return i.zoomType === "free" ? delete l["aspect-ratio"] : i.zoomType === "fixed" && delete l.height, h.cssVarBlock(l);
72
+ return i.zoomType === "free" ? delete l["aspect-ratio"] : i.zoomType === "fixed" && delete l.height, c.cssVarBlock(l);
89
73
  });
90
- function w(t) {
91
- return t * Z.value;
74
+ function m(t) {
75
+ return t * K.value;
92
76
  }
93
- function te() {
94
- return A(this, arguments, function* (t = B.value) {
95
- var E, M;
96
- let l = "transparent";
97
- o.value && (l = window.getComputedStyle(o.value).backgroundColor);
98
- const u = document.createElement("canvas");
99
- u.width = w(((E = o.value) == null ? void 0 : E.clientWidth) || 0), u.height = w(((M = o.value) == null ? void 0 : M.clientHeight) || 0);
100
- const { drawImage: T, cropCanvas: R, drawColor: H } = ce(u);
101
- return H(0, 0, u.width, u.height, l), T(t, w(t.offsetLeft), w(t.offsetTop), t.naturalWidth, t.naturalHeight), yield R(w(p.value), w(g.value), w(I.value), w(N.value));
102
- });
77
+ async function ee(t = C.value) {
78
+ var I, N;
79
+ let l = "transparent";
80
+ n.value && (l = window.getComputedStyle(n.value).backgroundColor);
81
+ const o = document.createElement("canvas");
82
+ o.width = m(((I = n.value) == null ? void 0 : I.clientWidth) || 0), o.height = m(((N = n.value) == null ? void 0 : N.clientHeight) || 0);
83
+ const { drawImage: z, cropCanvas: x, drawColor: b } = fe(o);
84
+ return b(0, 0, o.width, o.height, l), z(t, m(t.offsetLeft), m(t.offsetTop), t.naturalWidth, t.naturalHeight), await x(m(d.value), m(p.value), m(k.value), m(F.value));
103
85
  }
104
- function y(t, l) {
105
- var R, H;
106
- const u = ((R = o.value) == null ? void 0 : R.clientWidth) || 1 / 0, T = ((H = o.value) == null ? void 0 : H.clientHeight) || 1 / 0;
86
+ function w(t, l) {
87
+ var x, b;
88
+ const o = ((x = n.value) == null ? void 0 : x.clientWidth) || 1 / 0, z = ((b = n.value) == null ? void 0 : b.clientHeight) || 1 / 0;
107
89
  return {
108
- width: Math.min(Math.max(t, 0), u),
109
- height: Math.min(Math.max(l, 0), T)
90
+ width: Math.min(Math.max(t, 0), o),
91
+ height: Math.min(Math.max(l, 0), z)
110
92
  };
111
93
  }
112
- function P(t) {
113
- var T, R, H, E, M, _, Q, q;
114
- const l = t.clientX - L, u = t.clientY - F;
115
- if (r.value === "bottom-right") {
94
+ function D(t) {
95
+ var z, x, b, I, N, P, V, _;
96
+ const l = t.clientX - Y, o = t.clientY - j;
97
+ if (h.value === "bottom-right") {
116
98
  if (i.zoomType === "free") {
117
- const { width: n, height: a } = y(f + l, b + u);
118
- e.value.width = n, e.value.height = a;
99
+ const { width: u, height: a } = w(f + l, T + o);
100
+ e.value.width = u, e.value.height = a;
119
101
  } else if (i.zoomType === "fixed") {
120
- const n = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
121
- let a = f + l, s = a / n;
122
- const { width: z, height: c } = y(a, s);
123
- c > (((T = o.value) == null ? void 0 : T.clientHeight) || 1 / 0) && (s = ((R = o.value) == null ? void 0 : R.clientHeight) || 1 / 0, a = s * n), e.value.width = z, e.value.height = c;
102
+ const u = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
103
+ let a = f + l, s = a / u;
104
+ const { width: R, height: v } = w(a, s);
105
+ v > (((z = n.value) == null ? void 0 : z.clientHeight) || 1 / 0) && (s = ((x = n.value) == null ? void 0 : x.clientHeight) || 1 / 0, a = s * u), e.value.width = R, e.value.height = v;
124
106
  }
125
- } else if (r.value === "top-left") {
107
+ } else if (h.value === "top-left") {
126
108
  if (i.zoomType === "free") {
127
- const { width: n, height: a } = y(f - l, b - u);
128
- e.value.width = n, e.value.height = a;
109
+ const { width: u, height: a } = w(f - l, T - o);
110
+ e.value.width = u, e.value.height = a;
129
111
  } else if (i.zoomType === "fixed") {
130
- const n = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
131
- let a = f - l, s = a / n;
132
- const { width: z, height: c } = y(a, s);
133
- c > (((H = o.value) == null ? void 0 : H.clientHeight) || 1 / 0) && (s = ((E = o.value) == null ? void 0 : E.clientHeight) || 1 / 0, a = s * n), e.value.width = z, e.value.height = c;
112
+ const u = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
113
+ let a = f - l, s = a / u;
114
+ const { width: R, height: v } = w(a, s);
115
+ v > (((b = n.value) == null ? void 0 : b.clientHeight) || 1 / 0) && (s = ((I = n.value) == null ? void 0 : I.clientHeight) || 1 / 0, a = s * u), e.value.width = R, e.value.height = v;
134
116
  }
135
- p.value = d.value.left, g.value = d.value.top;
136
- } else if (r.value === "top-right") {
117
+ d.value = r.value.left, p.value = r.value.top;
118
+ } else if (h.value === "top-right") {
137
119
  if (i.zoomType === "free") {
138
- const { width: n, height: a } = y(f + l, b - u);
139
- e.value.width = n, e.value.height = a;
120
+ const { width: u, height: a } = w(f + l, T - o);
121
+ e.value.width = u, e.value.height = a;
140
122
  } else if (i.zoomType === "fixed") {
141
- const n = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
142
- let a = f + l, s = a / n;
143
- const { width: z, height: c } = y(a, s);
144
- c > (((M = o.value) == null ? void 0 : M.clientHeight) || 1 / 0) && (s = ((_ = o.value) == null ? void 0 : _.clientHeight) || 1 / 0, a = s * n), e.value.width = z, e.value.height = c;
123
+ const u = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
124
+ let a = f + l, s = a / u;
125
+ const { width: R, height: v } = w(a, s);
126
+ v > (((N = n.value) == null ? void 0 : N.clientHeight) || 1 / 0) && (s = ((P = n.value) == null ? void 0 : P.clientHeight) || 1 / 0, a = s * u), e.value.width = R, e.value.height = v;
145
127
  }
146
- p.value = d.value.left, g.value = d.value.top;
147
- } else if (r.value === "bottom-left") {
128
+ d.value = r.value.left, p.value = r.value.top;
129
+ } else if (h.value === "bottom-left") {
148
130
  if (i.zoomType === "free") {
149
- const { width: n, height: a } = y(f - l, b + u);
150
- e.value.width = n, e.value.height = a;
131
+ const { width: u, height: a } = w(f - l, T + o);
132
+ e.value.width = u, e.value.height = a;
151
133
  } else if (i.zoomType === "fixed") {
152
- const n = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
153
- let a = f - l, s = a / n;
154
- const { width: z, height: c } = y(a, s);
155
- c > (((Q = o.value) == null ? void 0 : Q.clientHeight) || 1 / 0) && (s = ((q = o.value) == null ? void 0 : q.clientHeight) || 1 / 0, a = s * n), e.value.width = z, e.value.height = c;
134
+ const u = Number.parseFloat(i.aspectRatio.split(" / ")[0]) / Number.parseFloat(i.aspectRatio.split(" / ")[1]);
135
+ let a = f - l, s = a / u;
136
+ const { width: R, height: v } = w(a, s);
137
+ v > (((V = n.value) == null ? void 0 : V.clientHeight) || 1 / 0) && (s = ((_ = n.value) == null ? void 0 : _.clientHeight) || 1 / 0, a = s * u), e.value.width = R, e.value.height = v;
156
138
  }
157
- p.value = d.value.left, g.value = d.value.top;
139
+ d.value = r.value.left, p.value = r.value.top;
158
140
  }
159
141
  t.preventDefault(), t.stopPropagation();
160
142
  }
161
- function U(t, l) {
162
- r.value = l, L = t.clientX, F = t.clientY, f = e.value.width, b = e.value.height, l === "bottom-right" ? (e.value.x = p.value, e.value.y = g.value) : l === "top-left" ? (e.value.x = p.value + I.value, e.value.y = g.value + N.value) : l === "top-right" ? (e.value.x = p.value, e.value.y = g.value + N.value) : l === "bottom-left" && (e.value.x = p.value + I.value, e.value.y = g.value);
143
+ function B(t, l) {
144
+ h.value = l, Y = t.clientX, j = t.clientY, f = e.value.width, T = e.value.height, l === "bottom-right" ? (e.value.x = d.value, e.value.y = p.value) : l === "top-left" ? (e.value.x = d.value + k.value, e.value.y = p.value + F.value) : l === "top-right" ? (e.value.x = d.value, e.value.y = p.value + F.value) : l === "bottom-left" && (e.value.x = d.value + k.value, e.value.y = p.value);
163
145
  }
164
- function V() {
165
- r.value = "";
146
+ function O() {
147
+ h.value = "";
166
148
  }
167
- function le() {
168
- e.value.width = i.defaultWidth, e.value.height = i.defaultHeight, p.value = 0, g.value = 0;
149
+ function te() {
150
+ e.value.width = i.defaultWidth, e.value.height = i.defaultHeight, d.value = 0, p.value = 0;
169
151
  }
170
- return document.addEventListener("mouseup", V), document.addEventListener("mousemove", P), oe(() => {
171
- ue(() => {
152
+ return document.addEventListener("mouseup", O), document.addEventListener("mousemove", D), ae(() => {
153
+ oe(() => {
172
154
  var t, l;
173
- Y.value.x = (((t = o.value) == null ? void 0 : t.offsetWidth) || 0) / 2 - e.value.width / 2, Y.value.y = (((l = o.value) == null ? void 0 : l.offsetHeight) || 0) / 2 - e.value.height / 2;
155
+ S.value.x = (((t = n.value) == null ? void 0 : t.offsetWidth) || 0) / 2 - e.value.width / 2, S.value.y = (((l = n.value) == null ? void 0 : l.offsetHeight) || 0) / 2 - e.value.height / 2;
174
156
  });
175
- }), ne(() => {
176
- j.value && URL.revokeObjectURL(j.value), document.removeEventListener("mouseup", V), document.removeEventListener("mousemove", P);
177
- }), X({
178
- crop: te,
179
- resize: le
180
- }), (t, l) => (D(), O("div", {
157
+ }), ue(() => {
158
+ U.value && URL.revokeObjectURL(U.value), document.removeEventListener("mouseup", O), document.removeEventListener("mousemove", D);
159
+ }), A({
160
+ crop: ee,
161
+ resize: te
162
+ }), (t, l) => ($(), X("div", {
181
163
  ref_key: "containerBoxRef",
182
- ref: o,
183
- class: x([m(h).e("img-box")])
164
+ ref: n,
165
+ class: y([g(c).e("img-box")])
184
166
  }, [
185
- S.value ? (D(), O("div", {
167
+ L.value ? ($(), X("div", {
186
168
  key: 0,
187
- class: x([m(h).e("error-message")])
188
- }, se(S.value), 3)) : (D(), O(he, { key: 1 }, [
189
- k("img", {
169
+ class: y([g(c).e("error-message")])
170
+ }, ne(L.value), 3)) : ($(), X(se, { key: 1 }, [
171
+ W("img", {
190
172
  ref_key: "imgRef",
191
- ref: B,
192
- class: x([m(h).e("image")]),
193
- src: j.value
194
- }, null, 10, de),
195
- k("div", {
173
+ ref: C,
174
+ class: y([g(c).e("image")]),
175
+ src: U.value
176
+ }, null, 10, ce),
177
+ W("div", {
196
178
  ref_key: "cropBoxRef",
197
- ref: v,
198
- class: x([m(h).e("crop-tool-box")]),
199
- style: ve([ee.value, r.value ? `left: ${d.value.left}px;top: ${d.value.top}px` : m(K)])
179
+ ref: M,
180
+ class: y([g(c).e("crop-tool-box")]),
181
+ style: he([Z.value, h.value ? `left: ${r.value.left}px;top: ${r.value.top}px` : g(J)])
200
182
  }, [
201
- k("div", {
202
- class: x([m(h).e("top-left")]),
203
- onMousedown: l[0] || (l[0] = (u) => U(u, "top-left"))
183
+ W("div", {
184
+ class: y([g(c).e("top-left")]),
185
+ onMousedown: l[0] || (l[0] = (o) => B(o, "top-left"))
204
186
  }, null, 34),
205
- k("div", {
206
- class: x([m(h).e("top-right")]),
207
- onMousedown: l[1] || (l[1] = (u) => U(u, "top-right"))
187
+ W("div", {
188
+ class: y([g(c).e("top-right")]),
189
+ onMousedown: l[1] || (l[1] = (o) => B(o, "top-right"))
208
190
  }, null, 34),
209
- k("div", {
210
- class: x([m(h).e("bottom-right")]),
211
- onMousedown: l[2] || (l[2] = (u) => U(u, "bottom-right"))
191
+ W("div", {
192
+ class: y([g(c).e("bottom-right")]),
193
+ onMousedown: l[2] || (l[2] = (o) => B(o, "bottom-right"))
212
194
  }, null, 34),
213
- k("div", {
214
- class: x([m(h).e("bottom-left")]),
215
- onMousedown: l[3] || (l[3] = (u) => U(u, "bottom-left"))
195
+ W("div", {
196
+ class: y([g(c).e("bottom-left")]),
197
+ onMousedown: l[3] || (l[3] = (o) => B(o, "bottom-left"))
216
198
  }, null, 34)
217
199
  ], 6)
218
200
  ], 64))
@@ -220,5 +202,5 @@ const de = ["src"], xe = /* @__PURE__ */ ie({
220
202
  }
221
203
  });
222
204
  export {
223
- xe as default
205
+ we as default
224
206
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./photo-crop-tool.vue.cjs");exports.default=e.default;
1
+ "use strict";const e=require("./photo-crop-tool.vue.cjs");module.exports=e;
package/types/index.d.ts CHANGED
@@ -1 +1,6 @@
1
- export * from './index'
1
+ import { default as installer } from './src/defaults';
2
+
3
+ export * from './src/components';
4
+ export declare const install: (app: any) => void;
5
+ export declare const version: string;
6
+ export default installer;
File without changes
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,4 @@
1
+ export * from './file-upload/index';
2
+ export * from './fixed-action-bar/index';
3
+ export * from './image-upload/index';
4
+ export * from './photo-crop-tool/index';
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ version: string;
3
+ install: (app: any) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,36 @@
1
+ declare const QxsFileUpload: import('../withInstall').SFCWithInstall<import('vue').DefineComponent<{
2
+ action: import('element-plus').UploadProps["action"];
3
+ headers?: import('element-plus').UploadProps["headers"];
4
+ data?: import('element-plus').UploadProps["data"];
5
+ name?: import('element-plus').UploadProps["name"];
6
+ size?: number;
7
+ max?: number;
8
+ accept?: string;
9
+ files?: import('element-plus').UploadUserFile[];
10
+ notip?: boolean;
11
+ ext?: string[];
12
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ onSuccess: (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<{
15
+ action: import('element-plus').UploadProps["action"];
16
+ headers?: import('element-plus').UploadProps["headers"];
17
+ data?: import('element-plus').UploadProps["data"];
18
+ name?: import('element-plus').UploadProps["name"];
19
+ size?: number;
20
+ max?: number;
21
+ accept?: string;
22
+ files?: import('element-plus').UploadUserFile[];
23
+ notip?: boolean;
24
+ ext?: string[];
25
+ }> & Readonly<{
26
+ onOnSuccess?: ((...args: any[]) => any) | undefined;
27
+ }>, {
28
+ name: import('element-plus').UploadProps["name"];
29
+ accept: string;
30
+ size: number;
31
+ max: number;
32
+ files: import('element-plus').UploadUserFile[];
33
+ notip: boolean;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>> & Record<string, any>;
35
+ export { QxsFileUpload, };
36
+ export default QxsFileUpload;
@@ -0,0 +1,158 @@
1
+ import { UploadProps, UploadUserFile } from 'element-plus';
2
+
3
+ declare const _default: import('vue').DefineComponent<{
4
+ action: UploadProps["action"];
5
+ headers?: UploadProps["headers"];
6
+ data?: UploadProps["data"];
7
+ name?: UploadProps["name"];
8
+ size?: number;
9
+ max?: number;
10
+ accept?: string;
11
+ files?: UploadUserFile[];
12
+ notip?: boolean;
13
+ ext?: string[];
14
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ onSuccess: (...args: any[]) => void;
16
+ }, string, import('vue').PublicProps, Readonly<{
17
+ action: UploadProps["action"];
18
+ headers?: UploadProps["headers"];
19
+ data?: UploadProps["data"];
20
+ name?: UploadProps["name"];
21
+ size?: number;
22
+ max?: number;
23
+ accept?: string;
24
+ files?: UploadUserFile[];
25
+ notip?: boolean;
26
+ ext?: string[];
27
+ }> & Readonly<{
28
+ onOnSuccess?: ((...args: any[]) => any) | undefined;
29
+ }>, {
30
+ name: UploadProps["name"];
31
+ accept: string;
32
+ size: number;
33
+ max: number;
34
+ files: UploadUserFile[];
35
+ notip: boolean;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
37
+ export default _default;
38
+ export declare const __VLS_globalTypesStart: {};
39
+ declare global {
40
+ type __VLS_IntrinsicElements = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.IntrinsicElements, __VLS_PickNotAny<globalThis.JSX.IntrinsicElements, Record<string, any>>>;
41
+ type __VLS_Element = __VLS_PickNotAny<import('vue/jsx-runtime').JSX.Element, globalThis.JSX.Element>;
42
+ type __VLS_GlobalComponents = __VLS_PickNotAny<import('vue').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-core').GlobalComponents, {}> & __VLS_PickNotAny<import('@vue/runtime-dom').GlobalComponents, {}> & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
43
+ type __VLS_BuiltInPublicProps = __VLS_PickNotAny<import('vue').VNodeProps, {}> & __VLS_PickNotAny<import('vue').AllowedComponentProps, {}> & __VLS_PickNotAny<import('vue').ComponentCustomProps, {}>;
44
+ type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
45
+ type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
46
+ const __VLS_intrinsicElements: __VLS_IntrinsicElements;
47
+ function __VLS_getVForSourceType(source: number): [number, number, number][];
48
+ function __VLS_getVForSourceType(source: string): [string, number, number][];
49
+ function __VLS_getVForSourceType<T extends any[]>(source: T): [
50
+ item: T[number],
51
+ key: number,
52
+ index: number
53
+ ][];
54
+ function __VLS_getVForSourceType<T extends {
55
+ [Symbol.iterator](): Iterator<any>;
56
+ }>(source: T): [
57
+ item: T extends {
58
+ [Symbol.iterator](): Iterator<infer T1>;
59
+ } ? T1 : never,
60
+ key: number,
61
+ index: undefined
62
+ ][];
63
+ function __VLS_getVForSourceType<T extends number | {
64
+ [Symbol.iterator](): Iterator<any>;
65
+ }>(source: T): [
66
+ item: number | (Exclude<T, number> extends {
67
+ [Symbol.iterator](): Iterator<infer T1>;
68
+ } ? T1 : never),
69
+ key: number,
70
+ index: undefined
71
+ ][];
72
+ function __VLS_getVForSourceType<T>(source: T): [
73
+ item: T[keyof T],
74
+ key: keyof T,
75
+ index: number
76
+ ][];
77
+ function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
78
+ function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
79
+ function __VLS_directiveFunction<T>(dir: T): T extends import('vue').ObjectDirective<infer E, infer V> | import('vue').FunctionDirective<infer E, infer V> ? (value: V) => void : T;
80
+ function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
81
+ function __VLS_makeOptional<T>(t: T): {
82
+ [K in keyof T]?: T[K];
83
+ };
84
+ type __VLS_SelfComponent<N, C> = string extends N ? {} : N extends string ? {
85
+ [P in N]: C;
86
+ } : {};
87
+ type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
88
+ [K in N0]: LocalComponents[N1];
89
+ } : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
90
+ [K in N0]: LocalComponents[N2];
91
+ } : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
92
+ [K in N0]: LocalComponents[N3];
93
+ } : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
94
+ [K in N0]: __VLS_GlobalComponents[N1];
95
+ } : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
96
+ [K in N0]: __VLS_GlobalComponents[N2];
97
+ } : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
98
+ [K in N0]: __VLS_GlobalComponents[N3];
99
+ } : {
100
+ [K in N0]: unknown;
101
+ };
102
+ function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
103
+ $props: infer Props;
104
+ } ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
105
+ __ctx?: {
106
+ attrs?: any;
107
+ slots?: K extends {
108
+ $slots: infer Slots;
109
+ } ? Slots : any;
110
+ emit?: K extends {
111
+ $emit: infer Emit;
112
+ } ? Emit : any;
113
+ } & {
114
+ props?: (K extends {
115
+ $props: infer Props;
116
+ } ? Props : any) & Record<string, unknown>;
117
+ expose?(exposed: K): void;
118
+ };
119
+ } : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
120
+ __ctx?: {
121
+ attrs?: any;
122
+ expose?: any;
123
+ slots?: any;
124
+ emit?: any;
125
+ props?: {} & Record<string, unknown>;
126
+ };
127
+ };
128
+ function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
129
+ function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): Parameters<T>['length'] extends 2 ? [any] : [];
130
+ function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): __VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
131
+ __ctx?: infer Ctx;
132
+ } ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>;
133
+ type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
134
+ __ctx?: {
135
+ props?: infer P;
136
+ };
137
+ } ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
138
+ type __VLS_AsFunctionOrAny<F> = unknown extends F ? any : ((...args: any) => any) extends F ? F : any;
139
+ function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
140
+ /**
141
+ * emit
142
+ */
143
+ type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
144
+ type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
145
+ type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
146
+ type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
147
+ [K in E & string]: (...args: A) => void;
148
+ } : never : never;
149
+ type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
150
+ [K in keyof T]: T[K] extends any[] ? {
151
+ (...args: T[K]): void;
152
+ } : never;
153
+ }>>;
154
+ type __VLS_PrettifyGlobal<T> = {
155
+ [K in keyof T]: T[K];
156
+ } & {};
157
+ }
158
+ export declare const __VLS_globalTypesEnd: {};
@@ -0,0 +1,40 @@
1
+ declare const QxsFixedActionBar: import('../withInstall').SFCWithInstall<{
2
+ new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
+ padding: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
8
+ padding: string;
9
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
10
+ P: {};
11
+ B: {};
12
+ D: {};
13
+ C: {};
14
+ M: {};
15
+ Defaults: {};
16
+ }, Readonly<import('vue').ExtractPropTypes<{
17
+ padding: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ }>> & Readonly<{}>, {}, {}, {}, {}, {
22
+ padding: string;
23
+ }>;
24
+ __isFragment?: never;
25
+ __isTeleport?: never;
26
+ __isSuspense?: never;
27
+ } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
28
+ padding: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ }>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
33
+ padding: string;
34
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
35
+ $slots: {
36
+ default?(_: {}): any;
37
+ };
38
+ })> & Record<string, any>;
39
+ export { QxsFixedActionBar, };
40
+ export default QxsFixedActionBar;
@@ -0,0 +1,23 @@
1
+ declare function __VLS_template(): {
2
+ default?(_: {}): any;
3
+ };
4
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ padding: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ padding: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>> & Readonly<{}>, {
15
+ padding: string;
16
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
17
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
18
+ export default _default;
19
+ type __VLS_WithTemplateSlots<T, S> = T & {
20
+ new (): {
21
+ $slots: S;
22
+ };
23
+ };