@qynpm/ui 1.0.25 → 1.0.27

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 (211) hide show
  1. package/README.md +313 -27
  2. package/dist/index.cjs +10 -4
  3. package/dist/index.mjs +69 -42
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-alert/index.cjs +1 -0
  7. package/dist/qy-alert/index.mjs +7 -0
  8. package/dist/qy-avatar/index.cjs +1 -0
  9. package/dist/qy-avatar/index.mjs +7 -0
  10. package/dist/qy-badge/index.cjs +1 -0
  11. package/dist/qy-badge/index.mjs +7 -0
  12. package/dist/qy-button/index.cjs +1 -1
  13. package/dist/qy-button/index.mjs +1 -1
  14. package/dist/qy-card/index.cjs +1 -0
  15. package/dist/qy-card/index.mjs +7 -0
  16. package/dist/qy-cascader/index.cjs +1 -0
  17. package/dist/qy-cascader/index.mjs +7 -0
  18. package/dist/qy-checkbox/index.cjs +1 -1
  19. package/dist/qy-checkbox/index.mjs +1 -1
  20. package/dist/qy-checkbox-group/index.cjs +1 -1
  21. package/dist/qy-checkbox-group/index.mjs +1 -1
  22. package/dist/qy-collapse/index.cjs +1 -0
  23. package/dist/qy-collapse/index.mjs +7 -0
  24. package/dist/qy-collapse-item/index.cjs +1 -0
  25. package/dist/qy-collapse-item/index.mjs +7 -0
  26. package/dist/qy-descriptions/index.cjs +1 -0
  27. package/dist/qy-descriptions/index.mjs +7 -0
  28. package/dist/qy-descriptions-item/index.cjs +1 -0
  29. package/dist/qy-descriptions-item/index.mjs +7 -0
  30. package/dist/qy-dialog/index.cjs +1 -1
  31. package/dist/qy-dialog/index.mjs +1 -1
  32. package/dist/qy-divider/index.cjs +1 -0
  33. package/dist/qy-divider/index.mjs +7 -0
  34. package/dist/qy-dropdown/index.cjs +1 -1
  35. package/dist/qy-dropdown/index.mjs +1 -1
  36. package/dist/qy-empty/index.cjs +1 -0
  37. package/dist/qy-empty/index.mjs +7 -0
  38. package/dist/qy-file-picker/index.cjs +1 -1
  39. package/dist/qy-file-picker/index.mjs +1 -1
  40. package/dist/qy-form-section/index.cjs +1 -1
  41. package/dist/qy-form-section/index.mjs +2 -2
  42. package/dist/qy-image/index.cjs +1 -1
  43. package/dist/qy-image/index.mjs +1 -1
  44. package/dist/qy-image-upload/index.cjs +1 -1
  45. package/dist/qy-image-upload/index.mjs +1 -1
  46. package/dist/qy-input-number/index.cjs +1 -1
  47. package/dist/qy-input-number/index.mjs +3 -4
  48. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  49. package/dist/qy-legacy-selection-dialog/index.mjs +2 -2
  50. package/dist/qy-link/index.cjs +1 -0
  51. package/dist/qy-link/index.mjs +7 -0
  52. package/dist/qy-menu-actions/index.cjs +1 -1
  53. package/dist/qy-menu-actions/index.mjs +1 -1
  54. package/dist/qy-money-input/index.cjs +1 -1
  55. package/dist/qy-money-input/index.mjs +1 -1
  56. package/dist/qy-popover/index.cjs +1 -1
  57. package/dist/qy-popover/index.mjs +1 -1
  58. package/dist/qy-progress/index.cjs +1 -0
  59. package/dist/qy-progress/index.mjs +7 -0
  60. package/dist/qy-radio/index.cjs +1 -1
  61. package/dist/qy-radio/index.mjs +1 -1
  62. package/dist/qy-radio-group/index.cjs +1 -1
  63. package/dist/qy-radio-group/index.mjs +1 -1
  64. package/dist/qy-record-quote-search/index.cjs +1 -1
  65. package/dist/qy-record-quote-search/index.mjs +1 -1
  66. package/dist/qy-remark-image/index.cjs +1 -1
  67. package/dist/qy-remark-image/index.mjs +1 -1
  68. package/dist/qy-remote-select/index.cjs +1 -1
  69. package/dist/qy-remote-select/index.mjs +1 -1
  70. package/dist/qy-scrollbar/index.cjs +1 -0
  71. package/dist/qy-scrollbar/index.mjs +7 -0
  72. package/dist/qy-search-input/index.cjs +1 -1
  73. package/dist/qy-search-input/index.mjs +1 -1
  74. package/dist/qy-select/index.cjs +1 -1
  75. package/dist/qy-select/index.mjs +1 -1
  76. package/dist/qy-selection-dialog/index.cjs +1 -1
  77. package/dist/qy-selection-dialog/index.mjs +1 -1
  78. package/dist/qy-skeleton/index.cjs +1 -0
  79. package/dist/qy-skeleton/index.mjs +7 -0
  80. package/dist/qy-skeleton-item/index.cjs +1 -0
  81. package/dist/qy-skeleton-item/index.mjs +7 -0
  82. package/dist/qy-step/index.cjs +1 -0
  83. package/dist/qy-step/index.mjs +7 -0
  84. package/dist/qy-steps/index.cjs +1 -0
  85. package/dist/qy-steps/index.mjs +7 -0
  86. package/dist/qy-switch/index.cjs +1 -1
  87. package/dist/qy-switch/index.mjs +1 -1
  88. package/dist/qy-tab-pane/index.cjs +1 -0
  89. package/dist/qy-tab-pane/index.mjs +7 -0
  90. package/dist/qy-table-column-settings/index.cjs +1 -1
  91. package/dist/qy-table-column-settings/index.mjs +1 -1
  92. package/dist/qy-tabs/index.cjs +1 -0
  93. package/dist/qy-tabs/index.mjs +7 -0
  94. package/dist/qy-tag/index.cjs +1 -1
  95. package/dist/qy-tag/index.mjs +1 -1
  96. package/dist/qy-tooltip/index.cjs +1 -1
  97. package/dist/qy-tooltip/index.mjs +1 -1
  98. package/dist/qy-tree/index.cjs +1 -0
  99. package/dist/qy-tree/index.mjs +7 -0
  100. package/dist/qy-tree-select/index.cjs +1 -1
  101. package/dist/qy-tree-select/index.mjs +5 -4
  102. package/dist/qy-upload/index.cjs +1 -1
  103. package/dist/qy-upload/index.mjs +1 -1
  104. package/dist/shared/{index-9v7CIwzO.cjs → index-B9RYNZUh.cjs} +1 -1
  105. package/dist/shared/{index-B7uyWUhS.mjs → index-C7V-LeFg.mjs} +1 -1
  106. package/dist/shared/{index-Du2IqeCI.mjs → index-CYn7TvRx.mjs} +1 -1
  107. package/dist/shared/index-CnZNcnTs.cjs +1 -0
  108. package/dist/shared/{index-DmhpD4Cp.cjs → index-CpvFUems.cjs} +1 -1
  109. package/dist/shared/{index-C1YwUATr.cjs → index-DEkng5wh.cjs} +1 -1
  110. package/dist/shared/index-DHJf8Zto.mjs +377 -0
  111. package/dist/shared/index-DjyaOKUS.cjs +1 -0
  112. package/dist/shared/{index-DvQdcj7u.mjs → index-T9Om5Csd.mjs} +1197 -1134
  113. package/dist/shared/{index-DZroPZ8B.mjs → index-hEy-3mcr.mjs} +8 -8
  114. package/dist/shared/index.vue_vue_type_script_lang-69zSOotQ.mjs +47 -0
  115. package/dist/shared/index.vue_vue_type_script_lang-BGAdXWIL.mjs +78 -0
  116. package/dist/shared/index.vue_vue_type_script_lang-BO9Ju_i0.cjs +1 -0
  117. package/dist/shared/index.vue_vue_type_script_lang-Bc3tktk9.cjs +1 -0
  118. package/dist/shared/index.vue_vue_type_script_lang-BkoqbceR.cjs +1 -0
  119. package/dist/shared/index.vue_vue_type_script_lang-C4JHCuXz.mjs +54 -0
  120. package/dist/shared/index.vue_vue_type_script_lang-C9X0V5AK.mjs +71 -0
  121. package/dist/shared/index.vue_vue_type_script_lang-CIOi2ahp.cjs +1 -0
  122. package/dist/shared/index.vue_vue_type_script_lang-CZK0hDYa.mjs +77 -0
  123. package/dist/shared/index.vue_vue_type_script_lang-Cv4Pf58E.cjs +1 -0
  124. package/dist/shared/index.vue_vue_type_script_lang-CwrbII5c.cjs +1 -0
  125. package/dist/shared/index.vue_vue_type_script_lang-D42aRlO2.cjs +1 -0
  126. package/dist/shared/index.vue_vue_type_script_lang-D7b9ABei.mjs +113 -0
  127. package/dist/shared/index.vue_vue_type_script_lang-D7nzeBUR.mjs +35 -0
  128. package/dist/shared/index.vue_vue_type_script_lang-DIKHRo0o.mjs +72 -0
  129. package/dist/shared/index.vue_vue_type_script_lang-DLmUPDR5.cjs +1 -0
  130. package/dist/shared/index.vue_vue_type_script_lang-DMrpLmWN.cjs +1 -0
  131. package/dist/shared/index.vue_vue_type_script_lang-DOOT2grg.mjs +54 -0
  132. package/dist/shared/index.vue_vue_type_script_lang-Dfq7D3mJ.mjs +18 -0
  133. package/dist/shared/index.vue_vue_type_script_lang-DpSaB5eg.cjs +1 -0
  134. package/dist/shared/index.vue_vue_type_script_lang-WJ63_A7F.cjs +1 -0
  135. package/dist/shared/index.vue_vue_type_script_lang-chBiq2cG.mjs +31 -0
  136. package/dist/shared/index.vue_vue_type_script_setup_true_lang-4KZSABSM.cjs +1 -0
  137. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B4JrNUDc.mjs +43 -0
  138. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJe7Uo6S.mjs +42 -0
  139. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BWi3g3mb.cjs +1 -0
  140. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Bdz9oDDW.mjs +62 -0
  141. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C96ZaggL.cjs +1 -0
  142. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs → index.vue_vue_type_script_setup_true_lang-CUox3Lm-.mjs} +1 -1
  143. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CmQLfhRo.cjs +1 -0
  144. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DUEhuwGQ.cjs +1 -0
  145. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-C3F8M9sD.cjs → index.vue_vue_type_script_setup_true_lang-DXGjuA2f.cjs} +1 -1
  146. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs → index.vue_vue_type_script_setup_true_lang-DXtovY1E.mjs} +1 -1
  147. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Dd_nKJvH.mjs +19 -0
  148. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DobP199g.mjs +63 -0
  149. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CsKjCWIN.cjs → index.vue_vue_type_script_setup_true_lang-kje3Rtlw.cjs} +1 -1
  150. package/dist/shared/index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs +98 -0
  151. package/dist/shared/index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs +1 -0
  152. package/dist/shared/index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs +67 -0
  153. package/dist/shared/index.vue_vue_type_style_index_0_lang-Cb4yMk-r.cjs +1 -0
  154. package/dist/shared/index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs +1 -0
  155. package/dist/shared/index.vue_vue_type_style_index_0_lang-CnL4aeg1.cjs +1 -0
  156. package/dist/shared/index.vue_vue_type_style_index_0_lang-DIMCVnQm.mjs +286 -0
  157. package/dist/shared/index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs +1 -0
  158. package/dist/shared/index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs +298 -0
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-dLpQXf6x.mjs +87 -0
  160. package/index.d.ts +272 -24
  161. package/package.json +128 -2
  162. package/qy-alert/index.d.ts +64 -0
  163. package/qy-autocomplete/index.d.ts +5 -5
  164. package/qy-avatar/index.d.ts +67 -0
  165. package/qy-badge/index.d.ts +63 -0
  166. package/qy-card/index.d.ts +64 -0
  167. package/qy-cascader/index.d.ts +198 -0
  168. package/qy-collapse/index.d.ts +59 -0
  169. package/qy-collapse-item/index.d.ts +45 -0
  170. package/qy-descriptions/index.d.ts +47 -0
  171. package/qy-descriptions-item/index.d.ts +46 -0
  172. package/qy-divider/index.d.ts +53 -0
  173. package/qy-empty/index.d.ts +51 -0
  174. package/qy-image/index.d.ts +28 -28
  175. package/qy-image-preview/index.d.ts +20 -20
  176. package/qy-link/index.d.ts +69 -0
  177. package/qy-menu-actions/index.d.ts +29 -29
  178. package/qy-progress/index.d.ts +74 -0
  179. package/qy-scrollbar/index.d.ts +85 -0
  180. package/qy-skeleton/index.d.ts +54 -0
  181. package/qy-skeleton-item/index.d.ts +48 -0
  182. package/qy-step/index.d.ts +55 -0
  183. package/qy-steps/index.d.ts +62 -0
  184. package/qy-tab-pane/index.d.ts +40 -0
  185. package/qy-table-column-settings/index.d.ts +18 -18
  186. package/qy-tabs/index.d.ts +84 -0
  187. package/qy-tree/index.d.ts +132 -0
  188. package/qy-tree-select/index.d.ts +123 -5
  189. package/dist/shared/index-528z_q7d.cjs +0 -1
  190. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C-Pf9TJ0.mjs +0 -152
  191. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DWS8bsiP.cjs +0 -1
  192. /package/dist/shared/{index-C1p86ezL.cjs → index-BDdhBEFr.cjs} +0 -0
  193. /package/dist/shared/{index-R5B1rjXo.mjs → index-BbDWedqW.mjs} +0 -0
  194. /package/dist/shared/{index-QQkDJv3q.cjs → index-BqV6vW9P.cjs} +0 -0
  195. /package/dist/shared/{index-DrJuMzr1.mjs → index-CUITnlPr.mjs} +0 -0
  196. /package/dist/shared/{index-CuusBxhR.cjs → index-DA3GVIZY.cjs} +0 -0
  197. /package/dist/shared/{index-BYLXkIxS.mjs → index-DEZF-Fkt.mjs} +0 -0
  198. /package/dist/shared/{index-ClUqUsAv.cjs → index-DIs6iPjF.cjs} +0 -0
  199. /package/dist/shared/{index-EGnVOaC9.cjs → index-DMiZy6gD.cjs} +0 -0
  200. /package/dist/shared/{index-Cl5cuyVG.mjs → index-DvA3Wy_F.mjs} +0 -0
  201. /package/dist/shared/{index-BcCZMWAj.cjs → index-PlyLRNmb.cjs} +0 -0
  202. /package/dist/shared/{index-zJN0M-bx.cjs → index-UGOgNLvm.cjs} +0 -0
  203. /package/dist/shared/{index-yf2Ijz_G.mjs → index-WP9Dbscv.mjs} +0 -0
  204. /package/dist/shared/{index-CbCpXtYr.mjs → index-YsBzyp9n.mjs} +0 -0
  205. /package/dist/shared/{index-BTPk2zzq.cjs → index-ceTTRCGJ.cjs} +0 -0
  206. /package/dist/shared/{index-C6jcSQSF.mjs → index-mTWXYnLm.mjs} +0 -0
  207. /package/dist/shared/{index-Cy_Glkc-.mjs → index-seQHtqdh.mjs} +0 -0
  208. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-BZQLyvw8.cjs → index.vue_vue_type_style_index_0_lang-C6urLjSf.cjs} +0 -0
  209. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-ztD-It-2.mjs → index.vue_vue_type_style_index_0_lang-CVxWn-Vs.mjs} +0 -0
  210. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs → index.vue_vue_type_style_index_0_lang-CWz689KH.cjs} +0 -0
  211. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-D1kpIund.mjs} +0 -0
@@ -0,0 +1,54 @@
1
+ import { defineComponent as n, computed as c, h as f } from "vue";
2
+ import { ElAvatar as l } from "element-plus";
3
+ const o = (t) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t === "tabindex" || t === "tabIndex" || t.startsWith("data-") || t.startsWith("aria-"), m = n({
4
+ name: "QyAvatar",
5
+ inheritAttrs: !1,
6
+ props: {
7
+ size: {
8
+ type: [Number, String]
9
+ },
10
+ shape: {
11
+ type: String,
12
+ default: "circle"
13
+ },
14
+ icon: {
15
+ type: [String, Object]
16
+ },
17
+ src: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ alt: String,
22
+ srcSet: String,
23
+ fit: {
24
+ type: String,
25
+ default: "cover"
26
+ }
27
+ },
28
+ emits: {
29
+ error: () => !0
30
+ },
31
+ setup(t, { attrs: i, slots: r, emit: a }) {
32
+ const s = c(
33
+ () => Object.fromEntries(Object.entries(i).filter(([e]) => o(e)))
34
+ );
35
+ return () => f(
36
+ l,
37
+ {
38
+ ...s.value,
39
+ size: t.size,
40
+ shape: t.shape,
41
+ icon: t.icon,
42
+ src: t.src,
43
+ alt: t.alt,
44
+ srcSet: t.srcSet,
45
+ fit: t.fit,
46
+ onError: (e) => a("error", e)
47
+ },
48
+ r.default ? { default: r.default } : void 0
49
+ );
50
+ }
51
+ });
52
+ export {
53
+ m as _
54
+ };
@@ -0,0 +1,18 @@
1
+ import { defineComponent as e } from "vue";
2
+ const l = e({
3
+ name: "QyTabPane",
4
+ inheritAttrs: !1,
5
+ props: {
6
+ label: { type: String, default: "" },
7
+ name: { type: [String, Number], required: !1 },
8
+ closable: { type: Boolean, required: !1 },
9
+ disabled: { type: Boolean, default: !1 },
10
+ lazy: { type: Boolean, default: !1 }
11
+ },
12
+ setup() {
13
+ return () => null;
14
+ }
15
+ });
16
+ export {
17
+ l as _
18
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),r=t.defineComponent({name:"QyDescriptionsItem",inheritAttrs:!1,props:{label:{type:String,default:""},span:{type:Number,default:1},rowspan:{type:Number,default:1},width:{type:[String,Number],default:""},minWidth:{type:[String,Number],default:""},labelWidth:{type:[String,Number],required:!1},align:{type:String,default:"left",validator:e=>["left","center","right"].includes(e)},labelAlign:{type:String,required:!1,validator:e=>["left","center","right"].includes(e)},className:{type:String,default:""},labelClassName:{type:String,default:""}},setup(){return()=>null}});exports._sfc_main=r;
@@ -0,0 +1 @@
1
+ "use strict";const r=require("vue"),c=require("element-plus"),l=t=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t==="tabindex"||t==="tabIndex"||t.startsWith("data-")||t.startsWith("aria-"),f=r.defineComponent({name:"QyAvatar",inheritAttrs:!1,props:{size:{type:[Number,String]},shape:{type:String,default:"circle"},icon:{type:[String,Object]},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:String,default:"cover"}},emits:{error:()=>!0},setup(t,{attrs:a,slots:i,emit:s}){const n=r.computed(()=>Object.fromEntries(Object.entries(a).filter(([e])=>l(e))));return()=>r.h(c.ElAvatar,{...n.value,size:t.size,shape:t.shape,icon:t.icon,src:t.src,alt:t.alt,srcSet:t.srcSet,fit:t.fit,onError:e=>s("error",e)},i.default?{default:i.default}:void 0)}});exports._sfc_main=f;
@@ -0,0 +1,31 @@
1
+ import { defineComponent as t } from "vue";
2
+ const l = t({
3
+ name: "QyDescriptionsItem",
4
+ inheritAttrs: !1,
5
+ props: {
6
+ label: { type: String, default: "" },
7
+ span: { type: Number, default: 1 },
8
+ rowspan: { type: Number, default: 1 },
9
+ width: { type: [String, Number], default: "" },
10
+ minWidth: { type: [String, Number], default: "" },
11
+ labelWidth: { type: [String, Number], required: !1 },
12
+ align: {
13
+ type: String,
14
+ default: "left",
15
+ validator: (e) => ["left", "center", "right"].includes(e)
16
+ },
17
+ labelAlign: {
18
+ type: String,
19
+ required: !1,
20
+ validator: (e) => ["left", "center", "right"].includes(e)
21
+ },
22
+ className: { type: String, default: "" },
23
+ labelClassName: { type: String, default: "" }
24
+ },
25
+ setup() {
26
+ return () => null;
27
+ }
28
+ });
29
+ export {
30
+ l as _
31
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),a=require("element-plus"),i=e.defineComponent({name:"QySkeletonItem",inheritAttrs:!1,__name:"index",props:{variant:{default:"text"}},setup(r){const s=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(s).filter(([t])=>t==="class"||t==="style"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));return(t,c)=>(e.openBlock(),e.createBlock(e.unref(a.ElSkeletonItem),e.mergeProps(n.value,{variant:r.variant}),null,16,["variant"]))}});exports._sfc_main=i;
@@ -0,0 +1,43 @@
1
+ import { defineComponent as n, useAttrs as s, computed as a, openBlock as c, createBlock as l, unref as d, mergeProps as p, withCtx as f, renderSlot as u } from "vue";
2
+ import { ElDivider as m } from "element-plus";
3
+ const S = /* @__PURE__ */ n({
4
+ name: "QyDivider",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ direction: {
9
+ type: String,
10
+ default: "horizontal"
11
+ },
12
+ contentPosition: {
13
+ type: String,
14
+ default: "center"
15
+ },
16
+ borderStyle: {
17
+ type: String,
18
+ default: "solid"
19
+ }
20
+ },
21
+ setup(r) {
22
+ const e = r, o = s(), i = a(
23
+ () => Object.fromEntries(
24
+ Object.entries(o).filter(
25
+ ([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
26
+ )
27
+ )
28
+ );
29
+ return (t, _) => (c(), l(d(m), p(i.value, {
30
+ direction: e.direction,
31
+ "content-position": e.contentPosition,
32
+ "border-style": e.borderStyle
33
+ }), {
34
+ default: f(() => [
35
+ u(t.$slots, "default")
36
+ ]),
37
+ _: 3
38
+ }, 16, ["direction", "content-position", "border-style"]));
39
+ }
40
+ });
41
+ export {
42
+ S as _
43
+ };
@@ -0,0 +1,42 @@
1
+ import { defineComponent as r, useAttrs as s, computed as i, openBlock as d, createBlock as m, unref as u, mergeProps as f, createSlots as c, withCtx as a, renderSlot as o } from "vue";
2
+ import { ElSkeleton as h } from "element-plus";
3
+ const B = /* @__PURE__ */ r({
4
+ name: "QySkeleton",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ animated: { type: Boolean, default: !1 },
9
+ count: { default: 1 },
10
+ rows: { default: 3 },
11
+ loading: { type: Boolean, default: !0 },
12
+ throttle: {}
13
+ },
14
+ setup(e) {
15
+ const l = s(), n = i(() => Object.fromEntries(Object.entries(l).filter(
16
+ ([t]) => t === "class" || t === "style" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
17
+ )));
18
+ return (t, p) => (d(), m(u(h), f(n.value, {
19
+ animated: e.animated,
20
+ count: e.count,
21
+ rows: e.rows,
22
+ loading: e.loading,
23
+ throttle: e.throttle
24
+ }), c({
25
+ default: a(() => [
26
+ o(t.$slots, "default")
27
+ ]),
28
+ _: 2
29
+ }, [
30
+ t.$slots.template ? {
31
+ name: "template",
32
+ fn: a(() => [
33
+ o(t.$slots, "template")
34
+ ]),
35
+ key: "0"
36
+ } : void 0
37
+ ]), 1040, ["animated", "count", "rows", "loading", "throttle"]));
38
+ }
39
+ });
40
+ export {
41
+ B as _
42
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),o=require("element-plus"),r=t.defineComponent({name:"QySkeleton",inheritAttrs:!1,__name:"index",props:{animated:{type:Boolean,default:!1},count:{default:1},rows:{default:3},loading:{type:Boolean,default:!0},throttle:{}},setup(a){const n=t.useAttrs(),l=t.computed(()=>Object.fromEntries(Object.entries(n).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));return(e,s)=>(t.openBlock(),t.createBlock(t.unref(o.ElSkeleton),t.mergeProps(l.value,{animated:a.animated,count:a.count,rows:a.rows,loading:a.loading,throttle:a.throttle}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.template?{name:"template",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"template")]),key:"0"}:void 0]),1040,["animated","count","rows","loading","throttle"]))}});exports._sfc_main=r;
@@ -0,0 +1,62 @@
1
+ import { defineComponent as m, useAttrs as d, ref as u, computed as o, openBlock as p, createBlock as v, unref as A, mergeProps as b, createSlots as h, withCtx as i, renderSlot as l } from "vue";
2
+ import { ElCollapseItem as $ } from "element-plus";
3
+ const j = /* @__PURE__ */ m({
4
+ name: "QyCollapseItem",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ title: { default: "" },
9
+ name: {},
10
+ icon: {},
11
+ disabled: { type: Boolean, default: !1 }
12
+ },
13
+ setup(t, { expose: n }) {
14
+ const r = d(), a = u(), c = o(
15
+ () => Object.fromEntries(
16
+ Object.entries(r).filter(
17
+ ([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
18
+ )
19
+ )
20
+ ), f = o(() => {
21
+ var e;
22
+ return ((e = a.value) == null ? void 0 : e.isActive) ?? !1;
23
+ });
24
+ return n({ isActive: f }), (e, C) => (p(), v(A($), b({
25
+ ref_key: "collapseItemRef",
26
+ ref: a
27
+ }, c.value, {
28
+ class: "qy-collapse-item",
29
+ title: t.title,
30
+ name: t.name,
31
+ icon: t.icon,
32
+ disabled: t.disabled
33
+ }), h({
34
+ default: i(() => [
35
+ l(e.$slots, "default")
36
+ ]),
37
+ _: 2
38
+ }, [
39
+ e.$slots.title ? {
40
+ name: "title",
41
+ fn: i((s) => [
42
+ l(e.$slots, "title", {
43
+ isActive: s.isActive
44
+ })
45
+ ]),
46
+ key: "0"
47
+ } : void 0,
48
+ e.$slots.icon ? {
49
+ name: "icon",
50
+ fn: i((s) => [
51
+ l(e.$slots, "icon", {
52
+ isActive: s.isActive
53
+ })
54
+ ]),
55
+ key: "1"
56
+ } : void 0
57
+ ]), 1040, ["title", "name", "icon", "disabled"]));
58
+ }
59
+ });
60
+ export {
61
+ j as _
62
+ };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),s=require("element-plus"),c=e.defineComponent({name:"QyDivider",inheritAttrs:!1,__name:"index",props:{direction:{type:String,default:"horizontal"},contentPosition:{type:String,default:"center"},borderStyle:{type:String,default:"solid"}},setup(n){const r=n,i=e.useAttrs(),o=e.computed(()=>Object.fromEntries(Object.entries(i).filter(([t])=>t==="class"||t==="style"||t==="id"||t==="role"||t==="title"||t.startsWith("data-")||t.startsWith("aria-"))));return(t,l)=>(e.openBlock(),e.createBlock(e.unref(s.ElDivider),e.mergeProps(o.value,{direction:r.direction,"content-position":r.contentPosition,"border-style":r.borderStyle}),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3},16,["direction","content-position","border-style"]))}});exports._sfc_main=c;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as C, useAttrs as G, computed as d, ref as S, openBlock as o, createBlock as u, unref as $, mergeProps as i, withCtx as f, renderSlot as m, createElementBlock as E, Fragment as O, renderList as w, resolveDynamicComponent as x, createTextVNode as A, toDisplayString as P } from "vue";
2
2
  import { ElRadioButton as j, ElRadioGroup as D } from "element-plus";
3
- import { R as N } from "./index-DrJuMzr1.mjs";
3
+ import { R as N } from "./index-CUITnlPr.mjs";
4
4
  const I = /* @__PURE__ */ C({
5
5
  name: "QyRadioGroup",
6
6
  inheritAttrs: !1,
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),o=require("element-plus"),c=t.defineComponent({name:"QyLink",inheritAttrs:!1,__name:"index",props:{type:{type:String,default:void 0},underline:{type:[Boolean,String],default:void 0},disabled:Boolean,href:{type:String,default:""},target:{type:String,default:"_self"},icon:{type:[String,Object,Function],default:void 0}},emits:["click"],setup(n,{emit:i}){const r=i,l=t.useAttrs(),a=t.computed(()=>Object.fromEntries(Object.entries(l).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e==="rel"||e==="download"||e==="hreflang"||e==="referrerpolicy"||e==="ping"||e==="tabindex"||e.startsWith("data-")||e.startsWith("aria-"))));function s(e){r("click",e)}return(e,d)=>(t.openBlock(),t.createBlock(t.unref(o.ElLink),t.mergeProps(a.value,{type:n.type,underline:n.underline,disabled:n.disabled,href:n.href,target:n.target,icon:n.icon,onClick:s}),{icon:t.withCtx(()=>[t.renderSlot(e.$slots,"icon")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["type","underline","disabled","href","target","icon"]))}});exports._sfc_main=c;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),r=require("element-plus"),d=t.defineComponent({name:"QyCollapseItem",inheritAttrs:!1,__name:"index",props:{title:{default:""},name:{},icon:{},disabled:{type:Boolean,default:!1}},setup(s,{expose:a}){const n=t.useAttrs(),l=t.ref(),o=t.computed(()=>Object.fromEntries(Object.entries(n).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),c=t.computed(()=>{var e;return((e=l.value)==null?void 0:e.isActive)??!1});return a({isActive:c}),(e,f)=>(t.openBlock(),t.createBlock(t.unref(r.ElCollapseItem),t.mergeProps({ref_key:"collapseItemRef",ref:l},o.value,{class:"qy-collapse-item",title:s.title,name:s.name,icon:s.icon,disabled:s.disabled}),t.createSlots({default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:2},[e.$slots.title?{name:"title",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"title",{isActive:i.isActive})]),key:"0"}:void 0,e.$slots.icon?{name:"icon",fn:t.withCtx(i=>[t.renderSlot(e.$slots,"icon",{isActive:i.isActive})]),key:"1"}:void 0]),1040,["title","name","icon","disabled"]))}});exports._sfc_main=d;
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),m=require("element-plus"),f=require("./index-BcCZMWAj.cjs"),b=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},disabled:{type:Boolean,default:!1},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:i}){const l=d,s=i,o=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(o).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){s("update:modelValue",a.slice())}function u(a){s("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(n.value,{"model-value":l.modelValue,disabled:l.disabled,min:l.min,max:l.max,size:l.size,"aria-label":l.ariaLabel,"onUpdate:modelValue":r,onChange:u}),{default:e.withCtx(()=>[a.$slots.default?e.renderSlot(a.$slots,"default",{},void 0,void 0,0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.options,(t,c)=>(e.openBlock(),e.createBlock(f.Checkbox,{key:`${String(t.value)}-${c}`,"model-value":l.modelValue.includes(t.value),value:t.value,disabled:l.disabled||t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["model-value","value","disabled"]))),128))]),_:3},16,["model-value","disabled","min","max","size","aria-label"]))}});exports._sfc_main=b;
1
+ "use strict";const e=require("vue"),m=require("element-plus"),f=require("./index-PlyLRNmb.cjs"),b=e.defineComponent({name:"QyCheckboxGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},options:{default:()=>[]},disabled:{type:Boolean,default:!1},min:{},max:{},size:{default:void 0},ariaLabel:{}},emits:["update:modelValue","change"],setup(d,{emit:i}){const l=d,s=i,o=e.useAttrs(),n=e.computed(()=>Object.fromEntries(Object.entries(o).filter(([a])=>a==="class"||a==="style"||a==="role"||a==="title"||a==="id"||a.startsWith("data-")||a.startsWith("aria-"))));function r(a){s("update:modelValue",a.slice())}function u(a){s("change",a.slice())}return(a,p)=>(e.openBlock(),e.createBlock(e.unref(m.ElCheckboxGroup),e.mergeProps(n.value,{"model-value":l.modelValue,disabled:l.disabled,min:l.min,max:l.max,size:l.size,"aria-label":l.ariaLabel,"onUpdate:modelValue":r,onChange:u}),{default:e.withCtx(()=>[a.$slots.default?e.renderSlot(a.$slots,"default",{},void 0,void 0,0):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(l.options,(t,c)=>(e.openBlock(),e.createBlock(f.Checkbox,{key:`${String(t.value)}-${c}`,"model-value":l.modelValue.includes(t.value),value:t.value,disabled:l.disabled||t.disabled},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.label),1)]),_:2},1032,["model-value","value","disabled"]))),128))]),_:3},16,["model-value","disabled","min","max","size","aria-label"]))}});exports._sfc_main=b;
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as p, useAttrs as b, computed as h, openBlock as t, createBlock as s, unref as v, mergeProps as x, withCtx as i, renderSlot as g, createElementBlock as C, Fragment as V, renderList as _, createTextVNode as z, toDisplayString as B } from "vue";
2
2
  import { ElCheckboxGroup as $ } from "element-plus";
3
- import { C as A } from "./index-yf2Ijz_G.mjs";
3
+ import { C as A } from "./index-WP9Dbscv.mjs";
4
4
  const k = /* @__PURE__ */ p({
5
5
  name: "QyCheckboxGroup",
6
6
  inheritAttrs: !1,
@@ -0,0 +1,19 @@
1
+ import { defineComponent as n, useAttrs as s, computed as o, openBlock as i, createBlock as l, unref as c, mergeProps as m } from "vue";
2
+ import { ElSkeletonItem as f } from "element-plus";
3
+ const d = /* @__PURE__ */ n({
4
+ name: "QySkeletonItem",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ variant: { default: "text" }
9
+ },
10
+ setup(e) {
11
+ const r = s(), a = o(() => Object.fromEntries(Object.entries(r).filter(
12
+ ([t]) => t === "class" || t === "style" || t === "role" || t === "title" || t.startsWith("data-") || t.startsWith("aria-")
13
+ )));
14
+ return (t, p) => (i(), l(c(f), m(a.value, { variant: e.variant }), null, 16, ["variant"]));
15
+ }
16
+ });
17
+ export {
18
+ d as _
19
+ };
@@ -0,0 +1,63 @@
1
+ import { defineComponent as s, useAttrs as c, computed as f, openBlock as u, createBlock as m, unref as g, mergeProps as h, withCtx as i, renderSlot as n } from "vue";
2
+ import { ElLink as p } from "element-plus";
3
+ const B = /* @__PURE__ */ s({
4
+ name: "QyLink",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ type: {
9
+ type: String,
10
+ default: void 0
11
+ },
12
+ underline: {
13
+ type: [Boolean, String],
14
+ default: void 0
15
+ },
16
+ disabled: Boolean,
17
+ href: {
18
+ type: String,
19
+ default: ""
20
+ },
21
+ target: {
22
+ type: String,
23
+ default: "_self"
24
+ },
25
+ icon: {
26
+ type: [String, Object, Function],
27
+ default: void 0
28
+ }
29
+ },
30
+ emits: ["click"],
31
+ setup(e, { emit: r }) {
32
+ const l = r, a = c(), o = f(
33
+ () => Object.fromEntries(
34
+ Object.entries(a).filter(
35
+ ([t]) => t === "class" || t === "style" || t === "id" || t === "role" || t === "title" || t === "rel" || t === "download" || t === "hreflang" || t === "referrerpolicy" || t === "ping" || t === "tabindex" || t.startsWith("data-") || t.startsWith("aria-")
36
+ )
37
+ )
38
+ );
39
+ function d(t) {
40
+ l("click", t);
41
+ }
42
+ return (t, b) => (u(), m(g(p), h(o.value, {
43
+ type: e.type,
44
+ underline: e.underline,
45
+ disabled: e.disabled,
46
+ href: e.href,
47
+ target: e.target,
48
+ icon: e.icon,
49
+ onClick: d
50
+ }), {
51
+ icon: i(() => [
52
+ n(t.$slots, "icon")
53
+ ]),
54
+ default: i(() => [
55
+ n(t.$slots, "default")
56
+ ]),
57
+ _: 3
58
+ }, 16, ["type", "underline", "disabled", "href", "target", "icon"]));
59
+ }
60
+ });
61
+ export {
62
+ B as _
63
+ };
@@ -1 +1 @@
1
- "use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-QQkDJv3q.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
1
+ "use strict";const a=require("vue"),u=require("element-plus"),R=require("./index-BqV6vW9P.cjs"),_=a.defineComponent({name:"QyRadioGroup",inheritAttrs:!1,__name:"index",props:{modelValue:{type:[Boolean,String,Number,null],default:void 0},options:{default:()=>[]},labelKey:{default:"label"},valueKey:{default:"value"},disabledKey:{default:"disabled"},disabled:{type:Boolean,default:!1},size:{default:void 0},name:{default:void 0},type:{default:"radio"},border:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(s,{expose:i,emit:c}){const l=s,d=c,f=a.useAttrs(),m=a.computed(()=>Object.fromEntries(Object.entries(f).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e==="id"||e.startsWith("data-")||e.startsWith("aria-")))),n=a.ref(null),b=a.computed(()=>l.type==="button"?u.ElRadioButton:R.Radio),p=a.computed(()=>l.options.map(e=>{const r=e[l.labelKey],t=e[l.valueKey],o=v(t)?t:e.value??e.label??"";return{raw:e,label:String(r??e.label??e.value??""),value:o,disabled:!!e[l.disabledKey]}}));function v(e){return typeof e=="boolean"||typeof e=="string"||typeof e=="number"}function y(e){const r={modelValue:l.modelValue??void 0,value:e.value,label:e.label,disabled:e.disabled,size:l.size,name:l.name};return l.type==="button"?r:{...r,border:l.border}}function g(e,r){return`${String(e.value??e.label)}-${r}`}function h(e){d("update:modelValue",e)}function V(e){d("change",e)}function B(){return n.value}return i({getRadioGroupInstance:B}),(e,r)=>(a.openBlock(),a.createBlock(a.unref(u.ElRadioGroup),a.mergeProps({ref_key:"radioGroupRef",ref:n},m.value,{"model-value":l.modelValue,disabled:l.disabled,size:l.size,name:l.name,"onUpdate:modelValue":h,onChange:V}),{default:a.withCtx(()=>[e.$slots.default?a.renderSlot(e.$slots,"default",{},void 0,void 0,0):(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:1},a.renderList(p.value,(t,o)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(b.value),a.mergeProps({key:g(t,o)},{ref_for:!0},y(t)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"option",{option:t.raw,label:t.label,value:t.value,disabled:t.disabled},()=>[a.createTextVNode(a.toDisplayString(t.label),1)])]),_:2},1040))),128))]),_:3},16,["model-value","disabled","size","name"]))}});exports._sfc_main=_;
@@ -0,0 +1,98 @@
1
+ import { defineComponent as g, useAttrs as h, ref as v, computed as w, openBlock as x, createBlock as p, unref as z, mergeProps as A, withCtx as B, renderSlot as T } from "vue";
2
+ import { ElScrollbar as C } from "element-plus";
3
+ const N = /* @__PURE__ */ g({
4
+ name: "QyScrollbar",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ distance: { type: Number, default: 0 },
9
+ height: { type: [String, Number], default: "" },
10
+ maxHeight: { type: [String, Number], default: "" },
11
+ native: { type: Boolean, default: !1 },
12
+ wrapStyle: { type: [String, Object, Array, Boolean], default: "" },
13
+ wrapClass: { type: [String, Array], default: "" },
14
+ viewClass: { type: [String, Array], default: "" },
15
+ viewStyle: { type: [String, Object, Array, Boolean], default: "" },
16
+ noresize: { type: Boolean, default: !1 },
17
+ tag: { type: String, default: "div" },
18
+ always: { type: Boolean, default: !1 },
19
+ minSize: { type: Number, default: 20 },
20
+ tabindex: { type: [String, Number], default: void 0 },
21
+ id: { type: String, default: void 0 },
22
+ role: { type: String, default: void 0 },
23
+ ariaLabel: { type: String, default: void 0 },
24
+ ariaOrientation: { type: String, default: void 0 }
25
+ },
26
+ emits: ["scroll", "end-reached"],
27
+ setup(t, { expose: o, emit: s }) {
28
+ const i = s, c = h(), l = v(), d = w(
29
+ () => Object.fromEntries(
30
+ Object.entries(c).filter(
31
+ ([e]) => e === "class" || e === "style" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
32
+ )
33
+ )
34
+ );
35
+ function f(e) {
36
+ i("scroll", Object.freeze({
37
+ scrollTop: e.scrollTop,
38
+ scrollLeft: e.scrollLeft
39
+ }));
40
+ }
41
+ function u(e) {
42
+ i("end-reached", e);
43
+ }
44
+ function y(e, a) {
45
+ var r, n;
46
+ if (typeof e == "number") {
47
+ typeof a == "number" && ((r = l.value) == null || r.scrollTo(e, a));
48
+ return;
49
+ }
50
+ (n = l.value) == null || n.scrollTo(e);
51
+ }
52
+ function m(e) {
53
+ var a;
54
+ (a = l.value) == null || a.setScrollTop(e);
55
+ }
56
+ function S(e) {
57
+ var a;
58
+ (a = l.value) == null || a.setScrollLeft(e);
59
+ }
60
+ function b() {
61
+ var e;
62
+ (e = l.value) == null || e.update();
63
+ }
64
+ return o({ scrollTo: y, setScrollTop: m, setScrollLeft: S, update: b }), (e, a) => (x(), p(z(C), A({
65
+ ref_key: "scrollbarRef",
66
+ ref: l
67
+ }, d.value, {
68
+ class: "qy-scrollbar",
69
+ distance: t.distance,
70
+ height: t.height,
71
+ "max-height": t.maxHeight,
72
+ native: t.native,
73
+ "wrap-style": t.wrapStyle,
74
+ "wrap-class": t.wrapClass,
75
+ "view-class": t.viewClass,
76
+ "view-style": t.viewStyle,
77
+ noresize: t.noresize,
78
+ tag: t.tag,
79
+ always: t.always,
80
+ "min-size": t.minSize,
81
+ tabindex: t.tabindex,
82
+ id: t.id,
83
+ role: t.role,
84
+ "aria-label": t.ariaLabel,
85
+ "aria-orientation": t.ariaOrientation,
86
+ onScroll: f,
87
+ onEndReached: u
88
+ }), {
89
+ default: B(() => [
90
+ T(e.$slots, "default")
91
+ ]),
92
+ _: 3
93
+ }, 16, ["distance", "height", "max-height", "native", "wrap-style", "wrap-class", "view-class", "view-style", "noresize", "tag", "always", "min-size", "tabindex", "id", "role", "aria-label", "aria-orientation"]));
94
+ }
95
+ });
96
+ export {
97
+ N as _
98
+ };
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),V=require("element-plus"),x=t.defineComponent({name:"QyCollapse",inheritAttrs:!1,__name:"index",props:{modelValue:{default:()=>[]},accordion:{type:Boolean,default:!1},expandIconPosition:{default:"right"},beforeCollapse:{}},emits:["update:modelValue","change"],setup(l,{expose:i,emit:d}){const a=l,s=d,u=t.useAttrs(),c=t.ref(),n=t.ref(a.modelValue),m=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function r(e){const o=Array.isArray(e)?e:[e];return a.accordion?o.slice(0,1):o}t.watch(()=>a.modelValue,e=>{n.value=e},{deep:!0});const f=t.computed(()=>r(a.modelValue));function p(e){n.value=e,s("update:modelValue",e),t.nextTick(()=>{n.value=a.modelValue})}function h(e){s("change",e)}function v(e){var o;(o=c.value)==null||o.setActiveNames(r(e))}return i({activeNames:f,setActiveNames:v}),(e,o)=>(t.openBlock(),t.createBlock(t.unref(V.ElCollapse),t.mergeProps({ref_key:"collapseRef",ref:c},m.value,{class:"qy-collapse","model-value":n.value,accordion:l.accordion,"expand-icon-position":l.expandIconPosition,"before-collapse":l.beforeCollapse,"onUpdate:modelValue":p,onChange:h}),{default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},16,["model-value","accordion","expand-icon-position","before-collapse"]))}});exports._sfc_main=x;
@@ -0,0 +1,67 @@
1
+ import { defineComponent as x, useAttrs as A, ref as r, computed as i, watch as C, openBlock as b, createBlock as g, unref as N, mergeProps as B, withCtx as P, renderSlot as j, nextTick as w } from "vue";
2
+ import { ElCollapse as E } from "element-plus";
3
+ const O = /* @__PURE__ */ x({
4
+ name: "QyCollapse",
5
+ inheritAttrs: !1,
6
+ __name: "index",
7
+ props: {
8
+ modelValue: { default: () => [] },
9
+ accordion: { type: Boolean, default: !1 },
10
+ expandIconPosition: { default: "right" },
11
+ beforeCollapse: {}
12
+ },
13
+ emits: ["update:modelValue", "change"],
14
+ setup(a, { expose: d, emit: u }) {
15
+ const t = a, n = u, m = A(), s = r(), l = r(t.modelValue), f = i(
16
+ () => Object.fromEntries(
17
+ Object.entries(m).filter(
18
+ ([e]) => e === "class" || e === "style" || e === "id" || e === "role" || e === "title" || e.startsWith("data-") || e.startsWith("aria-")
19
+ )
20
+ )
21
+ );
22
+ function c(e) {
23
+ const o = Array.isArray(e) ? e : [e];
24
+ return t.accordion ? o.slice(0, 1) : o;
25
+ }
26
+ C(
27
+ () => t.modelValue,
28
+ (e) => {
29
+ l.value = e;
30
+ },
31
+ { deep: !0 }
32
+ );
33
+ const p = i(() => c(t.modelValue));
34
+ function h(e) {
35
+ l.value = e, n("update:modelValue", e), w(() => {
36
+ l.value = t.modelValue;
37
+ });
38
+ }
39
+ function V(e) {
40
+ n("change", e);
41
+ }
42
+ function v(e) {
43
+ var o;
44
+ (o = s.value) == null || o.setActiveNames(c(e));
45
+ }
46
+ return d({ activeNames: p, setActiveNames: v }), (e, o) => (b(), g(N(E), B({
47
+ ref_key: "collapseRef",
48
+ ref: s
49
+ }, f.value, {
50
+ class: "qy-collapse",
51
+ "model-value": l.value,
52
+ accordion: a.accordion,
53
+ "expand-icon-position": a.expandIconPosition,
54
+ "before-collapse": a.beforeCollapse,
55
+ "onUpdate:modelValue": h,
56
+ onChange: V
57
+ }), {
58
+ default: P(() => [
59
+ j(e.$slots, "default")
60
+ ]),
61
+ _: 3
62
+ }, 16, ["model-value", "accordion", "expand-icon-position", "before-collapse"]));
63
+ }
64
+ });
65
+ export {
66
+ O as _
67
+ };
@@ -0,0 +1 @@
1
+ "use strict";const l=require("vue"),R=require("element-plus"),I=l.defineComponent({name:"QyCascader",inheritAttrs:!1,__name:"index",props:{modelValue:{},options:{default:()=>[]},props:{default:()=>({})},size:{},placeholder:{},disabled:{type:Boolean},clearable:{type:Boolean,default:!0},clearIcon:{},filterable:{type:Boolean,default:!1},filterMethod:{},separator:{default:" / "},showAllLevels:{type:Boolean,default:!0},collapseTags:{type:Boolean,default:!1},maxCollapseTags:{default:1},collapseTagsTooltip:{type:Boolean,default:!1},maxCollapseTagsTooltipHeight:{},debounce:{default:300},beforeFilter:{},placement:{},fallbackPlacements:{},popperClass:{},popperStyle:{type:[Boolean,null,String,Object,Array]},teleported:{type:Boolean,default:!0},effect:{},persistent:{type:Boolean,default:!0},showCheckedStrategy:{},fitInputWidth:{type:[Boolean,Number]},tagType:{},tagEffect:{},validateEvent:{type:Boolean,default:!0},emptyValues:{},valueOnClear:{},virtualScroll:{type:Boolean,default:!1},itemSize:{default:34},height:{default:204}},emits:["update:modelValue","change","focus","blur","clear","visible-change","expand-change","remove-tag"],setup(a,{expose:b,emit:v}){const n=a,r=v,y=l.useAttrs(),f=l.ref(),g=l.computed(()=>Object.fromEntries(Object.entries(y).filter(([e])=>e==="class"||e==="style"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),C=l.computed(()=>({...n.emptyValues!==void 0?{emptyValues:n.emptyValues}:{},...n.valueOnClear!==void 0?{valueOnClear:n.valueOnClear}:{}})),S=l.computed(()=>({...g.value,...C.value}));function c(e,t={}){return Object.freeze({uid:e.uid,level:e.level,value:e.value,label:e.label,pathValues:Object.freeze([...e.pathValues]),pathLabels:Object.freeze([...e.pathLabels]),data:e.data,root:e.root,isLeaf:t.isLeaf??e.isLeaf,isDisabled:t.isDisabled??e.isDisabled,checked:e.checked,indeterminate:e.indeterminate,loading:e.loading,loaded:e.loaded??!1})}function w(e,t){var u,m;const o=typeof t.leaf=="string"?t.leaf:"leaf",s=t.children??"children",i=(u=e.data)==null?void 0:u[o];if(typeof i=="boolean")return i;const d=Array.isArray(e.childrenData)?e.childrenData:(m=e.data)==null?void 0:m[s];return Array.isArray(d)&&d.length>0?!1:t.lazy?e.loaded===!0:!0}function p(e,t,o=new Set){var u;if(o.has(e))return!1;o.add(e);const s=typeof t.disabled=="string"?t.disabled:"disabled",i=!!((u=e.data)!=null&&u[s]),d=t.checkStrictly!==!0&&e.parent?p(e.parent,t,o):!1;return i||d}function h(e,t){return c(e,{isLeaf:w(e,t),isDisabled:p(e,t)})}const k=l.computed(()=>{const e=n.props??{},t={...e};return typeof e.disabled=="function"&&(t.disabled=(o,s)=>{var i;return((i=e.disabled)==null?void 0:i.call(e,h(s,e)))??!1}),typeof e.leaf=="function"&&(t.leaf=(o,s)=>{var i;return((i=e.leaf)==null?void 0:i.call(e,h(s,e)))??!1}),typeof e.lazyLoad=="function"&&(t.lazyLoad=(o,s,i)=>{var d;return(d=e.lazyLoad)==null?void 0:d.call(e,c(o),s,i)}),t}),V=l.computed(()=>n.filterMethod?(e,t)=>{var o;return((o=n.filterMethod)==null?void 0:o.call(n,c(e),t))??!1}:void 0);function T(e){return{...e,node:c(e.node)}}function z(e,t){return e.map(o=>{const s=c(o.node);return Object.freeze({uid:s.uid,value:s.value,label:s.label,pathValues:s.pathValues,pathLabels:s.pathLabels,data:s.data,text:o.text,hitState:o.hitState,closable:o.closable,remove:()=>t(o)})})}function B(e){r("update:modelValue",e)}function L(e){r("change",e)}function x(e){r("focus",e)}function $(e){r("blur",e)}function A(){r("clear")}function O(e){r("visible-change",e)}function D(e){r("expand-change",e)}function P(e){r("remove-tag",e)}function E(){var e;(e=f.value)==null||e.focus()}function j(){var e;(e=f.value)==null||e.blur()}function F(){var e,t;(t=(e=f.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!0)}function M(){var e,t;(t=(e=f.value)==null?void 0:e.togglePopperVisible)==null||t.call(e,!1)}return b({focus:E,blur:j,open:F,close:M}),(e,t)=>(l.openBlock(),l.createBlock(l.unref(R.ElCascader),l.mergeProps({ref_key:"cascaderRef",ref:f},S.value,{class:"qy-cascader","model-value":a.modelValue,options:a.options,props:k.value,size:a.size,placeholder:a.placeholder,disabled:a.disabled,clearable:a.clearable,"clear-icon":a.clearIcon,filterable:a.filterable,"filter-method":V.value,separator:a.separator,"show-all-levels":a.showAllLevels,"collapse-tags":a.collapseTags,"max-collapse-tags":a.maxCollapseTags,"collapse-tags-tooltip":a.collapseTagsTooltip,"max-collapse-tags-tooltip-height":a.maxCollapseTagsTooltipHeight,debounce:a.debounce,"before-filter":a.beforeFilter,placement:a.placement,"fallback-placements":a.fallbackPlacements,"popper-class":a.popperClass,"popper-style":a.popperStyle,teleported:a.teleported,effect:a.effect,persistent:a.persistent,"show-checked-strategy":a.showCheckedStrategy,"fit-input-width":a.fitInputWidth,"tag-type":a.tagType,"tag-effect":a.tagEffect,"validate-event":a.validateEvent,"virtual-scroll":a.virtualScroll,"item-size":a.itemSize,height:a.height,"onUpdate:modelValue":B,onChange:L,onFocus:x,onBlur:$,onClear:A,onVisibleChange:O,onExpandChange:D,onRemoveTag:P}),l.createSlots({_:2},[e.$slots.prefix?{name:"prefix",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.header?{name:"header",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"header")]),key:"1"}:void 0,e.$slots.footer?{name:"footer",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"footer")]),key:"2"}:void 0,e.$slots.empty?{name:"empty",fn:l.withCtx(()=>[l.renderSlot(e.$slots,"empty")]),key:"3"}:void 0,e.$slots.default?{name:"default",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"default",l.normalizeProps(l.guardReactiveProps(T(o))))]),key:"4"}:void 0,e.$slots["suggestion-item"]?{name:"suggestion-item",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"suggestion-item",{item:c(o.item)})]),key:"5"}:void 0,e.$slots.tag?{name:"tag",fn:l.withCtx(o=>[l.renderSlot(e.$slots,"tag",{data:z(o.data,o.deleteTag),remove:s=>s==null?void 0:s.remove()})]),key:"6"}:void 0]),1040,["model-value","options","props","size","placeholder","disabled","clearable","clear-icon","filterable","filter-method","separator","show-all-levels","collapse-tags","max-collapse-tags","collapse-tags-tooltip","max-collapse-tags-tooltip-height","debounce","before-filter","placement","fallback-placements","popper-class","popper-style","teleported","effect","persistent","show-checked-strategy","fit-input-width","tag-type","tag-effect","validate-event","virtual-scroll","item-size","height"]))}});exports._sfc_main=I;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),h=require("element-plus"),v=a.defineComponent({name:"QyScrollbar",inheritAttrs:!1,__name:"index",props:{distance:{type:Number,default:0},height:{type:[String,Number],default:""},maxHeight:{type:[String,Number],default:""},native:{type:Boolean,default:!1},wrapStyle:{type:[String,Object,Array,Boolean],default:""},wrapClass:{type:[String,Array],default:""},viewClass:{type:[String,Array],default:""},viewStyle:{type:[String,Object,Array,Boolean],default:""},noresize:{type:Boolean,default:!1},tag:{type:String,default:"div"},always:{type:Boolean,default:!1},minSize:{type:Number,default:20},tabindex:{type:[String,Number],default:void 0},id:{type:String,default:void 0},role:{type:String,default:void 0},ariaLabel:{type:String,default:void 0},ariaOrientation:{type:String,default:void 0}},emits:["scroll","end-reached"],setup(t,{expose:o,emit:c}){const r=c,d=a.useAttrs(),i=a.ref(),u=a.computed(()=>Object.fromEntries(Object.entries(d).filter(([e])=>e==="class"||e==="style"||e==="title"||e.startsWith("data-")||e.startsWith("aria-"))));function f(e){r("scroll",Object.freeze({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}))}function y(e){r("end-reached",e)}function m(e,l){var n,s;if(typeof e=="number"){typeof l=="number"&&((n=i.value)==null||n.scrollTo(e,l));return}(s=i.value)==null||s.scrollTo(e)}function S(e){var l;(l=i.value)==null||l.setScrollTop(e)}function b(e){var l;(l=i.value)==null||l.setScrollLeft(e)}function g(){var e;(e=i.value)==null||e.update()}return o({scrollTo:m,setScrollTop:S,setScrollLeft:b,update:g}),(e,l)=>(a.openBlock(),a.createBlock(a.unref(h.ElScrollbar),a.mergeProps({ref_key:"scrollbarRef",ref:i},u.value,{class:"qy-scrollbar",distance:t.distance,height:t.height,"max-height":t.maxHeight,native:t.native,"wrap-style":t.wrapStyle,"wrap-class":t.wrapClass,"view-class":t.viewClass,"view-style":t.viewStyle,noresize:t.noresize,tag:t.tag,always:t.always,"min-size":t.minSize,tabindex:t.tabindex,id:t.id,role:t.role,"aria-label":t.ariaLabel,"aria-orientation":t.ariaOrientation,onScroll:f,onEndReached:y}),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16,["distance","height","max-height","native","wrap-style","wrap-class","view-class","view-style","noresize","tag","always","min-size","tabindex","id","role","aria-label","aria-orientation"]))}});exports._sfc_main=v;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue"),d=require("element-plus"),p=t.defineComponent({name:"QyTabs",inheritAttrs:!1,props:{modelValue:{type:[String,Number],required:!1},defaultValue:{type:[String,Number],required:!1},type:{type:String,default:""},tabPosition:{type:String,default:"top"},stretch:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},addable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},beforeLeave:{type:Function,required:!1},tabindex:{type:[String,Number],default:0}},emits:["update:modelValue","tab-change","tab-click","tab-remove","tab-add","edit"],setup(l,{attrs:u,emit:n,slots:i}){const s=t.computed(()=>Object.fromEntries(Object.entries(u).filter(([e])=>e==="class"||e==="style"||e==="id"||e==="role"||e==="title"||e.startsWith("data-")||e.startsWith("aria-")))),b=t.computed(()=>({...s.value,class:["qy-tabs",s.value.class]}));function f(e){const a=t.unref(e.paneName),r=e.props??{};return Object.freeze({name:a??r.name,label:r.label??"",disabled:r.disabled??!1,closable:t.unref(e.isClosable)??r.closable??!1,lazy:r.lazy??!1,active:t.unref(e.active)??!1,index:t.unref(e.index)})}function c(e){return typeof e.type=="object"&&e.type!==null&&e.type.name==="QyTabPane"}function m(e){return Object.fromEntries(Object.entries(e??{}).filter(([a])=>a==="label"||a==="name"||a==="closable"||a==="disabled"||a==="lazy"||a==="class"||a==="style"||a==="id"||a==="role"||a==="title"||a.startsWith("data-")||a.startsWith("aria-")))}function o(e){return e.map(a=>t.isVNode(a)?c(a)?t.h(d.ElTabPane,{...m(a.props),key:a.key??void 0},a.children):a.type===t.Fragment&&Array.isArray(a.children)?t.h(t.Fragment,{key:a.key??void 0},o(a.children)):a:a)}return()=>t.h(d.ElTabs,{...b.value,modelValue:l.modelValue,defaultValue:l.defaultValue,type:l.type,tabPosition:l.tabPosition,stretch:l.stretch,closable:l.closable,addable:l.addable,editable:l.editable,beforeLeave:l.beforeLeave,tabindex:l.tabindex,"onUpdate:modelValue":e=>n("update:modelValue",e),onTabChange:e=>n("tab-change",e),onTabClick:(e,a)=>n("tab-click",f(e),a),onTabRemove:e=>n("tab-remove",e),onTabAdd:()=>n("tab-add"),onEdit:(e,a)=>n("edit",e,a)},{default:()=>{var e;return o(((e=i.default)==null?void 0:e.call(i))??[])},"add-icon":i["add-icon"]})}});exports._sfc_main=p;