@qynpm/ui 1.0.33 → 1.0.35

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 (191) hide show
  1. package/README.md +88 -5
  2. package/dist/index.cjs +7 -4
  3. package/dist/index.mjs +79 -72
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-button/index.cjs +1 -1
  7. package/dist/qy-button/index.mjs +1 -1
  8. package/dist/qy-checkbox/index.cjs +1 -1
  9. package/dist/qy-checkbox/index.mjs +1 -1
  10. package/dist/qy-checkbox-group/index.cjs +1 -1
  11. package/dist/qy-checkbox-group/index.mjs +1 -1
  12. package/dist/qy-collapse/index.cjs +1 -1
  13. package/dist/qy-collapse/index.mjs +1 -1
  14. package/dist/qy-color-picker/index.cjs +1 -0
  15. package/dist/qy-color-picker/index.mjs +7 -0
  16. package/dist/qy-dialog/index.cjs +1 -1
  17. package/dist/qy-dialog/index.mjs +2 -2
  18. package/dist/qy-drawer/index.cjs +1 -1
  19. package/dist/qy-drawer/index.mjs +1 -1
  20. package/dist/qy-dropdown/index.cjs +1 -1
  21. package/dist/qy-dropdown/index.mjs +1 -1
  22. package/dist/qy-file-picker/index.cjs +1 -1
  23. package/dist/qy-file-picker/index.mjs +1 -1
  24. package/dist/qy-form-section/index.cjs +1 -1
  25. package/dist/qy-form-section/index.mjs +1 -1
  26. package/dist/qy-fullscreen/index.cjs +1 -1
  27. package/dist/qy-fullscreen/index.mjs +1 -1
  28. package/dist/qy-icon/index.cjs +1 -1
  29. package/dist/qy-icon/index.mjs +2 -2
  30. package/dist/qy-icon-picker/index.cjs +1 -1
  31. package/dist/qy-icon-picker/index.mjs +1 -1
  32. package/dist/qy-iframe/index.cjs +1 -0
  33. package/dist/qy-iframe/index.mjs +7 -0
  34. package/dist/qy-image/index.cjs +1 -1
  35. package/dist/qy-image/index.mjs +1 -1
  36. package/dist/qy-image-preview/index.cjs +1 -1
  37. package/dist/qy-image-preview/index.mjs +2 -2
  38. package/dist/qy-image-upload/index.cjs +1 -1
  39. package/dist/qy-image-upload/index.mjs +1 -1
  40. package/dist/qy-input/index.cjs +1 -1
  41. package/dist/qy-input/index.mjs +1 -1
  42. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  43. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  44. package/dist/qy-menu-actions/index.cjs +1 -1
  45. package/dist/qy-menu-actions/index.mjs +1 -1
  46. package/dist/qy-money-input/index.cjs +1 -1
  47. package/dist/qy-money-input/index.mjs +1 -1
  48. package/dist/qy-popconfirm/index.cjs +2 -0
  49. package/dist/qy-popconfirm/index.mjs +8 -0
  50. package/dist/qy-popover/index.cjs +1 -1
  51. package/dist/qy-popover/index.mjs +1 -1
  52. package/dist/qy-radio/index.cjs +1 -1
  53. package/dist/qy-radio/index.mjs +1 -1
  54. package/dist/qy-radio-group/index.cjs +1 -1
  55. package/dist/qy-radio-group/index.mjs +1 -1
  56. package/dist/qy-record-quote-search/index.cjs +1 -1
  57. package/dist/qy-record-quote-search/index.mjs +1 -1
  58. package/dist/qy-remark-image/index.cjs +1 -1
  59. package/dist/qy-remark-image/index.mjs +1 -1
  60. package/dist/qy-remote-select/index.cjs +1 -1
  61. package/dist/qy-remote-select/index.mjs +1 -1
  62. package/dist/qy-result/index.cjs +1 -1
  63. package/dist/qy-result/index.mjs +1 -1
  64. package/dist/qy-scrollbar/index.cjs +1 -1
  65. package/dist/qy-scrollbar/index.mjs +1 -1
  66. package/dist/qy-search-input/index.cjs +1 -1
  67. package/dist/qy-search-input/index.mjs +1 -1
  68. package/dist/qy-select/index.cjs +1 -1
  69. package/dist/qy-select/index.mjs +1 -1
  70. package/dist/qy-selection-dialog/index.cjs +1 -1
  71. package/dist/qy-selection-dialog/index.mjs +1 -1
  72. package/dist/qy-switch/index.cjs +1 -1
  73. package/dist/qy-switch/index.mjs +1 -1
  74. package/dist/qy-table-column-settings/index.cjs +1 -1
  75. package/dist/qy-table-column-settings/index.mjs +1 -1
  76. package/dist/qy-tag/index.cjs +1 -1
  77. package/dist/qy-tag/index.mjs +1 -1
  78. package/dist/qy-tree/index.cjs +1 -1
  79. package/dist/qy-tree/index.mjs +1 -1
  80. package/dist/qy-tree-select/index.cjs +1 -1
  81. package/dist/qy-tree-select/index.mjs +1 -1
  82. package/dist/qy-upload/index.cjs +1 -1
  83. package/dist/qy-upload/index.mjs +1 -1
  84. package/dist/qy-watermark/index.cjs +1 -0
  85. package/dist/qy-watermark/index.mjs +7 -0
  86. package/dist/shared/{index-D-YyFaZ6.cjs → index-3qEac4h8.cjs} +1 -1
  87. package/dist/shared/{index-B0zL9hEY.mjs → index-4SkLDBra.mjs} +1 -1
  88. package/dist/shared/{index-gcsw_rtX.mjs → index-BekN1g_r.mjs} +967 -955
  89. package/dist/shared/{index-B6xIO6kg.cjs → index-Bi9wgcgT.cjs} +1 -1
  90. package/dist/shared/{index-D5DmmUX2.cjs → index-Bli6Gx5d.cjs} +1 -1
  91. package/dist/shared/{index-CaDqecpT.mjs → index-BuUtJrIy.mjs} +9 -9
  92. package/dist/shared/{index-DqsG1Mam.cjs → index-C7lRQtzs.cjs} +1 -1
  93. package/dist/shared/{index-DfR8Z9MN.mjs → index-CdnHMuo3.mjs} +1 -1
  94. package/dist/shared/index-Ce_hvR--.cjs +1 -0
  95. package/dist/shared/{index-BWDaV6FO.cjs → index-CwY_jv_I.cjs} +1 -1
  96. package/dist/shared/{index-xuTVtF4x.mjs → index-DY-CA7Vr.mjs} +1 -1
  97. package/dist/shared/index-DlGwHshu.cjs +1 -0
  98. package/dist/shared/{index-CwzztWPU.cjs → index-DnHfk7NM.cjs} +1 -1
  99. package/dist/shared/index-Dr-Q5krU.mjs +71 -0
  100. package/dist/shared/{index-1LT6Q6XJ.mjs → index-Dwf-JfXM.mjs} +1 -1
  101. package/dist/shared/{index-BmJPEXUM.mjs → index-S8HW36Mc.mjs} +2 -2
  102. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-C91DUwOD.mjs → index.vue_vue_type_script_setup_true_lang-C6-hVGUO.mjs} +1 -1
  103. package/dist/shared/index.vue_vue_type_script_setup_true_lang-COAUEujY.mjs +48 -0
  104. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
  105. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cr9PdvyR.cjs +1 -0
  106. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CuXBYNXZ.cjs → index.vue_vue_type_script_setup_true_lang-DOuk75uN.cjs} +1 -1
  107. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
  108. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DP-jqqo2.mjs → index.vue_vue_type_script_setup_true_lang-S-rQ0p3E.mjs} +1 -1
  109. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DkDEcB4G.cjs → index.vue_vue_type_script_setup_true_lang-lvZQ_Cu6.cjs} +1 -1
  110. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CL_IFx-Z.cjs → index.vue_vue_type_style_index_0_lang-BcZb1U13.cjs} +1 -1
  111. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +1 -0
  112. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +172 -0
  113. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DXQ9l1XF.mjs → index.vue_vue_type_style_index_0_lang-CIcZet5j.mjs} +3 -3
  114. package/dist/shared/index.vue_vue_type_style_index_0_lang-Ch3QcF8t.cjs +1 -0
  115. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
  116. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs → index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs} +19 -17
  117. package/dist/shared/index.vue_vue_type_style_index_0_lang-b0y8p1p1.mjs +215 -0
  118. package/dist/shared/utils-BjEXwY3L.cjs +1 -0
  119. package/dist/shared/utils-DoyI5oM8.mjs +148 -0
  120. package/index.d.ts +60 -21
  121. package/package.json +25 -1
  122. package/qy-alert/index.d.ts +64 -64
  123. package/qy-autocomplete/index.d.ts +5 -5
  124. package/qy-avatar/index.d.ts +67 -67
  125. package/qy-badge/index.d.ts +63 -63
  126. package/qy-card/index.d.ts +64 -64
  127. package/qy-cascader/index.d.ts +198 -198
  128. package/qy-collapse/index.d.ts +59 -59
  129. package/qy-collapse-item/index.d.ts +45 -45
  130. package/qy-color-picker/index.d.ts +36 -0
  131. package/qy-descriptions/index.d.ts +47 -47
  132. package/qy-descriptions-item/index.d.ts +46 -46
  133. package/qy-dialog/index.d.ts +63 -63
  134. package/qy-divider/index.d.ts +53 -53
  135. package/qy-drawer/index.d.ts +55 -55
  136. package/qy-empty/index.d.ts +51 -51
  137. package/qy-iframe/index.d.ts +66 -0
  138. package/qy-image/index.d.ts +28 -28
  139. package/qy-image-preview/index.d.ts +21 -20
  140. package/qy-link/index.d.ts +69 -69
  141. package/qy-loading/index.d.ts +25 -25
  142. package/qy-menu-actions/index.d.ts +29 -29
  143. package/qy-popconfirm/index.d.ts +55 -0
  144. package/qy-progress/index.d.ts +74 -74
  145. package/qy-result/index.d.ts +64 -64
  146. package/qy-scrollbar/index.d.ts +85 -85
  147. package/qy-skeleton/index.d.ts +54 -54
  148. package/qy-skeleton-item/index.d.ts +48 -48
  149. package/qy-step/index.d.ts +55 -55
  150. package/qy-steps/index.d.ts +62 -62
  151. package/qy-tab-pane/index.d.ts +40 -40
  152. package/qy-table-column-settings/index.d.ts +18 -18
  153. package/qy-tabs/index.d.ts +84 -84
  154. package/qy-tree/index.d.ts +132 -132
  155. package/qy-tree-select/index.d.ts +123 -123
  156. package/qy-watermark/index.d.ts +72 -0
  157. package/dist/shared/index-uhxRj2ZT.cjs +0 -1
  158. package/dist/shared/index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs +0 -1
  159. package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +0 -1
  160. package/dist/shared/utils-D2KAQCCB.cjs +0 -1
  161. package/dist/shared/utils-DUntDntI.mjs +0 -112
  162. /package/dist/shared/{index-AirHUQwm.cjs → index-AMu0L6uU.cjs} +0 -0
  163. /package/dist/shared/{index-D6ybNdgn.mjs → index-B1b3BksF.mjs} +0 -0
  164. /package/dist/shared/{index-BpI0jwYK.cjs → index-BPaVDCe6.cjs} +0 -0
  165. /package/dist/shared/{index-CCZttbsg.cjs → index-BdTlpKtr.cjs} +0 -0
  166. /package/dist/shared/{index-Bxz4crCd.cjs → index-BkX9xlbI.cjs} +0 -0
  167. /package/dist/shared/{index-DLLDXfic.cjs → index-Bvot0uXo.cjs} +0 -0
  168. /package/dist/shared/{index-CaNxcPSD.mjs → index-C91mzAI3.mjs} +0 -0
  169. /package/dist/shared/{index-CmRclPWX.mjs → index-C_1KP3l9.mjs} +0 -0
  170. /package/dist/shared/{index-DEZF-Fkt.mjs → index-D5S48q1B.mjs} +0 -0
  171. /package/dist/shared/{index-Co0_4YEV.mjs → index-D8E_xu0N.mjs} +0 -0
  172. /package/dist/shared/{index-Bmw9BNXm.cjs → index-DCzxcvkn.cjs} +0 -0
  173. /package/dist/shared/{index-C31wpivi.mjs → index-DK0hjfWr.mjs} +0 -0
  174. /package/dist/shared/{index-D_rRdrge.mjs → index-DZRFSGxO.mjs} +0 -0
  175. /package/dist/shared/{index-BDdhBEFr.cjs → index-Dc6gLgAz.cjs} +0 -0
  176. /package/dist/shared/{index-C-ZAw_DP.mjs → index-DcohgM8A.mjs} +0 -0
  177. /package/dist/shared/{index-BxvS3vlc.cjs → index-Di4bIOiB.cjs} +0 -0
  178. /package/dist/shared/{index-Bs2OQHXk.mjs → index-JjHutKmT.mjs} +0 -0
  179. /package/dist/shared/{index-seQHtqdh.mjs → index-Od6HC8Un.mjs} +0 -0
  180. /package/dist/shared/{index-rcu9CzSn.cjs → index-nSFTxVz8.cjs} +0 -0
  181. /package/dist/shared/{index-DIs6iPjF.cjs → index-nos4Y-fm.cjs} +0 -0
  182. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-S6QPMZay.cjs → index.vue_vue_type_script_setup_true_lang-CglCPcj-.cjs} +0 -0
  183. /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BLF3RNlY.mjs → index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs} +0 -0
  184. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DUgOOzEZ.cjs → index.vue_vue_type_style_index_0_lang-BXTkWo5P.cjs} +0 -0
  185. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-lmRmXLwB.cjs → index.vue_vue_type_style_index_0_lang-BnPRHCwR.cjs} +0 -0
  186. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DWiolYb3.mjs → index.vue_vue_type_style_index_0_lang-C1n-zAZh.mjs} +0 -0
  187. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-B-FeHatv.mjs → index.vue_vue_type_style_index_0_lang-CVdFZeHK.mjs} +0 -0
  188. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DzfGx6ce.mjs → index.vue_vue_type_style_index_0_lang-KHk9wRYT.mjs} +0 -0
  189. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-CUqnwExG.mjs → index.vue_vue_type_style_index_0_lang-Tzo8o6M8.mjs} +0 -0
  190. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-DOfJV2oz.cjs → index.vue_vue_type_style_index_0_lang-WGzoSatU.cjs} +0 -0
  191. /package/dist/shared/{index.vue_vue_type_style_index_0_lang-Cn3P9d4L.cjs → index.vue_vue_type_style_index_0_lang-hbNK_h45.cjs} +0 -0
@@ -0,0 +1,66 @@
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps
6
+ } from 'vue'
7
+ import type { StyleValue } from 'vue'
8
+
9
+ export type QyIframeLoading = 'eager' | 'lazy'
10
+ export type QyIframeReferrerPolicy =
11
+ | 'no-referrer'
12
+ | 'no-referrer-when-downgrade'
13
+ | 'origin'
14
+ | 'origin-when-cross-origin'
15
+ | 'same-origin'
16
+ | 'strict-origin'
17
+ | 'strict-origin-when-cross-origin'
18
+ | 'unsafe-url'
19
+
20
+ export interface QyIframeProps {
21
+ src: string
22
+ title: string
23
+ reloadKey?: string | number
24
+ loading?: QyIframeLoading
25
+ sandbox?: string
26
+ allow?: string
27
+ referrerPolicy?: QyIframeReferrerPolicy
28
+ allowFullscreen?: boolean
29
+ }
30
+
31
+ export interface QyIframeAttrs {
32
+ tabindex?: string | number
33
+ class?: unknown
34
+ style?: StyleValue
35
+ id?: string
36
+ role?: string
37
+ [key: `data-${string}`]: unknown
38
+ [key: `aria-${string}`]: unknown
39
+ }
40
+
41
+ export type QyIframeEmits = {
42
+ load: () => unknown
43
+ error: () => unknown
44
+ }
45
+
46
+ type QyIframeComponentProps = QyIframeProps & QyIframeAttrs & {
47
+ onLoad?: QyIframeEmits['load']
48
+ onError?: QyIframeEmits['error']
49
+ }
50
+
51
+ declare const QyIframe: DefineComponent<
52
+ QyIframeProps,
53
+ {},
54
+ {},
55
+ {},
56
+ {},
57
+ ComponentOptionsMixin,
58
+ ComponentOptionsMixin,
59
+ QyIframeEmits,
60
+ string,
61
+ PublicProps,
62
+ QyIframeComponentProps
63
+ > & Plugin
64
+
65
+ export { QyIframe }
66
+ export default QyIframe
@@ -1,28 +1,28 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- export type QyImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
4
-
5
- export type QyImageCompressor =
6
- | boolean
7
- | {
8
- w?: number
9
- h?: number
10
- q?: number
11
- }
12
-
13
- declare const QyImage: DefineComponent<{
14
- src?: string
15
- width?: number | string
16
- height?: number | string
17
- size?: number
18
- fit?: QyImageFit
19
- placeholder?: boolean
20
- lazy?: boolean
21
- compressor?: QyImageCompressor
22
- preview?: boolean
23
- previewList?: string[]
24
- initialIndex?: number
25
- }> &
26
- Plugin
27
-
28
- export default QyImage
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ export type QyImageFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
4
+
5
+ export type QyImageCompressor =
6
+ | boolean
7
+ | {
8
+ w?: number
9
+ h?: number
10
+ q?: number
11
+ }
12
+
13
+ declare const QyImage: DefineComponent<{
14
+ src?: string
15
+ width?: number | string
16
+ height?: number | string
17
+ size?: number
18
+ fit?: QyImageFit
19
+ placeholder?: boolean
20
+ lazy?: boolean
21
+ compressor?: QyImageCompressor
22
+ preview?: boolean
23
+ previewList?: string[]
24
+ initialIndex?: number
25
+ }> &
26
+ Plugin
27
+
28
+ export default QyImage
@@ -1,20 +1,21 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyImagePreview: DefineComponent<{
4
- open?: boolean
5
- urlList?: string[]
6
- initialIndex?: number
7
- hideOnClickModal?: boolean
8
- }> &
9
- Plugin
10
-
11
- export function openQyImagePreview(options: {
12
- url?: string
13
- urlList?: string[]
14
- initialIndex?: number
15
- hideOnClickModal?: boolean
16
- }): {
17
- close(): void
18
- }
19
-
20
- export default QyImagePreview
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ declare const QyImagePreview: DefineComponent<{
4
+ open?: boolean
5
+ urlList?: string[]
6
+ initialIndex?: number
7
+ hideOnClickModal?: boolean
8
+ }> &
9
+ Plugin
10
+
11
+ export function openQyImagePreview(options: {
12
+ url?: string
13
+ urlList?: string[]
14
+ initialIndex?: number
15
+ hideOnClickModal?: boolean
16
+ }): {
17
+ close(): void
18
+ }
19
+
20
+
21
+ export default QyImagePreview
@@ -1,69 +1,69 @@
1
- import type {
2
- Component,
3
- ComponentOptionsMixin,
4
- DefineComponent,
5
- Plugin,
6
- PublicProps,
7
- SlotsType
8
- } from 'vue'
9
- import type { StyleValue } from 'vue'
10
-
11
- export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
12
- export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
13
-
14
- export interface QyLinkProps {
15
- type?: QyLinkType
16
- underline?: QyLinkUnderline
17
- disabled?: boolean
18
- href?: string
19
- target?: string
20
- icon?: string | Component
21
- }
22
-
23
- export interface QyLinkAttrs {
24
- rel?: string
25
- download?: string | boolean
26
- hreflang?: string
27
- referrerpolicy?: string
28
- ping?: string
29
- tabindex?: string | number
30
- class?: unknown
31
- style?: StyleValue
32
- id?: string
33
- title?: string
34
- role?: string
35
- [key: `data-${string}`]: unknown
36
- [key: `aria-${string}`]: unknown
37
- }
38
-
39
- export interface QyLinkSlots {
40
- default?: () => unknown
41
- icon?: () => unknown
42
- }
43
-
44
- export type QyLinkEmits = {
45
- click: (event: MouseEvent) => void
46
- }
47
-
48
- type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
49
- onClick?: QyLinkEmits['click']
50
- }
51
-
52
- declare const QyLink: DefineComponent<
53
- QyLinkProps,
54
- {},
55
- {},
56
- {},
57
- {},
58
- ComponentOptionsMixin,
59
- ComponentOptionsMixin,
60
- QyLinkEmits,
61
- string,
62
- PublicProps,
63
- QyLinkComponentProps,
64
- {},
65
- SlotsType<QyLinkSlots>
66
- > & Plugin
67
-
68
- export { QyLink }
69
- export default QyLink
1
+ import type {
2
+ Component,
3
+ ComponentOptionsMixin,
4
+ DefineComponent,
5
+ Plugin,
6
+ PublicProps,
7
+ SlotsType
8
+ } from 'vue'
9
+ import type { StyleValue } from 'vue'
10
+
11
+ export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
12
+ export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
13
+
14
+ export interface QyLinkProps {
15
+ type?: QyLinkType
16
+ underline?: QyLinkUnderline
17
+ disabled?: boolean
18
+ href?: string
19
+ target?: string
20
+ icon?: string | Component
21
+ }
22
+
23
+ export interface QyLinkAttrs {
24
+ rel?: string
25
+ download?: string | boolean
26
+ hreflang?: string
27
+ referrerpolicy?: string
28
+ ping?: string
29
+ tabindex?: string | number
30
+ class?: unknown
31
+ style?: StyleValue
32
+ id?: string
33
+ title?: string
34
+ role?: string
35
+ [key: `data-${string}`]: unknown
36
+ [key: `aria-${string}`]: unknown
37
+ }
38
+
39
+ export interface QyLinkSlots {
40
+ default?: () => unknown
41
+ icon?: () => unknown
42
+ }
43
+
44
+ export type QyLinkEmits = {
45
+ click: (event: MouseEvent) => void
46
+ }
47
+
48
+ type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
49
+ onClick?: QyLinkEmits['click']
50
+ }
51
+
52
+ declare const QyLink: DefineComponent<
53
+ QyLinkProps,
54
+ {},
55
+ {},
56
+ {},
57
+ {},
58
+ ComponentOptionsMixin,
59
+ ComponentOptionsMixin,
60
+ QyLinkEmits,
61
+ string,
62
+ PublicProps,
63
+ QyLinkComponentProps,
64
+ {},
65
+ SlotsType<QyLinkSlots>
66
+ > & Plugin
67
+
68
+ export { QyLink }
69
+ export default QyLink
@@ -1,25 +1,25 @@
1
- import type { Directive, Plugin } from 'vue'
2
- import type {
3
- QyLoadingDirectiveOptions,
4
- QyLoadingDirectiveValue,
5
- QyLoadingHandle,
6
- QyLoadingServiceOptions
7
- } from '@qynpm/hooks'
8
-
9
- export type {
10
- QyLoadingDirectiveOptions,
11
- QyLoadingDirectiveValue,
12
- QyLoadingHandle,
13
- QyLoadingServiceOptions
14
- }
15
-
16
- export declare const vQyLoading: Directive<
17
- HTMLElement,
18
- QyLoadingDirectiveValue
19
- >
20
- export declare const QyLoading: Plugin
21
- export declare function openQyLoading(
22
- options?: QyLoadingServiceOptions
23
- ): QyLoadingHandle
24
-
25
- export default QyLoading
1
+ import type { Directive, Plugin } from 'vue'
2
+ import type {
3
+ QyLoadingDirectiveOptions,
4
+ QyLoadingDirectiveValue,
5
+ QyLoadingHandle,
6
+ QyLoadingServiceOptions
7
+ } from '@qynpm/hooks'
8
+
9
+ export type {
10
+ QyLoadingDirectiveOptions,
11
+ QyLoadingDirectiveValue,
12
+ QyLoadingHandle,
13
+ QyLoadingServiceOptions
14
+ }
15
+
16
+ export declare const vQyLoading: Directive<
17
+ HTMLElement,
18
+ QyLoadingDirectiveValue
19
+ >
20
+ export declare const QyLoading: Plugin
21
+ export declare function openQyLoading(
22
+ options?: QyLoadingServiceOptions
23
+ ): QyLoadingHandle
24
+
25
+ export default QyLoading
@@ -1,29 +1,29 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- export type QyMenuActionType =
4
- | 'default'
5
- | 'primary'
6
- | 'success'
7
- | 'warning'
8
- | 'danger'
9
-
10
- export interface QyMenuActionContext<Row = Record<string, unknown>> {
11
- row?: Row
12
- rowIndex?: number
13
- }
14
-
15
- export interface QyMenuAction<Row = Record<string, unknown>> {
16
- key: string
17
- label: string
18
- type?: QyMenuActionType
19
- disabled?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
20
- hidden?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
21
- loading?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
22
- confirm?: boolean | string
23
- meta?: Record<string, unknown>
24
- }
25
-
26
- declare const QyMenuActions: DefineComponent<any, any, any> & Plugin
27
-
28
- export { QyMenuActions }
29
- export default QyMenuActions
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ export type QyMenuActionType =
4
+ | 'default'
5
+ | 'primary'
6
+ | 'success'
7
+ | 'warning'
8
+ | 'danger'
9
+
10
+ export interface QyMenuActionContext<Row = Record<string, unknown>> {
11
+ row?: Row
12
+ rowIndex?: number
13
+ }
14
+
15
+ export interface QyMenuAction<Row = Record<string, unknown>> {
16
+ key: string
17
+ label: string
18
+ type?: QyMenuActionType
19
+ disabled?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
20
+ hidden?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
21
+ loading?: boolean | ((context: QyMenuActionContext<Row>) => boolean)
22
+ confirm?: boolean | string
23
+ meta?: Record<string, unknown>
24
+ }
25
+
26
+ declare const QyMenuActions: DefineComponent<any, any, any> & Plugin
27
+
28
+ export { QyMenuActions }
29
+ export default QyMenuActions
@@ -0,0 +1,55 @@
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+ import type { QyPopoverPlacement } from '../qy-popover'
7
+
8
+ export type QyPopconfirmVariant = 'warning' | 'danger' | 'info'
9
+ export type QyPopconfirmConfirmType = 'primary' | 'danger'
10
+ export type QyPopconfirmCloseReason =
11
+ | 'confirm'
12
+ | 'cancel'
13
+ | 'outside'
14
+ | 'escape'
15
+ | 'trigger'
16
+ | 'external'
17
+ | 'disabled'
18
+
19
+ export interface QyPopconfirmProps {
20
+ title: string
21
+ open?: boolean
22
+ disabled?: boolean
23
+ placement?: QyPopoverPlacement
24
+ width?: number | string
25
+ confirmText?: string
26
+ cancelText?: string
27
+ variant?: QyPopconfirmVariant
28
+ confirmType?: QyPopconfirmConfirmType
29
+ showIcon?: boolean
30
+ confirmLoading?: boolean
31
+ closeOnConfirm?: boolean
32
+ }
33
+
34
+ export type QyPopconfirmEmits = {
35
+ 'update:open': (value: boolean) => void
36
+ 'open-change': (value: boolean) => void
37
+ confirm: () => void
38
+ cancel: () => void
39
+ close: (reason: QyPopconfirmCloseReason) => void
40
+ }
41
+
42
+ declare const QyPopconfirm: DefineComponent<
43
+ QyPopconfirmProps,
44
+ {},
45
+ {},
46
+ {},
47
+ {},
48
+ ComponentOptionsMixin,
49
+ ComponentOptionsMixin,
50
+ QyPopconfirmEmits
51
+ > &
52
+ Plugin
53
+
54
+ export { QyPopconfirm }
55
+ export default QyPopconfirm
@@ -1,74 +1,74 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin,
5
- PublicProps,
6
- SlotsType,
7
- StyleValue
8
- } from 'vue'
9
-
10
- export type QyProgressType = 'line' | 'circle' | 'dashboard'
11
- export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
12
- export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
13
- export interface QyProgressColor {
14
- color: string
15
- percentage: number
16
- }
17
- export type QyProgressColorFunction = (percentage: number) => string
18
- export type QyProgressFormat = (percentage: number) => string
19
-
20
- export interface QyProgressProps {
21
- percentage?: number
22
- type?: QyProgressType
23
- status?: QyProgressStatus
24
- strokeWidth?: number
25
- strokeLinecap?: QyProgressStrokeLinecap
26
- width?: number
27
- showText?: boolean
28
- textInside?: boolean
29
- format?: QyProgressFormat
30
- color?: string | QyProgressColor[] | QyProgressColorFunction
31
- indeterminate?: boolean
32
- duration?: number
33
- striped?: boolean
34
- stripedFlow?: boolean
35
- }
36
-
37
- export interface QyProgressAttrs {
38
- class?: unknown
39
- style?: StyleValue
40
- id?: string
41
- role?: string
42
- title?: string
43
- [key: `data-${string}`]: unknown
44
- [key: `aria-${string}`]: unknown
45
- }
46
-
47
- export interface QyProgressSlotProps {
48
- readonly percentage: number
49
- }
50
-
51
- export interface QyProgressSlots {
52
- default?: (props: QyProgressSlotProps) => unknown
53
- }
54
-
55
- type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
56
-
57
- declare const QyProgress: DefineComponent<
58
- QyProgressComponentProps,
59
- {},
60
- {},
61
- {},
62
- {},
63
- ComponentOptionsMixin,
64
- ComponentOptionsMixin,
65
- {},
66
- string,
67
- PublicProps,
68
- QyProgressComponentProps,
69
- {},
70
- SlotsType<QyProgressSlots>
71
- > & Plugin
72
-
73
- export { QyProgress }
74
- export default QyProgress
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType,
7
+ StyleValue
8
+ } from 'vue'
9
+
10
+ export type QyProgressType = 'line' | 'circle' | 'dashboard'
11
+ export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
12
+ export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
13
+ export interface QyProgressColor {
14
+ color: string
15
+ percentage: number
16
+ }
17
+ export type QyProgressColorFunction = (percentage: number) => string
18
+ export type QyProgressFormat = (percentage: number) => string
19
+
20
+ export interface QyProgressProps {
21
+ percentage?: number
22
+ type?: QyProgressType
23
+ status?: QyProgressStatus
24
+ strokeWidth?: number
25
+ strokeLinecap?: QyProgressStrokeLinecap
26
+ width?: number
27
+ showText?: boolean
28
+ textInside?: boolean
29
+ format?: QyProgressFormat
30
+ color?: string | QyProgressColor[] | QyProgressColorFunction
31
+ indeterminate?: boolean
32
+ duration?: number
33
+ striped?: boolean
34
+ stripedFlow?: boolean
35
+ }
36
+
37
+ export interface QyProgressAttrs {
38
+ class?: unknown
39
+ style?: StyleValue
40
+ id?: string
41
+ role?: string
42
+ title?: string
43
+ [key: `data-${string}`]: unknown
44
+ [key: `aria-${string}`]: unknown
45
+ }
46
+
47
+ export interface QyProgressSlotProps {
48
+ readonly percentage: number
49
+ }
50
+
51
+ export interface QyProgressSlots {
52
+ default?: (props: QyProgressSlotProps) => unknown
53
+ }
54
+
55
+ type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
56
+
57
+ declare const QyProgress: DefineComponent<
58
+ QyProgressComponentProps,
59
+ {},
60
+ {},
61
+ {},
62
+ {},
63
+ ComponentOptionsMixin,
64
+ ComponentOptionsMixin,
65
+ {},
66
+ string,
67
+ PublicProps,
68
+ QyProgressComponentProps,
69
+ {},
70
+ SlotsType<QyProgressSlots>
71
+ > & Plugin
72
+
73
+ export { QyProgress }
74
+ export default QyProgress