@qynpm/ui 1.0.23 → 1.0.25

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 (136) hide show
  1. package/README.md +194 -20
  2. package/dist/index.cjs +16 -6
  3. package/dist/index.mjs +51 -34
  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 +4 -3
  10. package/dist/qy-checkbox-group/index.cjs +1 -0
  11. package/dist/qy-checkbox-group/index.mjs +7 -0
  12. package/dist/qy-date-picker/index.cjs +1 -1
  13. package/dist/qy-date-picker/index.mjs +4 -3
  14. package/dist/qy-dialog/index.cjs +1 -1
  15. package/dist/qy-dialog/index.mjs +2 -2
  16. package/dist/qy-dropdown/index.cjs +1 -1
  17. package/dist/qy-dropdown/index.mjs +1 -1
  18. package/dist/qy-file-picker/index.cjs +1 -0
  19. package/dist/qy-file-picker/index.mjs +7 -0
  20. package/dist/qy-form-section/index.cjs +1 -1
  21. package/dist/qy-form-section/index.mjs +1 -1
  22. package/dist/qy-image/index.cjs +1 -1
  23. package/dist/qy-image/index.mjs +1 -1
  24. package/dist/qy-image-upload/index.cjs +1 -1
  25. package/dist/qy-image-upload/index.mjs +1 -1
  26. package/dist/qy-input/index.cjs +2 -2
  27. package/dist/qy-input/index.mjs +6 -3
  28. package/dist/qy-input-number/index.cjs +1 -1
  29. package/dist/qy-input-number/index.mjs +5 -3
  30. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  31. package/dist/qy-legacy-selection-dialog/index.mjs +2 -2
  32. package/dist/qy-menu-actions/index.cjs +1 -1
  33. package/dist/qy-menu-actions/index.mjs +1 -1
  34. package/dist/qy-money-input/index.cjs +1 -1
  35. package/dist/qy-money-input/index.mjs +2 -2
  36. package/dist/qy-popover/index.cjs +2 -0
  37. package/dist/qy-popover/index.mjs +8 -0
  38. package/dist/qy-radio/index.cjs +1 -0
  39. package/dist/qy-radio/index.mjs +7 -0
  40. package/dist/qy-radio-group/index.cjs +1 -1
  41. package/dist/qy-radio-group/index.mjs +5 -2
  42. package/dist/qy-record-quote-search/index.cjs +1 -1
  43. package/dist/qy-record-quote-search/index.mjs +1 -1
  44. package/dist/qy-remark-image/index.cjs +1 -1
  45. package/dist/qy-remark-image/index.mjs +2 -2
  46. package/dist/qy-remote-select/index.cjs +1 -1
  47. package/dist/qy-remote-select/index.mjs +1 -1
  48. package/dist/qy-search-input/index.cjs +1 -1
  49. package/dist/qy-search-input/index.mjs +2 -2
  50. package/dist/qy-select/index.cjs +1 -1
  51. package/dist/qy-select/index.mjs +4 -3
  52. package/dist/qy-selection-dialog/index.cjs +1 -1
  53. package/dist/qy-selection-dialog/index.mjs +1 -1
  54. package/dist/qy-switch/index.cjs +1 -0
  55. package/dist/qy-switch/index.mjs +7 -0
  56. package/dist/qy-table-column-settings/index.cjs +1 -1
  57. package/dist/qy-table-column-settings/index.mjs +1 -1
  58. package/dist/qy-tag/index.cjs +1 -0
  59. package/dist/qy-tag/index.mjs +7 -0
  60. package/dist/qy-tooltip/index.cjs +2 -0
  61. package/dist/qy-tooltip/index.mjs +8 -0
  62. package/dist/qy-upload/index.cjs +1 -1
  63. package/dist/qy-upload/index.mjs +1 -1
  64. package/dist/shared/index-528z_q7d.cjs +1 -0
  65. package/dist/shared/index-9v7CIwzO.cjs +1 -0
  66. package/dist/shared/{index-D7lMppIb.mjs → index-B7uyWUhS.mjs} +63 -63
  67. package/dist/shared/index-BTPk2zzq.cjs +1 -0
  68. package/dist/shared/index-BcCZMWAj.cjs +1 -0
  69. package/dist/shared/index-C1YwUATr.cjs +1 -0
  70. package/dist/shared/index-C6jcSQSF.mjs +129 -0
  71. package/dist/shared/index-CbCpXtYr.mjs +68 -0
  72. package/dist/shared/index-Cl5cuyVG.mjs +54 -0
  73. package/dist/shared/index-CuusBxhR.cjs +1 -0
  74. package/dist/shared/{index-BXlQSIWX.mjs → index-DZroPZ8B.mjs} +8 -8
  75. package/dist/shared/{index-DyK6vf5h.cjs → index-DmhpD4Cp.cjs} +1 -1
  76. package/dist/shared/index-DrJuMzr1.mjs +90 -0
  77. package/dist/shared/index-Du2IqeCI.mjs +149 -0
  78. package/dist/shared/{index-ZLoAI88M.mjs → index-DvQdcj7u.mjs} +1327 -1389
  79. package/dist/shared/index-EGnVOaC9.cjs +1 -0
  80. package/dist/shared/index-QQkDJv3q.cjs +1 -0
  81. package/dist/shared/index-R5B1rjXo.mjs +225 -0
  82. package/dist/shared/index-yf2Ijz_G.mjs +72 -0
  83. package/dist/shared/index-zJN0M-bx.cjs +1 -0
  84. package/dist/shared/index.vue_vue_type_script_setup_true_lang-C3F8M9sD.cjs +1 -0
  85. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs +106 -0
  86. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CsKjCWIN.cjs +1 -0
  87. package/dist/shared/index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs +61 -0
  88. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +1 -0
  89. package/dist/shared/index.vue_vue_type_style_index_0_lang-BZQLyvw8.cjs +1 -0
  90. package/dist/shared/index.vue_vue_type_style_index_0_lang-BtbAft4t.cjs +1 -0
  91. package/dist/shared/index.vue_vue_type_style_index_0_lang-CJhIFeBC.mjs +166 -0
  92. package/dist/shared/index.vue_vue_type_style_index_0_lang-DSur831A.mjs +68 -0
  93. package/dist/shared/index.vue_vue_type_style_index_0_lang-DVqGYfD9.mjs +132 -0
  94. package/dist/shared/index.vue_vue_type_style_index_0_lang-Dm1r1WBK.cjs +1 -0
  95. package/dist/shared/index.vue_vue_type_style_index_0_lang-Q2gFF0PP.cjs +1 -0
  96. package/dist/shared/index.vue_vue_type_style_index_0_lang-aqtfjdVm.mjs +140 -0
  97. package/dist/shared/index.vue_vue_type_style_index_0_lang-ztD-It-2.mjs +121 -0
  98. package/index.d.ts +145 -7
  99. package/package.json +43 -1
  100. package/qy-autocomplete/index.d.ts +5 -5
  101. package/qy-checkbox/index.d.ts +45 -5
  102. package/qy-checkbox-group/index.d.ts +48 -0
  103. package/qy-date-picker/index.d.ts +137 -2
  104. package/qy-file-picker/index.d.ts +49 -0
  105. package/qy-image/index.d.ts +28 -28
  106. package/qy-image-preview/index.d.ts +20 -20
  107. package/qy-input/index.d.ts +46 -1
  108. package/qy-input-number/index.d.ts +41 -1
  109. package/qy-menu-actions/index.d.ts +29 -29
  110. package/qy-popover/index.d.ts +63 -0
  111. package/qy-radio/index.d.ts +44 -0
  112. package/qy-radio-group/index.d.ts +57 -9
  113. package/qy-select/index.d.ts +64 -2
  114. package/qy-switch/index.d.ts +46 -0
  115. package/qy-table-column-settings/index.d.ts +18 -18
  116. package/qy-tag/index.d.ts +44 -0
  117. package/qy-tooltip/index.d.ts +54 -0
  118. package/qy-tree-select/index.d.ts +5 -5
  119. package/dist/shared/index-B3U7dqMt.cjs +0 -1
  120. package/dist/shared/index-BbpD7hM0.cjs +0 -1
  121. package/dist/shared/index-D3l7tLgw.cjs +0 -1
  122. package/dist/shared/index-NCpeoBUZ.mjs +0 -153
  123. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BJakDlgd.mjs +0 -70
  124. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CelW13DE.cjs +0 -1
  125. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DA1Nh7U1.mjs +0 -130
  126. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DEpXmMj5.mjs +0 -162
  127. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DNEVwqm7.cjs +0 -1
  128. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DfKTEci_.cjs +0 -1
  129. package/dist/shared/index.vue_vue_type_script_setup_true_lang-gTkP1LWg.mjs +0 -61
  130. package/dist/shared/index.vue_vue_type_script_setup_true_lang-svvSFv2K.cjs +0 -1
  131. package/dist/shared/index.vue_vue_type_style_index_0_lang-B_A4Nq6v.cjs +0 -1
  132. package/dist/shared/index.vue_vue_type_style_index_0_lang-DKFiK2fQ.mjs +0 -152
  133. /package/dist/shared/{index-CagHZ25z.mjs → index-BYLXkIxS.mjs} +0 -0
  134. /package/dist/shared/{index-CRZsiNVW.cjs → index-C1p86ezL.cjs} +0 -0
  135. /package/dist/shared/{index-BO5aWk3f.cjs → index-ClUqUsAv.cjs} +0 -0
  136. /package/dist/shared/{index-CSxCewXP.mjs → index-Cy_Glkc-.mjs} +0 -0
package/index.d.ts CHANGED
@@ -1,4 +1,128 @@
1
1
  import type { App, Plugin } from 'vue'
2
+ import type QyFilePickerComponent from './qy-file-picker'
3
+ import type QyCheckboxComponent from './qy-checkbox'
4
+ import type QyCheckboxGroupComponent from './qy-checkbox-group'
5
+ import type QyRadioComponent from './qy-radio'
6
+ import type QyRadioGroupComponent from './qy-radio-group'
7
+ import type QySelectComponent from './qy-select'
8
+ import type QySwitchComponent from './qy-switch'
9
+ import type QyTagComponent from './qy-tag'
10
+ import type QyTooltipComponent from './qy-tooltip'
11
+ import type QyPopoverComponent from './qy-popover'
12
+ import type QyInputComponent from './qy-input'
13
+ import type QyDatePickerComponent from './qy-date-picker'
14
+
15
+ export type {
16
+ QyInputNumberClearValue,
17
+ QyInputNumberControlsPosition,
18
+ QyInputNumberEmits,
19
+ QyInputNumberExposed,
20
+ QyInputNumberProps,
21
+ QyInputNumberSize,
22
+ QyInputNumberValue
23
+ } from './qy-input-number'
24
+
25
+ export type {
26
+ QyInputEmits,
27
+ QyInputExposed,
28
+ QyInputModelValue,
29
+ QyInputProps,
30
+ QyInputSize,
31
+ QyInputTrimMode,
32
+ QyInputType,
33
+ QyInputValue
34
+ } from './qy-input'
35
+
36
+ export type {
37
+ QyFilePickerExposed,
38
+ QyFilePickerEmits,
39
+ QyFilePickerInvalidCode,
40
+ QyFilePickerInvalidDetail,
41
+ QyFilePickerProps
42
+ } from './qy-file-picker'
43
+ export type {
44
+ QyCheckboxEmits,
45
+ QyCheckboxProps,
46
+ QyCheckboxSize,
47
+ QyCheckboxValue
48
+ } from './qy-checkbox'
49
+ export type {
50
+ QyCheckboxGroupEmits,
51
+ QyCheckboxGroupOption,
52
+ QyCheckboxGroupProps,
53
+ QyCheckboxGroupSize
54
+ } from './qy-checkbox-group'
55
+ export type {
56
+ QyRadioEmits,
57
+ QyRadioProps,
58
+ QyRadioSize,
59
+ QyRadioValue
60
+ } from './qy-radio'
61
+ export type {
62
+ QyRadioGroupEmits,
63
+ QyRadioGroupExposed,
64
+ QyRadioGroupOption,
65
+ QyRadioGroupProps,
66
+ QyRadioGroupSize,
67
+ QyRadioGroupType
68
+ } from './qy-radio-group'
69
+ export type {
70
+ QySelectEmits,
71
+ QySelectExposed,
72
+ QySelectModelValue,
73
+ QySelectObjectValue,
74
+ QySelectOption,
75
+ QySelectPrimitive,
76
+ QySelectProps,
77
+ QySelectSize,
78
+ QySelectValue
79
+ } from './qy-select'
80
+ export type {
81
+ QySwitchEmits,
82
+ QySwitchProps,
83
+ QySwitchSize,
84
+ QySwitchValue
85
+ } from './qy-switch'
86
+ export type {
87
+ QyTagEffect,
88
+ QyTagEmits,
89
+ QyTagProps,
90
+ QyTagSize,
91
+ QyTagTone
92
+ } from './qy-tag'
93
+ export type {
94
+ QyTooltipEffect,
95
+ QyTooltipEmits,
96
+ QyTooltipPlacement,
97
+ QyTooltipProps
98
+ } from './qy-tooltip'
99
+ export type {
100
+ QyPopoverEffect,
101
+ QyPopoverEmits,
102
+ QyPopoverExposed,
103
+ QyPopoverPlacement,
104
+ QyPopoverProps,
105
+ QyPopoverTrigger
106
+ } from './qy-popover'
107
+ export type {
108
+ QyDatePickerCalendarChangeValue,
109
+ QyDatePickerDateCell,
110
+ QyDatePickerEmits,
111
+ QyDatePickerExposed,
112
+ QyDatePickerModelValue,
113
+ QyDatePickerPanelDate,
114
+ QyDatePickerPanelMode,
115
+ QyDatePickerPanelSlotProps,
116
+ QyDatePickerPanelView,
117
+ QyDatePickerProps,
118
+ QyDatePickerRangeValue,
119
+ QyDatePickerScalarValue,
120
+ QyDatePickerShortcut,
121
+ QyDatePickerShortcutValue,
122
+ QyDatePickerSize,
123
+ QyDatePickerSlots,
124
+ QyDatePickerType
125
+ } from './qy-date-picker'
2
126
 
3
127
  // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
4
128
  export const QyUpload: Plugin
@@ -8,24 +132,31 @@ export const QyImageUpload: Plugin
8
132
  export const QyDialog: Plugin
9
133
  export const QyButton: Plugin
10
134
  export const QyDropdown: Plugin
11
- export const QyInput: Plugin
12
- export const QyInputNumber: Plugin
135
+ export const QyInput: typeof QyInputComponent
136
+ export { QyInputNumber } from './qy-input-number'
13
137
  export const QyMoneyInput: Plugin
14
- export const QyDatePicker: Plugin
15
- export const QyCheckbox: Plugin
138
+ export const QyDatePicker: typeof QyDatePickerComponent
139
+ export const QyCheckbox: typeof QyCheckboxComponent
140
+ export const QyCheckboxGroup: typeof QyCheckboxGroupComponent
141
+ export const QyRadio: typeof QyRadioComponent
16
142
  export const QyAutocomplete: Plugin
17
143
  export const QyMenuActions: Plugin
18
144
  export const QyTableColumnSettings: Plugin
19
- export const QyRadioGroup: Plugin
145
+ export const QyRadioGroup: typeof QyRadioGroupComponent
20
146
  export const QyRemoteSelect: Plugin
21
147
  export const QySearchInput: Plugin
22
148
  export const QyRecordQuoteSearch: Plugin
23
- export const QySelect: Plugin
149
+ export const QySelect: typeof QySelectComponent
24
150
  export const QyTreeSelect: Plugin
25
151
  export const QySelectionDialog: Plugin
26
152
  export const QyLegacySelectionDialog: Plugin
27
153
  export const QyFormSection: Plugin
28
154
  export const QyActionBar: Plugin
155
+ export const QyFilePicker: typeof QyFilePickerComponent
156
+ export const QySwitch: typeof QySwitchComponent
157
+ export const QyTag: typeof QyTagComponent
158
+ export const QyTooltip: typeof QyTooltipComponent
159
+ export const QyPopover: typeof QyPopoverComponent
29
160
  export const QyRemarkImage: Plugin
30
161
  export function parseRemarkText(remarkText: string): {
31
162
  imageUrl: string
@@ -54,8 +185,10 @@ declare const _default: Plugin & {
54
185
  QyInput: typeof QyInput
55
186
  QyInputNumber: typeof QyInputNumber
56
187
  QyMoneyInput: typeof QyMoneyInput
57
- QyDatePicker: typeof QyDatePicker
188
+ QyDatePicker: typeof QyDatePickerComponent
58
189
  QyCheckbox: typeof QyCheckbox
190
+ QyCheckboxGroup: typeof QyCheckboxGroup
191
+ QyRadio: typeof QyRadio
59
192
  QyAutocomplete: typeof QyAutocomplete
60
193
  QyMenuActions: typeof QyMenuActions
61
194
  QyTableColumnSettings: typeof QyTableColumnSettings
@@ -69,6 +202,11 @@ declare const _default: Plugin & {
69
202
  QyLegacySelectionDialog: typeof QyLegacySelectionDialog
70
203
  QyFormSection: typeof QyFormSection
71
204
  QyActionBar: typeof QyActionBar
205
+ QyFilePicker: typeof QyFilePicker
206
+ QySwitch: typeof QySwitch
207
+ QyTag: typeof QyTag
208
+ QyTooltip: typeof QyTooltip
209
+ QyPopover: typeof QyPopover
72
210
  QyRemarkImage: typeof QyRemarkImage
73
211
  }
74
212
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.23",
3
+ "version": "1.0.25",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "author": "qy",
6
6
  "license": "MIT",
@@ -18,6 +18,31 @@
18
18
  "import": "./dist/qy-upload/index.mjs",
19
19
  "require": "./dist/qy-upload/index.cjs"
20
20
  },
21
+ "./qy-file-picker": {
22
+ "types": "./qy-file-picker/index.d.ts",
23
+ "import": "./dist/qy-file-picker/index.mjs",
24
+ "require": "./dist/qy-file-picker/index.cjs"
25
+ },
26
+ "./qy-switch": {
27
+ "types": "./qy-switch/index.d.ts",
28
+ "import": "./dist/qy-switch/index.mjs",
29
+ "require": "./dist/qy-switch/index.cjs"
30
+ },
31
+ "./qy-tag": {
32
+ "types": "./qy-tag/index.d.ts",
33
+ "import": "./dist/qy-tag/index.mjs",
34
+ "require": "./dist/qy-tag/index.cjs"
35
+ },
36
+ "./qy-tooltip": {
37
+ "types": "./qy-tooltip/index.d.ts",
38
+ "import": "./dist/qy-tooltip/index.mjs",
39
+ "require": "./dist/qy-tooltip/index.cjs"
40
+ },
41
+ "./qy-popover": {
42
+ "types": "./qy-popover/index.d.ts",
43
+ "import": "./dist/qy-popover/index.mjs",
44
+ "require": "./dist/qy-popover/index.cjs"
45
+ },
21
46
  "./qy-image": {
22
47
  "types": "./qy-image/index.d.ts",
23
48
  "import": "./dist/qy-image/index.mjs",
@@ -73,6 +98,16 @@
73
98
  "import": "./dist/qy-checkbox/index.mjs",
74
99
  "require": "./dist/qy-checkbox/index.cjs"
75
100
  },
101
+ "./qy-checkbox-group": {
102
+ "types": "./qy-checkbox-group/index.d.ts",
103
+ "import": "./dist/qy-checkbox-group/index.mjs",
104
+ "require": "./dist/qy-checkbox-group/index.cjs"
105
+ },
106
+ "./qy-radio": {
107
+ "types": "./qy-radio/index.d.ts",
108
+ "import": "./dist/qy-radio/index.mjs",
109
+ "require": "./dist/qy-radio/index.cjs"
110
+ },
76
111
  "./qy-autocomplete": {
77
112
  "types": "./qy-autocomplete/index.d.ts",
78
113
  "import": "./dist/qy-autocomplete/index.mjs",
@@ -149,6 +184,11 @@
149
184
  "dist",
150
185
  "README.md",
151
186
  "qy-upload/index.d.ts",
187
+ "qy-file-picker/index.d.ts",
188
+ "qy-switch/index.d.ts",
189
+ "qy-tag/index.d.ts",
190
+ "qy-tooltip/index.d.ts",
191
+ "qy-popover/index.d.ts",
152
192
  "qy-image/index.d.ts",
153
193
  "qy-image-preview/index.d.ts",
154
194
  "qy-image-upload/index.d.ts",
@@ -160,6 +200,8 @@
160
200
  "qy-money-input/index.d.ts",
161
201
  "qy-date-picker/index.d.ts",
162
202
  "qy-checkbox/index.d.ts",
203
+ "qy-checkbox-group/index.d.ts",
204
+ "qy-radio/index.d.ts",
163
205
  "qy-autocomplete/index.d.ts",
164
206
  "qy-menu-actions/index.d.ts",
165
207
  "qy-table-column-settings/index.d.ts",
@@ -1,5 +1,5 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyAutocomplete: DefineComponent<any, any, any> & Plugin
4
-
5
- export default QyAutocomplete
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ declare const QyAutocomplete: DefineComponent<any, any, any> & Plugin
4
+
5
+ export default QyAutocomplete
@@ -1,5 +1,45 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyCheckbox: DefineComponent<any, any, any> & Plugin
4
-
5
- export default QyCheckbox
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyCheckboxValue = boolean | string | number
8
+ export type QyCheckboxSize = 'small' | 'default' | 'large'
9
+
10
+ export interface QyCheckboxProps {
11
+ modelValue?: QyCheckboxValue
12
+ value?: QyCheckboxValue
13
+ indeterminate?: boolean
14
+ disabled?: boolean
15
+ size?: QyCheckboxSize
16
+ trueValue?: QyCheckboxValue
17
+ falseValue?: QyCheckboxValue
18
+ name?: string
19
+ id?: string
20
+ tabindex?: string | number
21
+ ariaLabel?: string
22
+ ariaControls?: string
23
+ }
24
+
25
+ export type QyCheckboxEmits = {
26
+ 'update:modelValue': (value: QyCheckboxValue) => void
27
+ change: (value: QyCheckboxValue) => void
28
+ focus: (event: FocusEvent) => void
29
+ blur: (event: FocusEvent) => void
30
+ }
31
+
32
+ declare const QyCheckbox: DefineComponent<
33
+ QyCheckboxProps,
34
+ {},
35
+ {},
36
+ {},
37
+ {},
38
+ ComponentOptionsMixin,
39
+ ComponentOptionsMixin,
40
+ QyCheckboxEmits
41
+ > &
42
+ Plugin
43
+
44
+ export { QyCheckbox }
45
+ export default QyCheckbox
@@ -0,0 +1,48 @@
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+ import type {
7
+ QyCheckboxSize,
8
+ QyCheckboxValue
9
+ } from '../qy-checkbox'
10
+
11
+ export type QyCheckboxGroupSize = QyCheckboxSize
12
+
13
+ export interface QyCheckboxGroupOption {
14
+ label: string
15
+ value: QyCheckboxValue
16
+ disabled?: boolean
17
+ }
18
+
19
+ export interface QyCheckboxGroupProps {
20
+ modelValue?: QyCheckboxValue[]
21
+ options?: QyCheckboxGroupOption[]
22
+ disabled?: boolean
23
+ min?: number
24
+ max?: number
25
+ size?: QyCheckboxGroupSize
26
+ ariaLabel?: string
27
+ }
28
+
29
+ export type QyCheckboxGroupEmits = {
30
+ 'update:modelValue': (value: QyCheckboxValue[]) => void
31
+ change: (value: QyCheckboxValue[]) => void
32
+ }
33
+
34
+ declare const QyCheckboxGroup: DefineComponent<
35
+ QyCheckboxGroupProps,
36
+ {},
37
+ {},
38
+ {},
39
+ {},
40
+ ComponentOptionsMixin,
41
+ ComponentOptionsMixin,
42
+ QyCheckboxGroupEmits
43
+ > &
44
+ Plugin
45
+
46
+ export { QyCheckboxGroup }
47
+ export type { QyCheckboxSize, QyCheckboxValue }
48
+ export default QyCheckboxGroup
@@ -1,5 +1,140 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin,
5
+ PublicProps,
6
+ SlotsType,
7
+ VNodeChild
8
+ } from 'vue'
2
9
 
3
- declare const QyDatePicker: DefineComponent<any, any, any> & Plugin
10
+ export type QyDatePickerScalarValue = string | number | Date
11
+ export type QyDatePickerRangeValue = QyDatePickerScalarValue[]
12
+ export type QyDatePickerModelValue =
13
+ | QyDatePickerScalarValue
14
+ | QyDatePickerRangeValue
15
+ | null
16
+ | undefined
4
17
 
18
+ export type QyDatePickerType =
19
+ | 'year'
20
+ | 'month'
21
+ | 'date'
22
+ | 'dates'
23
+ | 'datetime'
24
+ | 'week'
25
+ | 'daterange'
26
+ | 'datetimerange'
27
+ | 'monthrange'
28
+
29
+ export type QyDatePickerSize = 'small' | 'default' | 'large'
30
+ export type QyDatePickerShortcutValue = Date | [Date, Date]
31
+
32
+ export interface QyDatePickerShortcut {
33
+ text: string
34
+ value:
35
+ | QyDatePickerShortcutValue
36
+ | (() => QyDatePickerShortcutValue)
37
+ }
38
+
39
+ export interface QyDatePickerDateCell {
40
+ date?: Date
41
+ text?: number
42
+ disabled?: boolean
43
+ inRange?: boolean
44
+ start?: boolean
45
+ end?: boolean
46
+ type?: 'normal' | 'today' | 'week' | 'next-month' | 'prev-month'
47
+ }
48
+
49
+ export interface QyDatePickerPanelSlotProps {
50
+ date?: Date
51
+ type?: QyDatePickerType
52
+ }
53
+
54
+ export interface QyDatePickerSlots {
55
+ default?: (props: QyDatePickerDateCell) => VNodeChild
56
+ 'range-separator'?: (props: QyDatePickerPanelSlotProps) => VNodeChild
57
+ 'prev-month'?: (props: QyDatePickerPanelSlotProps) => VNodeChild
58
+ 'next-month'?: (props: QyDatePickerPanelSlotProps) => VNodeChild
59
+ 'prev-year'?: (props: QyDatePickerPanelSlotProps) => VNodeChild
60
+ 'next-year'?: (props: QyDatePickerPanelSlotProps) => VNodeChild
61
+ }
62
+
63
+ export type QyDatePickerPanelMode = 'month' | 'year'
64
+ export type QyDatePickerPanelView = 'date' | 'month' | 'year'
65
+ export type QyDatePickerPanelDate = Date | [Date, Date]
66
+ export type QyDatePickerCalendarChangeValue = [Date, Date | null]
67
+
68
+ export interface QyDatePickerProps {
69
+ modelValue?: QyDatePickerModelValue
70
+ type?: QyDatePickerType
71
+ placeholder?: string
72
+ startPlaceholder?: string
73
+ endPlaceholder?: string
74
+ rangeSeparator?: string
75
+ format?: string
76
+ valueFormat?: string
77
+ defaultTime?: Date | [Date, Date]
78
+ disabledDate?: (date: Date) => boolean
79
+ shortcuts?: QyDatePickerShortcut[]
80
+ clearable?: boolean
81
+ disabled?: boolean
82
+ readonly?: boolean
83
+ size?: QyDatePickerSize
84
+ teleported?: boolean
85
+ appendTo?: string | HTMLElement
86
+ popperClass?: string
87
+ normalizeRangeEndTime?: boolean
88
+ }
89
+
90
+ export type QyDatePickerEmits = {
91
+ 'update:modelValue': (value: QyDatePickerModelValue) => void
92
+ change: (value: QyDatePickerModelValue) => void
93
+ clear: () => void
94
+ 'calendar-change': (value: QyDatePickerCalendarChangeValue) => void
95
+ 'panel-change': (
96
+ date: QyDatePickerPanelDate,
97
+ mode: QyDatePickerPanelMode,
98
+ view?: QyDatePickerPanelView
99
+ ) => void
100
+ 'visible-change': (visible: boolean) => void
101
+ focus: (event: FocusEvent) => void
102
+ blur: (event: FocusEvent) => void
103
+ }
104
+
105
+ export interface QyDatePickerExposed {
106
+ focus(): void
107
+ blur(): void
108
+ open(): void
109
+ close(): void
110
+ }
111
+
112
+ type QyDatePickerComponentProps = QyDatePickerProps & {
113
+ 'onUpdate:modelValue'?: QyDatePickerEmits['update:modelValue']
114
+ onChange?: QyDatePickerEmits['change']
115
+ onClear?: QyDatePickerEmits['clear']
116
+ 'onCalendar-change'?: QyDatePickerEmits['calendar-change']
117
+ 'onPanel-change'?: QyDatePickerEmits['panel-change']
118
+ 'onVisible-change'?: QyDatePickerEmits['visible-change']
119
+ onFocus?: QyDatePickerEmits['focus']
120
+ onBlur?: QyDatePickerEmits['blur']
121
+ }
122
+
123
+ declare const QyDatePicker: DefineComponent<
124
+ QyDatePickerProps,
125
+ QyDatePickerExposed,
126
+ {},
127
+ {},
128
+ {},
129
+ ComponentOptionsMixin,
130
+ ComponentOptionsMixin,
131
+ QyDatePickerEmits,
132
+ string,
133
+ PublicProps,
134
+ QyDatePickerComponentProps,
135
+ {},
136
+ SlotsType<QyDatePickerSlots>
137
+ > & Plugin
138
+
139
+ export { QyDatePicker }
5
140
  export default QyDatePicker
@@ -0,0 +1,49 @@
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyFilePickerInvalidCode = 'extension' | 'size'
8
+
9
+ export interface QyFilePickerInvalidDetail {
10
+ code: QyFilePickerInvalidCode
11
+ file: File
12
+ message: string
13
+ }
14
+
15
+ export interface QyFilePickerProps {
16
+ modelValue?: File | null
17
+ extensions?: string[]
18
+ maxSizeMb?: number
19
+ disabled?: boolean
20
+ drag?: boolean
21
+ placeholder?: string
22
+ }
23
+
24
+ export interface QyFilePickerExposed {
25
+ openFileDialog(): void
26
+ clear(): void
27
+ }
28
+
29
+ export type QyFilePickerEmits = {
30
+ 'update:modelValue': (file: File | null) => void
31
+ change: (file: File | null) => void
32
+ clear: () => void
33
+ invalid: (detail: QyFilePickerInvalidDetail) => void
34
+ }
35
+
36
+ declare const QyFilePicker: DefineComponent<
37
+ QyFilePickerProps,
38
+ QyFilePickerExposed,
39
+ {},
40
+ {},
41
+ {},
42
+ ComponentOptionsMixin,
43
+ ComponentOptionsMixin,
44
+ QyFilePickerEmits
45
+ > &
46
+ Plugin
47
+
48
+ export { QyFilePicker }
49
+ export default QyFilePicker
@@ -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,20 @@
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
+ export default QyImagePreview