@qynpm/ui 1.0.39 → 1.0.41

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 (130) hide show
  1. package/README.md +1797 -1797
  2. package/dist/index.cjs +15 -15
  3. package/dist/index.mjs +17 -17
  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 +2 -2
  7. package/dist/qy-button/index.mjs +2 -2
  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-dialog/index.cjs +1 -1
  13. package/dist/qy-dialog/index.mjs +1 -1
  14. package/dist/qy-dropdown/index.cjs +2 -2
  15. package/dist/qy-dropdown/index.mjs +2 -2
  16. package/dist/qy-file-picker/index.cjs +1 -1
  17. package/dist/qy-file-picker/index.mjs +1 -1
  18. package/dist/qy-form-section/index.cjs +1 -1
  19. package/dist/qy-form-section/index.mjs +1 -1
  20. package/dist/qy-fullscreen/index.cjs +1 -1
  21. package/dist/qy-fullscreen/index.mjs +1 -1
  22. package/dist/qy-icon/index.cjs +1 -1
  23. package/dist/qy-icon/index.mjs +2 -2
  24. package/dist/qy-icon-picker/index.cjs +2 -2
  25. package/dist/qy-icon-picker/index.mjs +2 -2
  26. package/dist/qy-image-upload/index.cjs +1 -1
  27. package/dist/qy-image-upload/index.mjs +1 -1
  28. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  29. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  30. package/dist/qy-menu-actions/index.cjs +1 -1
  31. package/dist/qy-menu-actions/index.mjs +1 -1
  32. package/dist/qy-radio/index.cjs +1 -1
  33. package/dist/qy-radio/index.mjs +1 -1
  34. package/dist/qy-radio-group/index.cjs +1 -1
  35. package/dist/qy-radio-group/index.mjs +1 -1
  36. package/dist/qy-record-quote-search/index.cjs +1 -1
  37. package/dist/qy-record-quote-search/index.mjs +1 -1
  38. package/dist/qy-remark-image/index.cjs +1 -1
  39. package/dist/qy-remark-image/index.mjs +1 -1
  40. package/dist/qy-remote-select/index.cjs +1 -1
  41. package/dist/qy-remote-select/index.mjs +1 -1
  42. package/dist/qy-search-input/index.cjs +1 -1
  43. package/dist/qy-search-input/index.mjs +1 -1
  44. package/dist/qy-select/index.cjs +1 -1
  45. package/dist/qy-select/index.mjs +1 -1
  46. package/dist/qy-selection-dialog/index.cjs +1 -1
  47. package/dist/qy-selection-dialog/index.mjs +1 -1
  48. package/dist/qy-switch/index.cjs +1 -1
  49. package/dist/qy-switch/index.mjs +1 -1
  50. package/dist/qy-table-column-settings/index.cjs +1 -1
  51. package/dist/qy-table-column-settings/index.mjs +1 -1
  52. package/dist/qy-tag/index.cjs +1 -1
  53. package/dist/qy-tag/index.mjs +1 -1
  54. package/dist/qy-upload/index.cjs +1 -1
  55. package/dist/qy-upload/index.mjs +1 -1
  56. package/dist/shared/{index-lKF1vwdE.mjs → index-2D5AFexl.mjs} +1 -1
  57. package/dist/shared/{index-BzjGYfVd.mjs → index-8Iwma3ls.mjs} +3 -3
  58. package/dist/shared/{index-D7WmSi5s.mjs → index-B3XwO-Lc.mjs} +1 -1
  59. package/dist/shared/{index-GQheV777.mjs → index-B3YHS3Aa.mjs} +1 -1
  60. package/dist/shared/{index-DQosPVrl.mjs → index-BEcS8y8g.mjs} +5 -5
  61. package/dist/shared/{index-DpSbQfft.mjs → index-BNssRW4d.mjs} +1 -1
  62. package/dist/shared/{index-nVNx7f9k.mjs → index-BSTMCPDj.mjs} +5 -5
  63. package/dist/shared/{index-BXWEn5kQ.mjs → index-BhvOSOfi.mjs} +1 -1
  64. package/dist/shared/{index-CJeoAmoJ.mjs → index-BjqJCq-6.mjs} +2 -2
  65. package/dist/shared/{index-D377Dw9z.cjs → index-Bq9quq2D.cjs} +1 -1
  66. package/dist/shared/{index-D8OXRBGc.mjs → index-ByQyMTPg.mjs} +1 -1
  67. package/dist/shared/{index-DYLQNCm_.cjs → index-CUlhX6fW.cjs} +1 -1
  68. package/dist/shared/{index-9GEoEe00.cjs → index-CVWru9T3.cjs} +1 -1
  69. package/dist/shared/{index-Db0-JPH3.cjs → index-CVYNG8Fc.cjs} +1 -1
  70. package/dist/shared/{index-KNAOQ6lE.mjs → index-Co84fsS5.mjs} +1 -1
  71. package/dist/shared/{index-Dt5TyzGy.cjs → index-D27mwR57.cjs} +1 -1
  72. package/dist/shared/{index-CCd7dB4w.cjs → index-DAztNKSp.cjs} +1 -1
  73. package/dist/shared/{index-G3BezuiV.cjs → index-DKw-seoh.cjs} +1 -1
  74. package/dist/shared/{index-Bd_aS-_F.mjs → index-DRIoLeFE.mjs} +1 -1
  75. package/dist/shared/{index-MPd3qxAh.cjs → index-DTbGlDqr.cjs} +1 -1
  76. package/dist/shared/{index-D1Xkf7rL.mjs → index-DXZ6Y6wd.mjs} +2 -2
  77. package/dist/shared/{index-Br_34fum.cjs → index-DiEag4sK.cjs} +1 -1
  78. package/dist/shared/{index-BFG8tzQV.mjs → index-DvFMgAcu.mjs} +1 -1
  79. package/dist/shared/{index-_IQS5Lxm.mjs → index-E3zI0Ugj.mjs} +24 -24
  80. package/dist/shared/{index-BsDC3meI.cjs → index-Mj7JZt7y.cjs} +1 -1
  81. package/dist/shared/{index-elwxiSmc.cjs → index-MyDDX-zj.cjs} +1 -1
  82. package/dist/shared/{index-Dus42W4E.cjs → index-R_hSPemR.cjs} +1 -1
  83. package/dist/shared/{index-MNEYnZEw.cjs → index-d76Z3yrB.cjs} +1 -1
  84. package/dist/shared/{index-D0hSquu3.cjs → index-gMrQlV5n.cjs} +1 -1
  85. package/dist/shared/{index-C1gEZRI5.cjs → index-rSrDnOpu.cjs} +1 -1
  86. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CcbBUYM3.cjs → index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs} +1 -1
  87. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-OmrHTMpe.mjs → index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs} +1 -1
  88. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Cswf_owk.cjs → index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs} +1 -1
  89. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BvnOeUIM.mjs → index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs} +1 -1
  90. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DOAbOPGO.mjs → index.vue_vue_type_style_index_0_lang-B6cv-Ra3.mjs} +2 -1
  91. package/dist/shared/{index.vue_vue_type_style_index_0_lang-BfQd7yxi.cjs → index.vue_vue_type_style_index_0_lang-CU9gg9t5.cjs} +1 -1
  92. package/dist/shared/{index.vue_vue_type_style_index_0_lang-Daww52B9.mjs → index.vue_vue_type_style_index_0_lang-DbQkbvgb.mjs} +2 -2
  93. package/dist/shared/{index.vue_vue_type_style_index_0_lang-D2CH70ZX.cjs → index.vue_vue_type_style_index_0_lang-OHPkiKBo.cjs} +1 -1
  94. package/index.d.ts +592 -592
  95. package/package.json +500 -496
  96. package/qy-action-bar/index.d.ts +5 -5
  97. package/qy-aside/index.d.ts +47 -47
  98. package/qy-button/index.d.ts +34 -34
  99. package/qy-checkbox/index.d.ts +45 -45
  100. package/qy-checkbox-group/index.d.ts +48 -48
  101. package/qy-col/index.d.ts +65 -65
  102. package/qy-color-picker/index.d.ts +36 -36
  103. package/qy-container/index.d.ts +49 -49
  104. package/qy-date-picker/index.d.ts +140 -140
  105. package/qy-dropdown/index.d.ts +40 -40
  106. package/qy-file-picker/index.d.ts +48 -48
  107. package/qy-form-section/index.d.ts +5 -5
  108. package/qy-fullscreen/index.d.ts +72 -72
  109. package/qy-icon/index.d.ts +99 -99
  110. package/qy-icon-picker/index.d.ts +56 -56
  111. package/qy-input/index.d.ts +32 -32
  112. package/qy-input-number/index.d.ts +15 -15
  113. package/qy-legacy-selection-dialog/index.d.ts +5 -5
  114. package/qy-main/index.d.ts +45 -45
  115. package/qy-popconfirm/index.d.ts +55 -55
  116. package/qy-popover/index.d.ts +63 -63
  117. package/qy-radio/index.d.ts +44 -44
  118. package/qy-radio-group/index.d.ts +60 -60
  119. package/qy-record-quote-search/index.d.ts +5 -5
  120. package/qy-remark-image/index.d.ts +5 -5
  121. package/qy-remote-select/index.d.ts +12 -12
  122. package/qy-row/index.d.ts +59 -59
  123. package/qy-search-input/index.d.ts +5 -5
  124. package/qy-select/index.d.ts +67 -67
  125. package/qy-selection-dialog/index.d.ts +5 -5
  126. package/qy-statistic/index.d.ts +61 -61
  127. package/qy-switch/index.d.ts +46 -46
  128. package/qy-tag/index.d.ts +44 -44
  129. package/qy-tooltip/index.d.ts +54 -54
  130. package/qy-watermark/index.d.ts +72 -72
@@ -1,61 +1,61 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin,
5
- PublicProps,
6
- SlotsType,
7
- StyleValue
8
- } from 'vue'
9
-
10
- export type QyStatisticFormatter = (value: number) => string | number
11
-
12
- export interface QyStatisticProps {
13
- value?: number
14
- precision?: number
15
- decimalSeparator?: string
16
- groupSeparator?: string
17
- formatter?: QyStatisticFormatter
18
- valueStyle?: StyleValue
19
- title?: string
20
- prefix?: string
21
- suffix?: string
22
- animated?: boolean
23
- duration?: number
24
- startValue?: number
25
- }
26
-
27
- export interface QyStatisticAttrs {
28
- class?: unknown
29
- style?: StyleValue
30
- id?: string
31
- role?: string
32
- [key: `data-${string}`]: unknown
33
- [key: `aria-${string}`]: unknown
34
- }
35
-
36
- export interface QyStatisticSlots {
37
- title?: () => unknown
38
- prefix?: () => unknown
39
- suffix?: () => unknown
40
- }
41
-
42
- type QyStatisticComponentProps = QyStatisticProps & QyStatisticAttrs
43
-
44
- declare const QyStatistic: DefineComponent<
45
- QyStatisticComponentProps,
46
- {},
47
- {},
48
- {},
49
- {},
50
- ComponentOptionsMixin,
51
- ComponentOptionsMixin,
52
- {},
53
- string,
54
- PublicProps,
55
- QyStatisticComponentProps,
56
- {},
57
- SlotsType<QyStatisticSlots>
58
- > & Plugin
59
-
60
- export { QyStatistic }
61
- export default QyStatistic
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType,
7
+ StyleValue
8
+ } from 'vue'
9
+
10
+ export type QyStatisticFormatter = (value: number) => string | number
11
+
12
+ export interface QyStatisticProps {
13
+ value?: number
14
+ precision?: number
15
+ decimalSeparator?: string
16
+ groupSeparator?: string
17
+ formatter?: QyStatisticFormatter
18
+ valueStyle?: StyleValue
19
+ title?: string
20
+ prefix?: string
21
+ suffix?: string
22
+ animated?: boolean
23
+ duration?: number
24
+ startValue?: number
25
+ }
26
+
27
+ export interface QyStatisticAttrs {
28
+ class?: unknown
29
+ style?: StyleValue
30
+ id?: string
31
+ role?: string
32
+ [key: `data-${string}`]: unknown
33
+ [key: `aria-${string}`]: unknown
34
+ }
35
+
36
+ export interface QyStatisticSlots {
37
+ title?: () => unknown
38
+ prefix?: () => unknown
39
+ suffix?: () => unknown
40
+ }
41
+
42
+ type QyStatisticComponentProps = QyStatisticProps & QyStatisticAttrs
43
+
44
+ declare const QyStatistic: DefineComponent<
45
+ QyStatisticComponentProps,
46
+ {},
47
+ {},
48
+ {},
49
+ {},
50
+ ComponentOptionsMixin,
51
+ ComponentOptionsMixin,
52
+ {},
53
+ string,
54
+ PublicProps,
55
+ QyStatisticComponentProps,
56
+ {},
57
+ SlotsType<QyStatisticSlots>
58
+ > & Plugin
59
+
60
+ export { QyStatistic }
61
+ export default QyStatistic
@@ -1,46 +1,46 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QySwitchValue = boolean | string | number
8
- export type QySwitchSize = 'small' | 'default' | 'large'
9
-
10
- export interface QySwitchProps {
11
- modelValue?: QySwitchValue
12
- activeValue?: QySwitchValue
13
- inactiveValue?: QySwitchValue
14
- disabled?: boolean
15
- loading?: boolean
16
- size?: QySwitchSize
17
- activeText?: string
18
- inactiveText?: string
19
- inlinePrompt?: boolean
20
- name?: string
21
- id?: string
22
- tabindex?: string | number
23
- ariaLabel?: string
24
- }
25
-
26
- export type QySwitchEmits = {
27
- 'update:modelValue': (value: QySwitchValue) => void
28
- change: (value: QySwitchValue) => void
29
- focus: (event: FocusEvent) => void
30
- blur: (event: FocusEvent) => void
31
- }
32
-
33
- declare const QySwitch: DefineComponent<
34
- QySwitchProps,
35
- {},
36
- {},
37
- {},
38
- {},
39
- ComponentOptionsMixin,
40
- ComponentOptionsMixin,
41
- QySwitchEmits
42
- > &
43
- Plugin
44
-
45
- export { QySwitch }
46
- export default QySwitch
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QySwitchValue = boolean | string | number
8
+ export type QySwitchSize = 'small' | 'default' | 'large'
9
+
10
+ export interface QySwitchProps {
11
+ modelValue?: QySwitchValue
12
+ activeValue?: QySwitchValue
13
+ inactiveValue?: QySwitchValue
14
+ disabled?: boolean
15
+ loading?: boolean
16
+ size?: QySwitchSize
17
+ activeText?: string
18
+ inactiveText?: string
19
+ inlinePrompt?: boolean
20
+ name?: string
21
+ id?: string
22
+ tabindex?: string | number
23
+ ariaLabel?: string
24
+ }
25
+
26
+ export type QySwitchEmits = {
27
+ 'update:modelValue': (value: QySwitchValue) => void
28
+ change: (value: QySwitchValue) => void
29
+ focus: (event: FocusEvent) => void
30
+ blur: (event: FocusEvent) => void
31
+ }
32
+
33
+ declare const QySwitch: DefineComponent<
34
+ QySwitchProps,
35
+ {},
36
+ {},
37
+ {},
38
+ {},
39
+ ComponentOptionsMixin,
40
+ ComponentOptionsMixin,
41
+ QySwitchEmits
42
+ > &
43
+ Plugin
44
+
45
+ export { QySwitch }
46
+ export default QySwitch
package/qy-tag/index.d.ts CHANGED
@@ -1,44 +1,44 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QyTagTone =
8
- | 'neutral'
9
- | 'primary'
10
- | 'success'
11
- | 'warning'
12
- | 'danger'
13
- | 'info'
14
- export type QyTagSize = 'sm' | 'md' | 'lg'
15
- export type QyTagEffect = 'light' | 'dark' | 'plain'
16
-
17
- export interface QyTagProps {
18
- tone?: QyTagTone
19
- size?: QyTagSize
20
- effect?: QyTagEffect
21
- closable?: boolean
22
- round?: boolean
23
- disabled?: boolean
24
- }
25
-
26
- export type QyTagEmits = {
27
- click: (event: MouseEvent) => void
28
- close: (event: MouseEvent) => void
29
- }
30
-
31
- declare const QyTag: DefineComponent<
32
- QyTagProps,
33
- {},
34
- {},
35
- {},
36
- {},
37
- ComponentOptionsMixin,
38
- ComponentOptionsMixin,
39
- QyTagEmits
40
- > &
41
- Plugin
42
-
43
- export { QyTag }
44
- export default QyTag
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyTagTone =
8
+ | 'neutral'
9
+ | 'primary'
10
+ | 'success'
11
+ | 'warning'
12
+ | 'danger'
13
+ | 'info'
14
+ export type QyTagSize = 'sm' | 'md' | 'lg'
15
+ export type QyTagEffect = 'light' | 'dark' | 'plain'
16
+
17
+ export interface QyTagProps {
18
+ tone?: QyTagTone
19
+ size?: QyTagSize
20
+ effect?: QyTagEffect
21
+ closable?: boolean
22
+ round?: boolean
23
+ disabled?: boolean
24
+ }
25
+
26
+ export type QyTagEmits = {
27
+ click: (event: MouseEvent) => void
28
+ close: (event: MouseEvent) => void
29
+ }
30
+
31
+ declare const QyTag: DefineComponent<
32
+ QyTagProps,
33
+ {},
34
+ {},
35
+ {},
36
+ {},
37
+ ComponentOptionsMixin,
38
+ ComponentOptionsMixin,
39
+ QyTagEmits
40
+ > &
41
+ Plugin
42
+
43
+ export { QyTag }
44
+ export default QyTag
@@ -1,54 +1,54 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QyTooltipPlacement =
8
- | 'top'
9
- | 'top-start'
10
- | 'top-end'
11
- | 'bottom'
12
- | 'bottom-start'
13
- | 'bottom-end'
14
- | 'left'
15
- | 'left-start'
16
- | 'left-end'
17
- | 'right'
18
- | 'right-start'
19
- | 'right-end'
20
- | 'auto'
21
- | 'auto-start'
22
- | 'auto-end'
23
- export type QyTooltipEffect = 'light' | 'dark'
24
-
25
- export interface QyTooltipProps {
26
- content?: string
27
- placement?: QyTooltipPlacement
28
- effect?: QyTooltipEffect
29
- disabled?: boolean
30
- showDelay?: number
31
- hideDelay?: number
32
- offset?: number
33
- maxWidth?: number | string
34
- }
35
-
36
- export type QyTooltipEmits = {
37
- open: () => void
38
- close: () => void
39
- }
40
-
41
- declare const QyTooltip: DefineComponent<
42
- QyTooltipProps,
43
- {},
44
- {},
45
- {},
46
- {},
47
- ComponentOptionsMixin,
48
- ComponentOptionsMixin,
49
- QyTooltipEmits
50
- > &
51
- Plugin
52
-
53
- export { QyTooltip }
54
- export default QyTooltip
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyTooltipPlacement =
8
+ | 'top'
9
+ | 'top-start'
10
+ | 'top-end'
11
+ | 'bottom'
12
+ | 'bottom-start'
13
+ | 'bottom-end'
14
+ | 'left'
15
+ | 'left-start'
16
+ | 'left-end'
17
+ | 'right'
18
+ | 'right-start'
19
+ | 'right-end'
20
+ | 'auto'
21
+ | 'auto-start'
22
+ | 'auto-end'
23
+ export type QyTooltipEffect = 'light' | 'dark'
24
+
25
+ export interface QyTooltipProps {
26
+ content?: string
27
+ placement?: QyTooltipPlacement
28
+ effect?: QyTooltipEffect
29
+ disabled?: boolean
30
+ showDelay?: number
31
+ hideDelay?: number
32
+ offset?: number
33
+ maxWidth?: number | string
34
+ }
35
+
36
+ export type QyTooltipEmits = {
37
+ open: () => void
38
+ close: () => void
39
+ }
40
+
41
+ declare const QyTooltip: DefineComponent<
42
+ QyTooltipProps,
43
+ {},
44
+ {},
45
+ {},
46
+ {},
47
+ ComponentOptionsMixin,
48
+ ComponentOptionsMixin,
49
+ QyTooltipEmits
50
+ > &
51
+ Plugin
52
+
53
+ export { QyTooltip }
54
+ export default QyTooltip
@@ -1,72 +1,72 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin,
5
- PublicProps,
6
- SlotsType
7
- } from 'vue'
8
- import type { StyleValue } from 'vue'
9
-
10
- export interface QyWatermarkFont {
11
- color?: string
12
- fontSize?: number | string
13
- fontWeight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number
14
- fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'
15
- fontFamily?: string
16
- fontGap?: number
17
- textAlign?: 'start' | 'end' | 'left' | 'right' | 'center'
18
- textBaseline?:
19
- | 'top'
20
- | 'hanging'
21
- | 'middle'
22
- | 'alphabetic'
23
- | 'ideographic'
24
- | 'bottom'
25
- }
26
-
27
- export interface QyWatermarkProps {
28
- content?: string | string[]
29
- image?: string
30
- zIndex?: number
31
- rotate?: number
32
- width?: number
33
- height?: number
34
- gap?: [number, number]
35
- offset?: [number, number]
36
- font?: QyWatermarkFont
37
- }
38
-
39
- export interface QyWatermarkAttrs {
40
- class?: unknown
41
- style?: StyleValue
42
- id?: string
43
- title?: string
44
- role?: string
45
- [key: `data-${string}`]: unknown
46
- [key: `aria-${string}`]: unknown
47
- }
48
-
49
- export interface QyWatermarkSlots {
50
- default?: () => unknown
51
- }
52
-
53
- type QyWatermarkComponentProps = QyWatermarkProps & QyWatermarkAttrs
54
-
55
- declare const QyWatermark: DefineComponent<
56
- QyWatermarkComponentProps,
57
- {},
58
- {},
59
- {},
60
- {},
61
- ComponentOptionsMixin,
62
- ComponentOptionsMixin,
63
- {},
64
- string,
65
- PublicProps,
66
- QyWatermarkComponentProps,
67
- {},
68
- SlotsType<QyWatermarkSlots>
69
- > & Plugin
70
-
71
- export { QyWatermark }
72
- export default QyWatermark
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType
7
+ } from 'vue'
8
+ import type { StyleValue } from 'vue'
9
+
10
+ export interface QyWatermarkFont {
11
+ color?: string
12
+ fontSize?: number | string
13
+ fontWeight?: 'normal' | 'bold' | 'lighter' | 'bolder' | number
14
+ fontStyle?: 'none' | 'normal' | 'italic' | 'oblique'
15
+ fontFamily?: string
16
+ fontGap?: number
17
+ textAlign?: 'start' | 'end' | 'left' | 'right' | 'center'
18
+ textBaseline?:
19
+ | 'top'
20
+ | 'hanging'
21
+ | 'middle'
22
+ | 'alphabetic'
23
+ | 'ideographic'
24
+ | 'bottom'
25
+ }
26
+
27
+ export interface QyWatermarkProps {
28
+ content?: string | string[]
29
+ image?: string
30
+ zIndex?: number
31
+ rotate?: number
32
+ width?: number
33
+ height?: number
34
+ gap?: [number, number]
35
+ offset?: [number, number]
36
+ font?: QyWatermarkFont
37
+ }
38
+
39
+ export interface QyWatermarkAttrs {
40
+ class?: unknown
41
+ style?: StyleValue
42
+ id?: string
43
+ title?: string
44
+ role?: string
45
+ [key: `data-${string}`]: unknown
46
+ [key: `aria-${string}`]: unknown
47
+ }
48
+
49
+ export interface QyWatermarkSlots {
50
+ default?: () => unknown
51
+ }
52
+
53
+ type QyWatermarkComponentProps = QyWatermarkProps & QyWatermarkAttrs
54
+
55
+ declare const QyWatermark: DefineComponent<
56
+ QyWatermarkComponentProps,
57
+ {},
58
+ {},
59
+ {},
60
+ {},
61
+ ComponentOptionsMixin,
62
+ ComponentOptionsMixin,
63
+ {},
64
+ string,
65
+ PublicProps,
66
+ QyWatermarkComponentProps,
67
+ {},
68
+ SlotsType<QyWatermarkSlots>
69
+ > & Plugin
70
+
71
+ export { QyWatermark }
72
+ export default QyWatermark