@qynpm/ui 1.0.34 → 1.0.35
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 +28 -28
- package/dist/index.cjs +5 -5
- package/dist/index.mjs +6 -6
- 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-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-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-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 +1 -1
- package/dist/shared/{index-IXbvJ9d7.mjs → index-4SkLDBra.mjs} +1 -1
- package/dist/shared/{index-fh9l84rU.mjs → index-BekN1g_r.mjs} +10 -10
- 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-Dyyp1ix9.cjs → index-C7lRQtzs.cjs} +1 -1
- package/dist/shared/{index-C_adKysL.mjs → index-CdnHMuo3.mjs} +1 -1
- package/dist/shared/{index-Dw5upK-A.cjs → index-Ce_hvR--.cjs} +1 -1
- 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-ccugL1Ie.mjs → index-Dr-Q5krU.mjs} +4 -4
- 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-DoL8xnpo.mjs → index.vue_vue_type_script_setup_true_lang-IyZesuKm.mjs} +9 -9
- 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-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 +31 -31
- package/package.json +1 -1
- 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-iframe/index.d.ts +66 -66
- package/qy-image/index.d.ts +28 -28
- package/qy-image-preview/index.d.ts +21 -20
- 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-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/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-M0qKRXd2.cjs +0 -1
- package/dist/shared/utils-D2KAQCCB.cjs +0 -1
- package/dist/shared/utils-DUntDntI.mjs +0 -112
package/qy-iframe/index.d.ts
CHANGED
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps
|
|
6
|
-
} from 'vue'
|
|
7
|
-
import type { StyleValue } from 'vue'
|
|
8
|
-
|
|
9
|
-
export type QyIframeLoading = 'eager' | 'lazy'
|
|
10
|
-
export type QyIframeReferrerPolicy =
|
|
11
|
-
| 'no-referrer'
|
|
12
|
-
| 'no-referrer-when-downgrade'
|
|
13
|
-
| 'origin'
|
|
14
|
-
| 'origin-when-cross-origin'
|
|
15
|
-
| 'same-origin'
|
|
16
|
-
| 'strict-origin'
|
|
17
|
-
| 'strict-origin-when-cross-origin'
|
|
18
|
-
| 'unsafe-url'
|
|
19
|
-
|
|
20
|
-
export interface QyIframeProps {
|
|
21
|
-
src: string
|
|
22
|
-
title: string
|
|
23
|
-
reloadKey?: string | number
|
|
24
|
-
loading?: QyIframeLoading
|
|
25
|
-
sandbox?: string
|
|
26
|
-
allow?: string
|
|
27
|
-
referrerPolicy?: QyIframeReferrerPolicy
|
|
28
|
-
allowFullscreen?: boolean
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export interface QyIframeAttrs {
|
|
32
|
-
tabindex?: string | number
|
|
33
|
-
class?: unknown
|
|
34
|
-
style?: StyleValue
|
|
35
|
-
id?: string
|
|
36
|
-
role?: string
|
|
37
|
-
[key: `data-${string}`]: unknown
|
|
38
|
-
[key: `aria-${string}`]: unknown
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type QyIframeEmits = {
|
|
42
|
-
load: () => unknown
|
|
43
|
-
error: () => unknown
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
type QyIframeComponentProps = QyIframeProps & QyIframeAttrs & {
|
|
47
|
-
onLoad?: QyIframeEmits['load']
|
|
48
|
-
onError?: QyIframeEmits['error']
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
declare const QyIframe: DefineComponent<
|
|
52
|
-
QyIframeProps,
|
|
53
|
-
{},
|
|
54
|
-
{},
|
|
55
|
-
{},
|
|
56
|
-
{},
|
|
57
|
-
ComponentOptionsMixin,
|
|
58
|
-
ComponentOptionsMixin,
|
|
59
|
-
QyIframeEmits,
|
|
60
|
-
string,
|
|
61
|
-
PublicProps,
|
|
62
|
-
QyIframeComponentProps
|
|
63
|
-
> & Plugin
|
|
64
|
-
|
|
65
|
-
export { QyIframe }
|
|
66
|
-
export default QyIframe
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps
|
|
6
|
+
} from 'vue'
|
|
7
|
+
import type { StyleValue } from 'vue'
|
|
8
|
+
|
|
9
|
+
export type QyIframeLoading = 'eager' | 'lazy'
|
|
10
|
+
export type QyIframeReferrerPolicy =
|
|
11
|
+
| 'no-referrer'
|
|
12
|
+
| 'no-referrer-when-downgrade'
|
|
13
|
+
| 'origin'
|
|
14
|
+
| 'origin-when-cross-origin'
|
|
15
|
+
| 'same-origin'
|
|
16
|
+
| 'strict-origin'
|
|
17
|
+
| 'strict-origin-when-cross-origin'
|
|
18
|
+
| 'unsafe-url'
|
|
19
|
+
|
|
20
|
+
export interface QyIframeProps {
|
|
21
|
+
src: string
|
|
22
|
+
title: string
|
|
23
|
+
reloadKey?: string | number
|
|
24
|
+
loading?: QyIframeLoading
|
|
25
|
+
sandbox?: string
|
|
26
|
+
allow?: string
|
|
27
|
+
referrerPolicy?: QyIframeReferrerPolicy
|
|
28
|
+
allowFullscreen?: boolean
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface QyIframeAttrs {
|
|
32
|
+
tabindex?: string | number
|
|
33
|
+
class?: unknown
|
|
34
|
+
style?: StyleValue
|
|
35
|
+
id?: string
|
|
36
|
+
role?: string
|
|
37
|
+
[key: `data-${string}`]: unknown
|
|
38
|
+
[key: `aria-${string}`]: unknown
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type QyIframeEmits = {
|
|
42
|
+
load: () => unknown
|
|
43
|
+
error: () => unknown
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
type QyIframeComponentProps = QyIframeProps & QyIframeAttrs & {
|
|
47
|
+
onLoad?: QyIframeEmits['load']
|
|
48
|
+
onError?: QyIframeEmits['error']
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
declare const QyIframe: DefineComponent<
|
|
52
|
+
QyIframeProps,
|
|
53
|
+
{},
|
|
54
|
+
{},
|
|
55
|
+
{},
|
|
56
|
+
{},
|
|
57
|
+
ComponentOptionsMixin,
|
|
58
|
+
ComponentOptionsMixin,
|
|
59
|
+
QyIframeEmits,
|
|
60
|
+
string,
|
|
61
|
+
PublicProps,
|
|
62
|
+
QyIframeComponentProps
|
|
63
|
+
> & Plugin
|
|
64
|
+
|
|
65
|
+
export { QyIframe }
|
|
66
|
+
export default QyIframe
|
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,21 @@
|
|
|
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
|
-
|
|
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
|
+
|
|
21
|
+
export default QyImagePreview
|
package/qy-link/index.d.ts
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
Component,
|
|
3
|
-
ComponentOptionsMixin,
|
|
4
|
-
DefineComponent,
|
|
5
|
-
Plugin,
|
|
6
|
-
PublicProps,
|
|
7
|
-
SlotsType
|
|
8
|
-
} from 'vue'
|
|
9
|
-
import type { StyleValue } from 'vue'
|
|
10
|
-
|
|
11
|
-
export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
|
|
12
|
-
export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
|
|
13
|
-
|
|
14
|
-
export interface QyLinkProps {
|
|
15
|
-
type?: QyLinkType
|
|
16
|
-
underline?: QyLinkUnderline
|
|
17
|
-
disabled?: boolean
|
|
18
|
-
href?: string
|
|
19
|
-
target?: string
|
|
20
|
-
icon?: string | Component
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface QyLinkAttrs {
|
|
24
|
-
rel?: string
|
|
25
|
-
download?: string | boolean
|
|
26
|
-
hreflang?: string
|
|
27
|
-
referrerpolicy?: string
|
|
28
|
-
ping?: string
|
|
29
|
-
tabindex?: string | number
|
|
30
|
-
class?: unknown
|
|
31
|
-
style?: StyleValue
|
|
32
|
-
id?: string
|
|
33
|
-
title?: string
|
|
34
|
-
role?: string
|
|
35
|
-
[key: `data-${string}`]: unknown
|
|
36
|
-
[key: `aria-${string}`]: unknown
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export interface QyLinkSlots {
|
|
40
|
-
default?: () => unknown
|
|
41
|
-
icon?: () => unknown
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export type QyLinkEmits = {
|
|
45
|
-
click: (event: MouseEvent) => void
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
|
|
49
|
-
onClick?: QyLinkEmits['click']
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
declare const QyLink: DefineComponent<
|
|
53
|
-
QyLinkProps,
|
|
54
|
-
{},
|
|
55
|
-
{},
|
|
56
|
-
{},
|
|
57
|
-
{},
|
|
58
|
-
ComponentOptionsMixin,
|
|
59
|
-
ComponentOptionsMixin,
|
|
60
|
-
QyLinkEmits,
|
|
61
|
-
string,
|
|
62
|
-
PublicProps,
|
|
63
|
-
QyLinkComponentProps,
|
|
64
|
-
{},
|
|
65
|
-
SlotsType<QyLinkSlots>
|
|
66
|
-
> & Plugin
|
|
67
|
-
|
|
68
|
-
export { QyLink }
|
|
69
|
-
export default QyLink
|
|
1
|
+
import type {
|
|
2
|
+
Component,
|
|
3
|
+
ComponentOptionsMixin,
|
|
4
|
+
DefineComponent,
|
|
5
|
+
Plugin,
|
|
6
|
+
PublicProps,
|
|
7
|
+
SlotsType
|
|
8
|
+
} from 'vue'
|
|
9
|
+
import type { StyleValue } from 'vue'
|
|
10
|
+
|
|
11
|
+
export type QyLinkType = 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
|
|
12
|
+
export type QyLinkUnderline = boolean | 'always' | 'never' | 'hover'
|
|
13
|
+
|
|
14
|
+
export interface QyLinkProps {
|
|
15
|
+
type?: QyLinkType
|
|
16
|
+
underline?: QyLinkUnderline
|
|
17
|
+
disabled?: boolean
|
|
18
|
+
href?: string
|
|
19
|
+
target?: string
|
|
20
|
+
icon?: string | Component
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface QyLinkAttrs {
|
|
24
|
+
rel?: string
|
|
25
|
+
download?: string | boolean
|
|
26
|
+
hreflang?: string
|
|
27
|
+
referrerpolicy?: string
|
|
28
|
+
ping?: string
|
|
29
|
+
tabindex?: string | number
|
|
30
|
+
class?: unknown
|
|
31
|
+
style?: StyleValue
|
|
32
|
+
id?: string
|
|
33
|
+
title?: string
|
|
34
|
+
role?: string
|
|
35
|
+
[key: `data-${string}`]: unknown
|
|
36
|
+
[key: `aria-${string}`]: unknown
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface QyLinkSlots {
|
|
40
|
+
default?: () => unknown
|
|
41
|
+
icon?: () => unknown
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type QyLinkEmits = {
|
|
45
|
+
click: (event: MouseEvent) => void
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
type QyLinkComponentProps = QyLinkProps & QyLinkAttrs & {
|
|
49
|
+
onClick?: QyLinkEmits['click']
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare const QyLink: DefineComponent<
|
|
53
|
+
QyLinkProps,
|
|
54
|
+
{},
|
|
55
|
+
{},
|
|
56
|
+
{},
|
|
57
|
+
{},
|
|
58
|
+
ComponentOptionsMixin,
|
|
59
|
+
ComponentOptionsMixin,
|
|
60
|
+
QyLinkEmits,
|
|
61
|
+
string,
|
|
62
|
+
PublicProps,
|
|
63
|
+
QyLinkComponentProps,
|
|
64
|
+
{},
|
|
65
|
+
SlotsType<QyLinkSlots>
|
|
66
|
+
> & Plugin
|
|
67
|
+
|
|
68
|
+
export { QyLink }
|
|
69
|
+
export default QyLink
|
package/qy-loading/index.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import type { Directive, Plugin } from 'vue'
|
|
2
|
-
import type {
|
|
3
|
-
QyLoadingDirectiveOptions,
|
|
4
|
-
QyLoadingDirectiveValue,
|
|
5
|
-
QyLoadingHandle,
|
|
6
|
-
QyLoadingServiceOptions
|
|
7
|
-
} from '@qynpm/hooks'
|
|
8
|
-
|
|
9
|
-
export type {
|
|
10
|
-
QyLoadingDirectiveOptions,
|
|
11
|
-
QyLoadingDirectiveValue,
|
|
12
|
-
QyLoadingHandle,
|
|
13
|
-
QyLoadingServiceOptions
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export declare const vQyLoading: Directive<
|
|
17
|
-
HTMLElement,
|
|
18
|
-
QyLoadingDirectiveValue
|
|
19
|
-
>
|
|
20
|
-
export declare const QyLoading: Plugin
|
|
21
|
-
export declare function openQyLoading(
|
|
22
|
-
options?: QyLoadingServiceOptions
|
|
23
|
-
): QyLoadingHandle
|
|
24
|
-
|
|
25
|
-
export default QyLoading
|
|
1
|
+
import type { Directive, Plugin } from 'vue'
|
|
2
|
+
import type {
|
|
3
|
+
QyLoadingDirectiveOptions,
|
|
4
|
+
QyLoadingDirectiveValue,
|
|
5
|
+
QyLoadingHandle,
|
|
6
|
+
QyLoadingServiceOptions
|
|
7
|
+
} from '@qynpm/hooks'
|
|
8
|
+
|
|
9
|
+
export type {
|
|
10
|
+
QyLoadingDirectiveOptions,
|
|
11
|
+
QyLoadingDirectiveValue,
|
|
12
|
+
QyLoadingHandle,
|
|
13
|
+
QyLoadingServiceOptions
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const vQyLoading: Directive<
|
|
17
|
+
HTMLElement,
|
|
18
|
+
QyLoadingDirectiveValue
|
|
19
|
+
>
|
|
20
|
+
export declare const QyLoading: Plugin
|
|
21
|
+
export declare function openQyLoading(
|
|
22
|
+
options?: QyLoadingServiceOptions
|
|
23
|
+
): QyLoadingHandle
|
|
24
|
+
|
|
25
|
+
export default QyLoading
|
|
@@ -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
|
package/qy-progress/index.d.ts
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
ComponentOptionsMixin,
|
|
3
|
-
DefineComponent,
|
|
4
|
-
Plugin,
|
|
5
|
-
PublicProps,
|
|
6
|
-
SlotsType,
|
|
7
|
-
StyleValue
|
|
8
|
-
} from 'vue'
|
|
9
|
-
|
|
10
|
-
export type QyProgressType = 'line' | 'circle' | 'dashboard'
|
|
11
|
-
export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
|
|
12
|
-
export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
|
|
13
|
-
export interface QyProgressColor {
|
|
14
|
-
color: string
|
|
15
|
-
percentage: number
|
|
16
|
-
}
|
|
17
|
-
export type QyProgressColorFunction = (percentage: number) => string
|
|
18
|
-
export type QyProgressFormat = (percentage: number) => string
|
|
19
|
-
|
|
20
|
-
export interface QyProgressProps {
|
|
21
|
-
percentage?: number
|
|
22
|
-
type?: QyProgressType
|
|
23
|
-
status?: QyProgressStatus
|
|
24
|
-
strokeWidth?: number
|
|
25
|
-
strokeLinecap?: QyProgressStrokeLinecap
|
|
26
|
-
width?: number
|
|
27
|
-
showText?: boolean
|
|
28
|
-
textInside?: boolean
|
|
29
|
-
format?: QyProgressFormat
|
|
30
|
-
color?: string | QyProgressColor[] | QyProgressColorFunction
|
|
31
|
-
indeterminate?: boolean
|
|
32
|
-
duration?: number
|
|
33
|
-
striped?: boolean
|
|
34
|
-
stripedFlow?: boolean
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export interface QyProgressAttrs {
|
|
38
|
-
class?: unknown
|
|
39
|
-
style?: StyleValue
|
|
40
|
-
id?: string
|
|
41
|
-
role?: string
|
|
42
|
-
title?: string
|
|
43
|
-
[key: `data-${string}`]: unknown
|
|
44
|
-
[key: `aria-${string}`]: unknown
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface QyProgressSlotProps {
|
|
48
|
-
readonly percentage: number
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface QyProgressSlots {
|
|
52
|
-
default?: (props: QyProgressSlotProps) => unknown
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
|
|
56
|
-
|
|
57
|
-
declare const QyProgress: DefineComponent<
|
|
58
|
-
QyProgressComponentProps,
|
|
59
|
-
{},
|
|
60
|
-
{},
|
|
61
|
-
{},
|
|
62
|
-
{},
|
|
63
|
-
ComponentOptionsMixin,
|
|
64
|
-
ComponentOptionsMixin,
|
|
65
|
-
{},
|
|
66
|
-
string,
|
|
67
|
-
PublicProps,
|
|
68
|
-
QyProgressComponentProps,
|
|
69
|
-
{},
|
|
70
|
-
SlotsType<QyProgressSlots>
|
|
71
|
-
> & Plugin
|
|
72
|
-
|
|
73
|
-
export { QyProgress }
|
|
74
|
-
export default QyProgress
|
|
1
|
+
import type {
|
|
2
|
+
ComponentOptionsMixin,
|
|
3
|
+
DefineComponent,
|
|
4
|
+
Plugin,
|
|
5
|
+
PublicProps,
|
|
6
|
+
SlotsType,
|
|
7
|
+
StyleValue
|
|
8
|
+
} from 'vue'
|
|
9
|
+
|
|
10
|
+
export type QyProgressType = 'line' | 'circle' | 'dashboard'
|
|
11
|
+
export type QyProgressStatus = '' | 'success' | 'warning' | 'exception'
|
|
12
|
+
export type QyProgressStrokeLinecap = 'inherit' | 'round' | 'butt' | 'square'
|
|
13
|
+
export interface QyProgressColor {
|
|
14
|
+
color: string
|
|
15
|
+
percentage: number
|
|
16
|
+
}
|
|
17
|
+
export type QyProgressColorFunction = (percentage: number) => string
|
|
18
|
+
export type QyProgressFormat = (percentage: number) => string
|
|
19
|
+
|
|
20
|
+
export interface QyProgressProps {
|
|
21
|
+
percentage?: number
|
|
22
|
+
type?: QyProgressType
|
|
23
|
+
status?: QyProgressStatus
|
|
24
|
+
strokeWidth?: number
|
|
25
|
+
strokeLinecap?: QyProgressStrokeLinecap
|
|
26
|
+
width?: number
|
|
27
|
+
showText?: boolean
|
|
28
|
+
textInside?: boolean
|
|
29
|
+
format?: QyProgressFormat
|
|
30
|
+
color?: string | QyProgressColor[] | QyProgressColorFunction
|
|
31
|
+
indeterminate?: boolean
|
|
32
|
+
duration?: number
|
|
33
|
+
striped?: boolean
|
|
34
|
+
stripedFlow?: boolean
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export interface QyProgressAttrs {
|
|
38
|
+
class?: unknown
|
|
39
|
+
style?: StyleValue
|
|
40
|
+
id?: string
|
|
41
|
+
role?: string
|
|
42
|
+
title?: string
|
|
43
|
+
[key: `data-${string}`]: unknown
|
|
44
|
+
[key: `aria-${string}`]: unknown
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface QyProgressSlotProps {
|
|
48
|
+
readonly percentage: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface QyProgressSlots {
|
|
52
|
+
default?: (props: QyProgressSlotProps) => unknown
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
type QyProgressComponentProps = QyProgressProps & QyProgressAttrs
|
|
56
|
+
|
|
57
|
+
declare const QyProgress: DefineComponent<
|
|
58
|
+
QyProgressComponentProps,
|
|
59
|
+
{},
|
|
60
|
+
{},
|
|
61
|
+
{},
|
|
62
|
+
{},
|
|
63
|
+
ComponentOptionsMixin,
|
|
64
|
+
ComponentOptionsMixin,
|
|
65
|
+
{},
|
|
66
|
+
string,
|
|
67
|
+
PublicProps,
|
|
68
|
+
QyProgressComponentProps,
|
|
69
|
+
{},
|
|
70
|
+
SlotsType<QyProgressSlots>
|
|
71
|
+
> & Plugin
|
|
72
|
+
|
|
73
|
+
export { QyProgress }
|
|
74
|
+
export default QyProgress
|