yc-design-vue 1.0.1 → 1.0.3
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/es/Affix/type.d.ts +3 -2
- package/es/Alert/type.d.ts +6 -5
- package/es/Anchor/type.d.ts +4 -3
- package/es/AutoComplete/index.d.ts +65 -2
- package/es/AutoComplete/index.vue.d.ts +130 -4
- package/es/AutoComplete/type.d.ts +5 -4
- package/es/Avatar/AvatarGroup.vue.js +1 -1
- package/es/Avatar/AvatarGroup.vue2.js +2 -2
- package/es/Avatar/type.d.ts +4 -4
- package/es/BackTop/type.d.ts +2 -1
- package/es/Badge/index.vue.js +1 -1
- package/es/Badge/index.vue2.js +2 -2
- package/es/Badge/type.d.ts +3 -3
- package/es/Breadcrumb/type.d.ts +9 -8
- package/es/Button/Button.vue.js +1 -1
- package/es/Button/Button.vue2.js +2 -2
- package/es/Button/type.d.ts +4 -3
- package/es/Calendar/type.d.ts +5 -4
- package/es/Card/type.d.ts +10 -10
- package/es/Carousel/type.d.ts +3 -2
- package/es/Cascader/type.d.ts +10 -10
- package/es/Checkbox/hooks/useContext.d.ts +2 -5
- package/es/Checkbox/type.d.ts +9 -8
- package/es/Collapse/type.d.ts +9 -8
- package/es/Comment/type.d.ts +7 -6
- package/es/ConfigProvider/index.vue.js +2 -2
- package/es/ConfigProvider/type.d.ts +5 -4
- package/es/Descriptions/type.d.ts +9 -9
- package/es/Divider/type.d.ts +2 -1
- package/es/Drawer/Drawer.vue.js +1 -1
- package/es/Drawer/Drawer.vue2.js +6 -7
- package/es/Drawer/type.d.ts +5 -5
- package/es/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/Dsubmenu.vue2.js +2 -2
- package/es/Dropdown/index.d.ts +65 -2
- package/es/Dropdown/type.d.ts +15 -14
- package/es/Empty/type.d.ts +2 -1
- package/es/Grid/type.d.ts +6 -5
- package/es/Icon/type.d.ts +2 -1
- package/es/Image/type.d.ts +11 -10
- package/es/Input/hooks/useCursor.d.ts +2 -1
- package/es/Input/hooks/useCursor.js +2 -2
- package/es/Input/type.d.ts +6 -5
- package/es/InputNumber/type.d.ts +8 -8
- package/es/InputTag/type.d.ts +5 -4
- package/es/Layout/Layout.vue.js +1 -1
- package/es/Layout/Layout.vue2.js +2 -2
- package/es/Layout/type.d.ts +8 -7
- package/es/Link/type.d.ts +3 -2
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +1 -1
- package/es/List/type.d.ts +15 -14
- package/es/Mention/index.d.ts +65 -2
- package/es/Mention/index.vue.d.ts +130 -4
- package/es/Mention/type.d.ts +3 -2
- package/es/Menu/type.d.ts +11 -10
- package/es/Message/type.d.ts +1 -1
- package/es/Modal/Modal.vue.js +1 -1
- package/es/Modal/Modal.vue2.js +4 -6
- package/es/Modal/hooks/useModalClose.d.ts +2 -1
- package/es/Modal/hooks/useModalClose.js +1 -6
- package/es/Modal/type.d.ts +5 -5
- package/es/Notification/type.d.ts +1 -1
- package/es/OverflowList/index.vue.js +1 -1
- package/es/OverflowList/index.vue2.js +4 -4
- package/es/OverflowList/type.d.ts +3 -2
- package/es/PageHeader/type.d.ts +7 -6
- package/es/Pagination/type.d.ts +8 -8
- package/es/Popconfirm/index.d.ts +65 -2
- package/es/Popconfirm/index.vue.d.ts +130 -4
- package/es/Popconfirm/type.d.ts +4 -4
- package/es/Popover/type.d.ts +4 -4
- package/es/Radio/hooks/useContext.d.ts +3 -6
- package/es/Radio/type.d.ts +9 -8
- package/es/Rate/type.d.ts +3 -2
- package/es/ResizeBox/type.d.ts +6 -5
- package/es/Result/type.d.ts +6 -5
- package/es/Scrollbar/Scrollbar.vue.js +1 -1
- package/es/Scrollbar/type.d.ts +2 -2
- package/es/Select/Select.vue.d.ts +130 -4
- package/es/Select/SelectView.vue.js +1 -1
- package/es/Select/SelectView.vue2.js +1 -1
- package/es/Select/index.d.ts +65 -2
- package/es/Select/type.d.ts +19 -18
- package/es/Skeleton/type.d.ts +3 -2
- package/es/Space/index.vue.js +1 -1
- package/es/Space/index.vue2.js +2 -2
- package/es/Space/type.d.ts +3 -2
- package/es/Spin/index.vue.js +1 -1
- package/es/Spin/index.vue2.js +1 -1
- package/es/Spin/type.d.ts +4 -3
- package/es/Split/type.d.ts +5 -4
- package/es/Statistic/type.d.ts +7 -7
- package/es/Steps/type.d.ts +8 -7
- package/es/Switch/index.vue.js +1 -1
- package/es/Switch/index.vue2.js +3 -3
- package/es/Switch/type.d.ts +5 -4
- package/es/Tabs/Tabs.vue.js +1 -1
- package/es/Tabs/Tabs.vue2.js +2 -2
- package/es/Tabs/type.d.ts +5 -4
- package/es/Tag/type.d.ts +4 -3
- package/es/TimePicker/type.d.ts +4 -3
- package/es/Timeline/type.d.ts +6 -5
- package/es/Tooltip/type.d.ts +3 -3
- package/es/Transfer/type.d.ts +13 -12
- package/es/Trigger/hooks/useContext.js +1 -1
- package/es/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/es/Trigger/hooks/useTriggerPosition.js +12 -22
- package/es/Trigger/hooks/useTriggerVisible.js +1 -2
- package/es/Trigger/index.d.ts +63 -2
- package/es/Trigger/index.vue.d.ts +130 -3
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +2 -2
- package/es/Trigger/type.d.ts +3 -3
- package/es/Typography/type.d.ts +8 -7
- package/es/Watermark/type.d.ts +2 -1
- package/es/_shared/type/index.d.ts +1 -6
- package/es/_shared/utils/dom.d.ts +5 -5
- package/es/_shared/utils/dom.js +8 -9
- package/es/_shared/utils/fn.d.ts +3 -3
- package/es/_shared/utils/fn.js +6 -6
- package/es/_shared/utils/global-config.d.ts +4 -2
- package/es/_shared/utils/vue-utils.d.ts +1 -2
- package/es/_shared/utils/vue-utils.js +2 -7
- package/es/index.d.ts +66 -3
- package/es/style.css +1 -1
- package/lib/Affix/type.d.ts +3 -2
- package/lib/Alert/type.d.ts +6 -5
- package/lib/Anchor/type.d.ts +4 -3
- package/lib/AutoComplete/index.d.ts +65 -2
- package/lib/AutoComplete/index.vue.d.ts +130 -4
- package/lib/AutoComplete/type.d.ts +5 -4
- package/lib/Avatar/AvatarGroup.vue.js +1 -1
- package/lib/Avatar/AvatarGroup.vue2.js +1 -1
- package/lib/Avatar/type.d.ts +4 -4
- package/lib/BackTop/type.d.ts +2 -1
- package/lib/Badge/index.vue.js +1 -1
- package/lib/Badge/index.vue2.js +1 -1
- package/lib/Badge/type.d.ts +3 -3
- package/lib/Breadcrumb/type.d.ts +9 -8
- package/lib/Button/Button.vue.js +1 -1
- package/lib/Button/Button.vue2.js +1 -1
- package/lib/Button/type.d.ts +4 -3
- package/lib/Calendar/type.d.ts +5 -4
- package/lib/Card/type.d.ts +10 -10
- package/lib/Carousel/type.d.ts +3 -2
- package/lib/Cascader/type.d.ts +10 -10
- package/lib/Checkbox/hooks/useContext.d.ts +2 -5
- package/lib/Checkbox/type.d.ts +9 -8
- package/lib/Collapse/type.d.ts +9 -8
- package/lib/Comment/type.d.ts +7 -6
- package/lib/ConfigProvider/index.vue.js +1 -1
- package/lib/ConfigProvider/type.d.ts +5 -4
- package/lib/Descriptions/type.d.ts +9 -9
- package/lib/Divider/type.d.ts +2 -1
- package/lib/Drawer/Drawer.vue.js +1 -1
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Drawer/type.d.ts +5 -5
- package/lib/Dropdown/Dsubmenu.vue.d.ts +130 -4
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
- package/lib/Dropdown/index.d.ts +65 -2
- package/lib/Dropdown/type.d.ts +15 -14
- package/lib/Empty/type.d.ts +2 -1
- package/lib/Grid/type.d.ts +6 -5
- package/lib/Icon/type.d.ts +2 -1
- package/lib/Image/type.d.ts +11 -10
- package/lib/Input/hooks/useCursor.d.ts +2 -1
- package/lib/Input/hooks/useCursor.js +1 -1
- package/lib/Input/type.d.ts +6 -5
- package/lib/InputNumber/type.d.ts +8 -8
- package/lib/InputTag/type.d.ts +5 -4
- package/lib/Layout/Layout.vue.js +1 -1
- package/lib/Layout/Layout.vue2.js +1 -1
- package/lib/Layout/type.d.ts +8 -7
- package/lib/Link/type.d.ts +3 -2
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/List/type.d.ts +15 -14
- package/lib/Mention/index.d.ts +65 -2
- package/lib/Mention/index.vue.d.ts +130 -4
- package/lib/Mention/type.d.ts +3 -2
- package/lib/Menu/type.d.ts +11 -10
- package/lib/Message/type.d.ts +1 -1
- package/lib/Modal/Modal.vue.js +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Modal/hooks/useModalClose.d.ts +2 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Modal/type.d.ts +5 -5
- package/lib/Notification/type.d.ts +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/OverflowList/index.vue2.js +1 -1
- package/lib/OverflowList/type.d.ts +3 -2
- package/lib/PageHeader/type.d.ts +7 -6
- package/lib/Pagination/type.d.ts +8 -8
- package/lib/Popconfirm/index.d.ts +65 -2
- package/lib/Popconfirm/index.vue.d.ts +130 -4
- package/lib/Popconfirm/type.d.ts +4 -4
- package/lib/Popover/type.d.ts +4 -4
- package/lib/Radio/hooks/useContext.d.ts +3 -6
- package/lib/Radio/type.d.ts +9 -8
- package/lib/Rate/type.d.ts +3 -2
- package/lib/ResizeBox/type.d.ts +6 -5
- package/lib/Result/type.d.ts +6 -5
- package/lib/Scrollbar/Scrollbar.vue.js +1 -1
- package/lib/Scrollbar/type.d.ts +2 -2
- package/lib/Select/Select.vue.d.ts +130 -4
- package/lib/Select/SelectView.vue.js +1 -1
- package/lib/Select/SelectView.vue2.js +1 -1
- package/lib/Select/index.d.ts +65 -2
- package/lib/Select/type.d.ts +19 -18
- package/lib/Skeleton/type.d.ts +3 -2
- package/lib/Space/index.vue.js +1 -1
- package/lib/Space/index.vue2.js +1 -1
- package/lib/Space/type.d.ts +3 -2
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Spin/index.vue2.js +1 -1
- package/lib/Spin/type.d.ts +4 -3
- package/lib/Split/type.d.ts +5 -4
- package/lib/Statistic/type.d.ts +7 -7
- package/lib/Steps/type.d.ts +8 -7
- package/lib/Switch/index.vue.js +1 -1
- package/lib/Switch/index.vue2.js +1 -1
- package/lib/Switch/type.d.ts +5 -4
- package/lib/Tabs/Tabs.vue.js +1 -1
- package/lib/Tabs/Tabs.vue2.js +1 -1
- package/lib/Tabs/type.d.ts +5 -4
- package/lib/Tag/type.d.ts +4 -3
- package/lib/TimePicker/type.d.ts +4 -3
- package/lib/Timeline/type.d.ts +6 -5
- package/lib/Tooltip/type.d.ts +3 -3
- package/lib/Transfer/type.d.ts +13 -12
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.d.ts +2 -2
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Trigger/index.d.ts +63 -2
- package/lib/Trigger/index.vue.d.ts +130 -3
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Trigger/type.d.ts +3 -3
- package/lib/Typography/type.d.ts +8 -7
- package/lib/Watermark/type.d.ts +2 -1
- package/lib/_shared/type/index.d.ts +1 -6
- package/lib/_shared/utils/dom.d.ts +5 -5
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/fn.d.ts +3 -3
- package/lib/_shared/utils/fn.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +4 -2
- package/lib/_shared/utils/vue-utils.d.ts +1 -2
- package/lib/_shared/utils/vue-utils.js +1 -1
- package/lib/index.d.ts +66 -3
- package/lib/style.css +1 -1
- package/package.json +2 -2
package/lib/Grid/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface GridProps {
|
2
3
|
cols?: number | ResponsiveValue;
|
3
4
|
rowGap?: number | ResponsiveValue;
|
@@ -6,7 +7,7 @@ export interface GridProps {
|
|
6
7
|
collapsedRows?: number;
|
7
8
|
}
|
8
9
|
export interface GridSlots {
|
9
|
-
default()
|
10
|
+
default?: () => VNode[];
|
10
11
|
}
|
11
12
|
export interface GridItemProps {
|
12
13
|
span?: number | ResponsiveValue;
|
@@ -14,9 +15,9 @@ export interface GridItemProps {
|
|
14
15
|
suffix?: boolean;
|
15
16
|
}
|
16
17
|
export interface GridItemSlots {
|
17
|
-
default(scope: {
|
18
|
+
default?: (scope: {
|
18
19
|
overflow: boolean;
|
19
|
-
})
|
20
|
+
}) => void;
|
20
21
|
}
|
21
22
|
export interface GridRowProps {
|
22
23
|
gutter?: Gutter | [Gutter, Gutter];
|
@@ -26,7 +27,7 @@ export interface GridRowProps {
|
|
26
27
|
wrap?: boolean;
|
27
28
|
}
|
28
29
|
export interface GridRowSlots {
|
29
|
-
default()
|
30
|
+
default?: () => VNode[];
|
30
31
|
}
|
31
32
|
export interface GridColProps {
|
32
33
|
span?: number | ResponsiveValue;
|
@@ -35,7 +36,7 @@ export interface GridColProps {
|
|
35
36
|
flex?: GridColFlex | ResponsiveValue;
|
36
37
|
}
|
37
38
|
export interface GridColSlots {
|
38
|
-
default()
|
39
|
+
default?: () => VNode[];
|
39
40
|
}
|
40
41
|
export type ResponsiveValue<T = number | string> = {
|
41
42
|
xs?: T;
|
package/lib/Icon/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ObjectData } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface IconProps {
|
3
4
|
type?: string;
|
4
5
|
size?: number | string | number[];
|
@@ -6,7 +7,7 @@ export interface IconProps {
|
|
6
7
|
spin?: boolean;
|
7
8
|
}
|
8
9
|
export interface IconSlots {
|
9
|
-
default()
|
10
|
+
default?: () => VNode[];
|
10
11
|
}
|
11
12
|
export interface IconFontOptions {
|
12
13
|
src?: string;
|
package/lib/Image/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { ClassName, PopupContainer } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface ImageProps {
|
3
4
|
src?: string;
|
4
5
|
width?: number | string;
|
@@ -21,11 +22,11 @@ export interface ImageEmits {
|
|
21
22
|
(e: 'preview-visible-change', visible: boolean): void;
|
22
23
|
}
|
23
24
|
export interface ImageSlots {
|
24
|
-
error()
|
25
|
-
|
26
|
-
loader()
|
27
|
-
extra()
|
28
|
-
|
25
|
+
error?: () => VNode[];
|
26
|
+
'error-icon'?: () => VNode[];
|
27
|
+
loader?: () => VNode[];
|
28
|
+
extra?: () => VNode[];
|
29
|
+
'preview-actions'?: () => VNode[];
|
29
30
|
}
|
30
31
|
export interface ImagePreviewProps {
|
31
32
|
src?: string;
|
@@ -46,8 +47,8 @@ export interface ImagePreviewEmits {
|
|
46
47
|
(e: 'close'): void;
|
47
48
|
}
|
48
49
|
export interface ImagePreviewSlots {
|
49
|
-
actions()
|
50
|
-
arrow()
|
50
|
+
actions?: () => VNode[];
|
51
|
+
arrow?: () => VNode[];
|
51
52
|
}
|
52
53
|
export interface ImagePreviewGroupProps extends Omit<ImagePreviewProps, 'src'> {
|
53
54
|
srcList?: string[];
|
@@ -62,8 +63,8 @@ export interface ImagePreviewGroupEmits {
|
|
62
63
|
(e: 'visible-change', value: boolean): void;
|
63
64
|
}
|
64
65
|
export interface ImagePreviewGroupSlots {
|
65
|
-
actions()
|
66
|
-
default()
|
66
|
+
actions?: () => VNode[];
|
67
|
+
default?: () => VNode[];
|
67
68
|
}
|
68
69
|
export interface ImagePreviewActionProps {
|
69
70
|
name?: string;
|
@@ -75,7 +76,7 @@ export interface ImagePreviewActionEmits {
|
|
75
76
|
(e: 'contextmenu', ev: MouseEvent): void;
|
76
77
|
}
|
77
78
|
export interface ImagePreviewActionSlots {
|
78
|
-
default()
|
79
|
+
default?: () => VNode[];
|
79
80
|
}
|
80
81
|
export type ImageObjectFit = 'contain' | 'cover' | 'fill' | 'none' | 'scale-down';
|
81
82
|
export type HideFooter = boolean | 'never';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Ref } from 'vue';
|
2
|
-
|
2
|
+
declare const _default: (input: Ref<HTMLInputElement | HTMLTextAreaElement | undefined>) => {
|
3
3
|
recordCursor: () => void;
|
4
4
|
setCursor: () => void;
|
5
5
|
getCursor: () => number | undefined;
|
@@ -17,3 +17,4 @@ export default function useCursor(input: Ref<HTMLInputElement | HTMLTextAreaElem
|
|
17
17
|
afterTxt?: string;
|
18
18
|
} | undefined>;
|
19
19
|
};
|
20
|
+
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");module.exports=
|
1
|
+
"use strict";const e=require("vue");module.exports=t=>{const n=e.ref();function l(){if(!t.value||!n.value)return;const{value:e}=t.value,{beforeTxt:l,afterTxt:r,selectionStart:u}=n.value;if(!l||!r||!u)return;let s=e.length;if(e.endsWith(r))s=e.length-r.length;else if(e.startsWith(l))s=l.length;else{const t=l[u-1],n=e.indexOf(t,u-1);-1!==n&&(s=n+1)}return s}return{recordCursor:function(){if(!t.value)return;const{selectionStart:e,selectionEnd:l,value:r}=t.value;if(null==e||null==l)return;const u=r.slice(0,Math.max(0,e)),s=r.slice(Math.max(0,l));n.value={selectionStart:e,selectionEnd:l,value:r,beforeTxt:u,afterTxt:s}},setCursor:function(){var e;const n=l();n&&(null==(e=t.value)||e.setSelectionRange(n,n))},getCursor:l,selectionRef:n}};
|
package/lib/Input/type.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Size, ObjectData } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface InputProps {
|
3
4
|
modelValue?: string;
|
4
5
|
defaultValue?: string;
|
@@ -32,11 +33,11 @@ export interface InputEmits {
|
|
32
33
|
(e: 'blur', ev: FocusEvent): void;
|
33
34
|
}
|
34
35
|
export interface InputSlots {
|
35
|
-
prefix()
|
36
|
-
suffix()
|
37
|
-
prepend()
|
38
|
-
append()
|
39
|
-
label()
|
36
|
+
prefix?: () => VNode[];
|
37
|
+
suffix?: () => VNode[];
|
38
|
+
prepend?: () => VNode[];
|
39
|
+
append?: () => VNode[];
|
40
|
+
label?: () => VNode[];
|
40
41
|
}
|
41
42
|
export interface InputExpose {
|
42
43
|
focus(): void;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Size, ObjectData } from '../_shared/type';
|
2
|
+
import { VNode } from 'vue';
|
2
3
|
export interface InputNumberProps {
|
3
4
|
modelValue?: InputNumberValue;
|
4
5
|
defaultValue?: InputNumberValue;
|
@@ -30,14 +31,13 @@ export interface InputNumberEmits {
|
|
30
31
|
(e: 'pressEnter', ev: KeyboardEvent): void;
|
31
32
|
}
|
32
33
|
export interface InputNumberSlots {
|
33
|
-
plus()
|
34
|
-
minus()
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
label(): void;
|
34
|
+
plus?: () => VNode[];
|
35
|
+
minus?: () => VNode[];
|
36
|
+
prefix?: () => VNode[];
|
37
|
+
suffix?: () => VNode[];
|
38
|
+
prepend?: () => VNode[];
|
39
|
+
append?: () => VNode[];
|
40
|
+
label?: () => VNode[];
|
41
41
|
}
|
42
42
|
export interface InputNumberExpose {
|
43
43
|
focus(): void;
|
package/lib/InputTag/type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { Size, ObjectData } from '../_shared/type';
|
2
2
|
import { TagProps } from '../Tag';
|
3
|
+
import { VNode } from 'vue';
|
3
4
|
export interface InputTagProps {
|
4
5
|
modelValue?: InputTagValue;
|
5
6
|
defaultValue?: InputTagValue;
|
@@ -31,11 +32,11 @@ export interface InputTagEmits {
|
|
31
32
|
(e: 'clear', ev: MouseEvent): void;
|
32
33
|
}
|
33
34
|
export interface InputTagSlots {
|
34
|
-
tag(scope: {
|
35
|
+
tag?: (scope: {
|
35
36
|
tag: ObjectData;
|
36
|
-
})
|
37
|
-
prefix()
|
38
|
-
suffix()
|
37
|
+
}) => VNode[];
|
38
|
+
prefix?: () => VNode[];
|
39
|
+
suffix?: () => VNode[];
|
39
40
|
}
|
40
41
|
export interface InputTagExpose {
|
41
42
|
focus(): void;
|
package/lib/Layout/Layout.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("./Layout.vue2.js");;/* empty css */const u=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=require("./Layout.vue2.js");;/* empty css */const u=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-4f591662"]]);module.exports=u;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const s=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./LayoutSider.vue.js"),o=e.defineComponent({name:"Layout",__name:"Layout",props:{hasSider:{type:Boolean,default:void 0}},setup(o){const t=o,{hasSider:
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const s=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const r=require("./LayoutSider.vue.js"),o=e.defineComponent({name:"Layout",__name:"Layout",props:{hasSider:{type:Boolean,default:void 0}},setup(o){const t=e.useSlots(),u=o,{hasSider:i}=e.toRefs(u),n=e.computed(()=>{var e;if(!s.isUndefined(i.value))return i.value;return!!((null==(e=t.default)?void 0:e.call(t))||[]).find(e=>e.type.name==r.name)});return(s,r)=>(e.openBlock(),e.createElementBlock("section",{class:e.normalizeClass(["yc-layout",{"yc-layout-has-sider":n.value}])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],2))}});module.exports=o;
|
package/lib/Layout/type.d.ts
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
import { BreakpointName } from '../Grid';
|
2
2
|
import { Theme } from '../_shared/type';
|
3
|
+
import { VNode } from 'vue';
|
3
4
|
export interface LayoutProps {
|
4
5
|
hasSider?: boolean;
|
5
6
|
}
|
6
7
|
export interface LayoutSlots {
|
7
|
-
default()
|
8
|
+
default?: () => VNode[];
|
8
9
|
}
|
9
10
|
export interface LayoutHeaderSlots {
|
10
|
-
default()
|
11
|
+
default?: () => VNode[];
|
11
12
|
}
|
12
13
|
export interface LayoutContentSlots {
|
13
|
-
default()
|
14
|
+
default?: () => VNode[];
|
14
15
|
}
|
15
16
|
export interface LayoutFooterSlots {
|
16
|
-
default()
|
17
|
+
default?: () => VNode[];
|
17
18
|
}
|
18
19
|
export interface LayoutSiderProps {
|
19
20
|
theme?: Theme;
|
@@ -33,9 +34,9 @@ export interface LayoutSiderEmits {
|
|
33
34
|
(e: 'breakpoint', collapsed: boolean): void;
|
34
35
|
}
|
35
36
|
export interface LayoutSiderSlots {
|
36
|
-
default()
|
37
|
-
trigger(scope: {
|
37
|
+
default?: () => VNode[];
|
38
|
+
trigger?: (scope: {
|
38
39
|
collapsed: boolean;
|
39
|
-
})
|
40
|
+
}) => VNode[];
|
40
41
|
}
|
41
42
|
export type ResizeDirections = Array<'left' | 'right' | 'top' | 'bottom'>;
|
package/lib/Link/type.d.ts
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
import { VNode } from 'vue';
|
1
2
|
export interface LinkProps {
|
2
3
|
href?: string;
|
3
4
|
icon?: boolean;
|
@@ -12,7 +13,7 @@ export interface LinkEmits {
|
|
12
13
|
(e: 'contextmenu', event: MouseEvent): void;
|
13
14
|
}
|
14
15
|
export interface LinkSlots {
|
15
|
-
default()
|
16
|
-
icon()
|
16
|
+
default?: () => VNode[];
|
17
|
+
icon?: () => VNode[];
|
17
18
|
}
|
18
19
|
export type LinkStatus = 'normal' | 'warning' | 'success' | 'danger';
|
package/lib/List/List.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("./List.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-
|
1
|
+
"use strict";const e=require("./List.vue2.js");;/* empty css */const r=require("../_virtual/_plugin-vue_export-helper.js")(e,[["__scopeId","data-v-e85a4d7e"]]);module.exports=r;
|
package/lib/List/List.vue2.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const
|
1
|
+
"use strict";const e=require("vue"),l=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js"),require("../_shared/utils/dom.js");const t=require("../_shared/utils/fn.js");require("../_shared/utils/time.js");const o=require("../_shared/utils/global-config.js"),r=require("../_shared/utils/control.js"),a=require("./hooks/useScrollReach.js"),s=require("../Spin/index.js"),i=require("../Scrollbar/index.js"),n=require("../Pagination/index.js"),u=require("../Grid/index.js"),d=require("./ListVirtual.vue.js");;/* empty css */const c=require("./ListItem.vue.js"),v=require("../Grid/GridItem.vue.js"),m={class:"yc-list-content-wrapper"},f={key:0,class:"yc-list-header"},p={key:2,role:"list",class:"yc-list-content"},g={key:4,class:"yc-list-footer"},y=e.defineComponent({name:"List",__name:"List",props:{data:{default:()=>[]},size:{default:void 0},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{default:void 0},gridProps:{default:void 0},maxHeight:{default:void 0},bottomOffset:{default:0},virtualListProps:{default:void 0},scrollbar:{type:Boolean,default:!0}},emits:["scroll","reach-bottom","page-change","page-size-change"],setup(y,{emit:k}){var h,B;const x=y,b=k,{data:S,paginationProps:q,virtualListProps:_,gridProps:j,bottomOffset:C}=e.toRefs(x),{size:z,renderEmpty:P}=o.getGlobalConfig(x),$=e.ref(!1),L=e.ref(),R=e.ref(),V=e.computed(()=>!(!_.value||q.value||j.value)&&(_.value.itemHeight&&(!_.value.threshold||_.value.threshold>S.value.length))),E=e.computed(()=>{var e;return V.value?l.unrefElement(R):null==(e=L.value)?void 0:e.getScrollRef()});a({scrollRef:E,offset:{bottom:C.value},onScroll:(e,l)=>{$.value=l.bottom,b("scroll",e)},onReachBottom:e=>{b("reach-bottom",e)}});const w=e.computed(()=>{var e;return null==(e=q.value)?void 0:e.current}),N=r(w,(null==(h=q.value)?void 0:h.current)||1,e=>{b("page-change",e)}),H=e.computed(()=>{var e;return null==(e=q.value)?void 0:e.pageSize}),G=r(H,(null==(B=q.value)?void 0:B.defaultPageSize)||10,e=>{N.value=1,b("page-change",e)}),F=e.computed(()=>q.value?S.value.slice((N.value-1)*G.value,N.value*G.value):S.value);return(l,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-list-wrapper",`yc-list-size-${e.unref(z)}`,{"yc-list-bordered":l.bordered,"yc-list-hoverable":l.hoverable,"yc-list-split":l.split}])},[e.createVNode(e.unref(s),{loading:l.loading,class:"yc-list-spin"},{default:e.withCtx(()=>{var r;return[e.createVNode(e.unref(i),{scrollbar:l.scrollbar,style:e.normalizeStyle({maxHeight:V.value?"":e.unref(t.valueToPx)(l.maxHeight)}),class:"yc-list",ref_key:"realListRef",ref:L},{default:e.withCtx(()=>[e.createElementVNode("div",m,[l.$slots.header?(e.openBlock(),e.createElementBlock("div",f,[e.renderSlot(l.$slots,"header",{},void 0,!0)])):e.createCommentVNode("",!0),V.value?(e.openBlock(),e.createBlock(d,{key:1,data:e.unref(S),"virtual-list-props":e.unref(_),style:e.normalizeStyle({maxHeight:e.unref(t.valueToPx)(l.maxHeight)}),ref_key:"virtualListRef",ref:R},e.createSlots({_:2},[l.$slots.item?{name:"item",fn:e.withCtx(t=>[e.renderSlot(l.$slots,"item",e.normalizeProps(e.guardReactiveProps(t)),void 0,!0)]),key:"0"}:void 0]),1032,["data","virtual-list-props","style"])):(e.openBlock(),e.createElementBlock("div",p,[e.renderSlot(l.$slots,"default",{},void 0,!0),e.unref(j)?(e.openBlock(),e.createBlock(e.unref(u.default),e.normalizeProps(e.mergeProps({key:0},e.unref(j))),{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(F.value,(t,o)=>(e.openBlock(),e.createBlock(e.unref(v),{key:o},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"item",{index:o,item:t},void 0,!0)]),_:2},1024))),128))]),_:3},16)):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(F.value,(t,o)=>e.renderSlot(l.$slots,"item",{key:o,index:o,item:t},void 0,!0)),128))])),l.$slots.default||F.value.length?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.$slots.empty||e.unref(P)("List")),{key:3})),l.$slots.footer?(e.openBlock(),e.createElementBlock("div",g,[e.renderSlot(l.$slots,"footer",{},void 0,!0)])):e.createCommentVNode("",!0),l.$slots["scroll-loading"]&&$.value?(e.openBlock(),e.createBlock(c,{key:5,class:"yc-list-scroll-loading"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"scroll-loading",{},void 0,!0)]),_:3})):e.createCommentVNode("",!0)])]),_:3},8,["scrollbar","style"]),e.unref(q)?(e.openBlock(),e.createBlock(e.unref(n),{key:0,current:e.unref(N),"onUpdate:current":o[0]||(o[0]=l=>e.isRef(N)?N.value=l:null),"page-size":e.unref(G),"onUpdate:pageSize":o[1]||(o[1]=l=>e.isRef(G)?G.value=l:null),total:(null==(r=e.unref(q))?void 0:r.total)||0},null,8,["current","page-size","total"])):e.createCommentVNode("",!0)]}),_:3},8,["loading"])],2))}});module.exports=y;
|
package/lib/List/type.d.ts
CHANGED
@@ -2,6 +2,7 @@ import { Direction, ObjectData } from '../_shared/type';
|
|
2
2
|
import { GridProps } from '../Grid';
|
3
3
|
import { PaginationProps } from '../Pagination';
|
4
4
|
import { VirtualListProps } from '../Select';
|
5
|
+
import { VNode } from 'vue';
|
5
6
|
export interface ListProps {
|
6
7
|
data?: ObjectData[];
|
7
8
|
size?: ListSize;
|
@@ -23,32 +24,32 @@ export interface ListEmits {
|
|
23
24
|
(e: 'page-size-change', value: number): void;
|
24
25
|
}
|
25
26
|
export interface ListSlots {
|
26
|
-
empty()
|
27
|
-
header()
|
28
|
-
footer()
|
29
|
-
default()
|
30
|
-
|
31
|
-
item(scope: {
|
27
|
+
empty?: () => VNode[];
|
28
|
+
header?: () => VNode[];
|
29
|
+
footer?: () => VNode[];
|
30
|
+
default?: () => VNode[];
|
31
|
+
'scroll-loading'?: () => VNode[];
|
32
|
+
item?: (scope: {
|
32
33
|
index: number;
|
33
34
|
item: ObjectData;
|
34
|
-
})
|
35
|
+
}) => VNode[];
|
35
36
|
}
|
36
37
|
export interface ListItemProps {
|
37
38
|
actionLayout?: Direction;
|
38
39
|
}
|
39
40
|
export interface ListItemSlots {
|
40
|
-
default()
|
41
|
-
meta()
|
42
|
-
extra()
|
43
|
-
actions()
|
41
|
+
default?: () => VNode[];
|
42
|
+
meta?: () => VNode[];
|
43
|
+
extra?: () => VNode[];
|
44
|
+
actions?: () => VNode[];
|
44
45
|
}
|
45
46
|
export interface ListItemMetaProps {
|
46
47
|
title?: string;
|
47
48
|
description?: string;
|
48
49
|
}
|
49
50
|
export interface ListItemMetaSlots {
|
50
|
-
avatar()
|
51
|
-
title()
|
52
|
-
description()
|
51
|
+
avatar?: () => VNode[];
|
52
|
+
title?: () => VNode[];
|
53
|
+
description?: () => VNode[];
|
53
54
|
}
|
54
55
|
export type ListSize = 'small' | 'medium' | 'large';
|
package/lib/Mention/index.d.ts
CHANGED
@@ -182,7 +182,70 @@ declare const Mention: {
|
|
182
182
|
$attrs: {
|
183
183
|
[x: string]: unknown;
|
184
184
|
};
|
185
|
-
$refs:
|
185
|
+
$refs: {
|
186
|
+
[x: string]: unknown;
|
187
|
+
} & {
|
188
|
+
triggerRef: unknown;
|
189
|
+
popupRef: ({
|
190
|
+
$: import('vue').ComponentInternalInstance;
|
191
|
+
$data: {};
|
192
|
+
$props: {
|
193
|
+
readonly preventFocus?: boolean | undefined;
|
194
|
+
readonly tag?: string | undefined;
|
195
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
196
|
+
$attrs: {
|
197
|
+
[x: string]: unknown;
|
198
|
+
};
|
199
|
+
$refs: {
|
200
|
+
[x: string]: unknown;
|
201
|
+
};
|
202
|
+
$slots: Readonly<{
|
203
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
204
|
+
}>;
|
205
|
+
$root: import('vue').ComponentPublicInstance | null;
|
206
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
207
|
+
$host: Element | null;
|
208
|
+
$emit: (event: string, ...args: any[]) => void;
|
209
|
+
$el: any;
|
210
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
211
|
+
preventFocus?: boolean;
|
212
|
+
tag?: string;
|
213
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
214
|
+
preventFocus: boolean;
|
215
|
+
tag: string;
|
216
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
217
|
+
beforeCreate?: (() => void) | (() => void)[];
|
218
|
+
created?: (() => void) | (() => void)[];
|
219
|
+
beforeMount?: (() => void) | (() => void)[];
|
220
|
+
mounted?: (() => void) | (() => void)[];
|
221
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
222
|
+
updated?: (() => void) | (() => void)[];
|
223
|
+
activated?: (() => void) | (() => void)[];
|
224
|
+
deactivated?: (() => void) | (() => void)[];
|
225
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
226
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
227
|
+
destroyed?: (() => void) | (() => void)[];
|
228
|
+
unmounted?: (() => void) | (() => void)[];
|
229
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
230
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
231
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
232
|
+
};
|
233
|
+
$forceUpdate: () => void;
|
234
|
+
$nextTick: typeof import('vue').nextTick;
|
235
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
236
|
+
} & Readonly<{
|
237
|
+
preventFocus: boolean;
|
238
|
+
tag: string;
|
239
|
+
}> & Omit<Readonly<{
|
240
|
+
preventFocus?: boolean;
|
241
|
+
tag?: string;
|
242
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
243
|
+
$slots: {
|
244
|
+
default?(_: {}): any;
|
245
|
+
};
|
246
|
+
}) | null;
|
247
|
+
arrowRef: HTMLDivElement;
|
248
|
+
};
|
186
249
|
$slots: Readonly<{
|
187
250
|
[name: string]: import('vue').Slot<any> | undefined;
|
188
251
|
}>;
|
@@ -303,7 +366,7 @@ declare const Mention: {
|
|
303
366
|
show(): void;
|
304
367
|
updatePosition(x: number, y: number): void;
|
305
368
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
306
|
-
$slots:
|
369
|
+
$slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
|
307
370
|
}) | null;
|
308
371
|
inputRef: ({
|
309
372
|
$: import('vue').ComponentInternalInstance;
|
@@ -153,7 +153,70 @@ declare function __VLS_template(): {
|
|
153
153
|
$attrs: {
|
154
154
|
[x: string]: unknown;
|
155
155
|
};
|
156
|
-
$refs:
|
156
|
+
$refs: {
|
157
|
+
[x: string]: unknown;
|
158
|
+
} & {
|
159
|
+
triggerRef: unknown;
|
160
|
+
popupRef: ({
|
161
|
+
$: import('vue').ComponentInternalInstance;
|
162
|
+
$data: {};
|
163
|
+
$props: {
|
164
|
+
readonly preventFocus?: boolean | undefined;
|
165
|
+
readonly tag?: string | undefined;
|
166
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
167
|
+
$attrs: {
|
168
|
+
[x: string]: unknown;
|
169
|
+
};
|
170
|
+
$refs: {
|
171
|
+
[x: string]: unknown;
|
172
|
+
};
|
173
|
+
$slots: Readonly<{
|
174
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
175
|
+
}>;
|
176
|
+
$root: import('vue').ComponentPublicInstance | null;
|
177
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
178
|
+
$host: Element | null;
|
179
|
+
$emit: (event: string, ...args: any[]) => void;
|
180
|
+
$el: any;
|
181
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
182
|
+
preventFocus?: boolean;
|
183
|
+
tag?: string;
|
184
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
185
|
+
preventFocus: boolean;
|
186
|
+
tag: string;
|
187
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
188
|
+
beforeCreate?: (() => void) | (() => void)[];
|
189
|
+
created?: (() => void) | (() => void)[];
|
190
|
+
beforeMount?: (() => void) | (() => void)[];
|
191
|
+
mounted?: (() => void) | (() => void)[];
|
192
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
193
|
+
updated?: (() => void) | (() => void)[];
|
194
|
+
activated?: (() => void) | (() => void)[];
|
195
|
+
deactivated?: (() => void) | (() => void)[];
|
196
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
197
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
198
|
+
destroyed?: (() => void) | (() => void)[];
|
199
|
+
unmounted?: (() => void) | (() => void)[];
|
200
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
201
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
202
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
203
|
+
};
|
204
|
+
$forceUpdate: () => void;
|
205
|
+
$nextTick: typeof nextTick;
|
206
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
207
|
+
} & Readonly<{
|
208
|
+
preventFocus: boolean;
|
209
|
+
tag: string;
|
210
|
+
}> & Omit<Readonly<{
|
211
|
+
preventFocus?: boolean;
|
212
|
+
tag?: string;
|
213
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
214
|
+
$slots: {
|
215
|
+
default?(_: {}): any;
|
216
|
+
};
|
217
|
+
}) | null;
|
218
|
+
arrowRef: HTMLDivElement;
|
219
|
+
};
|
157
220
|
$slots: Readonly<{
|
158
221
|
[name: string]: import('vue').Slot<any> | undefined;
|
159
222
|
}>;
|
@@ -274,7 +337,7 @@ declare function __VLS_template(): {
|
|
274
337
|
show(): void;
|
275
338
|
updatePosition(x: number, y: number): void;
|
276
339
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
277
|
-
$slots:
|
340
|
+
$slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
|
278
341
|
}) | null;
|
279
342
|
inputRef: ({
|
280
343
|
$: import('vue').ComponentInternalInstance;
|
@@ -931,7 +994,70 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
931
994
|
$attrs: {
|
932
995
|
[x: string]: unknown;
|
933
996
|
};
|
934
|
-
$refs:
|
997
|
+
$refs: {
|
998
|
+
[x: string]: unknown;
|
999
|
+
} & {
|
1000
|
+
triggerRef: unknown;
|
1001
|
+
popupRef: ({
|
1002
|
+
$: import('vue').ComponentInternalInstance;
|
1003
|
+
$data: {};
|
1004
|
+
$props: {
|
1005
|
+
readonly preventFocus?: boolean | undefined;
|
1006
|
+
readonly tag?: string | undefined;
|
1007
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
1008
|
+
$attrs: {
|
1009
|
+
[x: string]: unknown;
|
1010
|
+
};
|
1011
|
+
$refs: {
|
1012
|
+
[x: string]: unknown;
|
1013
|
+
};
|
1014
|
+
$slots: Readonly<{
|
1015
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
1016
|
+
}>;
|
1017
|
+
$root: import('vue').ComponentPublicInstance | null;
|
1018
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
1019
|
+
$host: Element | null;
|
1020
|
+
$emit: (event: string, ...args: any[]) => void;
|
1021
|
+
$el: any;
|
1022
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
1023
|
+
preventFocus?: boolean;
|
1024
|
+
tag?: string;
|
1025
|
+
}> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
1026
|
+
preventFocus: boolean;
|
1027
|
+
tag: string;
|
1028
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
1029
|
+
beforeCreate?: (() => void) | (() => void)[];
|
1030
|
+
created?: (() => void) | (() => void)[];
|
1031
|
+
beforeMount?: (() => void) | (() => void)[];
|
1032
|
+
mounted?: (() => void) | (() => void)[];
|
1033
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
1034
|
+
updated?: (() => void) | (() => void)[];
|
1035
|
+
activated?: (() => void) | (() => void)[];
|
1036
|
+
deactivated?: (() => void) | (() => void)[];
|
1037
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
1038
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
1039
|
+
destroyed?: (() => void) | (() => void)[];
|
1040
|
+
unmounted?: (() => void) | (() => void)[];
|
1041
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
1042
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
1043
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
1044
|
+
};
|
1045
|
+
$forceUpdate: () => void;
|
1046
|
+
$nextTick: typeof nextTick;
|
1047
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
1048
|
+
} & Readonly<{
|
1049
|
+
preventFocus: boolean;
|
1050
|
+
tag: string;
|
1051
|
+
}> & Omit<Readonly<{
|
1052
|
+
preventFocus?: boolean;
|
1053
|
+
tag?: string;
|
1054
|
+
}> & Readonly<{}>, "preventFocus" | "tag"> & import('vue').ShallowUnwrapRef<{}> & {} & import('vue').ComponentCustomProperties & {} & {
|
1055
|
+
$slots: {
|
1056
|
+
default?(_: {}): any;
|
1057
|
+
};
|
1058
|
+
}) | null;
|
1059
|
+
arrowRef: HTMLDivElement;
|
1060
|
+
};
|
935
1061
|
$slots: Readonly<{
|
936
1062
|
[name: string]: import('vue').Slot<any> | undefined;
|
937
1063
|
}>;
|
@@ -1052,7 +1178,7 @@ declare const __VLS_component: import('vue').DefineComponent<MentionProps, {
|
|
1052
1178
|
show(): void;
|
1053
1179
|
updatePosition(x: number, y: number): void;
|
1054
1180
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
1055
|
-
$slots:
|
1181
|
+
$slots: Readonly<import('..').TriggerSlots> & import('..').TriggerSlots;
|
1056
1182
|
}) | null;
|
1057
1183
|
inputRef: ({
|
1058
1184
|
$: import('vue').ComponentInternalInstance;
|
package/lib/Mention/type.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { SelectOptions, SelectValue } from '../Select';
|
2
2
|
import { ObjectData } from '../_shared/type';
|
3
|
+
import { VNode } from 'vue';
|
3
4
|
export interface MentionProps {
|
4
5
|
modelValue?: string;
|
5
6
|
defaultValue?: string;
|
@@ -25,7 +26,7 @@ export interface MentionExpose {
|
|
25
26
|
blur(): void;
|
26
27
|
}
|
27
28
|
export interface MentionSlots {
|
28
|
-
option(scope: {
|
29
|
+
option?: (scope: {
|
29
30
|
data: ObjectData;
|
30
|
-
})
|
31
|
+
}) => VNode[];
|
31
32
|
}
|