@mingto/mt-ui 1.1.38 → 1.1.40
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 +53 -45
- package/dist/avatar-image/index.d.ts +3 -3
- package/dist/avatar-image/src/avatar-image.vue.d.ts +1 -1
- package/dist/avatar-text/index.d.ts +2 -2
- package/dist/avatar-text/src/avatar-text.vue.d.ts +3 -2
- package/dist/backtop/index.d.ts +2 -2
- package/dist/backtop/src/backtop.d.ts +1 -1
- package/dist/backtop/src/backtop.vue.d.ts +1 -1
- package/dist/badge/index.d.ts +3 -3
- package/dist/badge/src/badge.vue.d.ts +1 -1
- package/dist/button/index.d.ts +44 -26
- package/dist/button/src/button.vue.d.ts +25 -13
- package/dist/cell/index.d.ts +15 -22
- package/dist/cell/src/cell.vue.d.ts +9 -16
- package/dist/cell-group/index.d.ts +8 -6
- package/dist/cell-group/src/cell-group.d.ts +6 -6
- package/dist/config-provider/index.d.ts +12 -3
- package/dist/config-provider/src/config-provider.d.ts +41 -6
- package/dist/dialog/index.d.ts +29 -29
- package/dist/dialog/src/dialog.d.ts +2 -2
- package/dist/dialog/src/dialog.vue.d.ts +15 -14
- package/dist/dialog/src/layout/dialog-confirm-layout.vue.d.ts +1 -37
- package/dist/empty/index.d.ts +3 -3
- package/dist/empty/src/empty.d.ts +1 -1
- package/dist/empty/src/empty.vue.d.ts +2 -2
- package/dist/fade-transition/index.d.ts +5 -5
- package/dist/fade-transition/src/fade-transition.vue.d.ts +2 -2
- package/dist/file-preview/src/ai-music-preview.vue.d.ts +17 -16
- package/dist/file-preview/src/iframe-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/image-preview.vue.d.ts +3 -2
- package/dist/file-preview/src/music-preview.vue.d.ts +3 -2
- package/dist/hooks/dom/use-z-index.d.ts +4 -1
- package/dist/hooks/event/use-same-target.d.ts +4 -2
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/locale/use-locale.d.ts +2 -2
- package/dist/hooks/use-namespace/index.d.ts +23 -0
- package/dist/hooks/vue/use-children.d.ts +6 -3
- package/dist/image/index.d.ts +25 -10
- package/dist/image/src/image.d.ts +7 -0
- package/dist/image/src/image.vue.d.ts +15 -5
- package/dist/index.es.js +67693 -64647
- package/dist/index.umd.js +68543 -106524
- package/dist/infinite-scroll/index.d.ts +27 -27
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +7 -4
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +18 -16
- package/dist/loading/src/loading.d.ts +3 -1
- package/dist/locale/index.d.ts +2 -0
- package/dist/locale/lang/ar.d.ts +8 -0
- package/dist/locale/lang/en.d.ts +8 -0
- package/dist/locale/lang/ms.d.ts +8 -0
- package/dist/locale/lang/th.d.ts +8 -0
- package/dist/locale/lang/vi.d.ts +8 -0
- package/dist/locale/lang/zh-cn.d.ts +8 -0
- package/dist/locale/lang/zh-tw.d.ts +8 -0
- package/dist/message/src/message.d.ts +1 -1
- package/dist/message/src/message.vue.d.ts +4 -4
- package/dist/popover/index.d.ts +28 -28
- package/dist/popover/src/content.vue.d.ts +6 -10
- package/dist/popover/src/popover.vue.d.ts +15 -15
- package/dist/poster/src/method.d.ts +3 -3
- package/dist/progress/index.d.ts +16 -13
- package/dist/progress/src/progress.d.ts +2 -2
- package/dist/progress/src/progress.vue.d.ts +10 -7
- package/dist/qrcode/index.d.ts +3 -3
- package/dist/qrcode/src/qrcode.vue.d.ts +1 -1
- package/dist/style.css +544 -373
- package/dist/tab/src/tab.d.ts +2 -1
- package/dist/table/index.d.ts +2 -4
- package/dist/table/src/table.vue.d.ts +2 -4
- package/dist/table-column/index.d.ts +3 -6
- package/dist/table-column/src/table-column.vue.d.ts +3 -6
- package/dist/tabs/index.d.ts +8 -8
- package/dist/tabs/src/tabs.d.ts +1 -0
- package/dist/tabs/src/tabs.vue.d.ts +3 -3
- package/dist/tag/index.d.ts +17 -17
- package/dist/tag/src/tag.d.ts +6 -2
- package/dist/tag/src/tag.vue.d.ts +8 -8
- package/dist/tooltip/index.d.ts +60 -53
- package/dist/tooltip/src/tooltip.vue.d.ts +78 -77
- package/dist/upload/index.d.ts +320 -237
- package/dist/upload/src/layout/upload-file-list-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-grid-layout.vue.d.ts +8 -2
- package/dist/upload/src/layout/upload-image-only-layout.vue.d.ts +8 -2
- package/dist/upload/src/trigger/upload-file-list-trigger.vue.d.ts +1 -1
- package/dist/upload/src/trigger/upload-image-only-trigger.vue.d.ts +8 -2
- package/dist/upload/src/upload-content.d.ts +15 -4
- package/dist/upload/src/upload-content.vue.d.ts +41 -16
- package/dist/upload/src/upload.d.ts +16 -7
- package/dist/upload/src/upload.vue.d.ts +407 -213
- package/dist/utils/class/deferred.d.ts +8 -5
- package/dist/utils/prop/size.d.ts +1 -1
- package/dist/utils/vue/children.d.ts +1 -3
- package/dist/utils/vue/install.d.ts +2 -2
- package/package.json +5 -3
- /package/dist/upload/src/{use-full-scree-drag.d.ts → use-full-screen-drag.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -21,9 +21,9 @@ pnpm add @mingto/mt-ui
|
|
|
21
21
|
### 全量引入
|
|
22
22
|
|
|
23
23
|
```typescript
|
|
24
|
+
import MtUi from '@mingto/mt-ui'
|
|
24
25
|
import { createApp } from 'vue'
|
|
25
26
|
import App from './App.vue'
|
|
26
|
-
import MtUi from '@mingto/mt-ui'
|
|
27
27
|
import '@mingto/mt-ui/dist/style.css'
|
|
28
28
|
|
|
29
29
|
const app = createApp(App)
|
|
@@ -34,9 +34,9 @@ app.mount('#app')
|
|
|
34
34
|
### 按需引入
|
|
35
35
|
|
|
36
36
|
```typescript
|
|
37
|
+
import { MtButton, MtDialog, MtMessage } from '@mingto/mt-ui'
|
|
37
38
|
import { createApp } from 'vue'
|
|
38
39
|
import App from './App.vue'
|
|
39
|
-
import { MtButton, MtDialog, MtMessage } from '@mingto/mt-ui'
|
|
40
40
|
import '@mingto/mt-ui/dist/style.css'
|
|
41
41
|
|
|
42
42
|
const app = createApp(App)
|
|
@@ -48,74 +48,82 @@ app.mount('#app')
|
|
|
48
48
|
|
|
49
49
|
## 基础组件
|
|
50
50
|
|
|
51
|
-
| 组件
|
|
52
|
-
|
|
53
|
-
| MtButton
|
|
54
|
-
| MtIcon
|
|
55
|
-
| MtImage
|
|
56
|
-
| MtLoading | 加载
|
|
57
|
-
| MtBadge
|
|
51
|
+
| 组件 | 说明 |
|
|
52
|
+
| --------- | -------- |
|
|
53
|
+
| MtButton | 按钮 |
|
|
54
|
+
| MtIcon | 图标 |
|
|
55
|
+
| MtImage | 图片 |
|
|
56
|
+
| MtLoading | 加载 |
|
|
57
|
+
| MtBadge | 徽标 |
|
|
58
58
|
| MtBacktop | 回到顶部 |
|
|
59
59
|
|
|
60
60
|
## 表单组件
|
|
61
61
|
|
|
62
|
-
| 组件
|
|
63
|
-
|
|
64
|
-
| MtUpload
|
|
65
|
-
| MtProgress | 进度条
|
|
62
|
+
| 组件 | 说明 |
|
|
63
|
+
| ---------- | -------- |
|
|
64
|
+
| MtUpload | 文件上传 |
|
|
65
|
+
| MtProgress | 进度条 |
|
|
66
66
|
|
|
67
67
|
## 展示组件
|
|
68
68
|
|
|
69
|
-
| 组件
|
|
70
|
-
|
|
69
|
+
| 组件 | 说明 |
|
|
70
|
+
| ------------- | -------- |
|
|
71
71
|
| MtAvatarImage | 图片头像 |
|
|
72
|
-
| MtAvatarText
|
|
73
|
-
| MtEmpty
|
|
74
|
-
| MtTag
|
|
75
|
-
| MtQrcode
|
|
76
|
-
| MtTable
|
|
77
|
-
| MtTableColumn | 表格列
|
|
78
|
-
| MtPopover
|
|
79
|
-
| MtTooltip
|
|
72
|
+
| MtAvatarText | 文字头像 |
|
|
73
|
+
| MtEmpty | 空状态 |
|
|
74
|
+
| MtTag | 标签 |
|
|
75
|
+
| MtQrcode | 二维码 |
|
|
76
|
+
| MtTable | 表格 |
|
|
77
|
+
| MtTableColumn | 表格列 |
|
|
78
|
+
| MtPopover | 气泡卡片 |
|
|
79
|
+
| MtTooltip | 文字提示 |
|
|
80
80
|
| MtFilePreview | 文件预览 |
|
|
81
81
|
|
|
82
82
|
## 导航组件
|
|
83
83
|
|
|
84
|
-
| 组件
|
|
85
|
-
|
|
86
|
-
| MtTabs
|
|
87
|
-
| MtTab
|
|
84
|
+
| 组件 | 说明 |
|
|
85
|
+
| ---------------- | -------- |
|
|
86
|
+
| MtTabs | 标签页 |
|
|
87
|
+
| MtTab | 标签 |
|
|
88
88
|
| MtInfiniteScroll | 无限滚动 |
|
|
89
89
|
|
|
90
90
|
## 反馈组件
|
|
91
91
|
|
|
92
|
-
| 组件
|
|
93
|
-
|
|
94
|
-
| MtDialog
|
|
92
|
+
| 组件 | 说明 |
|
|
93
|
+
| --------- | -------- |
|
|
94
|
+
| MtDialog | 对话框 |
|
|
95
95
|
| MtMessage | 消息提示 |
|
|
96
|
-
| MtOverlay | 遮罩层
|
|
97
|
-
| MtPoster
|
|
96
|
+
| MtOverlay | 遮罩层 |
|
|
97
|
+
| MtPoster | 海报 |
|
|
98
98
|
|
|
99
99
|
## 布局组件
|
|
100
100
|
|
|
101
|
-
| 组件
|
|
102
|
-
|
|
103
|
-
| MtCell
|
|
104
|
-
| MtCellGroup
|
|
105
|
-
| MtButtonGroup
|
|
106
|
-
| MtCollapseTransition | 折叠过渡
|
|
107
|
-
| MtFadeTransition
|
|
108
|
-
| MtTeleport
|
|
109
|
-
| MtConfigProvider
|
|
101
|
+
| 组件 | 说明 |
|
|
102
|
+
| -------------------- | ------------ |
|
|
103
|
+
| MtCell | 单元格 |
|
|
104
|
+
| MtCellGroup | 单元格组 |
|
|
105
|
+
| MtButtonGroup | 按钮组 |
|
|
106
|
+
| MtCollapseTransition | 折叠过渡 |
|
|
107
|
+
| MtFadeTransition | 淡入淡出过渡 |
|
|
108
|
+
| MtTeleport | 传送门 |
|
|
109
|
+
| MtConfigProvider | 全局配置 |
|
|
110
110
|
|
|
111
111
|
## 使用示例
|
|
112
112
|
|
|
113
113
|
### 按钮
|
|
114
114
|
|
|
115
115
|
```vue
|
|
116
|
-
<mt-button type="primary"
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
<mt-button type="primary">
|
|
117
|
+
主要按钮
|
|
118
|
+
</mt-button>
|
|
119
|
+
|
|
120
|
+
<mt-button type="success">
|
|
121
|
+
成功按钮
|
|
122
|
+
</mt-button>
|
|
123
|
+
|
|
124
|
+
<mt-button type="danger">
|
|
125
|
+
危险按钮
|
|
126
|
+
</mt-button>
|
|
119
127
|
```
|
|
120
128
|
|
|
121
129
|
### 对话框
|
|
@@ -162,4 +170,4 @@ MtMessage.warning('警告提示')
|
|
|
162
170
|
|
|
163
171
|
## 许可证
|
|
164
172
|
|
|
165
|
-
MIT
|
|
173
|
+
MIT
|
|
@@ -22,7 +22,7 @@ export declare const MtAvatarImage: {
|
|
|
22
22
|
size: number;
|
|
23
23
|
src: string;
|
|
24
24
|
shape: "circle" | "square";
|
|
25
|
-
effect: "
|
|
25
|
+
effect: "plain" | "dark" | "light";
|
|
26
26
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
27
27
|
P: {};
|
|
28
28
|
B: {};
|
|
@@ -53,7 +53,7 @@ export declare const MtAvatarImage: {
|
|
|
53
53
|
size: number;
|
|
54
54
|
src: string;
|
|
55
55
|
shape: "circle" | "square";
|
|
56
|
-
effect: "
|
|
56
|
+
effect: "plain" | "dark" | "light";
|
|
57
57
|
}>;
|
|
58
58
|
__isFragment?: never;
|
|
59
59
|
__isTeleport?: never;
|
|
@@ -81,6 +81,6 @@ export declare const MtAvatarImage: {
|
|
|
81
81
|
size: number;
|
|
82
82
|
src: string;
|
|
83
83
|
shape: "circle" | "square";
|
|
84
|
-
effect: "
|
|
84
|
+
effect: "plain" | "dark" | "light";
|
|
85
85
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
86
86
|
export default MtAvatarImage;
|
|
@@ -40,6 +40,6 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
40
40
|
size: number;
|
|
41
41
|
src: string;
|
|
42
42
|
shape: "circle" | "square";
|
|
43
|
-
effect: "
|
|
43
|
+
effect: "plain" | "dark" | "light";
|
|
44
44
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
45
45
|
export default _default;
|
|
@@ -84,9 +84,9 @@ export declare const MtAvatarText: {
|
|
|
84
84
|
effect: "dark" | "light";
|
|
85
85
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
86
86
|
$slots: Readonly<{
|
|
87
|
-
default
|
|
87
|
+
default?: () => import('vue').VNode[];
|
|
88
88
|
}> & {
|
|
89
|
-
default
|
|
89
|
+
default?: () => import('vue').VNode[];
|
|
90
90
|
};
|
|
91
91
|
}) & import('vue').Plugin;
|
|
92
92
|
export default MtAvatarText;
|
package/dist/backtop/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export declare const MtBacktop: {
|
|
|
22
22
|
}>> & Readonly<{
|
|
23
23
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
24
24
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
|
-
click: (event: MouseEvent) =>
|
|
25
|
+
click: (event: MouseEvent) => any;
|
|
26
26
|
}, import('vue').PublicProps, {
|
|
27
27
|
readonly bottom: string | number;
|
|
28
28
|
readonly right: string | number;
|
|
@@ -89,7 +89,7 @@ export declare const MtBacktop: {
|
|
|
89
89
|
}>> & Readonly<{
|
|
90
90
|
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
91
91
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
92
|
-
click: (event: MouseEvent) =>
|
|
92
|
+
click: (event: MouseEvent) => any;
|
|
93
93
|
}, string, {
|
|
94
94
|
readonly bottom: string | number;
|
|
95
95
|
readonly right: string | number;
|
|
@@ -36,7 +36,7 @@ declare const backtopEmits: {
|
|
|
36
36
|
/**
|
|
37
37
|
* 点击按钮触发的事件
|
|
38
38
|
*/
|
|
39
|
-
click: (
|
|
39
|
+
click: (_event: MouseEvent) => void;
|
|
40
40
|
};
|
|
41
41
|
export type BacktopProps = ExtractPropTypes<typeof backtopProps>;
|
|
42
42
|
export type BacktopEmits = typeof backtopEmits;
|
|
@@ -28,7 +28,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
28
28
|
readonly default: 60;
|
|
29
29
|
};
|
|
30
30
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
-
click: (event: MouseEvent) =>
|
|
31
|
+
click: (event: MouseEvent) => any;
|
|
32
32
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
33
33
|
readonly visibilityHeight: {
|
|
34
34
|
readonly type: import('vue').PropType<number | string>;
|
package/dist/badge/index.d.ts
CHANGED
|
@@ -26,10 +26,10 @@ export declare const MtBadge: {
|
|
|
26
26
|
readonly default: true;
|
|
27
27
|
};
|
|
28
28
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
29
|
-
readonly value: string | number;
|
|
30
29
|
readonly visible: boolean;
|
|
31
30
|
readonly dot: boolean;
|
|
32
31
|
readonly offset: [number, number];
|
|
32
|
+
readonly value: string | number;
|
|
33
33
|
readonly max: number;
|
|
34
34
|
readonly zero: boolean;
|
|
35
35
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
@@ -66,10 +66,10 @@ export declare const MtBadge: {
|
|
|
66
66
|
readonly default: true;
|
|
67
67
|
};
|
|
68
68
|
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
69
|
-
readonly value: string | number;
|
|
70
69
|
readonly visible: boolean;
|
|
71
70
|
readonly dot: boolean;
|
|
72
71
|
readonly offset: [number, number];
|
|
72
|
+
readonly value: string | number;
|
|
73
73
|
readonly max: number;
|
|
74
74
|
readonly zero: boolean;
|
|
75
75
|
}>;
|
|
@@ -103,10 +103,10 @@ export declare const MtBadge: {
|
|
|
103
103
|
readonly default: true;
|
|
104
104
|
};
|
|
105
105
|
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
106
|
-
readonly value: string | number;
|
|
107
106
|
readonly visible: boolean;
|
|
108
107
|
readonly dot: boolean;
|
|
109
108
|
readonly offset: [number, number];
|
|
109
|
+
readonly value: string | number;
|
|
110
110
|
readonly max: number;
|
|
111
111
|
readonly zero: boolean;
|
|
112
112
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
@@ -60,10 +60,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
60
60
|
readonly default: true;
|
|
61
61
|
};
|
|
62
62
|
}>> & Readonly<{}>, {
|
|
63
|
-
readonly value: string | number;
|
|
64
63
|
readonly visible: boolean;
|
|
65
64
|
readonly dot: boolean;
|
|
66
65
|
readonly offset: [number, number];
|
|
66
|
+
readonly value: string | number;
|
|
67
67
|
readonly max: number;
|
|
68
68
|
readonly zero: boolean;
|
|
69
69
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
package/dist/button/index.d.ts
CHANGED
|
@@ -54,22 +54,28 @@ export declare const MtButton: {
|
|
|
54
54
|
};
|
|
55
55
|
}>> & Readonly<{
|
|
56
56
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
57
|
-
}>, {
|
|
57
|
+
}>, {
|
|
58
|
+
ref: import('vue').Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
59
|
+
focus: () => void | undefined;
|
|
60
|
+
blur: () => void | undefined;
|
|
61
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
58
62
|
click: (args_0: MouseEvent) => any;
|
|
59
63
|
}, import('vue').PublicProps, {
|
|
60
64
|
readonly round: boolean;
|
|
61
65
|
readonly size: "normal" | "small" | "large";
|
|
62
|
-
readonly
|
|
66
|
+
readonly width: string | number;
|
|
67
|
+
readonly type: "default" | "primary" | "error" | "success" | "noble";
|
|
63
68
|
readonly circle: boolean;
|
|
64
69
|
readonly text: boolean;
|
|
65
|
-
readonly width: string | number;
|
|
66
|
-
readonly height: string | number;
|
|
67
|
-
readonly plain: boolean;
|
|
68
|
-
readonly loading: boolean;
|
|
69
70
|
readonly disabled: boolean;
|
|
71
|
+
readonly loading: boolean;
|
|
72
|
+
readonly height: string | number;
|
|
70
73
|
readonly block: boolean;
|
|
71
|
-
readonly
|
|
72
|
-
|
|
74
|
+
readonly plain: boolean;
|
|
75
|
+
readonly nativeType: "button" | "submit" | "reset";
|
|
76
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
77
|
+
buttonRef: HTMLButtonElement;
|
|
78
|
+
}, HTMLButtonElement, import('vue').ComponentProvideOptions, {
|
|
73
79
|
P: {};
|
|
74
80
|
B: {};
|
|
75
81
|
D: {};
|
|
@@ -131,19 +137,23 @@ export declare const MtButton: {
|
|
|
131
137
|
};
|
|
132
138
|
}>> & Readonly<{
|
|
133
139
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
134
|
-
}>, {
|
|
140
|
+
}>, {
|
|
141
|
+
ref: import('vue').Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
142
|
+
focus: () => void | undefined;
|
|
143
|
+
blur: () => void | undefined;
|
|
144
|
+
}, {}, {}, {}, {
|
|
135
145
|
readonly round: boolean;
|
|
136
146
|
readonly size: "normal" | "small" | "large";
|
|
137
|
-
readonly
|
|
147
|
+
readonly width: string | number;
|
|
148
|
+
readonly type: "default" | "primary" | "error" | "success" | "noble";
|
|
138
149
|
readonly circle: boolean;
|
|
139
150
|
readonly text: boolean;
|
|
140
|
-
readonly width: string | number;
|
|
141
|
-
readonly height: string | number;
|
|
142
|
-
readonly plain: boolean;
|
|
143
|
-
readonly loading: boolean;
|
|
144
151
|
readonly disabled: boolean;
|
|
152
|
+
readonly loading: boolean;
|
|
153
|
+
readonly height: string | number;
|
|
145
154
|
readonly block: boolean;
|
|
146
|
-
readonly
|
|
155
|
+
readonly plain: boolean;
|
|
156
|
+
readonly nativeType: "button" | "submit" | "reset";
|
|
147
157
|
}>;
|
|
148
158
|
__isFragment?: never;
|
|
149
159
|
__isTeleport?: never;
|
|
@@ -203,28 +213,36 @@ export declare const MtButton: {
|
|
|
203
213
|
};
|
|
204
214
|
}>> & Readonly<{
|
|
205
215
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
206
|
-
}>, {
|
|
216
|
+
}>, {
|
|
217
|
+
ref: import('vue').Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
218
|
+
focus: () => void | undefined;
|
|
219
|
+
blur: () => void | undefined;
|
|
220
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
207
221
|
click: (args_0: MouseEvent) => any;
|
|
208
222
|
}, string, {
|
|
209
223
|
readonly round: boolean;
|
|
210
224
|
readonly size: "normal" | "small" | "large";
|
|
211
|
-
readonly
|
|
225
|
+
readonly width: string | number;
|
|
226
|
+
readonly type: "default" | "primary" | "error" | "success" | "noble";
|
|
212
227
|
readonly circle: boolean;
|
|
213
228
|
readonly text: boolean;
|
|
214
|
-
readonly width: string | number;
|
|
215
|
-
readonly height: string | number;
|
|
216
|
-
readonly plain: boolean;
|
|
217
|
-
readonly loading: boolean;
|
|
218
229
|
readonly disabled: boolean;
|
|
230
|
+
readonly loading: boolean;
|
|
231
|
+
readonly height: string | number;
|
|
219
232
|
readonly block: boolean;
|
|
220
|
-
readonly
|
|
233
|
+
readonly plain: boolean;
|
|
234
|
+
readonly nativeType: "button" | "submit" | "reset";
|
|
221
235
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
222
236
|
$slots: Readonly<{
|
|
223
|
-
default:
|
|
224
|
-
|
|
237
|
+
default: (scope?: {
|
|
238
|
+
class?: string;
|
|
239
|
+
}) => unknown;
|
|
240
|
+
icon: () => unknown;
|
|
225
241
|
}> & {
|
|
226
|
-
default:
|
|
227
|
-
|
|
242
|
+
default: (scope?: {
|
|
243
|
+
class?: string;
|
|
244
|
+
}) => unknown;
|
|
245
|
+
icon: () => unknown;
|
|
228
246
|
};
|
|
229
247
|
}) & import('vue').Plugin;
|
|
230
248
|
export default MtButton;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
attrs: Partial<{}>;
|
|
3
3
|
slots: Readonly<{
|
|
4
|
-
default:
|
|
5
|
-
|
|
4
|
+
default: (scope?: {
|
|
5
|
+
class?: string;
|
|
6
|
+
}) => unknown;
|
|
7
|
+
icon: () => unknown;
|
|
6
8
|
}> & {
|
|
7
|
-
default:
|
|
8
|
-
|
|
9
|
+
default: (scope?: {
|
|
10
|
+
class?: string;
|
|
11
|
+
}) => unknown;
|
|
12
|
+
icon: () => unknown;
|
|
13
|
+
};
|
|
14
|
+
refs: {
|
|
15
|
+
buttonRef: HTMLButtonElement;
|
|
9
16
|
};
|
|
10
|
-
refs: {};
|
|
11
17
|
rootEl: HTMLButtonElement;
|
|
12
18
|
};
|
|
13
19
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -64,7 +70,11 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
64
70
|
readonly type: import('vue').PropType<"button" | "submit" | "reset">;
|
|
65
71
|
readonly default: "button";
|
|
66
72
|
};
|
|
67
|
-
}>, {
|
|
73
|
+
}>, {
|
|
74
|
+
ref: import('vue').Ref<HTMLButtonElement | undefined, HTMLButtonElement | undefined>;
|
|
75
|
+
focus: () => void | undefined;
|
|
76
|
+
blur: () => void | undefined;
|
|
77
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
68
78
|
click: (args_0: MouseEvent) => any;
|
|
69
79
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
70
80
|
readonly type: {
|
|
@@ -124,17 +134,19 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
124
134
|
}>, {
|
|
125
135
|
readonly round: boolean;
|
|
126
136
|
readonly size: "normal" | "small" | "large";
|
|
127
|
-
readonly
|
|
137
|
+
readonly width: string | number;
|
|
138
|
+
readonly type: "default" | "primary" | "error" | "success" | "noble";
|
|
128
139
|
readonly circle: boolean;
|
|
129
140
|
readonly text: boolean;
|
|
130
|
-
readonly width: string | number;
|
|
131
|
-
readonly height: string | number;
|
|
132
|
-
readonly plain: boolean;
|
|
133
|
-
readonly loading: boolean;
|
|
134
141
|
readonly disabled: boolean;
|
|
142
|
+
readonly loading: boolean;
|
|
143
|
+
readonly height: string | number;
|
|
135
144
|
readonly block: boolean;
|
|
136
|
-
readonly
|
|
137
|
-
|
|
145
|
+
readonly plain: boolean;
|
|
146
|
+
readonly nativeType: "button" | "submit" | "reset";
|
|
147
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
148
|
+
buttonRef: HTMLButtonElement;
|
|
149
|
+
}, HTMLButtonElement>;
|
|
138
150
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
139
151
|
export default _default;
|
|
140
152
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
package/dist/cell/index.d.ts
CHANGED
|
@@ -35,12 +35,12 @@ export declare const MtCell: {
|
|
|
35
35
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
36
|
click: () => any;
|
|
37
37
|
}, import('vue').PublicProps, {
|
|
38
|
+
readonly width: string | number;
|
|
39
|
+
readonly title: string;
|
|
38
40
|
readonly clickable: boolean;
|
|
41
|
+
readonly icon: string;
|
|
39
42
|
readonly link: boolean;
|
|
40
|
-
readonly title: string;
|
|
41
|
-
readonly width: string | number;
|
|
42
43
|
readonly height: string | number;
|
|
43
|
-
readonly icon: string;
|
|
44
44
|
readonly description: string;
|
|
45
45
|
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
46
46
|
P: {};
|
|
@@ -83,12 +83,12 @@ export declare const MtCell: {
|
|
|
83
83
|
}>> & Readonly<{
|
|
84
84
|
onClick?: (() => any) | undefined;
|
|
85
85
|
}>, {}, {}, {}, {}, {
|
|
86
|
+
readonly width: string | number;
|
|
87
|
+
readonly title: string;
|
|
86
88
|
readonly clickable: boolean;
|
|
89
|
+
readonly icon: string;
|
|
87
90
|
readonly link: boolean;
|
|
88
|
-
readonly title: string;
|
|
89
|
-
readonly width: string | number;
|
|
90
91
|
readonly height: string | number;
|
|
91
|
-
readonly icon: string;
|
|
92
92
|
readonly description: string;
|
|
93
93
|
}>;
|
|
94
94
|
__isFragment?: never;
|
|
@@ -130,28 +130,21 @@ export declare const MtCell: {
|
|
|
130
130
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
131
131
|
click: () => any;
|
|
132
132
|
}, string, {
|
|
133
|
+
readonly width: string | number;
|
|
134
|
+
readonly title: string;
|
|
133
135
|
readonly clickable: boolean;
|
|
136
|
+
readonly icon: string;
|
|
134
137
|
readonly link: boolean;
|
|
135
|
-
readonly title: string;
|
|
136
|
-
readonly width: string | number;
|
|
137
138
|
readonly height: string | number;
|
|
138
|
-
readonly icon: string;
|
|
139
139
|
readonly description: string;
|
|
140
140
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
|
141
|
-
$slots:
|
|
142
|
-
icon: any;
|
|
143
|
-
title: any;
|
|
144
|
-
description: any;
|
|
145
|
-
right: {
|
|
141
|
+
$slots: {
|
|
142
|
+
icon?(_: {}): any;
|
|
143
|
+
title?(_: {}): any;
|
|
144
|
+
description?(_: {}): any;
|
|
145
|
+
right?(_: {
|
|
146
146
|
isHover: boolean;
|
|
147
|
-
};
|
|
148
|
-
}> & {
|
|
149
|
-
icon: any;
|
|
150
|
-
title: any;
|
|
151
|
-
description: any;
|
|
152
|
-
right: {
|
|
153
|
-
isHover: boolean;
|
|
154
|
-
};
|
|
147
|
+
}): any;
|
|
155
148
|
};
|
|
156
149
|
}) & import('vue').Plugin;
|
|
157
150
|
export default MtCell;
|
|
@@ -1,19 +1,12 @@
|
|
|
1
1
|
declare function __VLS_template(): {
|
|
2
2
|
attrs: Partial<{}>;
|
|
3
|
-
slots:
|
|
4
|
-
icon: any;
|
|
5
|
-
title: any;
|
|
6
|
-
description: any;
|
|
7
|
-
right: {
|
|
3
|
+
slots: {
|
|
4
|
+
icon?(_: {}): any;
|
|
5
|
+
title?(_: {}): any;
|
|
6
|
+
description?(_: {}): any;
|
|
7
|
+
right?(_: {
|
|
8
8
|
isHover: boolean;
|
|
9
|
-
};
|
|
10
|
-
}> & {
|
|
11
|
-
icon: any;
|
|
12
|
-
title: any;
|
|
13
|
-
description: any;
|
|
14
|
-
right: {
|
|
15
|
-
isHover: boolean;
|
|
16
|
-
};
|
|
9
|
+
}): any;
|
|
17
10
|
};
|
|
18
11
|
refs: {};
|
|
19
12
|
rootEl: HTMLDivElement;
|
|
@@ -86,12 +79,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
86
79
|
}>> & Readonly<{
|
|
87
80
|
onClick?: (() => any) | undefined;
|
|
88
81
|
}>, {
|
|
82
|
+
readonly width: string | number;
|
|
83
|
+
readonly title: string;
|
|
89
84
|
readonly clickable: boolean;
|
|
85
|
+
readonly icon: string;
|
|
90
86
|
readonly link: boolean;
|
|
91
|
-
readonly title: string;
|
|
92
|
-
readonly width: string | number;
|
|
93
87
|
readonly height: string | number;
|
|
94
|
-
readonly icon: string;
|
|
95
88
|
readonly description: string;
|
|
96
89
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
97
90
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InjectionKey } from 'vue';
|
|
1
2
|
export declare const MtCellGroup: {
|
|
2
3
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
4
|
gutter: {
|
|
@@ -10,11 +11,11 @@ export declare const MtCellGroup: {
|
|
|
10
11
|
default: string;
|
|
11
12
|
};
|
|
12
13
|
hideFirstMargin: {
|
|
13
|
-
type:
|
|
14
|
+
type: BooleanConstructor;
|
|
14
15
|
default: boolean;
|
|
15
16
|
};
|
|
16
17
|
hideLastMargin: {
|
|
17
|
-
type:
|
|
18
|
+
type: BooleanConstructor;
|
|
18
19
|
default: boolean;
|
|
19
20
|
};
|
|
20
21
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
@@ -40,11 +41,11 @@ export declare const MtCellGroup: {
|
|
|
40
41
|
default: string;
|
|
41
42
|
};
|
|
42
43
|
hideFirstMargin: {
|
|
43
|
-
type:
|
|
44
|
+
type: BooleanConstructor;
|
|
44
45
|
default: boolean;
|
|
45
46
|
};
|
|
46
47
|
hideLastMargin: {
|
|
47
|
-
type:
|
|
48
|
+
type: BooleanConstructor;
|
|
48
49
|
default: boolean;
|
|
49
50
|
};
|
|
50
51
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
@@ -67,11 +68,11 @@ export declare const MtCellGroup: {
|
|
|
67
68
|
default: string;
|
|
68
69
|
};
|
|
69
70
|
hideFirstMargin: {
|
|
70
|
-
type:
|
|
71
|
+
type: BooleanConstructor;
|
|
71
72
|
default: boolean;
|
|
72
73
|
};
|
|
73
74
|
hideLastMargin: {
|
|
74
|
-
type:
|
|
75
|
+
type: BooleanConstructor;
|
|
75
76
|
default: boolean;
|
|
76
77
|
};
|
|
77
78
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
@@ -80,4 +81,5 @@ export declare const MtCellGroup: {
|
|
|
80
81
|
hideFirstMargin: boolean;
|
|
81
82
|
hideLastMargin: boolean;
|
|
82
83
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin;
|
|
84
|
+
export declare const CellGroupKey: InjectionKey<object>;
|
|
83
85
|
export default MtCellGroup;
|