@elementplus-kit/uikit 1.5.0 → 1.6.0
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/dist/index.css +1 -0
- package/dist/index.mjs +1079 -0
- package/dist/index.umd.js +1 -0
- package/package.json +14 -4
- package/aaaindex.ts +0 -55
- package/build.log +0 -0
- package/components/button/index.ts +0 -4
- package/components/button/src/constants.ts +0 -50
- package/components/button/src/index.ts +0 -264
- package/components/button/style/index.scss +0 -3
- package/components/config.ts +0 -4
- package/components/dialog/index.ts +0 -6
- package/components/dialog/src/constants.ts +0 -3
- package/components/dialog/src/index.ts +0 -54
- package/components/dialog/style/index.scss +0 -18
- package/components/dictLabel/index.ts +0 -4
- package/components/dictLabel/src/index.vue +0 -21
- package/components/drawer/index.ts +0 -4
- package/components/drawer/src/constants.ts +0 -3
- package/components/drawer/src/index.ts +0 -53
- package/components/drawer/style/index.scss +0 -18
- package/components/form/index.ts +0 -4
- package/components/form/src/FormItem.ts +0 -397
- package/components/form/src/constants.ts +0 -161
- package/components/form/src/index.ts +0 -207
- package/components/form/src/types.ts +0 -39
- package/components/form/src/utils.ts +0 -4
- package/components/form/style/index.scss +0 -5
- package/components/pagination/index.ts +0 -4
- package/components/pagination/src/constants.ts +0 -5
- package/components/pagination/src/index.ts +0 -50
- package/components/search/index.ts +0 -4
- package/components/search/src/index.tsx +0 -286
- package/components/search/style/index.scss +0 -104
- package/components/table/index.ts +0 -4
- package/components/table/src/TableColumn.ts +0 -116
- package/components/table/src/constants.ts +0 -42
- package/components/table/src/index.ts +0 -250
- package/components/table/src/index2.ts +0 -219
- package/components/table/src/index3.ts +0 -233
- package/components/table/src/tableDictLabel.vue +0 -21
- package/components/table/src/tableaa.ts +0 -71
- package/components/table/src/type.ts +0 -0
- package/components/table/type/index.scss +0 -0
- package/components/table2/index.ts +0 -4
- package/components/table2/src/config.ts +0 -5
- package/components/table2/src/index.ts +0 -12
- package/components/table2/src/render.ts +0 -136
- package/components/table2/src/types.ts +0 -39
- package/components/table2/style/index.scss +0 -0
- package/components//346/250/241/346/235/277/index.tsx +0 -57
- package/components//346/250/241/346/235/277/ttt.ts +0 -66
- package/components//346/250/241/346/235/277/ttt.vue +0 -18
- package/index.ts +0 -2
- package/vite.config.ts +0 -26
- package//345/205/266/344/273/226/core/dialog/elementPlus/dialogWarp.vue +0 -151
- package//345/205/266/344/273/226/core/dialog/index.ts +0 -10
- package//345/205/266/344/273/226/core/form/elementPlus/elementWarp.ts +0 -15
- package//345/205/266/344/273/226/core/form/elementPlus/elementWarp.vue +0 -16
- package//345/205/266/344/273/226/core/form/elementPlus/formRender.ts +0 -55
- package//345/205/266/344/273/226/core/form/index.ts +0 -10
- package//345/205/266/344/273/226/core/table/config.ts +0 -5
- package//345/205/266/344/273/226/core/table/render.ts +0 -91
- package//345/205/266/344/273/226/core/table/warp.ts +0 -11
- package//345/205/266/344/273/226/core/utils/fetch.ts +0 -58
- package//345/205/266/344/273/226/useMessage.ts +0 -95
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus'
|
|
2
|
-
import { useI18n } from './useI18n'
|
|
3
|
-
export const useMessage = () => {
|
|
4
|
-
const { t } = useI18n()
|
|
5
|
-
return {
|
|
6
|
-
// 消息提示
|
|
7
|
-
info(content: string) {
|
|
8
|
-
ElMessage.info(content)
|
|
9
|
-
},
|
|
10
|
-
// 错误消息
|
|
11
|
-
error(content: string) {
|
|
12
|
-
ElMessage.error(content)
|
|
13
|
-
},
|
|
14
|
-
// 成功消息
|
|
15
|
-
success(content: string) {
|
|
16
|
-
ElMessage.success(content)
|
|
17
|
-
},
|
|
18
|
-
// 警告消息
|
|
19
|
-
warning(content: string) {
|
|
20
|
-
ElMessage.warning(content)
|
|
21
|
-
},
|
|
22
|
-
// 弹出提示
|
|
23
|
-
alert(content: string) {
|
|
24
|
-
ElMessageBox.alert(content, t('common.confirmTitle'))
|
|
25
|
-
},
|
|
26
|
-
// 错误提示
|
|
27
|
-
alertError(content: string) {
|
|
28
|
-
ElMessageBox.alert(content, t('common.confirmTitle'), { type: 'error' })
|
|
29
|
-
},
|
|
30
|
-
// 成功提示
|
|
31
|
-
alertSuccess(content: string) {
|
|
32
|
-
ElMessageBox.alert(content, t('common.confirmTitle'), { type: 'success' })
|
|
33
|
-
},
|
|
34
|
-
// 警告提示
|
|
35
|
-
alertWarning(content: string) {
|
|
36
|
-
ElMessageBox.alert(content, t('common.confirmTitle'), { type: 'warning' })
|
|
37
|
-
},
|
|
38
|
-
// 通知提示
|
|
39
|
-
notify(content: string) {
|
|
40
|
-
ElNotification.info(content)
|
|
41
|
-
},
|
|
42
|
-
// 错误通知
|
|
43
|
-
notifyError(content: string) {
|
|
44
|
-
ElNotification.error(content)
|
|
45
|
-
},
|
|
46
|
-
// 成功通知
|
|
47
|
-
notifySuccess(content: string) {
|
|
48
|
-
ElNotification.success(content)
|
|
49
|
-
},
|
|
50
|
-
// 警告通知
|
|
51
|
-
notifyWarning(content: string) {
|
|
52
|
-
ElNotification.warning(content)
|
|
53
|
-
},
|
|
54
|
-
// 确认窗体
|
|
55
|
-
confirm(content: string, tip?: string) {
|
|
56
|
-
return ElMessageBox.confirm(content, tip ? tip : t('common.confirmTitle'), {
|
|
57
|
-
confirmButtonText: t('common.ok'),
|
|
58
|
-
cancelButtonText: t('common.cancel'),
|
|
59
|
-
type: 'warning'
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
// 删除窗体
|
|
63
|
-
delConfirm(content?: string, tip?: string) {
|
|
64
|
-
return ElMessageBox.confirm(
|
|
65
|
-
content ? content : t('common.delMessage'),
|
|
66
|
-
tip ? tip : t('common.confirmTitle'),
|
|
67
|
-
{
|
|
68
|
-
confirmButtonText: t('common.ok'),
|
|
69
|
-
cancelButtonText: t('common.cancel'),
|
|
70
|
-
type: 'warning'
|
|
71
|
-
}
|
|
72
|
-
)
|
|
73
|
-
},
|
|
74
|
-
// 导出窗体
|
|
75
|
-
exportConfirm(content?: string, tip?: string) {
|
|
76
|
-
return ElMessageBox.confirm(
|
|
77
|
-
content ? content : t('common.exportMessage'),
|
|
78
|
-
tip ? tip : t('common.confirmTitle'),
|
|
79
|
-
{
|
|
80
|
-
confirmButtonText: t('common.ok'),
|
|
81
|
-
cancelButtonText: t('common.cancel'),
|
|
82
|
-
type: 'warning'
|
|
83
|
-
}
|
|
84
|
-
)
|
|
85
|
-
},
|
|
86
|
-
// 提交内容
|
|
87
|
-
prompt(content: string, tip: string) {
|
|
88
|
-
return ElMessageBox.prompt(content, tip, {
|
|
89
|
-
confirmButtonText: t('common.ok'),
|
|
90
|
-
cancelButtonText: t('common.cancel'),
|
|
91
|
-
type: 'warning'
|
|
92
|
-
})
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|