@mingto/mt-ui 1.1.36 → 1.1.39
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 +173 -19
- 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 +67694 -64647
- package/dist/index.umd.js +68544 -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 +6 -4
- /package/dist/upload/src/{use-full-scree-drag.d.ts → use-full-screen-drag.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,19 +1,173 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
# @mingto/mt-ui
|
|
2
|
+
|
|
3
|
+
基于 Vue 3 的企业级 UI 组件库,提供丰富的业务组件,帮助快速构建现代化应用界面。
|
|
4
|
+
|
|
5
|
+
## 特性
|
|
6
|
+
|
|
7
|
+
- 🎨 **设计优雅**:简洁现代的视觉风格
|
|
8
|
+
- 📦 **开箱即用**:无需复杂配置,直接引入使用
|
|
9
|
+
- 🔧 **按需加载**:支持组件按需引入,优化打包体积
|
|
10
|
+
- 🎯 **类型安全**:完整的 TypeScript 类型定义
|
|
11
|
+
- 🌏 **国际化**:内置多语言支持
|
|
12
|
+
|
|
13
|
+
## 安装
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add @mingto/mt-ui
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## 快速开始
|
|
20
|
+
|
|
21
|
+
### 全量引入
|
|
22
|
+
|
|
23
|
+
```typescript
|
|
24
|
+
import MtUi from '@mingto/mt-ui'
|
|
25
|
+
import { createApp } from 'vue'
|
|
26
|
+
import App from './App.vue'
|
|
27
|
+
import '@mingto/mt-ui/dist/style.css'
|
|
28
|
+
|
|
29
|
+
const app = createApp(App)
|
|
30
|
+
app.use(MtUi)
|
|
31
|
+
app.mount('#app')
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 按需引入
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { MtButton, MtDialog, MtMessage } from '@mingto/mt-ui'
|
|
38
|
+
import { createApp } from 'vue'
|
|
39
|
+
import App from './App.vue'
|
|
40
|
+
import '@mingto/mt-ui/dist/style.css'
|
|
41
|
+
|
|
42
|
+
const app = createApp(App)
|
|
43
|
+
app.use(MtButton)
|
|
44
|
+
app.use(MtDialog)
|
|
45
|
+
app.use(MtMessage)
|
|
46
|
+
app.mount('#app')
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## 基础组件
|
|
50
|
+
|
|
51
|
+
| 组件 | 说明 |
|
|
52
|
+
| --------- | -------- |
|
|
53
|
+
| MtButton | 按钮 |
|
|
54
|
+
| MtIcon | 图标 |
|
|
55
|
+
| MtImage | 图片 |
|
|
56
|
+
| MtLoading | 加载 |
|
|
57
|
+
| MtBadge | 徽标 |
|
|
58
|
+
| MtBacktop | 回到顶部 |
|
|
59
|
+
|
|
60
|
+
## 表单组件
|
|
61
|
+
|
|
62
|
+
| 组件 | 说明 |
|
|
63
|
+
| ---------- | -------- |
|
|
64
|
+
| MtUpload | 文件上传 |
|
|
65
|
+
| MtProgress | 进度条 |
|
|
66
|
+
|
|
67
|
+
## 展示组件
|
|
68
|
+
|
|
69
|
+
| 组件 | 说明 |
|
|
70
|
+
| ------------- | -------- |
|
|
71
|
+
| MtAvatarImage | 图片头像 |
|
|
72
|
+
| MtAvatarText | 文字头像 |
|
|
73
|
+
| MtEmpty | 空状态 |
|
|
74
|
+
| MtTag | 标签 |
|
|
75
|
+
| MtQrcode | 二维码 |
|
|
76
|
+
| MtTable | 表格 |
|
|
77
|
+
| MtTableColumn | 表格列 |
|
|
78
|
+
| MtPopover | 气泡卡片 |
|
|
79
|
+
| MtTooltip | 文字提示 |
|
|
80
|
+
| MtFilePreview | 文件预览 |
|
|
81
|
+
|
|
82
|
+
## 导航组件
|
|
83
|
+
|
|
84
|
+
| 组件 | 说明 |
|
|
85
|
+
| ---------------- | -------- |
|
|
86
|
+
| MtTabs | 标签页 |
|
|
87
|
+
| MtTab | 标签 |
|
|
88
|
+
| MtInfiniteScroll | 无限滚动 |
|
|
89
|
+
|
|
90
|
+
## 反馈组件
|
|
91
|
+
|
|
92
|
+
| 组件 | 说明 |
|
|
93
|
+
| --------- | -------- |
|
|
94
|
+
| MtDialog | 对话框 |
|
|
95
|
+
| MtMessage | 消息提示 |
|
|
96
|
+
| MtOverlay | 遮罩层 |
|
|
97
|
+
| MtPoster | 海报 |
|
|
98
|
+
|
|
99
|
+
## 布局组件
|
|
100
|
+
|
|
101
|
+
| 组件 | 说明 |
|
|
102
|
+
| -------------------- | ------------ |
|
|
103
|
+
| MtCell | 单元格 |
|
|
104
|
+
| MtCellGroup | 单元格组 |
|
|
105
|
+
| MtButtonGroup | 按钮组 |
|
|
106
|
+
| MtCollapseTransition | 折叠过渡 |
|
|
107
|
+
| MtFadeTransition | 淡入淡出过渡 |
|
|
108
|
+
| MtTeleport | 传送门 |
|
|
109
|
+
| MtConfigProvider | 全局配置 |
|
|
110
|
+
|
|
111
|
+
## 使用示例
|
|
112
|
+
|
|
113
|
+
### 按钮
|
|
114
|
+
|
|
115
|
+
```vue
|
|
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>
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 对话框
|
|
130
|
+
|
|
131
|
+
```vue
|
|
132
|
+
<mt-dialog v-model="visible" title="标题">
|
|
133
|
+
<p>对话框内容</p>
|
|
134
|
+
<template #footer>
|
|
135
|
+
<mt-button @click="visible = false">取消</mt-button>
|
|
136
|
+
<mt-button type="primary" @click="visible = false">确定</mt-button>
|
|
137
|
+
</template>
|
|
138
|
+
</mt-dialog>
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
### 消息提示
|
|
142
|
+
|
|
143
|
+
```typescript
|
|
144
|
+
import { MtMessage } from '@mingto/mt-ui'
|
|
145
|
+
|
|
146
|
+
MtMessage.success('操作成功')
|
|
147
|
+
MtMessage.error('操作失败')
|
|
148
|
+
MtMessage.warning('警告提示')
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### 文件上传
|
|
152
|
+
|
|
153
|
+
```vue
|
|
154
|
+
<mt-upload v-model="fileList" :limit="9">
|
|
155
|
+
<mt-button type="primary">点击上传</mt-button>
|
|
156
|
+
</mt-upload>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
## 全局配置
|
|
160
|
+
|
|
161
|
+
```vue
|
|
162
|
+
<mt-config-provider :locale="{ lang: 'en' }">
|
|
163
|
+
<app />
|
|
164
|
+
</mt-config-provider>
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
## 完整文档
|
|
168
|
+
|
|
169
|
+
更多组件和详细用法请参考 [官方文档](https://mingto.github.io/mt-utils/ui/)
|
|
170
|
+
|
|
171
|
+
## 许可证
|
|
172
|
+
|
|
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"]>;
|