@qynpm/ui 1.0.5 → 1.0.7

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 (110) hide show
  1. package/README.md +228 -228
  2. package/dist/index.cjs +2 -1
  3. package/dist/index.mjs +18 -18
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +2 -4
  6. package/dist/qy-dialog/index.cjs +1 -1
  7. package/dist/qy-dialog/index.mjs +2 -5
  8. package/dist/qy-form-section/index.cjs +1 -1
  9. package/dist/qy-form-section/index.mjs +2 -4
  10. package/dist/qy-input/index.cjs +1 -1
  11. package/dist/qy-input/index.mjs +2 -4
  12. package/dist/qy-money-input/index.cjs +1 -1
  13. package/dist/qy-money-input/index.mjs +2 -4
  14. package/dist/qy-radio-group/index.cjs +1 -1
  15. package/dist/qy-radio-group/index.mjs +2 -4
  16. package/dist/qy-record-quote-search/index.cjs +1 -1
  17. package/dist/qy-record-quote-search/index.mjs +2 -4
  18. package/dist/qy-remark-image/index.cjs +1 -2
  19. package/dist/qy-remark-image/index.mjs +2 -5
  20. package/dist/qy-remote-select/index.cjs +1 -1
  21. package/dist/qy-remote-select/index.mjs +2 -4
  22. package/dist/qy-search-input/index.cjs +1 -1
  23. package/dist/qy-search-input/index.mjs +2 -4
  24. package/dist/qy-select/index.cjs +1 -1
  25. package/dist/qy-select/index.mjs +2 -4
  26. package/dist/qy-upload/index.cjs +1 -1
  27. package/dist/qy-upload/index.mjs +2 -4
  28. package/dist/qy-voucher-upload/index.cjs +1 -1
  29. package/dist/qy-voucher-upload/index.mjs +2 -4
  30. package/dist/shared/index-CbFvRxuh.mjs +2592 -0
  31. package/dist/shared/index-GDrnDY44.cjs +1 -0
  32. package/index.d.ts +20 -20
  33. package/package.json +1 -1
  34. package/qy-action-bar/index.js +1 -4
  35. package/qy-dialog/index.js +1 -4
  36. package/qy-form-section/index.js +1 -4
  37. package/qy-input/index.js +1 -4
  38. package/qy-money-input/index.d.ts +12 -12
  39. package/qy-money-input/index.js +1 -15
  40. package/qy-radio-group/index.d.ts +12 -12
  41. package/qy-radio-group/index.js +1 -15
  42. package/qy-record-quote-search/index.js +1 -4
  43. package/qy-remark-image/index.js +1 -4
  44. package/qy-remote-select/index.d.ts +12 -12
  45. package/qy-remote-select/index.js +1 -15
  46. package/qy-search-input/index.js +1 -4
  47. package/qy-select/index.js +1 -4
  48. package/qy-upload/index.js +1 -4
  49. package/qy-voucher-upload/index.d.ts +12 -12
  50. package/qy-voucher-upload/index.js +1 -15
  51. package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -1
  52. package/dist/_virtual/_plugin-vue_export-helper.mjs +0 -9
  53. package/dist/lib/dialog/index.vue.cjs +0 -1
  54. package/dist/lib/dialog/index.vue.mjs +0 -325
  55. package/dist/lib/dialog/index.vue3.cjs +0 -1
  56. package/dist/lib/dialog/index.vue3.mjs +0 -5
  57. package/dist/lib/index.cjs +0 -1
  58. package/dist/lib/index.mjs +0 -53
  59. package/dist/lib/qy-action-bar/index.vue.cjs +0 -1
  60. package/dist/lib/qy-action-bar/index.vue.mjs +0 -7
  61. package/dist/lib/qy-action-bar/index.vue2.cjs +0 -1
  62. package/dist/lib/qy-action-bar/index.vue2.mjs +0 -55
  63. package/dist/lib/qy-form-section/index.vue.cjs +0 -1
  64. package/dist/lib/qy-form-section/index.vue.mjs +0 -7
  65. package/dist/lib/qy-form-section/index.vue2.cjs +0 -1
  66. package/dist/lib/qy-form-section/index.vue2.mjs +0 -87
  67. package/dist/lib/qy-input/index.vue.cjs +0 -1
  68. package/dist/lib/qy-input/index.vue.mjs +0 -143
  69. package/dist/lib/qy-input/index.vue2.cjs +0 -1
  70. package/dist/lib/qy-input/index.vue2.mjs +0 -4
  71. package/dist/lib/qy-money-input/index.vue.cjs +0 -1
  72. package/dist/lib/qy-money-input/index.vue.mjs +0 -171
  73. package/dist/lib/qy-money-input/index.vue2.cjs +0 -1
  74. package/dist/lib/qy-money-input/index.vue2.mjs +0 -4
  75. package/dist/lib/qy-radio-group/index.vue.cjs +0 -1
  76. package/dist/lib/qy-radio-group/index.vue.mjs +0 -90
  77. package/dist/lib/qy-radio-group/index.vue2.cjs +0 -1
  78. package/dist/lib/qy-radio-group/index.vue2.mjs +0 -4
  79. package/dist/lib/qy-record-quote-search/index.vue.cjs +0 -1
  80. package/dist/lib/qy-record-quote-search/index.vue.mjs +0 -7
  81. package/dist/lib/qy-record-quote-search/index.vue2.cjs +0 -1
  82. package/dist/lib/qy-record-quote-search/index.vue2.mjs +0 -204
  83. package/dist/lib/qy-remote-select/index.vue.cjs +0 -1
  84. package/dist/lib/qy-remote-select/index.vue.mjs +0 -214
  85. package/dist/lib/qy-remote-select/index.vue2.cjs +0 -1
  86. package/dist/lib/qy-remote-select/index.vue2.mjs +0 -4
  87. package/dist/lib/qy-search-input/index.vue.cjs +0 -1
  88. package/dist/lib/qy-search-input/index.vue.mjs +0 -7
  89. package/dist/lib/qy-search-input/index.vue2.cjs +0 -1
  90. package/dist/lib/qy-search-input/index.vue2.mjs +0 -276
  91. package/dist/lib/qy-select/index.vue.cjs +0 -1
  92. package/dist/lib/qy-select/index.vue.mjs +0 -162
  93. package/dist/lib/qy-select/index.vue2.cjs +0 -1
  94. package/dist/lib/qy-select/index.vue2.mjs +0 -4
  95. package/dist/lib/qy-voucher-upload/index.vue.cjs +0 -1
  96. package/dist/lib/qy-voucher-upload/index.vue.mjs +0 -123
  97. package/dist/lib/remark-image/index.vue.cjs +0 -1
  98. package/dist/lib/remark-image/index.vue.mjs +0 -7
  99. package/dist/lib/remark-image/index.vue2.cjs +0 -1
  100. package/dist/lib/remark-image/index.vue2.mjs +0 -197
  101. package/dist/lib/remark-image/utils.cjs +0 -1
  102. package/dist/lib/remark-image/utils.mjs +0 -22
  103. package/dist/lib/upload/index.vue.cjs +0 -1
  104. package/dist/lib/upload/index.vue.mjs +0 -482
  105. package/dist/lib/utils/auth.cjs +0 -1
  106. package/dist/lib/utils/auth.mjs +0 -8
  107. package/dist/lib/utils/install.cjs +0 -1
  108. package/dist/lib/utils/install.mjs +0 -8
  109. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.cjs +0 -1
  110. package/dist/node_modules/.pnpm/js-cookie@3.0.5/node_modules/js-cookie/dist/js.cookie.mjs +0 -74
@@ -1,325 +0,0 @@
1
- import { ElDialog as ae, ElIcon as se } from "element-plus/es";
2
- import { defineComponent as re, mergeModels as W, useSlots as de, ref as d, computed as C, createVNode as v, useModel as ue, watchEffect as ce, useAttrs as me, h as Y, unref as s, onMounted as fe, nextTick as ge, onUnmounted as ye, resolveComponent as pe, createElementBlock as i, openBlock as n, withDirectives as ve, mergeProps as we, createSlots as he, withCtx as w, createElementVNode as t, normalizeStyle as E, normalizeClass as Z, createCommentVNode as u, renderSlot as h, toDisplayString as G, withModifiers as a, createBlock as J, vShow as xe } from "vue";
3
- import _e from "clsx";
4
- import { ElButton as K } from "element-plus";
5
- import { useBreakpoints as be, useDraggable as ke } from "@vueuse/core";
6
- const ze = { class: "text-lg flex items-center pt-2 pl-[var(--content-padding)]" }, Ce = { key: 0 }, qe = { key: 1 }, Me = {
7
- key: 0,
8
- class: "icon-[material-symbols--square-outline-rounded]",
9
- role: "img",
10
- "aria-hidden": "true"
11
- }, Se = {
12
- key: 1,
13
- class: "icon-[tdesign--fullscreen-exit-1]",
14
- role: "img",
15
- "aria-hidden": "true"
16
- }, Ie = {
17
- key: 0,
18
- class: "fixed -right-12 top-2 h-9 w-9 hover:bg-gray-600/80 transition-all"
19
- }, Be = { class: "flex justify-between h-[var(--footer-height)] px-[var(--content-padding)] items-center" }, De = { class: "flex items-center justify-between w-full pl-1 pr-4 h-full ml-2" }, $e = { class: "flex items-center gap-2" }, Ee = { class: "text-sm text-gray-700 truncate max-w-[200px]" }, Ze = { class: "flex items-center gap-2" }, Q = 5, A = 2e3, Fe = /* @__PURE__ */ re({
20
- __name: "index",
21
- props: /* @__PURE__ */ W({
22
- layout: { type: [Array, String, Boolean], default: () => ["confirm", "cancel"] },
23
- fullscreen: { type: Boolean, default: !1 },
24
- showFullscreen: { type: Boolean, default: !1 },
25
- confirmProps: { default: () => ({}) },
26
- size: { default: "default" },
27
- zIndex: { default: 2e3 }
28
- }, {
29
- modelValue: { default: !0 },
30
- modelModifiers: {}
31
- }),
32
- emits: /* @__PURE__ */ W(["confirm", "cancel", "close", "opened", "ok"], ["update:modelValue"]),
33
- setup(H, { expose: ee, emit: oe }) {
34
- const l = H, q = de(), L = d(!0), M = d(!1), O = d(A), te = be({
35
- mobile: 0,
36
- tablet: 640,
37
- laptop: 1024,
38
- desktop: 1280
39
- }).isSmaller("tablet"), S = C(() => {
40
- if (Array.isArray(l.layout)) return l.layout;
41
- if (typeof l.layout == "string")
42
- return l.layout.split(",").map((o) => o.trim());
43
- }), V = C(() => ({
44
- CancelButton: v(R),
45
- ConfirmButton: v(P)
46
- })), j = C(() => q.footer || l.layout !== !1), I = d(!1), g = d(
47
- l.showFullscreen && te ? !0 : l.fullscreen
48
- ), y = oe, B = ue(H, "modelValue");
49
- ce(() => {
50
- B.value && (I.value = !1);
51
- }), ee({});
52
- const D = me(), c = `qy-dialog-${Math.random().toString(36).slice(2, 11)}`, m = d(!1), x = d(null);
53
- window.minimizedCount || (window.minimizedCount = 0);
54
- const { x: N, y: $ } = ke(x, {
55
- initialValue: {
56
- x: 5,
57
- y: window.innerHeight - 100 - (window.minimizedCount || 0) * 60
58
- },
59
- onMove(o) {
60
- var e;
61
- (e = x.value) == null || e.classList.add("dragging"), document.body.classList.add("qy-dialog--dragging"), N.value = Math.max(
62
- 0,
63
- Math.min(window.innerWidth - 300, o.x)
64
- ), $.value = Math.max(
65
- 0,
66
- Math.min(window.innerHeight - 50, o.y)
67
- );
68
- },
69
- onEnd() {
70
- var o;
71
- (o = x.value) == null || o.classList.remove("dragging"), document.body.classList.remove("qy-dialog--dragging");
72
- }
73
- }), le = C(() => ({
74
- transform: `translate(${N.value}px, ${$.value}px)`,
75
- willChange: "transform"
76
- }));
77
- function F(o) {
78
- const e = o.target, { scrollTop: r, scrollHeight: f, clientHeight: b } = e;
79
- L.value = r <= Q, M.value = f - (r + b) <= Q;
80
- }
81
- function ne() {
82
- document.querySelector(`.${c}.el-dialog`).addEventListener("scroll", F), _(), y("opened");
83
- }
84
- function T() {
85
- g.value = !g.value, _();
86
- }
87
- function p() {
88
- I.value || (I.value = !0, m.value = !1, B.value = !1, y("cancel"), y("close"));
89
- }
90
- function ie(o) {
91
- l.showFullscreen && o.detail >= 2 && T();
92
- }
93
- function P() {
94
- return Y(
95
- K,
96
- {
97
- ...s(l.confirmProps),
98
- type: "primary",
99
- class: "dialog__footerBtn",
100
- onClick: () => {
101
- y("confirm"), y("ok");
102
- }
103
- },
104
- () => s(l.confirmProps).title || "确 认"
105
- );
106
- }
107
- function R() {
108
- return Y(
109
- K,
110
- { class: "dialog__footerBtn", onClick: () => p() },
111
- () => "取 消"
112
- );
113
- }
114
- fe(() => {
115
- typeof window.qyDialogMaxZIndex > "u" && (window.qyDialogMaxZIndex = A), _();
116
- });
117
- function _() {
118
- var X;
119
- const o = Array.from(
120
- document.querySelectorAll(".el-overlay")
121
- ).filter((z) => window.getComputedStyle(z).display !== "none" && !z.classList.contains("is-message")), e = (X = document.querySelector(`.${c}`)) == null ? void 0 : X.closest(".el-overlay"), r = document.querySelector(
122
- `.${c}.el-dialog`
123
- );
124
- if (!e || !r) return;
125
- const f = A;
126
- window.qyDialogMaxZIndex = window.qyDialogMaxZIndex || f;
127
- const k = Math.max(
128
- window.qyDialogMaxZIndex,
129
- ...o.map(
130
- (z) => parseInt(window.getComputedStyle(z).zIndex || f.toString())
131
- )
132
- ) + 2;
133
- window.qyDialogMaxZIndex = k, ge(() => {
134
- e.style.zIndex = k.toString(), r.style.zIndex = (k + 1).toString(), O.value = k + 1;
135
- });
136
- }
137
- ye(() => {
138
- const o = document.querySelector(
139
- `.${c} .qy-dialog__wrapper-container`
140
- );
141
- o && o.removeEventListener("scroll", F), m.value && window.minimizedCount--;
142
- });
143
- function U() {
144
- var e;
145
- m.value = !m.value;
146
- const o = (e = document.querySelector(`.${c}`)) == null ? void 0 : e.closest(".el-overlay");
147
- m.value ? (o.style.display = "none", window.minimizedCount++, $.value = window.innerHeight - 50 - (window.minimizedCount || 0) * 60) : (o.style.display = "block", window.minimizedCount--, _());
148
- }
149
- return (o, e) => {
150
- const r = pe("Close"), f = se, b = ae;
151
- return n(), i("div", null, [
152
- v(b, we({
153
- ref: "dialogRef",
154
- class: ["qy-dialog", [
155
- l.size === "small" && "[&_.el-dialog__header]:!hidden",
156
- c
157
- ]],
158
- "model-value": B.value,
159
- "align-center": "",
160
- "append-to-body": "",
161
- style: {
162
- "--el-dialog-padding-primary": 0
163
- },
164
- "show-close": !1,
165
- fullscreen: g.value,
166
- "z-index": O.value,
167
- onClosed: p,
168
- onOpened: ne,
169
- draggable: ""
170
- }, s(D)), he({
171
- header: w(() => [
172
- l.size === "default" ? (n(), i("div", {
173
- key: 0,
174
- style: E({
175
- borderBottom: "1px solid",
176
- borderColor: L.value ? "transparent" : "var(--block-outline-color)",
177
- transition: "border-color .2s linear"
178
- }),
179
- class: "flex justify-between h-[var(--header-height)]",
180
- onDblclick: ie
181
- }, [
182
- t("div", ze, [
183
- s(q).header ? s(q).header ? (n(), i("div", qe, [
184
- h(o.$slots, "header")
185
- ])) : u("", !0) : (n(), i("span", Ce, G(s(D).title), 1))
186
- ]),
187
- t("div", {
188
- class: "flex",
189
- onMousedown: e[3] || (e[3] = a(() => {
190
- }, ["stop"]))
191
- }, [
192
- l.size === "default" ? (n(), i("div", {
193
- key: 0,
194
- class: "qy-dialog__btn qy-dialog__btn--default",
195
- onClick: a(U, ["stop"]),
196
- onMousedown: e[0] || (e[0] = a(() => {
197
- }, ["stop"]))
198
- }, e[4] || (e[4] = [
199
- t("span", {
200
- class: "icon-[material-symbols--minimize] text-xl mb-3",
201
- role: "img",
202
- "aria-hidden": "true"
203
- }, null, -1)
204
- ]), 32)) : u("", !0),
205
- l.showFullscreen ? (n(), i("div", {
206
- key: 1,
207
- class: "qy-dialog__btn qy-dialog__btn--default",
208
- onClick: a(T, ["stop"]),
209
- onMousedown: e[1] || (e[1] = a(() => {
210
- }, ["stop"]))
211
- }, [
212
- g.value ? (n(), i("span", Se)) : (n(), i("span", Me))
213
- ], 32)) : u("", !0),
214
- t("div", {
215
- class: "qy-dialog__btn qy-dialog__btn--danger",
216
- onClick: a(p, ["stop"]),
217
- onMousedown: e[2] || (e[2] = a(() => {
218
- }, ["stop"]))
219
- }, e[5] || (e[5] = [
220
- t("span", {
221
- class: "icon-[ri--close-line] text-xl",
222
- role: "img",
223
- "aria-hidden": "true"
224
- }, null, -1)
225
- ]), 32)
226
- ], 32)
227
- ], 36)) : u("", !0)
228
- ]),
229
- default: w(() => [
230
- t("div", {
231
- class: Z(["qy-dialog__wrapper", s(_e)(g.value && "qy-dialog__wrapper--fullscreen")]),
232
- style: E({
233
- maxHeight: j.value ? "calc(100vh - var(--header-height) - var(--footer-height) - var(--sides-gap))" : "calc(100vh - var(--header-height) - var(--sides-gap))",
234
- padding: l.size === "small" ? "var(--small-content-padding)" : "var(--content-padding)"
235
- })
236
- }, [
237
- l.size === "small" ? (n(), i("div", Ie, [
238
- v(f, {
239
- size: 36,
240
- class: "cursor-pointer text-gray-100 active:scale-75 rounded-sm transition-all",
241
- onClick: p
242
- }, {
243
- default: w(() => [
244
- v(r)
245
- ]),
246
- _: 1
247
- })
248
- ])) : u("", !0),
249
- h(o.$slots, "default")
250
- ], 6)
251
- ]),
252
- _: 2
253
- }, [
254
- !o.$slots.footer && Array.isArray(S.value) ? {
255
- name: "footer",
256
- fn: w(() => [
257
- t("div", Be, [
258
- t("div", null, [
259
- h(o.$slots, "footer-left")
260
- ]),
261
- t("div", {
262
- class: Z([{
263
- "qy-dialog__footer--outline": M.value
264
- }, "qy-dialog__footer flex items-center justify-end"])
265
- }, [
266
- S.value.includes("cancel") ? (n(), J(R, { key: 0 })) : u("", !0),
267
- S.value.includes("confirm") ? (n(), J(P, { key: 1 })) : u("", !0),
268
- h(o.$slots, "footer-append")
269
- ], 2)
270
- ])
271
- ]),
272
- key: "0"
273
- } : j.value ? {
274
- name: "footer",
275
- fn: w(() => [
276
- t("div", {
277
- class: Z([{
278
- "qy-dialog__footer--outline": M.value
279
- }, "qy-dialog__footer px-[var(--content-padding)] min-h-[var(--footer-height)] flex items-center justify-end"])
280
- }, [
281
- h(o.$slots, "footer", {
282
- layouts: V.value,
283
- layoutsNode: Object.values(V.value)
284
- })
285
- ], 2)
286
- ]),
287
- key: "1"
288
- } : void 0
289
- ]), 1040, ["class", "model-value", "fullscreen", "z-index"]),
290
- ve(t("div", {
291
- ref_key: "minimizedRef",
292
- ref: x,
293
- class: "fixed left-0 top-0 bg-white rounded shadow-lg cursor-pointer z-[9999] hover:bg-gray-50",
294
- style: E([le.value, { width: "300px", height: "50px", "will-change": "transform" }])
295
- }, [
296
- t("div", De, [
297
- t("div", $e, [
298
- e[6] || (e[6] = t("div", { class: "icon-[mdi--window-restore] text-gray-600" }, null, -1)),
299
- t("span", Ee, G(s(D).title), 1)
300
- ]),
301
- t("div", Ze, [
302
- t("div", {
303
- class: "p-1 hover:bg-gray-200 rounded",
304
- onClick: a(U, ["stop"])
305
- }, e[7] || (e[7] = [
306
- t("div", { class: "icon-[mdi--window-maximize] text-gray-600" }, null, -1)
307
- ])),
308
- t("div", {
309
- class: "p-1 hover:bg-red-100 rounded",
310
- onClick: a(p, ["stop"])
311
- }, e[8] || (e[8] = [
312
- t("div", { class: "icon-[mdi--close] text-red-600" }, null, -1)
313
- ]))
314
- ])
315
- ])
316
- ], 4), [
317
- [xe, m.value]
318
- ])
319
- ]);
320
- };
321
- }
322
- });
323
- export {
324
- Fe as default
325
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue.cjs");;/* empty css */exports.default=e.default;
@@ -1,5 +0,0 @@
1
- import o from "./index.vue.mjs";
2
- /* empty css */
3
- export {
4
- o as default
5
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */const p=require("./upload/index.vue.cjs"),m=require("./qy-voucher-upload/index.vue.cjs"),I=require("./dialog/index.vue.cjs");;/* empty css */const h=require("./remark-image/index.vue.cjs"),S=require("./qy-input/index.vue.cjs"),g=require("./qy-money-input/index.vue.cjs"),q=require("./qy-radio-group/index.vue.cjs"),R=require("./qy-remote-select/index.vue.cjs"),f=require("./qy-search-input/index.vue.cjs"),v=require("./qy-record-quote-search/index.vue.cjs"),x=require("./qy-select/index.vue.cjs"),w=require("./qy-form-section/index.vue.cjs"),$=require("./qy-action-bar/index.vue.cjs"),t=require("./utils/install.cjs"),n=t.withInstall(p.default,"QyUpload"),o=t.withInstall(m.default,"QyVoucherUpload"),u=t.withInstall(I.default,"QyDialog"),c=t.withInstall(h.default,"QyRemarkImage"),r=t.withInstall(S.default,"QyInput"),l=t.withInstall(g.default,"QyMoneyInput"),i=t.withInstall(q.default,"QyRadioGroup"),a=t.withInstall(R.default,"QyRemoteSelect"),y=t.withInstall(f.default,"QySearchInput"),s=t.withInstall(v.default,"QyRecordQuoteSearch"),Q=t.withInstall(x.default,"QySelect"),d=t.withInstall(w.default,"QyFormSection"),_=t.withInstall($.default,"QyActionBar"),U=e=>{e.component("QyDialog",u),e.component("QyUpload",n),e.component("QyVoucherUpload",o),e.component("QyRemarkImage",c),e.component("QyInput",r),e.component("QyMoneyInput",l),e.component("QyRadioGroup",i),e.component("QyRemoteSelect",a),e.component("QySearchInput",y),e.component("QyRecordQuoteSearch",s),e.component("QySelect",Q),e.component("QyFormSection",d),e.component("QyActionBar",_)},M={install:U,QyUpload:n,QyVoucherUpload:o,QyDialog:u,QyInput:r,QyMoneyInput:l,QyRadioGroup:i,QyRemoteSelect:a,QySearchInput:y,QyRecordQuoteSearch:s,QySelect:Q,QyFormSection:d,QyActionBar:_,QyRemarkImage:c};exports.QyActionBar=_;exports.QyDialog=u;exports.QyFormSection=d;exports.QyInput=r;exports.QyMoneyInput=l;exports.QyRadioGroup=i;exports.QyRecordQuoteSearch=s;exports.QyRemarkImage=c;exports.QyRemoteSelect=a;exports.QySearchInput=y;exports.QySelect=Q;exports.QyUpload=n;exports.QyVoucherUpload=o;exports.default=M;
@@ -1,53 +0,0 @@
1
- /* empty css */
2
- import u from "./upload/index.vue.mjs";
3
- import S from "./qy-voucher-upload/index.vue.mjs";
4
- import d from "./dialog/index.vue.mjs";
5
- /* empty css */
6
- import I from "./remark-image/index.vue.mjs";
7
- import R from "./qy-input/index.vue.mjs";
8
- import _ from "./qy-money-input/index.vue.mjs";
9
- import h from "./qy-radio-group/index.vue.mjs";
10
- import $ from "./qy-remote-select/index.vue.mjs";
11
- import g from "./qy-search-input/index.vue.mjs";
12
- import U from "./qy-record-quote-search/index.vue.mjs";
13
- import k from "./qy-select/index.vue.mjs";
14
- import A from "./qy-form-section/index.vue.mjs";
15
- import B from "./qy-action-bar/index.vue.mjs";
16
- import { withInstall as t } from "./utils/install.mjs";
17
- const n = t(u, "QyUpload"), e = t(S, "QyVoucherUpload"), m = t(d, "QyDialog"), c = t(I, "QyRemarkImage"), r = t(R, "QyInput"), Q = t(_, "QyMoneyInput"), y = t(h, "QyRadioGroup"), i = t($, "QyRemoteSelect"), a = t(g, "QySearchInput"), p = t(
18
- U,
19
- "QyRecordQuoteSearch"
20
- ), s = t(k, "QySelect"), f = t(A, "QyFormSection"), l = t(B, "QyActionBar"), F = (o) => {
21
- o.component("QyDialog", m), o.component("QyUpload", n), o.component("QyVoucherUpload", e), o.component("QyRemarkImage", c), o.component("QyInput", r), o.component("QyMoneyInput", Q), o.component("QyRadioGroup", y), o.component("QyRemoteSelect", i), o.component("QySearchInput", a), o.component("QyRecordQuoteSearch", p), o.component("QySelect", s), o.component("QyFormSection", f), o.component("QyActionBar", l);
22
- }, L = {
23
- install: F,
24
- QyUpload: n,
25
- QyVoucherUpload: e,
26
- QyDialog: m,
27
- QyInput: r,
28
- QyMoneyInput: Q,
29
- QyRadioGroup: y,
30
- QyRemoteSelect: i,
31
- QySearchInput: a,
32
- QyRecordQuoteSearch: p,
33
- QySelect: s,
34
- QyFormSection: f,
35
- QyActionBar: l,
36
- QyRemarkImage: c
37
- };
38
- export {
39
- l as QyActionBar,
40
- m as QyDialog,
41
- f as QyFormSection,
42
- r as QyInput,
43
- Q as QyMoneyInput,
44
- y as QyRadioGroup,
45
- p as QyRecordQuoteSearch,
46
- c as QyRemarkImage,
47
- i as QyRemoteSelect,
48
- a as QySearchInput,
49
- s as QySelect,
50
- n as QyUpload,
51
- e as QyVoucherUpload,
52
- L as default
53
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-52704203"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-52704203"]]);
5
- export {
6
- p as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a={key:0,class:"qy-action-bar__left"},l={key:1,class:"qy-action-bar__center"},n={key:2,class:"qy-action-bar__right"},d=e.defineComponent({name:"QyActionBar",__name:"index",props:{sticky:{type:Boolean,default:!0},offsetBottom:{default:0},bordered:{type:Boolean,default:!0},shadow:{type:Boolean,default:!1},wrap:{type:Boolean,default:!0},justify:{default:"between"},background:{default:"#fff"}},setup(r){const o=r,s=e.computed(()=>({bottom:`${o.offsetBottom}px`,background:o.background}));return(t,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["qy-action-bar",[`is-justify-${t.justify}`,{"is-sticky":t.sticky,"is-bordered":t.bordered,"is-shadow":t.shadow,"is-wrap":t.wrap}]]),style:e.normalizeStyle(s.value)},[t.$slots.left?(e.openBlock(),e.createElementBlock("div",a,[e.renderSlot(t.$slots,"left",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.default?(e.openBlock(),e.createElementBlock("div",l,[e.renderSlot(t.$slots,"default",{},void 0,!0)])):e.createCommentVNode("",!0),t.$slots.right?(e.openBlock(),e.createElementBlock("div",n,[e.renderSlot(t.$slots,"right",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}});exports.default=d;
@@ -1,55 +0,0 @@
1
- import { defineComponent as i, computed as n, createElementBlock as t, openBlock as o, normalizeStyle as u, normalizeClass as f, createCommentVNode as s, renderSlot as a } from "vue";
2
- const y = {
3
- key: 0,
4
- class: "qy-action-bar__left"
5
- }, c = {
6
- key: 1,
7
- class: "qy-action-bar__center"
8
- }, p = {
9
- key: 2,
10
- class: "qy-action-bar__right"
11
- }, k = /* @__PURE__ */ i({
12
- name: "QyActionBar",
13
- __name: "index",
14
- props: {
15
- sticky: { type: Boolean, default: !0 },
16
- offsetBottom: { default: 0 },
17
- bordered: { type: Boolean, default: !0 },
18
- shadow: { type: Boolean, default: !1 },
19
- wrap: { type: Boolean, default: !0 },
20
- justify: { default: "between" },
21
- background: { default: "#fff" }
22
- },
23
- setup(l) {
24
- const r = l, d = n(() => ({
25
- // offsetBottom 只负责业务偏移,安全区补偿由 CSS padding 处理。
26
- bottom: `${r.offsetBottom}px`,
27
- background: r.background
28
- }));
29
- return (e, m) => (o(), t("div", {
30
- class: f(["qy-action-bar", [
31
- `is-justify-${e.justify}`,
32
- {
33
- "is-sticky": e.sticky,
34
- "is-bordered": e.bordered,
35
- "is-shadow": e.shadow,
36
- "is-wrap": e.wrap
37
- }
38
- ]]),
39
- style: u(d.value)
40
- }, [
41
- e.$slots.left ? (o(), t("div", y, [
42
- a(e.$slots, "left", {}, void 0, !0)
43
- ])) : s("", !0),
44
- e.$slots.default ? (o(), t("div", c, [
45
- a(e.$slots, "default", {}, void 0, !0)
46
- ])) : s("", !0),
47
- e.$slots.right ? (o(), t("div", p, [
48
- a(e.$slots, "right", {}, void 0, !0)
49
- ])) : s("", !0)
50
- ], 6));
51
- }
52
- });
53
- export {
54
- k as default
55
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=require("../../_virtual/_plugin-vue_export-helper.cjs"),u=t.default(e.default,[["__scopeId","data-v-f66fb30e"]]);exports.default=u;
@@ -1,7 +0,0 @@
1
- import o from "./index.vue2.mjs";
2
- /* empty css */
3
- import t from "../../_virtual/_plugin-vue_export-helper.mjs";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f66fb30e"]]);
5
- export {
6
- e as default
7
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d={class:"qy-form-section__heading"},c={key:0,class:"qy-form-section__title"},u={key:0,class:"qy-form-section__description"},p={class:"qy-form-section__actions"},m=e.defineComponent({name:"QyFormSection",__name:"index",props:{title:{default:""},description:{default:""},tip:{default:""},tipType:{default:"info"},collapsible:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!0},bordered:{type:Boolean,default:!0},background:{default:"white"},bodyClass:{default:""},headerClass:{default:""}},emits:["toggle"],setup(i,{emit:a}){const l=i,n=a,o=e.ref(l.defaultExpanded);e.watch(()=>l.defaultExpanded,t=>{o.value=t});function s(){l.collapsible&&(o.value=!o.value,n("toggle",o.value))}function r(){l.collapsible&&s()}return(t,f)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["qy-form-section",[`is-bg-${t.background}`,{"is-bordered":t.bordered,"is-collapsible":t.collapsible}]])},[e.createElementVNode("header",{class:e.normalizeClass(["qy-form-section__header",t.headerClass]),onClick:r},[e.createElementVNode("div",d,[e.renderSlot(t.$slots,"title",{},()=>[t.title?(e.openBlock(),e.createElementBlock("div",c,e.toDisplayString(t.title),1)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"description",{},()=>[t.description?(e.openBlock(),e.createElementBlock("div",u,e.toDisplayString(t.description),1)):e.createCommentVNode("",!0)],!0)]),e.createElementVNode("div",p,[e.renderSlot(t.$slots,"actions",{},void 0,!0),t.collapsible?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"qy-form-section__toggle",onClick:e.withModifiers(s,["stop"])},e.toDisplayString(o.value?"收起":"展开"),1)):e.createCommentVNode("",!0)])],2),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["qy-form-section__body",t.bodyClass])},[e.renderSlot(t.$slots,"tip",{},()=>[t.tip?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["qy-form-section__tip",`is-${t.tipType}`])},e.toDisplayString(t.tip),3)):e.createCommentVNode("",!0)],!0),e.renderSlot(t.$slots,"default",{},void 0,!0)],2),[[e.vShow,o.value]])],2))}});exports.default=m;
@@ -1,87 +0,0 @@
1
- import { defineComponent as y, ref as b, watch as h, createElementBlock as o, openBlock as s, normalizeClass as a, createElementVNode as d, withDirectives as v, renderSlot as i, createCommentVNode as n, toDisplayString as r, withModifiers as g, vShow as _ } from "vue";
2
- const k = { class: "qy-form-section__heading" }, C = {
3
- key: 0,
4
- class: "qy-form-section__title"
5
- }, q = {
6
- key: 0,
7
- class: "qy-form-section__description"
8
- }, $ = { class: "qy-form-section__actions" }, B = /* @__PURE__ */ y({
9
- name: "QyFormSection",
10
- __name: "index",
11
- props: {
12
- title: { default: "" },
13
- description: { default: "" },
14
- tip: { default: "" },
15
- tipType: { default: "info" },
16
- collapsible: { type: Boolean, default: !1 },
17
- defaultExpanded: { type: Boolean, default: !0 },
18
- bordered: { type: Boolean, default: !0 },
19
- background: { default: "white" },
20
- bodyClass: { default: "" },
21
- headerClass: { default: "" }
22
- },
23
- emits: ["toggle"],
24
- setup(c, { emit: p }) {
25
- const l = c, f = p, t = b(l.defaultExpanded);
26
- h(
27
- () => l.defaultExpanded,
28
- (e) => {
29
- t.value = e;
30
- }
31
- );
32
- function u() {
33
- l.collapsible && (t.value = !t.value, f("toggle", t.value));
34
- }
35
- function m() {
36
- l.collapsible && u();
37
- }
38
- return (e, E) => (s(), o("section", {
39
- class: a(["qy-form-section", [
40
- `is-bg-${e.background}`,
41
- {
42
- "is-bordered": e.bordered,
43
- "is-collapsible": e.collapsible
44
- }
45
- ]])
46
- }, [
47
- d("header", {
48
- class: a(["qy-form-section__header", e.headerClass]),
49
- onClick: m
50
- }, [
51
- d("div", k, [
52
- i(e.$slots, "title", {}, () => [
53
- e.title ? (s(), o("div", C, r(e.title), 1)) : n("", !0)
54
- ], !0),
55
- i(e.$slots, "description", {}, () => [
56
- e.description ? (s(), o("div", q, r(e.description), 1)) : n("", !0)
57
- ], !0)
58
- ]),
59
- d("div", $, [
60
- i(e.$slots, "actions", {}, void 0, !0),
61
- e.collapsible ? (s(), o("button", {
62
- key: 0,
63
- type: "button",
64
- class: "qy-form-section__toggle",
65
- onClick: g(u, ["stop"])
66
- }, r(t.value ? "收起" : "展开"), 1)) : n("", !0)
67
- ])
68
- ], 2),
69
- v(d("div", {
70
- class: a(["qy-form-section__body", e.bodyClass])
71
- }, [
72
- i(e.$slots, "tip", {}, () => [
73
- e.tip ? (s(), o("div", {
74
- key: 0,
75
- class: a(["qy-form-section__tip", `is-${e.tipType}`])
76
- }, r(e.tip), 3)) : n("", !0)
77
- ], !0),
78
- i(e.$slots, "default", {}, void 0, !0)
79
- ], 2), [
80
- [_, t.value]
81
- ])
82
- ], 2));
83
- }
84
- });
85
- export {
86
- B as default
87
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),T=require("element-plus"),P=t.defineComponent({name:"QyInput",inheritAttrs:!1,__name:"index",props:{modelValue:{default:""},removeSpace:{type:Boolean,default:!1},trimMode:{default:"none"}},emits:["update:modelValue","input","change","focus","blur","clear","enter"],setup(d,{expose:c,emit:p}){const r=d,u=p,m=t.useAttrs(),l=t.ref(null),a=t.ref(o(r.modelValue)),h=t.computed(()=>o(r.modelValue));t.watch(()=>r.modelValue,e=>{a.value=o(e)});function o(e){return e==null?"":String(e)}function v(e){return r.removeSpace?e.replace(/\s+/g,""):e}function s(e,n){return r.trimMode!==n?e:e.trim()}function f(e){return v(o(e))}function i(e){a.value=e,u("update:modelValue",e)}function V(e){const n=f(e);i(n)}function g(e){a.value=o(e),u("input",o(e))}function x(e){const n=s(f(e),"change");n!==o(r.modelValue)&&i(n),u("change",n)}function y(e){u("focus",e)}function S(e){const n=s(a.value,"blur");n!==o(r.modelValue)&&i(n),u("blur",e)}function C(){a.value="",u("update:modelValue",""),u("clear")}function $(e){u("enter",e)}function b(){var e,n;(n=(e=l.value)==null?void 0:e.focus)==null||n.call(e)}function k(){var e,n;(n=(e=l.value)==null?void 0:e.blur)==null||n.call(e)}function w(){var e,n;(n=(e=l.value)==null?void 0:e.select)==null||n.call(e)}function I(){var e,n;(n=(e=l.value)==null?void 0:e.clear)==null||n.call(e)}function M(){var e,n;(n=(e=l.value)==null?void 0:e.resizeTextarea)==null||n.call(e)}function z(){var e;return((e=l.value)==null?void 0:e.input)||null}function B(){var e;return((e=l.value)==null?void 0:e.textarea)||null}return c({focus:b,blur:k,select:w,clear:I,resizeTextarea:M,getNativeInput:z,getTextarea:B}),(e,n)=>(t.openBlock(),t.createBlock(t.unref(T.ElInput),t.mergeProps({ref_key:"inputRef",ref:l},t.unref(m),{"model-value":h.value,"onUpdate:modelValue":V,onInput:g,onChange:x,onFocus:y,onBlur:S,onClear:C,onKeydown:t.withKeys($,["enter"])}),t.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.suffix?{name:"suffix",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"suffix")]),key:"1"}:void 0,e.$slots.prepend?{name:"prepend",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"prepend")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"append")]),key:"3"}:void 0]),1040,["model-value"]))}});exports.default=P;