@qynpm/ui 1.0.24 → 1.0.26

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 (96) hide show
  1. package/README.md +229 -229
  2. package/dist/index.cjs +11 -11
  3. package/dist/index.mjs +11 -11
  4. package/dist/qy-action-bar/index.cjs +1 -1
  5. package/dist/qy-action-bar/index.mjs +1 -1
  6. package/dist/qy-checkbox/index.cjs +1 -1
  7. package/dist/qy-checkbox/index.mjs +1 -1
  8. package/dist/qy-checkbox-group/index.cjs +1 -1
  9. package/dist/qy-checkbox-group/index.mjs +1 -1
  10. package/dist/qy-dialog/index.cjs +1 -1
  11. package/dist/qy-dialog/index.mjs +1 -1
  12. package/dist/qy-file-picker/index.cjs +1 -1
  13. package/dist/qy-file-picker/index.mjs +1 -1
  14. package/dist/qy-form-section/index.cjs +1 -1
  15. package/dist/qy-form-section/index.mjs +1 -1
  16. package/dist/qy-image/index.cjs +1 -1
  17. package/dist/qy-image/index.mjs +1 -1
  18. package/dist/qy-image-upload/index.cjs +1 -1
  19. package/dist/qy-image-upload/index.mjs +1 -1
  20. package/dist/qy-input-number/index.cjs +2 -0
  21. package/dist/qy-input-number/index.mjs +2 -0
  22. package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
  23. package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
  24. package/dist/qy-menu-actions/index.cjs +1 -1
  25. package/dist/qy-menu-actions/index.mjs +1 -1
  26. package/dist/qy-money-input/index.cjs +1 -1
  27. package/dist/qy-money-input/index.mjs +1 -1
  28. package/dist/qy-radio/index.cjs +1 -1
  29. package/dist/qy-radio/index.mjs +1 -1
  30. package/dist/qy-radio-group/index.cjs +1 -1
  31. package/dist/qy-radio-group/index.mjs +1 -1
  32. package/dist/qy-record-quote-search/index.cjs +1 -1
  33. package/dist/qy-record-quote-search/index.mjs +1 -1
  34. package/dist/qy-remark-image/index.cjs +1 -1
  35. package/dist/qy-remark-image/index.mjs +1 -1
  36. package/dist/qy-remote-select/index.cjs +1 -1
  37. package/dist/qy-remote-select/index.mjs +1 -1
  38. package/dist/qy-search-input/index.cjs +1 -1
  39. package/dist/qy-search-input/index.mjs +1 -1
  40. package/dist/qy-select/index.cjs +1 -1
  41. package/dist/qy-select/index.mjs +1 -1
  42. package/dist/qy-selection-dialog/index.cjs +1 -1
  43. package/dist/qy-selection-dialog/index.mjs +1 -1
  44. package/dist/qy-switch/index.cjs +1 -1
  45. package/dist/qy-switch/index.mjs +1 -1
  46. package/dist/qy-table-column-settings/index.cjs +1 -1
  47. package/dist/qy-table-column-settings/index.mjs +1 -1
  48. package/dist/qy-tag/index.cjs +1 -1
  49. package/dist/qy-tag/index.mjs +1 -1
  50. package/dist/qy-upload/index.cjs +1 -1
  51. package/dist/qy-upload/index.mjs +1 -1
  52. package/dist/shared/{index-B_mI-37S.cjs → index-9v7CIwzO.cjs} +1 -1
  53. package/dist/shared/{index-DJnmpqCc.mjs → index-B7uyWUhS.mjs} +2 -2
  54. package/dist/shared/{index-ClmefDi6.cjs → index-BF1_Rib_.cjs} +1 -1
  55. package/dist/shared/{index-BYme5QGm.cjs → index-BTPk2zzq.cjs} +1 -1
  56. package/dist/shared/{index-dEWJKTS-.cjs → index-BcCZMWAj.cjs} +1 -1
  57. package/dist/shared/{index-aiJ7R6G-.cjs → index-C1YwUATr.cjs} +1 -1
  58. package/dist/shared/{index-fBuu4V3A.mjs → index-C6jcSQSF.mjs} +1 -1
  59. package/dist/shared/{index-c7lnX4vT.mjs → index-C98mN7sQ.mjs} +14 -14
  60. package/dist/shared/{index-DixSXWJj.mjs → index-CbCpXtYr.mjs} +5 -5
  61. package/dist/shared/{index-BrV6CR4H.mjs → index-Cl5cuyVG.mjs} +1 -1
  62. package/dist/shared/{index-wIXCDvwC.cjs → index-CuusBxhR.cjs} +1 -1
  63. package/dist/shared/{index-DMGXEAyl.mjs → index-DZroPZ8B.mjs} +8 -8
  64. package/dist/shared/{index-M4vEHYZ_.cjs → index-DmhpD4Cp.cjs} +1 -1
  65. package/dist/shared/{index-8u4DJZwd.mjs → index-DrJuMzr1.mjs} +1 -1
  66. package/dist/shared/{index-CczrP1H7.mjs → index-Du2IqeCI.mjs} +1 -1
  67. package/dist/shared/{index-C8CA7nkO.cjs → index-EGnVOaC9.cjs} +1 -1
  68. package/dist/shared/{index-9WJeVamR.cjs → index-QQkDJv3q.cjs} +1 -1
  69. package/dist/shared/{index-DYohs_aV.mjs → index-R5B1rjXo.mjs} +1 -1
  70. package/dist/shared/{index-BDFscU3G.mjs → index-yf2Ijz_G.mjs} +5 -5
  71. package/dist/shared/{index-CTtAQ1LD.cjs → index-zJN0M-bx.cjs} +1 -1
  72. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-tyM4_aoa.cjs → index.vue_vue_type_script_setup_true_lang-C3F8M9sD.cjs} +1 -1
  73. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DmmW8UUK.mjs → index.vue_vue_type_script_setup_true_lang-CKZHI_y-.mjs} +1 -1
  74. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BF82tses.cjs → index.vue_vue_type_script_setup_true_lang-CsKjCWIN.cjs} +1 -1
  75. package/dist/shared/{index.vue_vue_type_script_setup_true_lang-BNjoxcAR.mjs → index.vue_vue_type_script_setup_true_lang-N12Nn2uu.mjs} +1 -1
  76. package/index.d.ts +155 -155
  77. package/package.json +1 -1
  78. package/qy-autocomplete/index.d.ts +5 -5
  79. package/qy-checkbox/index.d.ts +45 -45
  80. package/qy-checkbox-group/index.d.ts +48 -48
  81. package/qy-date-picker/index.d.ts +140 -140
  82. package/qy-file-picker/index.d.ts +49 -49
  83. package/qy-image/index.d.ts +28 -28
  84. package/qy-image-preview/index.d.ts +20 -20
  85. package/qy-input/index.d.ts +50 -50
  86. package/qy-input-number/index.d.ts +45 -45
  87. package/qy-menu-actions/index.d.ts +29 -29
  88. package/qy-popover/index.d.ts +63 -63
  89. package/qy-radio/index.d.ts +44 -44
  90. package/qy-radio-group/index.d.ts +60 -60
  91. package/qy-select/index.d.ts +67 -67
  92. package/qy-switch/index.d.ts +46 -46
  93. package/qy-table-column-settings/index.d.ts +18 -18
  94. package/qy-tag/index.d.ts +44 -44
  95. package/qy-tooltip/index.d.ts +54 -54
  96. package/qy-tree-select/index.d.ts +5 -5
@@ -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
@@ -1,63 +1,63 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QyPopoverTrigger = 'click' | 'hover' | 'focus' | 'contextmenu'
8
- export type QyPopoverPlacement =
9
- | 'top'
10
- | 'top-start'
11
- | 'top-end'
12
- | 'bottom'
13
- | 'bottom-start'
14
- | 'bottom-end'
15
- | 'left'
16
- | 'left-start'
17
- | 'left-end'
18
- | 'right'
19
- | 'right-start'
20
- | 'right-end'
21
- | 'auto'
22
- | 'auto-start'
23
- | 'auto-end'
24
- export type QyPopoverEffect = 'light' | 'dark'
25
-
26
- export interface QyPopoverProps {
27
- trigger?: QyPopoverTrigger
28
- placement?: QyPopoverPlacement
29
- effect?: QyPopoverEffect
30
- width?: number | string
31
- offset?: number
32
- showDelay?: number
33
- hideDelay?: number
34
- showArrow?: boolean
35
- disabled?: boolean
36
- open?: boolean
37
- }
38
-
39
- export type QyPopoverEmits = {
40
- 'update:open': (value: boolean) => void
41
- 'open-change': (value: boolean) => void
42
- open: () => void
43
- close: () => void
44
- }
45
-
46
- export interface QyPopoverExposed {
47
- close: () => void
48
- }
49
-
50
- declare const QyPopover: DefineComponent<
51
- QyPopoverProps,
52
- QyPopoverExposed,
53
- {},
54
- {},
55
- {},
56
- ComponentOptionsMixin,
57
- ComponentOptionsMixin,
58
- QyPopoverEmits
59
- > &
60
- Plugin
61
-
62
- export { QyPopover }
63
- export default QyPopover
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyPopoverTrigger = 'click' | 'hover' | 'focus' | 'contextmenu'
8
+ export type QyPopoverPlacement =
9
+ | 'top'
10
+ | 'top-start'
11
+ | 'top-end'
12
+ | 'bottom'
13
+ | 'bottom-start'
14
+ | 'bottom-end'
15
+ | 'left'
16
+ | 'left-start'
17
+ | 'left-end'
18
+ | 'right'
19
+ | 'right-start'
20
+ | 'right-end'
21
+ | 'auto'
22
+ | 'auto-start'
23
+ | 'auto-end'
24
+ export type QyPopoverEffect = 'light' | 'dark'
25
+
26
+ export interface QyPopoverProps {
27
+ trigger?: QyPopoverTrigger
28
+ placement?: QyPopoverPlacement
29
+ effect?: QyPopoverEffect
30
+ width?: number | string
31
+ offset?: number
32
+ showDelay?: number
33
+ hideDelay?: number
34
+ showArrow?: boolean
35
+ disabled?: boolean
36
+ open?: boolean
37
+ }
38
+
39
+ export type QyPopoverEmits = {
40
+ 'update:open': (value: boolean) => void
41
+ 'open-change': (value: boolean) => void
42
+ open: () => void
43
+ close: () => void
44
+ }
45
+
46
+ export interface QyPopoverExposed {
47
+ close: () => void
48
+ }
49
+
50
+ declare const QyPopover: DefineComponent<
51
+ QyPopoverProps,
52
+ QyPopoverExposed,
53
+ {},
54
+ {},
55
+ {},
56
+ ComponentOptionsMixin,
57
+ ComponentOptionsMixin,
58
+ QyPopoverEmits
59
+ > &
60
+ Plugin
61
+
62
+ export { QyPopover }
63
+ export default QyPopover
@@ -1,44 +1,44 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QyRadioValue = boolean | string | number
8
- export type QyRadioSize = 'small' | 'default' | 'large'
9
-
10
- export interface QyRadioProps {
11
- modelValue?: QyRadioValue
12
- value?: QyRadioValue
13
- label?: string
14
- disabled?: boolean
15
- size?: QyRadioSize
16
- name?: string
17
- border?: boolean
18
- id?: string
19
- tabindex?: string | number
20
- ariaLabel?: string
21
- ariaControls?: string
22
- }
23
-
24
- export type QyRadioEmits = {
25
- 'update:modelValue': (value: QyRadioValue) => void
26
- change: (value: QyRadioValue) => void
27
- focus: (event: FocusEvent) => void
28
- blur: (event: FocusEvent) => void
29
- }
30
-
31
- declare const QyRadio: DefineComponent<
32
- QyRadioProps,
33
- {},
34
- {},
35
- {},
36
- {},
37
- ComponentOptionsMixin,
38
- ComponentOptionsMixin,
39
- QyRadioEmits
40
- > &
41
- Plugin
42
-
43
- export { QyRadio }
44
- export default QyRadio
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QyRadioValue = boolean | string | number
8
+ export type QyRadioSize = 'small' | 'default' | 'large'
9
+
10
+ export interface QyRadioProps {
11
+ modelValue?: QyRadioValue
12
+ value?: QyRadioValue
13
+ label?: string
14
+ disabled?: boolean
15
+ size?: QyRadioSize
16
+ name?: string
17
+ border?: boolean
18
+ id?: string
19
+ tabindex?: string | number
20
+ ariaLabel?: string
21
+ ariaControls?: string
22
+ }
23
+
24
+ export type QyRadioEmits = {
25
+ 'update:modelValue': (value: QyRadioValue) => void
26
+ change: (value: QyRadioValue) => void
27
+ focus: (event: FocusEvent) => void
28
+ blur: (event: FocusEvent) => void
29
+ }
30
+
31
+ declare const QyRadio: DefineComponent<
32
+ QyRadioProps,
33
+ {},
34
+ {},
35
+ {},
36
+ {},
37
+ ComponentOptionsMixin,
38
+ ComponentOptionsMixin,
39
+ QyRadioEmits
40
+ > &
41
+ Plugin
42
+
43
+ export { QyRadio }
44
+ export default QyRadio
@@ -1,60 +1,60 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
- import type {
7
- QyRadioSize,
8
- QyRadioValue
9
- } from '../qy-radio'
10
-
11
- export type QyRadioGroupSize = QyRadioSize
12
- export type QyRadioGroupType = 'radio' | 'button'
13
-
14
- export interface QyRadioGroupOption {
15
- [key: string]: unknown
16
- label?: string
17
- value?: QyRadioValue
18
- disabled?: boolean
19
- }
20
-
21
- export interface QyRadioGroupProps {
22
- modelValue?: QyRadioValue | null
23
- options?: QyRadioGroupOption[]
24
- labelKey?: string
25
- valueKey?: string
26
- disabledKey?: string
27
- disabled?: boolean
28
- size?: QyRadioGroupSize
29
- name?: string
30
- type?: QyRadioGroupType
31
- border?: boolean
32
- }
33
-
34
- export type QyRadioGroupEmits = {
35
- 'update:modelValue': (value: QyRadioValue) => void
36
- change: (value: QyRadioValue) => void
37
- }
38
-
39
- export interface QyRadioGroupExposed {
40
- /**
41
- * @deprecated 仅为已发布兼容保留,不新增实例能力。
42
- */
43
- getRadioGroupInstance(): unknown
44
- }
45
-
46
- declare const QyRadioGroup: DefineComponent<
47
- QyRadioGroupProps,
48
- QyRadioGroupExposed,
49
- {},
50
- {},
51
- {},
52
- ComponentOptionsMixin,
53
- ComponentOptionsMixin,
54
- QyRadioGroupEmits
55
- > &
56
- Plugin
57
-
58
- export { QyRadioGroup }
59
- export type { QyRadioSize, QyRadioValue }
60
- export default QyRadioGroup
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+ import type {
7
+ QyRadioSize,
8
+ QyRadioValue
9
+ } from '../qy-radio'
10
+
11
+ export type QyRadioGroupSize = QyRadioSize
12
+ export type QyRadioGroupType = 'radio' | 'button'
13
+
14
+ export interface QyRadioGroupOption {
15
+ [key: string]: unknown
16
+ label?: string
17
+ value?: QyRadioValue
18
+ disabled?: boolean
19
+ }
20
+
21
+ export interface QyRadioGroupProps {
22
+ modelValue?: QyRadioValue | null
23
+ options?: QyRadioGroupOption[]
24
+ labelKey?: string
25
+ valueKey?: string
26
+ disabledKey?: string
27
+ disabled?: boolean
28
+ size?: QyRadioGroupSize
29
+ name?: string
30
+ type?: QyRadioGroupType
31
+ border?: boolean
32
+ }
33
+
34
+ export type QyRadioGroupEmits = {
35
+ 'update:modelValue': (value: QyRadioValue) => void
36
+ change: (value: QyRadioValue) => void
37
+ }
38
+
39
+ export interface QyRadioGroupExposed {
40
+ /**
41
+ * @deprecated 仅为已发布兼容保留,不新增实例能力。
42
+ */
43
+ getRadioGroupInstance(): unknown
44
+ }
45
+
46
+ declare const QyRadioGroup: DefineComponent<
47
+ QyRadioGroupProps,
48
+ QyRadioGroupExposed,
49
+ {},
50
+ {},
51
+ {},
52
+ ComponentOptionsMixin,
53
+ ComponentOptionsMixin,
54
+ QyRadioGroupEmits
55
+ > &
56
+ Plugin
57
+
58
+ export { QyRadioGroup }
59
+ export type { QyRadioSize, QyRadioValue }
60
+ export default QyRadioGroup
@@ -1,67 +1,67 @@
1
- import type {
2
- ComponentOptionsMixin,
3
- DefineComponent,
4
- Plugin
5
- } from 'vue'
6
-
7
- export type QySelectPrimitive = string | number | boolean
8
-
9
- export type QySelectObjectValue = object
10
-
11
- export type QySelectValue = QySelectPrimitive | QySelectObjectValue
12
- export type QySelectModelValue = QySelectValue | QySelectValue[] | null | undefined
13
- export type QySelectSize = 'small' | 'default' | 'large'
14
-
15
- export type QySelectOption = object
16
-
17
- export interface QySelectProps {
18
- modelValue?: QySelectModelValue
19
- options?: QySelectOption[]
20
- labelKey?: string
21
- valueKey?: string
22
- disabledKey?: string
23
- objectIdentityKey?: string
24
- placeholder?: string
25
- disabled?: boolean
26
- clearable?: boolean
27
- filterable?: boolean
28
- loading?: boolean
29
- multiple?: boolean
30
- collapseTags?: boolean
31
- collapseTagsTooltip?: boolean
32
- autoSelectSingle?: boolean
33
- size?: QySelectSize
34
- teleported?: boolean
35
- appendTo?: string | HTMLElement
36
- fitInputWidth?: boolean
37
- popperClass?: string
38
- }
39
-
40
- export type QySelectEmits = {
41
- 'update:modelValue': (value: QySelectModelValue) => void
42
- change: (value: QySelectModelValue) => void
43
- clear: () => void
44
- 'visible-change': (visible: boolean) => void
45
- focus: (event: FocusEvent) => void
46
- blur: (event: FocusEvent) => void
47
- }
48
-
49
- export interface QySelectExposed {
50
- focus(): void
51
- blur(): void
52
- }
53
-
54
- declare const QySelect: DefineComponent<
55
- QySelectProps,
56
- QySelectExposed,
57
- {},
58
- {},
59
- {},
60
- ComponentOptionsMixin,
61
- ComponentOptionsMixin,
62
- QySelectEmits
63
- > &
64
- Plugin
65
-
66
- export { QySelect }
67
- export default QySelect
1
+ import type {
2
+ ComponentOptionsMixin,
3
+ DefineComponent,
4
+ Plugin
5
+ } from 'vue'
6
+
7
+ export type QySelectPrimitive = string | number | boolean
8
+
9
+ export type QySelectObjectValue = object
10
+
11
+ export type QySelectValue = QySelectPrimitive | QySelectObjectValue
12
+ export type QySelectModelValue = QySelectValue | QySelectValue[] | null | undefined
13
+ export type QySelectSize = 'small' | 'default' | 'large'
14
+
15
+ export type QySelectOption = object
16
+
17
+ export interface QySelectProps {
18
+ modelValue?: QySelectModelValue
19
+ options?: QySelectOption[]
20
+ labelKey?: string
21
+ valueKey?: string
22
+ disabledKey?: string
23
+ objectIdentityKey?: string
24
+ placeholder?: string
25
+ disabled?: boolean
26
+ clearable?: boolean
27
+ filterable?: boolean
28
+ loading?: boolean
29
+ multiple?: boolean
30
+ collapseTags?: boolean
31
+ collapseTagsTooltip?: boolean
32
+ autoSelectSingle?: boolean
33
+ size?: QySelectSize
34
+ teleported?: boolean
35
+ appendTo?: string | HTMLElement
36
+ fitInputWidth?: boolean
37
+ popperClass?: string
38
+ }
39
+
40
+ export type QySelectEmits = {
41
+ 'update:modelValue': (value: QySelectModelValue) => void
42
+ change: (value: QySelectModelValue) => void
43
+ clear: () => void
44
+ 'visible-change': (visible: boolean) => void
45
+ focus: (event: FocusEvent) => void
46
+ blur: (event: FocusEvent) => void
47
+ }
48
+
49
+ export interface QySelectExposed {
50
+ focus(): void
51
+ blur(): void
52
+ }
53
+
54
+ declare const QySelect: DefineComponent<
55
+ QySelectProps,
56
+ QySelectExposed,
57
+ {},
58
+ {},
59
+ {},
60
+ ComponentOptionsMixin,
61
+ ComponentOptionsMixin,
62
+ QySelectEmits
63
+ > &
64
+ Plugin
65
+
66
+ export { QySelect }
67
+ export default QySelect
@@ -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
@@ -1,18 +1,18 @@
1
- import type { DefineComponent, Plugin } from 'vue'
2
-
3
- export type QyColumnFixed = 'left' | 'right' | false
4
-
5
- export interface QyTableColumnSetting {
6
- key: string
7
- type?: string
8
- label?: string
9
- prop?: string
10
- visible: boolean
11
- width?: string | number
12
- fixed: QyColumnFixed
13
- }
14
-
15
- declare const QyTableColumnSettings: DefineComponent<any, any, any> & Plugin
16
-
17
- export { QyTableColumnSettings }
18
- export default QyTableColumnSettings
1
+ import type { DefineComponent, Plugin } from 'vue'
2
+
3
+ export type QyColumnFixed = 'left' | 'right' | false
4
+
5
+ export interface QyTableColumnSetting {
6
+ key: string
7
+ type?: string
8
+ label?: string
9
+ prop?: string
10
+ visible: boolean
11
+ width?: string | number
12
+ fixed: QyColumnFixed
13
+ }
14
+
15
+ declare const QyTableColumnSettings: DefineComponent<any, any, any> & Plugin
16
+
17
+ export { QyTableColumnSettings }
18
+ export default QyTableColumnSettings