@qynpm/ui 1.0.44 → 1.0.45

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 (185) hide show
  1. package/README.md +2 -0
  2. package/dist/index.cjs +12 -12
  3. package/dist/index.mjs +13 -13
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-autocomplete/index.cjs +1 -1
  7. package/dist/qy-autocomplete/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-color-picker/index.cjs +1 -1
  13. package/dist/qy-color-picker/index.mjs +1 -1
  14. package/dist/qy-date-picker/index.cjs +1 -1
  15. package/dist/qy-date-picker/index.mjs +1 -1
  16. package/dist/qy-dialog/index.cjs +1 -1
  17. package/dist/qy-dialog/index.mjs +1 -1
  18. package/dist/qy-dropdown/index.cjs +2 -2
  19. package/dist/qy-dropdown/index.mjs +2 -2
  20. package/dist/qy-file-picker/index.cjs +1 -1
  21. package/dist/qy-file-picker/index.mjs +1 -1
  22. package/dist/qy-form-section/index.cjs +1 -1
  23. package/dist/qy-form-section/index.mjs +1 -1
  24. package/dist/qy-image/index.cjs +1 -1
  25. package/dist/qy-image/index.mjs +1 -1
  26. package/dist/qy-image-preview/index.cjs +1 -1
  27. package/dist/qy-image-preview/index.mjs +2 -2
  28. package/dist/qy-image-upload/index.cjs +1 -1
  29. package/dist/qy-image-upload/index.mjs +1 -1
  30. package/dist/qy-input-tag/index.cjs +1 -1
  31. package/dist/qy-input-tag/index.mjs +1 -1
  32. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  33. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  34. package/dist/qy-menu-actions/index.cjs +1 -1
  35. package/dist/qy-menu-actions/index.mjs +1 -1
  36. package/dist/qy-money-input/index.cjs +1 -1
  37. package/dist/qy-money-input/index.mjs +1 -1
  38. package/dist/qy-pagination/index.cjs +1 -1
  39. package/dist/qy-pagination/index.mjs +1 -1
  40. package/dist/qy-popconfirm/index.cjs +1 -1
  41. package/dist/qy-popconfirm/index.mjs +1 -1
  42. package/dist/qy-popover/index.cjs +1 -1
  43. package/dist/qy-popover/index.mjs +1 -1
  44. package/dist/qy-radio/index.cjs +1 -1
  45. package/dist/qy-radio/index.mjs +1 -1
  46. package/dist/qy-radio-group/index.cjs +1 -1
  47. package/dist/qy-radio-group/index.mjs +1 -1
  48. package/dist/qy-record-quote-search/index.cjs +1 -1
  49. package/dist/qy-record-quote-search/index.mjs +1 -1
  50. package/dist/qy-remark-image/index.cjs +1 -1
  51. package/dist/qy-remark-image/index.mjs +1 -1
  52. package/dist/qy-remote-select/index.cjs +1 -1
  53. package/dist/qy-remote-select/index.mjs +1 -1
  54. package/dist/qy-search-input/index.cjs +1 -1
  55. package/dist/qy-search-input/index.mjs +1 -1
  56. package/dist/qy-select/index.cjs +1 -1
  57. package/dist/qy-select/index.mjs +1 -1
  58. package/dist/qy-selection-dialog/index.cjs +1 -1
  59. package/dist/qy-selection-dialog/index.mjs +1 -1
  60. package/dist/qy-switch/index.cjs +1 -1
  61. package/dist/qy-switch/index.mjs +1 -1
  62. package/dist/qy-table-column-settings/index.cjs +1 -1
  63. package/dist/qy-table-column-settings/index.mjs +1 -1
  64. package/dist/qy-tooltip/index.cjs +1 -1
  65. package/dist/qy-tooltip/index.mjs +1 -1
  66. package/dist/qy-tree-select/index.cjs +1 -1
  67. package/dist/qy-tree-select/index.mjs +1 -1
  68. package/dist/qy-upload/index.cjs +1 -1
  69. package/dist/qy-upload/index.mjs +1 -1
  70. package/dist/shared/{index-BNssRW4d.mjs → index-9G8dxxVx.mjs} +13 -13
  71. package/dist/shared/{index-DRIoLeFE.mjs → index-B1gnVI8Y.mjs} +44 -45
  72. package/dist/shared/{index-CiE6qJCJ.mjs → index-BcDt1tKY.mjs} +151 -143
  73. package/dist/shared/index-BfA7ZJnJ.cjs +1 -0
  74. package/dist/shared/index-BfXhDFFn.cjs +1 -0
  75. package/dist/shared/index-Bfmf0msc.mjs +71 -0
  76. package/dist/shared/index-BhpomD_C.cjs +1 -0
  77. package/dist/shared/index-BvXyRAhX.cjs +1 -0
  78. package/dist/shared/index-Bz9WjKdL.cjs +1 -0
  79. package/dist/shared/{index-Co84fsS5.mjs → index-C5hzCMaD.mjs} +88 -80
  80. package/dist/shared/index-CPW3gKgP.mjs +2429 -0
  81. package/dist/shared/index-CUwUz-Le.cjs +1 -0
  82. package/dist/shared/index-CjImIyvI.mjs +124 -0
  83. package/dist/shared/{index-gMrQlV5n.cjs → index-CsfcDlq4.cjs} +1 -1
  84. package/dist/shared/{index-BweLwi2_.cjs → index-D359jZg_.cjs} +1 -1
  85. package/dist/shared/{index-DvFMgAcu.mjs → index-DEoy2IfN.mjs} +1 -1
  86. package/dist/shared/{index-BjqJCq-6.mjs → index-DM0zanTb.mjs} +3 -3
  87. package/dist/shared/index-DOpfxPDq.cjs +1 -0
  88. package/dist/shared/index-DPqFEuPp.mjs +798 -0
  89. package/dist/shared/index-DWBkjY5O.cjs +1 -0
  90. package/dist/shared/index-DaUdmOjn.cjs +1 -0
  91. package/dist/shared/index-MEzLM_rM.cjs +1 -0
  92. package/dist/shared/index-MyPNS-OR.cjs +1 -0
  93. package/dist/shared/{index-C4F8hXzQ.mjs → index-XSV-GmR2.mjs} +90 -81
  94. package/dist/shared/index-_e-HwHF0.mjs +79 -0
  95. package/dist/shared/{index-DNnWRAFl.mjs → index-uMEKxoXj.mjs} +1 -1
  96. package/dist/shared/index.vue_vue_type_script_setup_true_lang-B38X3tvf.cjs +1 -0
  97. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BNKC9382.cjs +1 -0
  98. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs → index.vue_vue_type_script_setup_true_lang-BtMkNw_I.mjs} +49 -47
  99. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Byp7e--Y.mjs +63 -0
  100. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-Dn29lZTs.mjs → index.vue_vue_type_script_setup_true_lang-Bypkl4Ty.mjs} +20 -18
  101. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CPm8gzId.cjs +1 -0
  102. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CYaK3oDY.cjs +1 -0
  103. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CeVvm5Ph.cjs +1 -0
  104. package/dist/shared/index.vue_vue_type_script_setup_true_lang-Cn0JqB5r.cjs +1 -0
  105. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DMHhx9lY.mjs +133 -0
  106. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs → index.vue_vue_type_script_setup_true_lang-DkMm40Ac.mjs} +50 -42
  107. package/dist/shared/index.vue_vue_type_script_setup_true_lang-qXBKqHCs.mjs +40 -0
  108. package/dist/shared/index.vue_vue_type_style_index_0_lang-BI4abIsm.mjs +219 -0
  109. package/dist/shared/index.vue_vue_type_style_index_0_lang-BNBJu1Mq.cjs +1 -0
  110. package/dist/shared/index.vue_vue_type_style_index_0_lang-BZZ8vhEf.cjs +1 -0
  111. package/dist/shared/{index.vue_vue_type_style_index_0_lang-DSur831A.mjs → index.vue_vue_type_style_index_0_lang-Bpe6LkvL.mjs} +24 -18
  112. package/dist/shared/index.vue_vue_type_style_index_0_lang-CYIUfOy9.cjs +1 -0
  113. package/dist/shared/index.vue_vue_type_style_index_0_lang-D2iiEHqM.mjs +413 -0
  114. package/dist/shared/index.vue_vue_type_style_index_0_lang-Dt19xolk.cjs +1 -0
  115. package/dist/shared/index.vue_vue_type_style_index_0_lang-DzvboHR2.mjs +176 -0
  116. package/dist/shared/index.vue_vue_type_style_index_0_lang-E92uiH6Q.cjs +1 -0
  117. package/dist/shared/index.vue_vue_type_style_index_0_lang-W44zpeKW.cjs +1 -0
  118. package/dist/shared/{index.vue_vue_type_style_index_0_lang-CcVf5MXE.mjs → index.vue_vue_type_style_index_0_lang-shJS7iXC.mjs} +59 -57
  119. package/dist/shared/index.vue_vue_type_style_index_0_lang-z2Unl0WQ.mjs +142 -0
  120. package/dist/shared/overlay-stack-CFFRngnU.mjs +34 -0
  121. package/dist/shared/overlay-stack-DeKq7jZu.cjs +1 -0
  122. package/dist/shared/{utils-DoyI5oM8.mjs → utils-CUXINmHY.mjs} +63 -49
  123. package/dist/shared/utils-DpkN3Zat.cjs +1 -0
  124. package/index.d.ts +44 -12
  125. package/package.json +1 -1
  126. package/qy-action-bar/index.d.ts +16 -4
  127. package/qy-autocomplete/index.d.ts +43 -2
  128. package/qy-checkbox/index.d.ts +1 -0
  129. package/qy-checkbox-group/index.d.ts +1 -0
  130. package/qy-date-picker/index.d.ts +1 -0
  131. package/qy-dialog/index.d.ts +4 -0
  132. package/qy-form-section/index.d.ts +22 -4
  133. package/qy-image/index.d.ts +1 -0
  134. package/qy-image-preview/index.d.ts +8 -4
  135. package/qy-menu-actions/index.d.ts +21 -2
  136. package/qy-money-input/index.d.ts +1 -0
  137. package/qy-pagination/index.d.ts +4 -0
  138. package/qy-popover/index.d.ts +4 -0
  139. package/qy-radio-group/index.d.ts +1 -0
  140. package/qy-record-quote-search/index.d.ts +53 -4
  141. package/qy-remark-image/index.d.ts +44 -4
  142. package/qy-remote-select/index.d.ts +53 -2
  143. package/qy-search-input/index.d.ts +66 -4
  144. package/qy-select/index.d.ts +4 -0
  145. package/qy-selection-dialog/index.d.ts +63 -2
  146. package/qy-switch/index.d.ts +1 -0
  147. package/qy-table-column-settings/index.d.ts +19 -2
  148. package/qy-tooltip/index.d.ts +5 -0
  149. package/qy-tree-select/index.d.ts +1 -0
  150. package/dist/shared/index-5dxbpQb_.cjs +0 -1
  151. package/dist/shared/index-BEcS8y8g.mjs +0 -68
  152. package/dist/shared/index-BSTMCPDj.mjs +0 -72
  153. package/dist/shared/index-Bh9hxVFh.mjs +0 -766
  154. package/dist/shared/index-CGq7Q_hV.mjs +0 -119
  155. package/dist/shared/index-CVYNG8Fc.cjs +0 -1
  156. package/dist/shared/index-CmgTSaFS.cjs +0 -1
  157. package/dist/shared/index-CnVhquq5.cjs +0 -1
  158. package/dist/shared/index-D27mwR57.cjs +0 -1
  159. package/dist/shared/index-DKw-seoh.cjs +0 -1
  160. package/dist/shared/index-DRugp8x0.cjs +0 -1
  161. package/dist/shared/index-DTbGlDqr.cjs +0 -1
  162. package/dist/shared/index-MyDDX-zj.cjs +0 -1
  163. package/dist/shared/index-afOuq3YX.cjs +0 -1
  164. package/dist/shared/index-rSrDnOpu.cjs +0 -1
  165. package/dist/shared/index-rjciSHaR.mjs +0 -2362
  166. package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +0 -1
  167. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CKp87br2.cjs +0 -1
  168. package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +0 -1
  169. package/dist/shared/index.vue_vue_type_script_setup_true_lang-DbLp1kvW.cjs +0 -1
  170. package/dist/shared/index.vue_vue_type_script_setup_true_lang-EiHoQBXt.mjs +0 -94
  171. package/dist/shared/index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs +0 -48
  172. package/dist/shared/index.vue_vue_type_script_setup_true_lang-UBQQ6Z03.cjs +0 -1
  173. package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +0 -1
  174. package/dist/shared/index.vue_vue_type_script_setup_true_lang-r7iyZzDS.mjs +0 -61
  175. package/dist/shared/index.vue_vue_type_style_index_0_lang-1cTut9Ql.cjs +0 -1
  176. package/dist/shared/index.vue_vue_type_style_index_0_lang-B2thgQml.cjs +0 -1
  177. package/dist/shared/index.vue_vue_type_style_index_0_lang-BMZqMPZb.mjs +0 -215
  178. package/dist/shared/index.vue_vue_type_style_index_0_lang-Bb3L64L8.mjs +0 -406
  179. package/dist/shared/index.vue_vue_type_style_index_0_lang-BoaO6MKl.cjs +0 -1
  180. package/dist/shared/index.vue_vue_type_style_index_0_lang-C4Yk-UdJ.mjs +0 -172
  181. package/dist/shared/index.vue_vue_type_style_index_0_lang-D9-2GN18.cjs +0 -1
  182. package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +0 -1
  183. package/dist/shared/index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs +0 -128
  184. package/dist/shared/index.vue_vue_type_style_index_0_lang-RiwA2WPO.cjs +0 -1
  185. package/dist/shared/utils-BjEXwY3L.cjs +0 -1
package/index.d.ts CHANGED
@@ -1,3 +1,10 @@
1
+ import type QyRecordQuoteSearchComponent from './qy-record-quote-search'
2
+ import type QyTableColumnSettingsComponent from './qy-table-column-settings'
3
+ import type QyMenuActionsComponent from './qy-menu-actions'
4
+ import type QyFormSectionComponent from './qy-form-section'
5
+ import type QyActionBarComponent from './qy-action-bar'
6
+ import type QyRemarkImageComponent from './qy-remark-image'
7
+ import type QySearchInputComponent from './qy-search-input'
1
8
  import type { App, Plugin } from 'vue'
2
9
  import type QyUploadComponent from './qy-upload'
3
10
  import type QyImageUploadComponent from './qy-image-upload'
@@ -7,6 +14,8 @@ import type QyCheckboxGroupComponent from './qy-checkbox-group'
7
14
  import type QyRadioComponent from './qy-radio'
8
15
  import type QyRadioGroupComponent from './qy-radio-group'
9
16
  import type QySelectComponent from './qy-select'
17
+ import type QyAutocompleteComponent from './qy-autocomplete'
18
+ import type QyRemoteSelectComponent from './qy-remote-select'
10
19
  import type QyTreeSelectComponent from './qy-tree-select'
11
20
  import type QySwitchComponent from './qy-switch'
12
21
  import type QyTagComponent from './qy-tag'
@@ -44,6 +53,9 @@ import type QyCardComponent from './qy-card'
44
53
  import type QyResultComponent from './qy-result'
45
54
  import type QyWatermarkComponent from './qy-watermark'
46
55
  import type QyDialogComponent from './qy-dialog'
56
+ import type QyImageComponent from './qy-image'
57
+ import type QyImagePreviewComponent from './qy-image-preview'
58
+ import type QySelectionDialogComponent from './qy-selection-dialog'
47
59
  import type QyScrollbarComponent from './qy-scrollbar'
48
60
  import type QyProgressComponent from './qy-progress'
49
61
  import type QyStatisticComponent from './qy-statistic'
@@ -59,6 +71,7 @@ import type QyMoneyInputComponent from './qy-money-input'
59
71
  export type {
60
72
  QyPaginationBinding,
61
73
  QyPaginationEmits,
74
+ QyPaginationLayoutItem,
62
75
  QyPaginationProps
63
76
  } from './qy-pagination'
64
77
 
@@ -209,6 +222,7 @@ export type {
209
222
  } from './qy-cascader'
210
223
  export type {
211
224
  QyTooltipEffect,
225
+ QyTooltipTrigger,
212
226
  QyTooltipEmits,
213
227
  QyTooltipPlacement,
214
228
  QyTooltipProps
@@ -535,8 +549,9 @@ export type {
535
549
 
536
550
  // 根入口类型声明,对应 @qynpm/ui 的命名导出和 app.use(QyUI) 整包注册。
537
551
  export const QyUpload: typeof QyUploadComponent
538
- export const QyImage: Plugin
539
- export const QyImagePreview: Plugin
552
+ export const QyImage: typeof QyImageComponent
553
+ export const QyImagePreview: typeof QyImagePreviewComponent
554
+ export type { QyImagePreviewProps, QyImagePreviewEmits } from './qy-image-preview'
540
555
  export const QyImageUpload: typeof QyImageUploadComponent
541
556
  export const QyDialog: typeof QyDialogComponent
542
557
  export const QyButton: Plugin
@@ -549,19 +564,22 @@ export const QyDatePicker: typeof QyDatePickerComponent
549
564
  export const QyCheckbox: typeof QyCheckboxComponent
550
565
  export const QyCheckboxGroup: typeof QyCheckboxGroupComponent
551
566
  export const QyRadio: typeof QyRadioComponent
552
- export const QyAutocomplete: Plugin
553
- export const QyMenuActions: Plugin
554
- export const QyTableColumnSettings: Plugin
567
+ export const QyAutocomplete: typeof QyAutocompleteComponent
568
+ export type { QyAutocompleteProps, QyAutocompleteEmits, QyAutocompleteSlots, QyAutocompleteExposed, QyAutocompleteOption, QyAutocompleteValue, QyAutocompleteFetchSuggestions } from './qy-autocomplete'
569
+ export const QyMenuActions: typeof QyMenuActionsComponent
570
+ export const QyTableColumnSettings: typeof QyTableColumnSettingsComponent
555
571
  export const QyRadioGroup: typeof QyRadioGroupComponent
556
- export const QyRemoteSelect: Plugin
557
- export const QySearchInput: Plugin
558
- export const QyRecordQuoteSearch: Plugin
572
+ export const QyRemoteSelect: typeof QyRemoteSelectComponent
573
+ export type { QyRemoteSelectProps, QyRemoteSelectEmits, QyRemoteSelectExposed, QyRemoteSelectOption, QyRemoteSelectModelValue, QyRemoteSelectFetchMethod } from './qy-remote-select'
574
+ export const QySearchInput: typeof QySearchInputComponent
575
+ export const QyRecordQuoteSearch: typeof QyRecordQuoteSearchComponent
559
576
  export const QySelect: typeof QySelectComponent
560
577
  export const QyTreeSelect: typeof QyTreeSelectComponent
561
- export const QySelectionDialog: Plugin
578
+ export const QySelectionDialog: typeof QySelectionDialogComponent
579
+ export type { QySelectionDialogProps, QySelectionDialogEmits, QySelectionDialogExposed, QySelectionRow, QySelectionResult } from './qy-selection-dialog'
562
580
  export const QyLegacySelectionDialog: Plugin
563
- export const QyFormSection: Plugin
564
- export const QyActionBar: Plugin
581
+ export const QyFormSection: typeof QyFormSectionComponent
582
+ export const QyActionBar: typeof QyActionBarComponent
565
583
  /** @deprecated 请使用 QyUpload 的本地选择模式。 */
566
584
  export const QyFilePicker: typeof QyFilePickerComponent
567
585
  export const QySwitch: typeof QySwitchComponent
@@ -608,7 +626,7 @@ export const QyStatistic: typeof QyStatisticComponent
608
626
  export const QyAvatar: typeof QyAvatarComponent
609
627
  export const QyTree: typeof QyTreeComponent
610
628
  export const QyPagination: typeof QyPaginationComponent
611
- export const QyRemarkImage: Plugin
629
+ export const QyRemarkImage: typeof QyRemarkImageComponent
612
630
  export function parseRemarkText(remarkText: string): {
613
631
  imageUrl: string
614
632
  text: string
@@ -703,3 +721,17 @@ declare const _default: Plugin & {
703
721
  }
704
722
 
705
723
  export default _default
724
+
725
+ export type { QySearchSuggestion, QySearchSuggestionGroup, QySearchSuggestionInput, QySearchInputTrimMode, QySearchInputProps, QySearchInputEmits, QySearchInputExposed, QySearchInputSlots } from './qy-search-input'
726
+
727
+ export type { QyRemarkImageSelectValue, QyRemarkImageSelectOption, QyRemarkImageUploadContext, QyRemarkImageProps, QyRemarkImageEmits, QyRemarkImageExposed } from './qy-remark-image'
728
+
729
+ export type { QyActionBarProps, QyActionBarSlots } from './qy-action-bar'
730
+
731
+ export type { QyFormSectionProps, QyFormSectionEmits, QyFormSectionSlots } from './qy-form-section'
732
+
733
+ export type { QyMenuActionType, QyMenuActionContext, QyMenuAction, QyMenuActionsProps, QyMenuActionsEmits } from './qy-menu-actions'
734
+
735
+ export type { QyColumnFixed, QyTableColumnSetting, QyTableColumnSettingsProps, QyTableColumnSettingsEmits } from './qy-table-column-settings'
736
+
737
+ export type { QyRecordQuoteSearchStatus, QyRecordQuoteSearchPayload, QyRecordQuoteSearchProps, QyRecordQuoteSearchEmits, QyRecordQuoteSearchExposed, QyRecordQuoteSearchSlots } from './qy-record-quote-search'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qynpm/ui",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "起印公共 UI 组件包。",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,17 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyActionBar: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin, PublicProps, SlotsType } from 'vue'
2
+ export interface QyActionBarProps {
3
+ sticky?: boolean
4
+ offsetBottom?: number
5
+ bordered?: boolean
6
+ shadow?: boolean
7
+ wrap?: boolean
8
+ justify?: 'between' | 'end' | 'start'
9
+ background?: string
10
+ }
11
+ export interface QyActionBarSlots {
12
+ left?: () => unknown
13
+ default?: () => unknown
14
+ right?: () => unknown
15
+ }
16
+ declare const QyActionBar: DefineComponent<QyActionBarProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<QyActionBarProps>, {}, SlotsType<QyActionBarSlots>> & Plugin
5
17
  export default QyActionBar
@@ -1,5 +1,46 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType, Ref } from 'vue'
2
2
 
3
- declare const QyAutocomplete: DefineComponent<any, any, any> & Plugin
3
+ export type QyAutocompleteOption = Record<string, any>
4
+ export type QyAutocompleteValue = string | number
5
+ export type QyAutocompleteFetchSuggestions = (
6
+ query: string, callback: (items: QyAutocompleteOption[]) => void
7
+ ) => void | QyAutocompleteOption[] | Promise<void | QyAutocompleteOption[]>
8
+ export interface QyAutocompleteProps {
9
+ modelValue?: QyAutocompleteValue | null
10
+ options?: QyAutocompleteOption[] | { value?: QyAutocompleteOption[] | Ref<QyAutocompleteOption[]> }
11
+ valueKey?: string
12
+ labelKey?: string
13
+ placeholder?: string
14
+ disabled?: boolean
15
+ clearable?: boolean
16
+ size?: 'small' | 'default' | 'large'
17
+ teleported?: boolean
18
+ appendTo?: string
19
+ popperClass?: string
20
+ filterMethod?: (query: string, option: QyAutocompleteOption) => boolean
21
+ fetchSuggestions?: QyAutocompleteFetchSuggestions
22
+ }
23
+ export type QyAutocompleteEmits = {
24
+ 'update:modelValue': (value: QyAutocompleteValue) => void
25
+ input: (value: string) => void
26
+ change: (value: QyAutocompleteValue) => void
27
+ select: (option: QyAutocompleteOption) => void
28
+ focus: (event: FocusEvent) => void
29
+ blur: (event: FocusEvent) => void
30
+ clear: () => void
31
+ }
32
+ export interface QyAutocompleteSlots {
33
+ default?: (props: { item: QyAutocompleteOption }) => unknown
34
+ prefix?: () => unknown
35
+ suffix?: () => unknown
36
+ prepend?: () => unknown
37
+ append?: () => unknown
38
+ }
39
+ export interface QyAutocompleteExposed {
40
+ querySearch(query: string, callback: (items: QyAutocompleteOption[]) => void): void
41
+ focus(): void
42
+ blur(): void
43
+ }
44
+ declare const QyAutocomplete: DefineComponent<QyAutocompleteProps, QyAutocompleteExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyAutocompleteEmits, string, PublicProps, Readonly<QyAutocompleteProps> & EmitsToProps<QyAutocompleteEmits>, {}, SlotsType<QyAutocompleteSlots>> & Plugin
4
45
 
5
46
  export default QyAutocomplete
@@ -11,6 +11,7 @@ export interface QyCheckboxProps {
11
11
  modelValue?: QyCheckboxValue
12
12
  value?: QyCheckboxValue
13
13
  indeterminate?: boolean
14
+ validateEvent?: boolean
14
15
  disabled?: boolean
15
16
  size?: QyCheckboxSize
16
17
  trueValue?: QyCheckboxValue
@@ -19,6 +19,7 @@ export interface QyCheckboxGroupOption {
19
19
  export interface QyCheckboxGroupProps {
20
20
  modelValue?: QyCheckboxValue[]
21
21
  options?: QyCheckboxGroupOption[]
22
+ validateEvent?: boolean
22
23
  disabled?: boolean
23
24
  min?: number
24
25
  max?: number
@@ -78,6 +78,7 @@ export interface QyDatePickerProps {
78
78
  disabledDate?: (date: Date) => boolean
79
79
  shortcuts?: QyDatePickerShortcut[]
80
80
  clearable?: boolean
81
+ validateEvent?: boolean
81
82
  disabled?: boolean
82
83
  readonly?: boolean
83
84
  size?: QyDatePickerSize
@@ -33,7 +33,11 @@ export interface QyDialogProps {
33
33
  draggable?: boolean
34
34
  lockScroll?: boolean
35
35
  top?: string
36
+ alignCenter?: boolean
37
+ appendToBody?: boolean
38
+ appendTo?: string
36
39
  size?: 'default' | 'small'
40
+ /** 弹窗层级下限;打开时按当前浮层栈提升。 */
37
41
  zIndex?: number
38
42
  }
39
43
 
@@ -1,5 +1,23 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyFormSection: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
2
+ export interface QyFormSectionProps {
3
+ title?: string
4
+ description?: string
5
+ tip?: string
6
+ tipType?: 'info' | 'warning' | 'error' | 'success'
7
+ collapsible?: boolean
8
+ defaultExpanded?: boolean
9
+ bordered?: boolean
10
+ background?: 'white' | 'gray' | 'transparent'
11
+ bodyClass?: string
12
+ headerClass?: string
13
+ }
14
+ export type QyFormSectionEmits = { toggle: (expanded: boolean) => void }
15
+ export interface QyFormSectionSlots {
16
+ title?: () => unknown
17
+ description?: () => unknown
18
+ actions?: () => unknown
19
+ tip?: () => unknown
20
+ default?: () => unknown
21
+ }
22
+ declare const QyFormSection: DefineComponent<QyFormSectionProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyFormSectionEmits, string, PublicProps, Readonly<QyFormSectionProps> & EmitsToProps<QyFormSectionEmits>, {}, SlotsType<QyFormSectionSlots>> & Plugin
5
23
  export default QyFormSection
@@ -12,6 +12,7 @@ export type QyImageCompressor =
12
12
 
13
13
  declare const QyImage: DefineComponent<{
14
14
  src?: string
15
+ alt?: string
15
16
  width?: number | string
16
17
  height?: number | string
17
18
  size?: number
@@ -1,12 +1,16 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
2
2
 
3
- declare const QyImagePreview: DefineComponent<{
3
+ export interface QyImagePreviewProps {
4
4
  open?: boolean
5
5
  urlList?: string[]
6
6
  initialIndex?: number
7
7
  hideOnClickModal?: boolean
8
- }> &
9
- Plugin
8
+ }
9
+ export type QyImagePreviewEmits = {
10
+ 'update:open': (open: boolean) => void
11
+ close: () => void
12
+ }
13
+ declare const QyImagePreview: DefineComponent<QyImagePreviewProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyImagePreviewEmits> & Plugin
10
14
 
11
15
  export function openQyImagePreview(options: {
12
16
  url?: string
@@ -1,4 +1,4 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
2
2
 
3
3
  export type QyMenuActionType =
4
4
  | 'default'
@@ -10,6 +10,11 @@ export type QyMenuActionType =
10
10
  export interface QyMenuActionContext<Row = Record<string, unknown>> {
11
11
  row?: Row
12
12
  rowIndex?: number
13
+ column?: unknown
14
+ target?: EventTarget | null
15
+ hide?: () => void
16
+ setLoading?: (status: boolean) => void
17
+ [key: string]: unknown
13
18
  }
14
19
 
15
20
  export interface QyMenuAction<Row = Record<string, unknown>> {
@@ -23,7 +28,21 @@ export interface QyMenuAction<Row = Record<string, unknown>> {
23
28
  meta?: Record<string, unknown>
24
29
  }
25
30
 
26
- declare const QyMenuActions: DefineComponent<any, any, any> & Plugin
31
+ export interface QyMenuActionsProps {
32
+ actions?: QyMenuAction[]
33
+ row?: Record<string, unknown>
34
+ rowIndex?: number
35
+ context?: QyMenuActionContext
36
+ mode?: 'inline' | 'popover'
37
+ emptyText?: string
38
+ popoverWidth?: number
39
+ confirmMethod?: (action: QyMenuAction, context: QyMenuActionContext) => boolean | Promise<boolean>
40
+ }
41
+ export type QyMenuActionsEmits = {
42
+ action: (action: QyMenuAction, context: QyMenuActionContext) => void
43
+ 'confirm-required': (action: QyMenuAction, context: QyMenuActionContext) => void
44
+ }
45
+ declare const QyMenuActions: DefineComponent<QyMenuActionsProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyMenuActionsEmits> & Plugin
27
46
 
28
47
  export { QyMenuActions }
29
48
  export default QyMenuActions
@@ -20,6 +20,7 @@ export interface QyMoneyInputProps {
20
20
  emptyValue?: string | number
21
21
  placeholder?: string
22
22
  clearable?: boolean
23
+ validateEvent?: boolean
23
24
  disabled?: boolean
24
25
  readonly?: boolean
25
26
  size?: QyMoneyInputSize
@@ -10,7 +10,11 @@ export interface QyPaginationBinding {
10
10
  setPageSize(pageSize: number): void | Promise<unknown>
11
11
  }
12
12
 
13
+ export type QyPaginationLayoutItem = 'sizes' | 'prev' | 'pager' | 'next' | 'jumper'
14
+
13
15
  export interface QyPaginationProps {
16
+ layout?: readonly QyPaginationLayoutItem[]
17
+ pagerCount?: number
14
18
  total?: number
15
19
  page?: number
16
20
  pageSize?: number
@@ -24,6 +24,10 @@ export type QyPopoverPlacement =
24
24
  export type QyPopoverEffect = 'light' | 'dark'
25
25
 
26
26
  export interface QyPopoverProps {
27
+ enterable?: boolean
28
+ teleported?: boolean
29
+ appendTo?: string | HTMLElement
30
+ transition?: string
27
31
  trigger?: QyPopoverTrigger
28
32
  placement?: QyPopoverPlacement
29
33
  effect?: QyPopoverEffect
@@ -24,6 +24,7 @@ export interface QyRadioGroupProps {
24
24
  labelKey?: string
25
25
  valueKey?: string
26
26
  disabledKey?: string
27
+ validateEvent?: boolean
27
28
  disabled?: boolean
28
29
  size?: QyRadioGroupSize
29
30
  name?: string
@@ -1,5 +1,54 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyRecordQuoteSearch: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
2
+ import type { QySearchSuggestion, QySearchInputTrimMode } from '../qy-search-input'
3
+ export type QyRecordQuoteSearchStatus = 'default' | 'success' | 'warning' | 'error'
4
+ export interface QyRecordQuoteSearchPayload { rawValue: string; code: string; item?: QySearchSuggestion }
5
+ export interface QyRecordQuoteSearchProps {
6
+ modelValue?: string | null
7
+ loading?: boolean
8
+ disabled?: boolean
9
+ placeholder?: string
10
+ buttonText?: string
11
+ autoNormalize?: boolean
12
+ showStatus?: boolean
13
+ status?: QyRecordQuoteSearchStatus
14
+ statusText?: string
15
+ suggestions?: QySearchSuggestion[]
16
+ fetchSuggestions?: ((keyword: string) => Promise<QySearchSuggestion[] | undefined> | QySearchSuggestion[] | undefined) | null
17
+ fetchSuggestionsMethod?: ((query: string, callback: (items: QySearchSuggestion[]) => void) => void) | null
18
+ debounce?: number
19
+ minLength?: number
20
+ searchOnSelect?: boolean
21
+ searchMethod?: ((payload: QyRecordQuoteSearchPayload) => unknown | Promise<unknown>) | null
22
+ extractMethod?: ((value: string) => string) | null
23
+ normalizeMethod?: ((value: string) => string) | null
24
+ label?: string
25
+ description?: string
26
+ trimMode?: QySearchInputTrimMode
27
+ }
28
+ export type QyRecordQuoteSearchEmits = {
29
+ 'update:modelValue': (value: string) => void
30
+ search: (payload: QyRecordQuoteSearchPayload) => void
31
+ clear: () => void
32
+ normalize: (payload: Omit<QyRecordQuoteSearchPayload, 'item'>) => void
33
+ enter: (event: KeyboardEvent) => void
34
+ select: (item: QySearchSuggestion) => void
35
+ error: (error: unknown) => void
36
+ success: (result: unknown) => void
37
+ }
38
+ export interface QyRecordQuoteSearchExposed {
39
+ focus(): void
40
+ blur(): void
41
+ select(): void
42
+ clear(): void
43
+ extractQuoteOrderCode(value: string): string
44
+ normalizeQuoteOrderCode(value: string): string
45
+ }
46
+ export interface QyRecordQuoteSearchSlots {
47
+ label?: () => unknown
48
+ prefix?: () => unknown
49
+ suffix?: () => unknown
50
+ item?: (props: { item: QySearchSuggestion; keyword: string }) => unknown
51
+ status?: (props: { status: QyRecordQuoteSearchStatus; statusText: string }) => unknown
52
+ }
53
+ declare const QyRecordQuoteSearch: DefineComponent<QyRecordQuoteSearchProps, QyRecordQuoteSearchExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRecordQuoteSearchEmits, string, PublicProps, Readonly<QyRecordQuoteSearchProps> & EmitsToProps<QyRecordQuoteSearchEmits>, {}, SlotsType<QyRecordQuoteSearchSlots>> & Plugin
5
54
  export default QyRecordQuoteSearch
@@ -1,5 +1,45 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QyRemarkImage: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
2
+ export type QyRemarkImageSelectValue = string | number | boolean
3
+ export interface QyRemarkImageSelectOption {
4
+ label: string
5
+ value: QyRemarkImageSelectValue
6
+ disabled?: boolean
7
+ }
8
+ export interface QyRemarkImageUploadContext {
9
+ file: File
10
+ formData: FormData
11
+ /** Legacy renderer metadata; not a public vendor instance contract. */
12
+ options: unknown
13
+ api: string
14
+ tokenKey: string
15
+ }
16
+ export interface QyRemarkImageProps {
17
+ defaultValue?: string
18
+ defaultImage?: string
19
+ rows?: string | number
20
+ width?: string | number
21
+ autosize?: boolean | Record<string, number>
22
+ disabled?: boolean
23
+ placeholder?: string
24
+ type?: string
25
+ layout?: string
26
+ selectValue?: QyRemarkImageSelectValue
27
+ selectOptions?: QyRemarkImageSelectOption[]
28
+ selectDisabled?: boolean
29
+ api?: string
30
+ tokenKey?: string
31
+ uploadName?: string
32
+ uploadRequest?: (context: QyRemarkImageUploadContext) => unknown | Promise<unknown>
33
+ }
34
+ export type QyRemarkImageEmits = {
35
+ change: (value: string, imageUrl?: string) => void
36
+ 'update:selectValue': (value: QyRemarkImageSelectValue) => void
37
+ 'select-change': (value: QyRemarkImageSelectValue) => void
38
+ }
39
+ export interface QyRemarkImageExposed {
40
+ deleteImage(): void
41
+ clearContent(): void
42
+ getValue(): { text: string; imageUrl: string; value: string }
43
+ }
44
+ declare const QyRemarkImage: DefineComponent<QyRemarkImageProps, QyRemarkImageExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRemarkImageEmits> & Plugin
5
45
  export default QyRemarkImage
@@ -1,4 +1,4 @@
1
- import type { DefineComponent, Plugin } from 'vue'
1
+ import type { ComponentOptionsMixin, DefineComponent, Plugin } from 'vue'
2
2
 
3
3
  /**
4
4
  * QyRemoteSelect 单组件入口类型声明。
@@ -7,6 +7,57 @@ import type { DefineComponent, Plugin } from 'vue'
7
7
  * - DefineComponent 用于模板、TSX 或局部 components 注册时获得组件类型。
8
8
  * - Plugin 用于 app.use(QyRemoteSelect) 时通过 Vue 插件类型校验。
9
9
  */
10
- declare const QyRemoteSelect: DefineComponent<any, any, any> & Plugin
10
+ export type QyRemoteSelectOption = Record<string, any>
11
+ export type QyRemoteSelectModelValue = string | number | boolean | any[] | null
12
+ export type QyRemoteSelectFetchMethod = (keyword: string) => QyRemoteSelectOption[] | undefined | Promise<QyRemoteSelectOption[] | undefined>
13
+ export interface QyRemoteSelectProps {
14
+ modelValue?: QyRemoteSelectModelValue
15
+ fetchMethod: QyRemoteSelectFetchMethod
16
+ defaultOptions?: QyRemoteSelectOption[]
17
+ labelKey?: string
18
+ valueKey?: string
19
+ disabledKey?: string
20
+ placeholder?: string
21
+ disabled?: boolean
22
+ clearable?: boolean
23
+ multiple?: boolean
24
+ multipleLimit?: number
25
+ validateEvent?: boolean
26
+ collapseTags?: boolean
27
+ collapseTagsTooltip?: boolean
28
+ autoSelectSingle?: boolean
29
+ size?: 'small' | 'default' | 'large'
30
+ teleported?: boolean
31
+ appendTo?: string
32
+ fitInputWidth?: boolean
33
+ popperClass?: string
34
+ debounce?: number
35
+ minLength?: number
36
+ remoteOnFocus?: boolean
37
+ remoteShowSuffix?: boolean
38
+ loading?: boolean
39
+ reserveSelectedOption?: boolean
40
+ allowCreate?: boolean
41
+ commitOnBlur?: boolean
42
+ }
43
+ export type QyRemoteSelectEmits = {
44
+ 'update:modelValue': (value: unknown) => void
45
+ change: (value: unknown) => void
46
+ clear: () => void
47
+ 'visible-change': (visible: boolean) => void
48
+ focus: (event: FocusEvent) => void
49
+ blur: (event: FocusEvent) => void
50
+ 'options-change': (options: QyRemoteSelectOption[]) => void
51
+ 'loading-change': (loading: boolean) => void
52
+ error: (error: unknown) => void
53
+ }
54
+ export interface QyRemoteSelectExposed {
55
+ focus(): void
56
+ blur(): void
57
+ clear(): void
58
+ retryFetch(): void
59
+ fetchDefaultOptions(): void
60
+ }
61
+ declare const QyRemoteSelect: DefineComponent<QyRemoteSelectProps, QyRemoteSelectExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QyRemoteSelectEmits> & Plugin
11
62
 
12
63
  export default QyRemoteSelect
@@ -1,5 +1,67 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- declare const QySearchInput: DefineComponent<any, any, any> & Plugin
4
-
1
+ import type { ComponentOptionsMixin, DefineComponent, EmitsToProps, Plugin, PublicProps, SlotsType } from 'vue'
2
+ export interface QySearchSuggestion {
3
+ label: string
4
+ value: string
5
+ description?: string
6
+ disabled?: boolean
7
+ raw?: any
8
+ }
9
+ export interface QySearchSuggestionGroup { groupLabel: string; items: QySearchSuggestion[] }
10
+ export type QySearchSuggestionInput = QySearchSuggestion | QySearchSuggestionGroup
11
+ export type QySearchInputTrimMode = 'none' | 'blur' | 'change'
12
+ export interface QySearchInputProps {
13
+ modelValue?: string | number | null
14
+ loading?: boolean
15
+ disabled?: boolean
16
+ placeholder?: string
17
+ removeSpace?: boolean
18
+ trimMode?: QySearchInputTrimMode
19
+ clearable?: boolean
20
+ showButton?: boolean
21
+ buttonText?: string
22
+ buttonProps?: Record<string, any>
23
+ suggestions?: QySearchSuggestionInput[]
24
+ fetchSuggestions?: ((keyword: string) => Promise<QySearchSuggestionInput[] | undefined> | QySearchSuggestionInput[] | undefined) | null
25
+ fetchSuggestionsMethod?: ((query: string, callback: (items: QySearchSuggestion[]) => void) => void) | null
26
+ debounce?: number
27
+ minLength?: number
28
+ triggerOnFocus?: boolean
29
+ searchOnEnter?: boolean
30
+ searchOnSelect?: boolean
31
+ highlightKeyword?: boolean
32
+ teleported?: boolean
33
+ appendTo?: string
34
+ popperClass?: string
35
+ fitInputWidth?: boolean
36
+ }
37
+ export type QySearchInputEmits = {
38
+ 'update:modelValue': (value: string) => void
39
+ search: (value: string) => void
40
+ clear: () => void
41
+ input: (value: string) => void
42
+ change: (value: string) => void
43
+ focus: (event: FocusEvent) => void
44
+ blur: (event: FocusEvent) => void
45
+ enter: (event: KeyboardEvent) => void
46
+ select: (item: QySearchSuggestion) => void
47
+ 'visible-change': (visible: boolean) => void
48
+ 'suggestions-change': (items: QySearchSuggestion[]) => void
49
+ error: (error: unknown) => void
50
+ }
51
+ export interface QySearchInputExposed {
52
+ focus(): void
53
+ blur(): void
54
+ select(): void
55
+ clear(): void
56
+ closePanel(): void
57
+ retryFetch(): void
58
+ }
59
+ export interface QySearchInputSlots {
60
+ prefix?: () => unknown
61
+ suffix?: () => unknown
62
+ prepend?: () => unknown
63
+ append?: () => unknown
64
+ item?: (props: { item: QySearchSuggestion; keyword: string }) => unknown
65
+ }
66
+ declare const QySearchInput: DefineComponent<QySearchInputProps, QySearchInputExposed, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, QySearchInputEmits, string, PublicProps, Readonly<QySearchInputProps> & EmitsToProps<QySearchInputEmits>, {}, SlotsType<QySearchInputSlots>> & Plugin
5
67
  export default QySearchInput
@@ -25,6 +25,10 @@ export interface QySelectProps {
25
25
  disabled?: boolean
26
26
  clearable?: boolean
27
27
  filterable?: boolean
28
+ filterMethod?: (query: string) => void
29
+ multipleLimit?: number
30
+ allowCreate?: boolean
31
+ validateEvent?: boolean
28
32
  loading?: boolean
29
33
  multiple?: boolean
30
34
  collapseTags?: boolean