@qynpm/ui 1.0.34 → 1.0.36
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 +91 -56
- package/dist/index.cjs +7 -6
- package/dist/index.mjs +63 -61
- package/dist/qy-action-bar/index.cjs +1 -1
- package/dist/qy-action-bar/index.mjs +1 -1
- package/dist/qy-dialog/index.cjs +1 -1
- package/dist/qy-dialog/index.mjs +1 -1
- package/dist/qy-drawer/index.cjs +1 -1
- package/dist/qy-drawer/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-iframe/index.cjs +1 -1
- package/dist/qy-iframe/index.mjs +1 -1
- package/dist/qy-image/index.cjs +1 -1
- package/dist/qy-image/index.mjs +1 -1
- package/dist/qy-image-preview/index.cjs +1 -1
- package/dist/qy-image-preview/index.mjs +2 -2
- 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 +1 -1
- package/dist/qy-input-number/index.mjs +1 -1
- package/dist/qy-input-tag/index.cjs +1 -0
- package/dist/qy-input-tag/index.mjs +7 -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 +5 -2
- package/dist/qy-popover/index.cjs +1 -1
- package/dist/qy-popover/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-selection-dialog/index.cjs +1 -1
- package/dist/qy-selection-dialog/index.mjs +1 -1
- package/dist/qy-tree-select/index.cjs +1 -1
- package/dist/qy-tree-select/index.mjs +1 -1
- package/dist/qy-upload/index.cjs +1 -1
- package/dist/qy-upload/index.mjs +5 -2
- package/dist/shared/{index-IXbvJ9d7.mjs → index-4SkLDBra.mjs} +1 -1
- package/dist/shared/index-BYX0biqw.mjs +766 -0
- package/dist/shared/{index-n04hARNG.cjs → index-Bli6Gx5d.cjs} +1 -1
- package/dist/shared/{index-BBZQowyp.mjs → index-BuUtJrIy.mjs} +9 -9
- package/dist/shared/index-BxxwEr52.mjs +107 -0
- package/dist/shared/index-C1i-hd-W.cjs +1 -0
- package/dist/shared/{index-Dyyp1ix9.cjs → index-C7lRQtzs.cjs} +1 -1
- package/dist/shared/{index-C_adKysL.mjs → index-CdnHMuo3.mjs} +1 -1
- package/dist/shared/index-D654b42n.mjs +2754 -0
- package/dist/shared/{index-D6-K5xSD.cjs → index-DlGwHshu.cjs} +1 -1
- package/dist/shared/{index-BeubtXXl.cjs → index-DnHfk7NM.cjs} +1 -1
- package/dist/shared/index-DnNIseRJ.cjs +1 -0
- package/dist/shared/{index-ccugL1Ie.mjs → index-Dr-Q5krU.mjs} +4 -4
- package/dist/shared/index-aIqtIYsu.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-BiIgNax-.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-CqSJ_8hG.cjs +1 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DIWWHODS.mjs +197 -0
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-DwFGEW4B.mjs +143 -0
- package/dist/shared/{index.vue_vue_type_script_setup_true_lang-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-ccFLNRry.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B1FgJZbw.mjs +148 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DHK86rdP.cjs +1 -0
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DVXf-yUs.cjs +1 -0
- package/dist/shared/{index.vue_vue_type_style_index_0_lang-BJXS2dVf.mjs → index.vue_vue_type_style_index_0_lang-DsOg_Rum.mjs} +19 -17
- package/dist/shared/utils-BjEXwY3L.cjs +1 -0
- package/dist/shared/utils-DoyI5oM8.mjs +148 -0
- package/index.d.ts +113 -56
- package/package.json +489 -483
- package/qy-alert/index.d.ts +64 -64
- package/qy-autocomplete/index.d.ts +5 -5
- package/qy-avatar/index.d.ts +67 -67
- package/qy-badge/index.d.ts +63 -63
- package/qy-card/index.d.ts +64 -64
- package/qy-cascader/index.d.ts +198 -198
- package/qy-collapse/index.d.ts +59 -59
- package/qy-collapse-item/index.d.ts +45 -45
- package/qy-descriptions/index.d.ts +47 -47
- package/qy-descriptions-item/index.d.ts +46 -46
- package/qy-dialog/index.d.ts +63 -63
- package/qy-divider/index.d.ts +53 -53
- package/qy-drawer/index.d.ts +55 -55
- package/qy-empty/index.d.ts +51 -51
- package/qy-file-picker/index.d.ts +4 -1
- package/qy-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +20 -20
- package/qy-image-upload/index.d.ts +69 -12
- package/qy-input/index.d.ts +76 -18
- package/qy-input-number/index.d.ts +64 -30
- package/qy-input-tag/index.d.ts +69 -0
- package/qy-link/index.d.ts +69 -69
- package/qy-loading/index.d.ts +25 -25
- package/qy-menu-actions/index.d.ts +29 -29
- package/qy-money-input/index.d.ts +87 -12
- package/qy-progress/index.d.ts +74 -74
- package/qy-result/index.d.ts +64 -64
- package/qy-scrollbar/index.d.ts +85 -85
- package/qy-skeleton/index.d.ts +54 -54
- package/qy-skeleton-item/index.d.ts +48 -48
- package/qy-step/index.d.ts +55 -55
- package/qy-steps/index.d.ts +62 -62
- package/qy-tab-pane/index.d.ts +40 -40
- package/qy-table-column-settings/index.d.ts +18 -18
- package/qy-tabs/index.d.ts +84 -84
- package/qy-tree/index.d.ts +132 -132
- package/qy-tree-select/index.d.ts +123 -123
- package/qy-upload/index.d.ts +99 -5
- package/dist/shared/index-BkX9xlbI.cjs +0 -1
- package/dist/shared/index-C_1KP3l9.mjs +0 -129
- package/dist/shared/index-Dw5upK-A.cjs +0 -1
- package/dist/shared/index-fh9l84rU.mjs +0 -3541
- package/dist/shared/index.vue_vue_type_script_setup_true_lang-5gku7Zwv.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-B0CXLnL1.mjs +0 -132
- package/dist/shared/index.vue_vue_type_style_index_0_lang-DccRGtZE.cjs +0 -1
- package/dist/shared/index.vue_vue_type_style_index_0_lang-M0qKRXd2.cjs +0 -1
- package/dist/shared/utils-D2KAQCCB.cjs +0 -1
- package/dist/shared/utils-DUntDntI.mjs +0 -112
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-q37rBg6Z.mjs → index.vue_vue_type_script_setup_true_lang-CGsXVhJy.mjs} +0 -0
- /package/dist/shared/{index.vue_vue_type_script_setup_true_lang-CglCPcj-.cjs → index.vue_vue_type_script_setup_true_lang-Dk83TGiU.cjs} +0 -0
package/qy-alert/index.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps,
|
|
6
|
-
SlotsType
|
|
7
|
-
} from 'vue'
|
|
8
|
-
import type { StyleValue } from 'vue'
|
|
9
|
-
|
|
10
|
-
export type QyAlertType = 'primary' | 'success' | 'warning' | 'info' | 'error'
|
|
11
|
-
export type QyAlertEffect = 'light' | 'dark'
|
|
12
|
-
|
|
13
|
-
export interface QyAlertProps {
|
|
14
|
-
title?: string
|
|
15
|
-
description?: string
|
|
16
|
-
type?: QyAlertType
|
|
17
|
-
closable?: boolean
|
|
18
|
-
closeText?: string
|
|
19
|
-
showIcon?: boolean
|
|
20
|
-
center?: boolean
|
|
21
|
-
effect?: QyAlertEffect
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface QyAlertAttrs {
|
|
25
|
-
class?: unknown
|
|
26
|
-
style?: StyleValue
|
|
27
|
-
id?: string
|
|
28
|
-
role?: string
|
|
29
|
-
[key: `data-${string}`]: unknown
|
|
30
|
-
[key: `aria-${string}`]: unknown
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface QyAlertSlots {
|
|
34
|
-
icon?: () => unknown
|
|
35
|
-
title?: () => unknown
|
|
36
|
-
default?: () => unknown
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type QyAlertEmits = {
|
|
40
|
-
close: () => void
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type QyAlertComponentProps = QyAlertProps & QyAlertAttrs & {
|
|
44
|
-
onClose?: QyAlertEmits['close']
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const QyAlert: DefineComponent<
|
|
48
|
-
QyAlertProps,
|
|
49
|
-
{},
|
|
50
|
-
{},
|
|
51
|
-
{},
|
|
52
|
-
{},
|
|
53
|
-
ComponentOptionsMixin,
|
|
54
|
-
ComponentOptionsMixin,
|
|
55
|
-
QyAlertEmits,
|
|
56
|
-
string,
|
|
57
|
-
PublicProps,
|
|
58
|
-
QyAlertComponentProps,
|
|
59
|
-
{},
|
|
60
|
-
SlotsType<QyAlertSlots>
|
|
61
|
-
> & Plugin
|
|
62
|
-
|
|
63
|
-
export { QyAlert }
|
|
64
|
-
export default QyAlert
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps,
|
|
6
|
+
SlotsType
|
|
7
|
+
} from 'vue'
|
|
8
|
+
import type { StyleValue } from 'vue'
|
|
9
|
+
|
|
10
|
+
export type QyAlertType = 'primary' | 'success' | 'warning' | 'info' | 'error'
|
|
11
|
+
export type QyAlertEffect = 'light' | 'dark'
|
|
12
|
+
|
|
13
|
+
export interface QyAlertProps {
|
|
14
|
+
title?: string
|
|
15
|
+
description?: string
|
|
16
|
+
type?: QyAlertType
|
|
17
|
+
closable?: boolean
|
|
18
|
+
closeText?: string
|
|
19
|
+
showIcon?: boolean
|
|
20
|
+
center?: boolean
|
|
21
|
+
effect?: QyAlertEffect
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface QyAlertAttrs {
|
|
25
|
+
class?: unknown
|
|
26
|
+
style?: StyleValue
|
|
27
|
+
id?: string
|
|
28
|
+
role?: string
|
|
29
|
+
[key: `data-${string}`]: unknown
|
|
30
|
+
[key: `aria-${string}`]: unknown
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface QyAlertSlots {
|
|
34
|
+
icon?: () => unknown
|
|
35
|
+
title?: () => unknown
|
|
36
|
+
default?: () => unknown
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type QyAlertEmits = {
|
|
40
|
+
close: () => void
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type QyAlertComponentProps = QyAlertProps & QyAlertAttrs & {
|
|
44
|
+
onClose?: QyAlertEmits['close']
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const QyAlert: DefineComponent<
|
|
48
|
+
QyAlertProps,
|
|
49
|
+
{},
|
|
50
|
+
{},
|
|
51
|
+
{},
|
|
52
|
+
{},
|
|
53
|
+
ComponentOptionsMixin,
|
|
54
|
+
ComponentOptionsMixin,
|
|
55
|
+
QyAlertEmits,
|
|
56
|
+
string,
|
|
57
|
+
PublicProps,
|
|
58
|
+
QyAlertComponentProps,
|
|
59
|
+
{},
|
|
60
|
+
SlotsType<QyAlertSlots>
|
|
61
|
+
> & Plugin
|
|
62
|
+
|
|
63
|
+
export { QyAlert }
|
|
64
|
+
export default QyAlert
|
|
@@ -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
|
package/qy-avatar/index.d.ts
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Component,
|
|
3
|
-
ComponentOptionsMixin,
|
|
4
|
-
CSSProperties,
|
|
5
|
-
DefineComponent,
|
|
6
|
-
Plugin,
|
|
7
|
-
PublicProps,
|
|
8
|
-
SlotsType,
|
|
9
|
-
StyleValue
|
|
10
|
-
} from 'vue'
|
|
11
|
-
|
|
12
|
-
export type QyAvatarSize = number | 'small' | 'default' | 'large'
|
|
13
|
-
export type QyAvatarShape = 'circle' | 'square'
|
|
14
|
-
export type QyAvatarIcon = string | Component
|
|
15
|
-
export type QyAvatarFit = CSSProperties['objectFit']
|
|
16
|
-
|
|
17
|
-
export interface QyAvatarProps {
|
|
18
|
-
size?: QyAvatarSize
|
|
19
|
-
shape?: QyAvatarShape
|
|
20
|
-
icon?: QyAvatarIcon
|
|
21
|
-
src?: string
|
|
22
|
-
alt?: string
|
|
23
|
-
srcSet?: string
|
|
24
|
-
fit?: QyAvatarFit
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface QyAvatarAttrs {
|
|
28
|
-
class?: unknown
|
|
29
|
-
style?: StyleValue
|
|
30
|
-
id?: string
|
|
31
|
-
role?: string
|
|
32
|
-
title?: string
|
|
33
|
-
tabindex?: string | number
|
|
34
|
-
[key: `data-${string}`]: unknown
|
|
35
|
-
[key: `aria-${string}`]: unknown
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface QyAvatarSlots {
|
|
39
|
-
default?: () => unknown
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type QyAvatarEmits = {
|
|
43
|
-
error: (event: Event) => void
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
type QyAvatarComponentProps = QyAvatarProps & QyAvatarAttrs & {
|
|
47
|
-
onError?: QyAvatarEmits['error']
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
declare const QyAvatar: DefineComponent<
|
|
51
|
-
QyAvatarComponentProps,
|
|
52
|
-
{},
|
|
53
|
-
{},
|
|
54
|
-
{},
|
|
55
|
-
{},
|
|
56
|
-
ComponentOptionsMixin,
|
|
57
|
-
ComponentOptionsMixin,
|
|
58
|
-
QyAvatarEmits,
|
|
59
|
-
string,
|
|
60
|
-
PublicProps,
|
|
61
|
-
QyAvatarComponentProps,
|
|
62
|
-
{},
|
|
63
|
-
SlotsType<QyAvatarSlots>
|
|
64
|
-
> & Plugin
|
|
65
|
-
|
|
66
|
-
export { QyAvatar }
|
|
67
|
-
export default QyAvatar
|
|
1
|
+
import type {
|
|
2
|
+
Component,
|
|
3
|
+
ComponentOptionsMixin,
|
|
4
|
+
CSSProperties,
|
|
5
|
+
DefineComponent,
|
|
6
|
+
Plugin,
|
|
7
|
+
PublicProps,
|
|
8
|
+
SlotsType,
|
|
9
|
+
StyleValue
|
|
10
|
+
} from 'vue'
|
|
11
|
+
|
|
12
|
+
export type QyAvatarSize = number | 'small' | 'default' | 'large'
|
|
13
|
+
export type QyAvatarShape = 'circle' | 'square'
|
|
14
|
+
export type QyAvatarIcon = string | Component
|
|
15
|
+
export type QyAvatarFit = CSSProperties['objectFit']
|
|
16
|
+
|
|
17
|
+
export interface QyAvatarProps {
|
|
18
|
+
size?: QyAvatarSize
|
|
19
|
+
shape?: QyAvatarShape
|
|
20
|
+
icon?: QyAvatarIcon
|
|
21
|
+
src?: string
|
|
22
|
+
alt?: string
|
|
23
|
+
srcSet?: string
|
|
24
|
+
fit?: QyAvatarFit
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export interface QyAvatarAttrs {
|
|
28
|
+
class?: unknown
|
|
29
|
+
style?: StyleValue
|
|
30
|
+
id?: string
|
|
31
|
+
role?: string
|
|
32
|
+
title?: string
|
|
33
|
+
tabindex?: string | number
|
|
34
|
+
[key: `data-${string}`]: unknown
|
|
35
|
+
[key: `aria-${string}`]: unknown
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface QyAvatarSlots {
|
|
39
|
+
default?: () => unknown
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type QyAvatarEmits = {
|
|
43
|
+
error: (event: Event) => void
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type QyAvatarComponentProps = QyAvatarProps & QyAvatarAttrs & {
|
|
47
|
+
onError?: QyAvatarEmits['error']
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
declare const QyAvatar: DefineComponent<
|
|
51
|
+
QyAvatarComponentProps,
|
|
52
|
+
{},
|
|
53
|
+
{},
|
|
54
|
+
{},
|
|
55
|
+
{},
|
|
56
|
+
ComponentOptionsMixin,
|
|
57
|
+
ComponentOptionsMixin,
|
|
58
|
+
QyAvatarEmits,
|
|
59
|
+
string,
|
|
60
|
+
PublicProps,
|
|
61
|
+
QyAvatarComponentProps,
|
|
62
|
+
{},
|
|
63
|
+
SlotsType<QyAvatarSlots>
|
|
64
|
+
> & Plugin
|
|
65
|
+
|
|
66
|
+
export { QyAvatar }
|
|
67
|
+
export default QyAvatar
|
package/qy-badge/index.d.ts
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps,
|
|
6
|
-
SlotsType
|
|
7
|
-
} from 'vue'
|
|
8
|
-
import type { StyleValue } from 'vue'
|
|
9
|
-
|
|
10
|
-
export type QyBadgeType = 'primary' | 'success' | 'warning' | 'info' | 'danger'
|
|
11
|
-
|
|
12
|
-
export interface QyBadgeProps {
|
|
13
|
-
value?: string | number
|
|
14
|
-
max?: number
|
|
15
|
-
isDot?: boolean
|
|
16
|
-
hidden?: boolean
|
|
17
|
-
type?: QyBadgeType
|
|
18
|
-
showZero?: boolean
|
|
19
|
-
color?: string
|
|
20
|
-
badgeStyle?: StyleValue
|
|
21
|
-
offset?: [number, number]
|
|
22
|
-
badgeClass?: string
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface QyBadgeAttrs {
|
|
26
|
-
class?: unknown
|
|
27
|
-
style?: StyleValue
|
|
28
|
-
id?: string
|
|
29
|
-
role?: string
|
|
30
|
-
title?: string
|
|
31
|
-
[key: `data-${string}`]: unknown
|
|
32
|
-
[key: `aria-${string}`]: unknown
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface QyBadgeExposes {
|
|
36
|
-
readonly content: string
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface QyBadgeSlots {
|
|
40
|
-
default?: () => unknown
|
|
41
|
-
content?: (props: { readonly value: string }) => unknown
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
type QyBadgeComponentProps = QyBadgeProps & QyBadgeAttrs
|
|
45
|
-
|
|
46
|
-
declare const QyBadge: DefineComponent<
|
|
47
|
-
QyBadgeComponentProps,
|
|
48
|
-
QyBadgeExposes,
|
|
49
|
-
{},
|
|
50
|
-
{},
|
|
51
|
-
{},
|
|
52
|
-
ComponentOptionsMixin,
|
|
53
|
-
ComponentOptionsMixin,
|
|
54
|
-
{},
|
|
55
|
-
string,
|
|
56
|
-
PublicProps,
|
|
57
|
-
QyBadgeComponentProps,
|
|
58
|
-
{},
|
|
59
|
-
SlotsType<QyBadgeSlots>
|
|
60
|
-
> & Plugin
|
|
61
|
-
|
|
62
|
-
export { QyBadge }
|
|
63
|
-
export default QyBadge
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps,
|
|
6
|
+
SlotsType
|
|
7
|
+
} from 'vue'
|
|
8
|
+
import type { StyleValue } from 'vue'
|
|
9
|
+
|
|
10
|
+
export type QyBadgeType = 'primary' | 'success' | 'warning' | 'info' | 'danger'
|
|
11
|
+
|
|
12
|
+
export interface QyBadgeProps {
|
|
13
|
+
value?: string | number
|
|
14
|
+
max?: number
|
|
15
|
+
isDot?: boolean
|
|
16
|
+
hidden?: boolean
|
|
17
|
+
type?: QyBadgeType
|
|
18
|
+
showZero?: boolean
|
|
19
|
+
color?: string
|
|
20
|
+
badgeStyle?: StyleValue
|
|
21
|
+
offset?: [number, number]
|
|
22
|
+
badgeClass?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface QyBadgeAttrs {
|
|
26
|
+
class?: unknown
|
|
27
|
+
style?: StyleValue
|
|
28
|
+
id?: string
|
|
29
|
+
role?: string
|
|
30
|
+
title?: string
|
|
31
|
+
[key: `data-${string}`]: unknown
|
|
32
|
+
[key: `aria-${string}`]: unknown
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface QyBadgeExposes {
|
|
36
|
+
readonly content: string
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface QyBadgeSlots {
|
|
40
|
+
default?: () => unknown
|
|
41
|
+
content?: (props: { readonly value: string }) => unknown
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
type QyBadgeComponentProps = QyBadgeProps & QyBadgeAttrs
|
|
45
|
+
|
|
46
|
+
declare const QyBadge: DefineComponent<
|
|
47
|
+
QyBadgeComponentProps,
|
|
48
|
+
QyBadgeExposes,
|
|
49
|
+
{},
|
|
50
|
+
{},
|
|
51
|
+
{},
|
|
52
|
+
ComponentOptionsMixin,
|
|
53
|
+
ComponentOptionsMixin,
|
|
54
|
+
{},
|
|
55
|
+
string,
|
|
56
|
+
PublicProps,
|
|
57
|
+
QyBadgeComponentProps,
|
|
58
|
+
{},
|
|
59
|
+
SlotsType<QyBadgeSlots>
|
|
60
|
+
> & Plugin
|
|
61
|
+
|
|
62
|
+
export { QyBadge }
|
|
63
|
+
export default QyBadge
|
package/qy-card/index.d.ts
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps,
|
|
6
|
-
SlotsType
|
|
7
|
-
} from 'vue'
|
|
8
|
-
import type { StyleValue } from 'vue'
|
|
9
|
-
|
|
10
|
-
export type QyCardShadow = 'always' | 'hover' | 'never'
|
|
11
|
-
|
|
12
|
-
export interface QyCardProps {
|
|
13
|
-
header?: string
|
|
14
|
-
footer?: string
|
|
15
|
-
shadow?: QyCardShadow
|
|
16
|
-
bodyStyle?: StyleValue
|
|
17
|
-
headerClass?: string
|
|
18
|
-
bodyClass?: string
|
|
19
|
-
footerClass?: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface QyCardAttrs {
|
|
23
|
-
class?: unknown
|
|
24
|
-
style?: StyleValue
|
|
25
|
-
id?: string
|
|
26
|
-
role?: string
|
|
27
|
-
title?: string
|
|
28
|
-
tabindex?: string | number
|
|
29
|
-
[key: `data-${string}`]: unknown
|
|
30
|
-
[key: `aria-${string}`]: unknown
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface QyCardSlots {
|
|
34
|
-
header?: () => unknown
|
|
35
|
-
default?: () => unknown
|
|
36
|
-
footer?: () => unknown
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type QyCardEmits = {
|
|
40
|
-
click: (event: MouseEvent) => void
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
type QyCardComponentProps = QyCardProps & QyCardAttrs & {
|
|
44
|
-
onClick?: QyCardEmits['click']
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const QyCard: DefineComponent<
|
|
48
|
-
QyCardComponentProps,
|
|
49
|
-
{},
|
|
50
|
-
{},
|
|
51
|
-
{},
|
|
52
|
-
{},
|
|
53
|
-
ComponentOptionsMixin,
|
|
54
|
-
ComponentOptionsMixin,
|
|
55
|
-
QyCardEmits,
|
|
56
|
-
string,
|
|
57
|
-
PublicProps,
|
|
58
|
-
QyCardComponentProps,
|
|
59
|
-
{},
|
|
60
|
-
SlotsType<QyCardSlots>
|
|
61
|
-
> & Plugin
|
|
62
|
-
|
|
63
|
-
export { QyCard }
|
|
64
|
-
export default QyCard
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps,
|
|
6
|
+
SlotsType
|
|
7
|
+
} from 'vue'
|
|
8
|
+
import type { StyleValue } from 'vue'
|
|
9
|
+
|
|
10
|
+
export type QyCardShadow = 'always' | 'hover' | 'never'
|
|
11
|
+
|
|
12
|
+
export interface QyCardProps {
|
|
13
|
+
header?: string
|
|
14
|
+
footer?: string
|
|
15
|
+
shadow?: QyCardShadow
|
|
16
|
+
bodyStyle?: StyleValue
|
|
17
|
+
headerClass?: string
|
|
18
|
+
bodyClass?: string
|
|
19
|
+
footerClass?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export interface QyCardAttrs {
|
|
23
|
+
class?: unknown
|
|
24
|
+
style?: StyleValue
|
|
25
|
+
id?: string
|
|
26
|
+
role?: string
|
|
27
|
+
title?: string
|
|
28
|
+
tabindex?: string | number
|
|
29
|
+
[key: `data-${string}`]: unknown
|
|
30
|
+
[key: `aria-${string}`]: unknown
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface QyCardSlots {
|
|
34
|
+
header?: () => unknown
|
|
35
|
+
default?: () => unknown
|
|
36
|
+
footer?: () => unknown
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type QyCardEmits = {
|
|
40
|
+
click: (event: MouseEvent) => void
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
type QyCardComponentProps = QyCardProps & QyCardAttrs & {
|
|
44
|
+
onClick?: QyCardEmits['click']
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare const QyCard: DefineComponent<
|
|
48
|
+
QyCardComponentProps,
|
|
49
|
+
{},
|
|
50
|
+
{},
|
|
51
|
+
{},
|
|
52
|
+
{},
|
|
53
|
+
ComponentOptionsMixin,
|
|
54
|
+
ComponentOptionsMixin,
|
|
55
|
+
QyCardEmits,
|
|
56
|
+
string,
|
|
57
|
+
PublicProps,
|
|
58
|
+
QyCardComponentProps,
|
|
59
|
+
{},
|
|
60
|
+
SlotsType<QyCardSlots>
|
|
61
|
+
> & Plugin
|
|
62
|
+
|
|
63
|
+
export { QyCard }
|
|
64
|
+
export default QyCard
|