@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.
- package/README.md +229 -229
- package/dist/index.cjs +11 -11
- package/dist/index.mjs +11 -11
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-checkbox/index.cjs +1 -1
- package/dist/qy-checkbox/index.mjs +1 -1
- package/dist/qy-checkbox-group/index.cjs +1 -1
- package/dist/qy-checkbox-group/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-file-picker/index.cjs +1 -1
- package/dist/qy-file-picker/index.mjs +1 -1
- package/dist/qy-form-section/index.cjs +1 -1
- package/dist/qy-form-section/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-upload/index.cjs +1 -1
- package/dist/qy-image-upload/index.mjs +1 -1
- package/dist/qy-input-number/index.cjs +2 -0
- package/dist/qy-input-number/index.mjs +2 -0
- package/dist/qy-legacy-selection-dialog/index.cjs +1 -1
- package/dist/qy-legacy-selection-dialog/index.mjs +1 -1
- package/dist/qy-menu-actions/index.cjs +1 -1
- package/dist/qy-menu-actions/index.mjs +1 -1
- package/dist/qy-money-input/index.cjs +1 -1
- package/dist/qy-money-input/index.mjs +1 -1
- package/dist/qy-radio/index.cjs +1 -1
- package/dist/qy-radio/index.mjs +1 -1
- package/dist/qy-radio-group/index.cjs +1 -1
- package/dist/qy-radio-group/index.mjs +1 -1
- package/dist/qy-record-quote-search/index.cjs +1 -1
- package/dist/qy-record-quote-search/index.mjs +1 -1
- package/dist/qy-remark-image/index.cjs +1 -1
- package/dist/qy-remark-image/index.mjs +1 -1
- package/dist/qy-remote-select/index.cjs +1 -1
- package/dist/qy-remote-select/index.mjs +1 -1
- package/dist/qy-search-input/index.cjs +1 -1
- package/dist/qy-search-input/index.mjs +1 -1
- package/dist/qy-select/index.cjs +1 -1
- package/dist/qy-select/index.mjs +1 -1
- package/dist/qy-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-switch/index.cjs +1 -1
- package/dist/qy-switch/index.mjs +1 -1
- package/dist/qy-table-column-settings/index.cjs +1 -1
- package/dist/qy-table-column-settings/index.mjs +1 -1
- package/dist/qy-tag/index.cjs +1 -1
- package/dist/qy-tag/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +1 -1
- package/dist/shared/{index-B_mI-37S.cjs → index-9v7CIwzO.cjs} +1 -1
- package/dist/shared/{index-DJnmpqCc.mjs → index-B7uyWUhS.mjs} +2 -2
- package/dist/shared/{index-ClmefDi6.cjs → index-BF1_Rib_.cjs} +1 -1
- package/dist/shared/{index-BYme5QGm.cjs → index-BTPk2zzq.cjs} +1 -1
- package/dist/shared/{index-dEWJKTS-.cjs → index-BcCZMWAj.cjs} +1 -1
- package/dist/shared/{index-aiJ7R6G-.cjs → index-C1YwUATr.cjs} +1 -1
- package/dist/shared/{index-fBuu4V3A.mjs → index-C6jcSQSF.mjs} +1 -1
- package/dist/shared/{index-c7lnX4vT.mjs → index-C98mN7sQ.mjs} +14 -14
- package/dist/shared/{index-DixSXWJj.mjs → index-CbCpXtYr.mjs} +5 -5
- package/dist/shared/{index-BrV6CR4H.mjs → index-Cl5cuyVG.mjs} +1 -1
- package/dist/shared/{index-wIXCDvwC.cjs → index-CuusBxhR.cjs} +1 -1
- package/dist/shared/{index-DMGXEAyl.mjs → index-DZroPZ8B.mjs} +8 -8
- package/dist/shared/{index-M4vEHYZ_.cjs → index-DmhpD4Cp.cjs} +1 -1
- package/dist/shared/{index-8u4DJZwd.mjs → index-DrJuMzr1.mjs} +1 -1
- package/dist/shared/{index-CczrP1H7.mjs → index-Du2IqeCI.mjs} +1 -1
- package/dist/shared/{index-C8CA7nkO.cjs → index-EGnVOaC9.cjs} +1 -1
- package/dist/shared/{index-9WJeVamR.cjs → index-QQkDJv3q.cjs} +1 -1
- package/dist/shared/{index-DYohs_aV.mjs → index-R5B1rjXo.mjs} +1 -1
- package/dist/shared/{index-BDFscU3G.mjs → index-yf2Ijz_G.mjs} +5 -5
- package/dist/shared/{index-CTtAQ1LD.cjs → index-zJN0M-bx.cjs} +1 -1
- 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
- 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
- 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
- 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
- package/index.d.ts +155 -155
- package/package.json +1 -1
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-checkbox/index.d.ts +45 -45
- package/qy-checkbox-group/index.d.ts +48 -48
- package/qy-date-picker/index.d.ts +140 -140
- package/qy-file-picker/index.d.ts +49 -49
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-input/index.d.ts +50 -50
- package/qy-input-number/index.d.ts +45 -45
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-popover/index.d.ts +63 -63
- package/qy-radio/index.d.ts +44 -44
- package/qy-radio-group/index.d.ts +60 -60
- package/qy-select/index.d.ts +67 -67
- package/qy-switch/index.d.ts +46 -46
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tag/index.d.ts +44 -44
- package/qy-tooltip/index.d.ts +54 -54
- package/qy-tree-select/index.d.ts +5 -5
|
@@ -1,140 +1,140 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps,
|
|
6
|
-
SlotsType,
|
|
7
|
-
VNodeChild
|
|
8
|
-
} from 'vue'
|
|
9
|
-
|
|
10
|
-
export type QyDatePickerScalarValue = string | number | Date
|
|
11
|
-
export type QyDatePickerRangeValue = QyDatePickerScalarValue[]
|
|
12
|
-
export type QyDatePickerModelValue =
|
|
13
|
-
| QyDatePickerScalarValue
|
|
14
|
-
| QyDatePickerRangeValue
|
|
15
|
-
| null
|
|
16
|
-
| undefined
|
|
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 }
|
|
140
|
-
export default QyDatePicker
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps,
|
|
6
|
+
SlotsType,
|
|
7
|
+
VNodeChild
|
|
8
|
+
} from 'vue'
|
|
9
|
+
|
|
10
|
+
export type QyDatePickerScalarValue = string | number | Date
|
|
11
|
+
export type QyDatePickerRangeValue = QyDatePickerScalarValue[]
|
|
12
|
+
export type QyDatePickerModelValue =
|
|
13
|
+
| QyDatePickerScalarValue
|
|
14
|
+
| QyDatePickerRangeValue
|
|
15
|
+
| null
|
|
16
|
+
| undefined
|
|
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 }
|
|
140
|
+
export default QyDatePicker
|
|
@@ -1,49 +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
|
+
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
|
package/qy-image/index.d.ts
CHANGED
|
@@ -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
|
package/qy-input/index.d.ts
CHANGED
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import type { InputAutoSize, InputProps, InputType } from 'element-plus'
|
|
2
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
3
|
-
|
|
4
|
-
export type QyInputValue = string
|
|
5
|
-
export type QyInputModelValue = string | number | null | undefined
|
|
6
|
-
export type QyInputType = InputType
|
|
7
|
-
export type QyInputSize = 'small' | 'default' | 'large'
|
|
8
|
-
export type QyInputTrimMode = 'none' | 'blur' | 'change'
|
|
9
|
-
|
|
10
|
-
export interface QyInputProps
|
|
11
|
-
extends Omit<InputProps, 'modelValue' | 'type' | 'size' | 'autosize'> {
|
|
12
|
-
modelValue?: QyInputModelValue
|
|
13
|
-
type?: QyInputType
|
|
14
|
-
size?: QyInputSize
|
|
15
|
-
autosize?: InputAutoSize
|
|
16
|
-
removeSpace?: boolean
|
|
17
|
-
trimMode?: QyInputTrimMode
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type QyInputEmits = {
|
|
21
|
-
'update:modelValue': (value: QyInputValue) => void
|
|
22
|
-
input: (value: QyInputValue) => void
|
|
23
|
-
change: (value: QyInputValue) => void
|
|
24
|
-
focus: (event: FocusEvent) => void
|
|
25
|
-
blur: (event: FocusEvent) => void
|
|
26
|
-
clear: () => void
|
|
27
|
-
enter: (event: KeyboardEvent) => void
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface QyInputExposed {
|
|
31
|
-
focus(): void
|
|
32
|
-
blur(): void
|
|
33
|
-
select(): void
|
|
34
|
-
clear(): void
|
|
35
|
-
resizeTextarea(): void
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
declare const QyInput: DefineComponent<
|
|
39
|
-
QyInputProps,
|
|
40
|
-
QyInputExposed,
|
|
41
|
-
{},
|
|
42
|
-
{},
|
|
43
|
-
{},
|
|
44
|
-
{},
|
|
45
|
-
{},
|
|
46
|
-
QyInputEmits
|
|
47
|
-
> & Plugin
|
|
48
|
-
|
|
49
|
-
export { QyInput }
|
|
50
|
-
export default QyInput
|
|
1
|
+
import type { InputAutoSize, InputProps, InputType } from 'element-plus'
|
|
2
|
+
import type { DefineComponent, Plugin } from 'vue'
|
|
3
|
+
|
|
4
|
+
export type QyInputValue = string
|
|
5
|
+
export type QyInputModelValue = string | number | null | undefined
|
|
6
|
+
export type QyInputType = InputType
|
|
7
|
+
export type QyInputSize = 'small' | 'default' | 'large'
|
|
8
|
+
export type QyInputTrimMode = 'none' | 'blur' | 'change'
|
|
9
|
+
|
|
10
|
+
export interface QyInputProps
|
|
11
|
+
extends Omit<InputProps, 'modelValue' | 'type' | 'size' | 'autosize'> {
|
|
12
|
+
modelValue?: QyInputModelValue
|
|
13
|
+
type?: QyInputType
|
|
14
|
+
size?: QyInputSize
|
|
15
|
+
autosize?: InputAutoSize
|
|
16
|
+
removeSpace?: boolean
|
|
17
|
+
trimMode?: QyInputTrimMode
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type QyInputEmits = {
|
|
21
|
+
'update:modelValue': (value: QyInputValue) => void
|
|
22
|
+
input: (value: QyInputValue) => void
|
|
23
|
+
change: (value: QyInputValue) => void
|
|
24
|
+
focus: (event: FocusEvent) => void
|
|
25
|
+
blur: (event: FocusEvent) => void
|
|
26
|
+
clear: () => void
|
|
27
|
+
enter: (event: KeyboardEvent) => void
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface QyInputExposed {
|
|
31
|
+
focus(): void
|
|
32
|
+
blur(): void
|
|
33
|
+
select(): void
|
|
34
|
+
clear(): void
|
|
35
|
+
resizeTextarea(): void
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const QyInput: DefineComponent<
|
|
39
|
+
QyInputProps,
|
|
40
|
+
QyInputExposed,
|
|
41
|
+
{},
|
|
42
|
+
{},
|
|
43
|
+
{},
|
|
44
|
+
{},
|
|
45
|
+
{},
|
|
46
|
+
QyInputEmits
|
|
47
|
+
> & Plugin
|
|
48
|
+
|
|
49
|
+
export { QyInput }
|
|
50
|
+
export default QyInput
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import type { InputNumberProps } from 'element-plus'
|
|
2
|
-
import type { DefineComponent, Plugin } from 'vue'
|
|
3
|
-
|
|
4
|
-
export type QyInputNumberValue = number | null | undefined
|
|
5
|
-
export type QyInputNumberClearValue = 'min' | 'max' | number | null
|
|
6
|
-
export type QyInputNumberControlsPosition = '' | 'right'
|
|
7
|
-
export type QyInputNumberSize = 'small' | 'default' | 'large'
|
|
8
|
-
|
|
9
|
-
export interface QyInputNumberProps
|
|
10
|
-
extends Omit<
|
|
11
|
-
InputNumberProps,
|
|
12
|
-
'modelValue' | 'valueOnClear' | 'controlsPosition' | 'size'
|
|
13
|
-
> {
|
|
14
|
-
modelValue?: QyInputNumberValue
|
|
15
|
-
valueOnClear?: QyInputNumberClearValue
|
|
16
|
-
controlsPosition?: QyInputNumberControlsPosition
|
|
17
|
-
size?: QyInputNumberSize
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type QyInputNumberEmits = {
|
|
21
|
-
'update:modelValue': (value: QyInputNumberValue) => void
|
|
22
|
-
input: (value: QyInputNumberValue) => void
|
|
23
|
-
change: (currentValue: QyInputNumberValue, oldValue: QyInputNumberValue) => void
|
|
24
|
-
focus: (event: FocusEvent) => void
|
|
25
|
-
blur: (event: FocusEvent) => void
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface QyInputNumberExposed {
|
|
29
|
-
focus(): void
|
|
30
|
-
blur(): void
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
declare const QyInputNumber: DefineComponent<
|
|
34
|
-
QyInputNumberProps,
|
|
35
|
-
QyInputNumberExposed,
|
|
36
|
-
{},
|
|
37
|
-
{},
|
|
38
|
-
{},
|
|
39
|
-
{},
|
|
40
|
-
{},
|
|
41
|
-
QyInputNumberEmits
|
|
42
|
-
> & Plugin
|
|
43
|
-
|
|
44
|
-
export { QyInputNumber }
|
|
45
|
-
export default QyInputNumber
|
|
1
|
+
import type { InputNumberProps } from 'element-plus'
|
|
2
|
+
import type { DefineComponent, Plugin } from 'vue'
|
|
3
|
+
|
|
4
|
+
export type QyInputNumberValue = number | null | undefined
|
|
5
|
+
export type QyInputNumberClearValue = 'min' | 'max' | number | null
|
|
6
|
+
export type QyInputNumberControlsPosition = '' | 'right'
|
|
7
|
+
export type QyInputNumberSize = 'small' | 'default' | 'large'
|
|
8
|
+
|
|
9
|
+
export interface QyInputNumberProps
|
|
10
|
+
extends Omit<
|
|
11
|
+
InputNumberProps,
|
|
12
|
+
'modelValue' | 'valueOnClear' | 'controlsPosition' | 'size'
|
|
13
|
+
> {
|
|
14
|
+
modelValue?: QyInputNumberValue
|
|
15
|
+
valueOnClear?: QyInputNumberClearValue
|
|
16
|
+
controlsPosition?: QyInputNumberControlsPosition
|
|
17
|
+
size?: QyInputNumberSize
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type QyInputNumberEmits = {
|
|
21
|
+
'update:modelValue': (value: QyInputNumberValue) => void
|
|
22
|
+
input: (value: QyInputNumberValue) => void
|
|
23
|
+
change: (currentValue: QyInputNumberValue, oldValue: QyInputNumberValue) => void
|
|
24
|
+
focus: (event: FocusEvent) => void
|
|
25
|
+
blur: (event: FocusEvent) => void
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface QyInputNumberExposed {
|
|
29
|
+
focus(): void
|
|
30
|
+
blur(): void
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const QyInputNumber: DefineComponent<
|
|
34
|
+
QyInputNumberProps,
|
|
35
|
+
QyInputNumberExposed,
|
|
36
|
+
{},
|
|
37
|
+
{},
|
|
38
|
+
{},
|
|
39
|
+
{},
|
|
40
|
+
{},
|
|
41
|
+
QyInputNumberEmits
|
|
42
|
+
> & Plugin
|
|
43
|
+
|
|
44
|
+
export { QyInputNumber }
|
|
45
|
+
export default QyInputNumber
|