@yeepay/yee-boss-ui 0.1.5 → 0.1.6
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 +7 -2
- package/dist/components/modal/YeeModal.vue.d.ts +16 -6
- package/dist/components/modal/types.d.ts +6 -0
- package/dist/index.js +577 -450
- package/dist/style.css +1 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -117,10 +117,15 @@ export default {
|
|
|
117
117
|
|
|
118
118
|
### YeeModal
|
|
119
119
|
|
|
120
|
-
使用标准 `v-model:open
|
|
120
|
+
使用标准 `v-model:open`。Modal 默认在 header 右侧显示全屏切换按钮,可通过 `v-model:fullscreen` 控制状态,或通过 `:fullscreen-button="false"` 隐藏。`type="drawer"` 适合长详情或复杂表单,不显示全屏按钮;`confirm` 只通知父组件,不会主动关闭,便于父组件在异步提交成功后再更新 `open`。
|
|
121
121
|
|
|
122
122
|
```vue
|
|
123
|
-
<YeeModal
|
|
123
|
+
<YeeModal
|
|
124
|
+
v-model:fullscreen="fullscreen"
|
|
125
|
+
v-model:open="open"
|
|
126
|
+
title="提交确认"
|
|
127
|
+
@confirm="submit"
|
|
128
|
+
/>
|
|
124
129
|
```
|
|
125
130
|
|
|
126
131
|
### YeeSelect
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
1
2
|
import { YeeModalProps } from './types';
|
|
2
3
|
type __VLS_Props = YeeModalProps;
|
|
3
4
|
type __VLS_PublicProps = {
|
|
@@ -5,12 +6,16 @@ type __VLS_PublicProps = {
|
|
|
5
6
|
} & __VLS_Props;
|
|
6
7
|
declare function __VLS_template(): {
|
|
7
8
|
attrs: Partial<{}>;
|
|
8
|
-
slots: {
|
|
9
|
-
|
|
10
|
-
default
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
slots: Readonly<{
|
|
10
|
+
closeIcon(): VNodeChild;
|
|
11
|
+
default(): VNodeChild;
|
|
12
|
+
footer(): VNodeChild;
|
|
13
|
+
header(): VNodeChild;
|
|
14
|
+
}> & {
|
|
15
|
+
closeIcon(): VNodeChild;
|
|
16
|
+
default(): VNodeChild;
|
|
17
|
+
footer(): VNodeChild;
|
|
18
|
+
header(): VNodeChild;
|
|
14
19
|
};
|
|
15
20
|
refs: {};
|
|
16
21
|
rootEl: any;
|
|
@@ -20,23 +25,28 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
20
25
|
close: () => any;
|
|
21
26
|
confirm: (event: Event) => any;
|
|
22
27
|
cancel: (event: Event) => any;
|
|
28
|
+
"update:fullscreen": (fullscreen: boolean) => any;
|
|
23
29
|
"update:open": (value: boolean) => any;
|
|
24
30
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
25
31
|
onClose?: () => any;
|
|
26
32
|
onConfirm?: (event: Event) => any;
|
|
27
33
|
onCancel?: (event: Event) => any;
|
|
34
|
+
"onUpdate:fullscreen"?: (fullscreen: boolean) => any;
|
|
28
35
|
"onUpdate:open"?: (value: boolean) => any;
|
|
29
36
|
}>, {
|
|
30
37
|
type: import('./types').YeeModalType;
|
|
31
38
|
title: string;
|
|
32
39
|
width: number | string;
|
|
33
40
|
keyboard: boolean;
|
|
41
|
+
closable: boolean;
|
|
34
42
|
maskClosable: boolean;
|
|
35
43
|
destroyOnClose: boolean;
|
|
36
44
|
cancelButtonText: string;
|
|
37
45
|
centered: boolean;
|
|
38
46
|
confirmButtonLoading: boolean;
|
|
39
47
|
confirmButtonText: string;
|
|
48
|
+
fullscreen: boolean;
|
|
49
|
+
fullscreenButton: boolean;
|
|
40
50
|
showCancelButton: boolean;
|
|
41
51
|
showConfirmButton: boolean;
|
|
42
52
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { StyleValue } from 'vue';
|
|
1
2
|
export type YeeModalType = 'drawer' | 'modal';
|
|
2
3
|
export interface YeeModalProps {
|
|
3
4
|
cancelButtonText?: string;
|
|
4
5
|
centered?: boolean;
|
|
6
|
+
closable?: boolean;
|
|
5
7
|
confirmButtonLoading?: boolean;
|
|
6
8
|
confirmButtonText?: string;
|
|
7
9
|
destroyOnClose?: boolean;
|
|
10
|
+
fullscreen?: boolean;
|
|
11
|
+
fullscreenButton?: boolean;
|
|
8
12
|
keyboard?: boolean;
|
|
9
13
|
maskClosable?: boolean;
|
|
10
14
|
showCancelButton?: boolean;
|
|
11
15
|
showConfirmButton?: boolean;
|
|
16
|
+
style?: StyleValue;
|
|
12
17
|
title?: string;
|
|
13
18
|
type?: YeeModalType;
|
|
14
19
|
width?: number | string;
|
|
20
|
+
wrapProps?: Record<string, unknown>;
|
|
15
21
|
}
|