@qqt-product/system 0.0.1
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/.eslintignore +4 -0
- package/.eslintrc.cjs +22 -0
- package/.prettierignore +4 -0
- package/.prettierrc.cjs +41 -0
- package/.vscode/extensions.json +3 -0
- package/README.md +16 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +14234 -0
- package/dist/index.umd.js +311 -0
- package/dist/lib/components/QAccountList/src/QAccountList.vue.d.ts +143 -0
- package/dist/lib/components/QAccountList/src/useConfigData.d.ts +37 -0
- package/dist/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue.d.ts +66 -0
- package/dist/lib/components/QBackgroundFileTaskList/src/useConfigData.d.ts +14 -0
- package/dist/lib/components/QCompanyermissionList/src/form.vue.d.ts +80 -0
- package/dist/lib/components/QCompanyermissionList/src/types.d.ts +44 -0
- package/dist/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue.d.ts +68 -0
- package/dist/lib/components/QElsEmailSendLogList/src/useConfigData.d.ts +13 -0
- package/dist/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue.d.ts +72 -0
- package/dist/lib/components/QElsMsgRecordList/src/useConfigData.d.ts +16 -0
- package/dist/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue.d.ts +75 -0
- package/dist/lib/components/QI18nList/src/QI18nForm.vue.d.ts +47 -0
- package/dist/lib/components/QI18nList/src/QI18nList.vue.d.ts +136 -0
- package/dist/lib/components/QI18nList/src/useConfigData.d.ts +31 -0
- package/dist/lib/components/QImChatGroupList/src/QImChatGroupList.vue.d.ts +61 -0
- package/dist/lib/components/QImChatGroupList/src/useConfigData.d.ts +11 -0
- package/dist/lib/components/QMqRecordList/src/QMqRecordList.vue.d.ts +60 -0
- package/dist/lib/components/QMqRecordList/src/useConfigData.d.ts +12 -0
- package/dist/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue.d.ts +49 -0
- package/dist/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue.d.ts +3 -0
- package/dist/lib/components/QPermissionDataList/src/form.vue.d.ts +50 -0
- package/dist/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue.d.ts +86 -0
- package/dist/lib/components/QPurchaseNoticeList/src/useConfigData.d.ts +15 -0
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue.d.ts +47 -0
- package/dist/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.d.ts +12 -0
- package/dist/lib/components/QQuartzJobList/src/QQuartzJobList.vue.d.ts +129 -0
- package/dist/lib/components/QQuartzJobList/src/components/JCron.vue.d.ts +23 -0
- package/dist/lib/components/QQuartzJobList/src/components/JCronModal.vue.d.ts +100 -0
- package/dist/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue.d.ts +55 -0
- package/dist/lib/components/QQuartzJobList/src/useConfigData.d.ts +20 -0
- package/dist/lib/components/QRoleList/src/QRoleList.vue.d.ts +100 -0
- package/dist/lib/components/QRoleList/src/components/content-header/index.d.ts +23 -0
- package/dist/lib/components/QRoleList/src/components/userAuthorization/index.d.ts +79 -0
- package/dist/lib/components/QRoleList/src/useConfigData.d.ts +30 -0
- package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue.d.ts +55 -0
- package/dist/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue.d.ts +104 -0
- package/dist/lib/components/QSupplierAccountList/src/useConfigData.d.ts +29 -0
- package/dist/lib/components/QUsageList/src/QUsageList.vue.d.ts +49 -0
- package/dist/lib/components/QUsageList/src/useConfigData.d.ts +14 -0
- package/dist/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue.d.ts +31 -0
- package/dist/lib/components/QcustomConfigEdit/component/dataFormatComponent.d.ts +46 -0
- package/dist/lib/components/QcustomConfigEdit/component/regexComponent.d.ts +41 -0
- package/dist/lib/components/QcustomConfigEdit/src/QcustomConfigRender.d.ts +12 -0
- package/dist/lib/components/QcustomConfigEdit/src/types.d.ts +61 -0
- package/dist/lib/components/QcustomConfigEdit/src/useConfigComputed.d.ts +7 -0
- package/dist/lib/components/QcustomConfigEdit/src/useConfigData.d.ts +85 -0
- package/dist/lib/components/QcustomConfigEdit/src/useConfigMethods.d.ts +16 -0
- package/dist/lib/components/QcustomConfigEdit/src/useConstant.d.ts +18 -0
- package/dist/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue.d.ts +50 -0
- package/dist/lib/components/QcustomConfigList/src/QcustomConfigList.vue.d.ts +112 -0
- package/dist/lib/components/QcustomConfigList/src/useConfigData.d.ts +17 -0
- package/dist/lib/components/QcustomConfigList/src/useMethods.d.ts +15 -0
- package/dist/lib/components/QsysConfigList/src/QsysConfigList.vue.d.ts +66 -0
- package/dist/lib/components/QsysConfigList/src/useConfigData.d.ts +11 -0
- package/dist/lib/components/QsysConfigList/src/useMethods.d.ts +6 -0
- package/dist/lib/components/index.d.ts +39 -0
- package/dist/lib/components/integratedNodesList/src/index.vue.d.ts +107 -0
- package/dist/lib/components/integratedReportList/src/index.vue.d.ts +70 -0
- package/dist/lib/components/integratedReportSearchList/src/index.vue.d.ts +61 -0
- package/dist/lib/components/loginAbnormalLogList/src/index.vue.d.ts +46 -0
- package/dist/lib/components/loginLogList/src/index.vue.d.ts +45 -0
- package/dist/lib/components/loginSupplierLogList/src/index.vue.d.ts +45 -0
- package/dist/lib/components/operateLogList/src/index.vue.d.ts +53 -0
- package/dist/lib/index.d.ts +6 -0
- package/dist/lib/utils/global.hook.d.ts +31 -0
- package/dist/lib/utils/global.types.d.ts +41 -0
- package/dist/lib/utils/regexp.d.ts +27 -0
- package/dist/style.css +1 -0
- package/dist/vite-env.d.ts +13 -0
- package/dist/vite.svg +1 -0
- package/index.html +13 -0
- package/package.json +65 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +8 -0
- package/src/lib/components/QAccountList/index.ts +6 -0
- package/src/lib/components/QAccountList/src/QAccountDetail.vue +191 -0
- package/src/lib/components/QAccountList/src/QAccountEdit.vue +241 -0
- package/src/lib/components/QAccountList/src/QAccountList.vue +530 -0
- package/src/lib/components/QAccountList/src/useConfigData.ts +53 -0
- package/src/lib/components/QBackgroundFileTaskList/index.ts +6 -0
- package/src/lib/components/QBackgroundFileTaskList/src/QBackgroundFileTaskList.vue +137 -0
- package/src/lib/components/QBackgroundFileTaskList/src/useConfigData.ts +20 -0
- package/src/lib/components/QCompanyermissionList/src/editTree.vue +291 -0
- package/src/lib/components/QCompanyermissionList/src/form.vue +238 -0
- package/src/lib/components/QCompanyermissionList/src/index.vue +309 -0
- package/src/lib/components/QCompanyermissionList/src/types.ts +44 -0
- package/src/lib/components/QElsEmailSendLogList/index.ts +6 -0
- package/src/lib/components/QElsEmailSendLogList/src/QElsEmailSendLogList.vue +166 -0
- package/src/lib/components/QElsEmailSendLogList/src/useConfigData.ts +19 -0
- package/src/lib/components/QElsMsgRecordList/index.ts +6 -0
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordDetail.vue +148 -0
- package/src/lib/components/QElsMsgRecordList/src/QElsMsgRecordList.vue +124 -0
- package/src/lib/components/QElsMsgRecordList/src/useConfigData.ts +22 -0
- package/src/lib/components/QElsTenantPortalNewsList/index.ts +6 -0
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsDetail.vue +139 -0
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsEdit.vue +196 -0
- package/src/lib/components/QElsTenantPortalNewsList/src/QElsTenantPortalNewsList.vue +122 -0
- package/src/lib/components/QElsTenantPortalNewsList/src/useConfigData.ts +20 -0
- package/src/lib/components/QI18nList/index.ts +6 -0
- package/src/lib/components/QI18nList/src/QI18nForm.vue +141 -0
- package/src/lib/components/QI18nList/src/QI18nList.vue +361 -0
- package/src/lib/components/QI18nList/src/useConfigData.ts +37 -0
- package/src/lib/components/QImChatGroupList/index.ts +6 -0
- package/src/lib/components/QImChatGroupList/src/QImChatGroupList.vue +94 -0
- package/src/lib/components/QImChatGroupList/src/useConfigData.ts +17 -0
- package/src/lib/components/QMqRecordList/index.ts +6 -0
- package/src/lib/components/QMqRecordList/src/QMqRecordList.vue +105 -0
- package/src/lib/components/QMqRecordList/src/useConfigData.ts +18 -0
- package/src/lib/components/QPasswordSecurityPolicy/index.ts +6 -0
- package/src/lib/components/QPasswordSecurityPolicy/src/QPasswordSecurityPolicy.vue +266 -0
- package/src/lib/components/QPermissionDataList/index.ts +6 -0
- package/src/lib/components/QPermissionDataList/src/QPermissionDataAuth.vue +3 -0
- package/src/lib/components/QPermissionDataList/src/QPermissionDataEdit.vue +221 -0
- package/src/lib/components/QPermissionDataList/src/QPermissionDataList.vue +117 -0
- package/src/lib/components/QPermissionDataList/src/form.vue +109 -0
- package/src/lib/components/QPurchaseNoticeList/index.ts +6 -0
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeDetail.vue +147 -0
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeEdit.vue +244 -0
- package/src/lib/components/QPurchaseNoticeList/src/QPurchaseNoticeList.vue +163 -0
- package/src/lib/components/QPurchaseNoticeList/src/useConfigData.ts +22 -0
- package/src/lib/components/QPurchaseNoticeTemplateList/index.ts +6 -0
- package/src/lib/components/QPurchaseNoticeTemplateList/src/QPurchaseNoticeTemplateList.vue +85 -0
- package/src/lib/components/QPurchaseNoticeTemplateList/src/useConfigData.ts +18 -0
- package/src/lib/components/QQuartzJobList/index.ts +6 -0
- package/src/lib/components/QQuartzJobList/src/QQuartzJobList.vue +263 -0
- package/src/lib/components/QQuartzJobList/src/components/JCron.vue +82 -0
- package/src/lib/components/QQuartzJobList/src/components/JCronModal.vue +985 -0
- package/src/lib/components/QQuartzJobList/src/components/QuartzJobModal.vue +176 -0
- package/src/lib/components/QQuartzJobList/src/useConfigData.ts +26 -0
- package/src/lib/components/QRoleList/index.ts +6 -0
- package/src/lib/components/QRoleList/src/QRoleList.vue +288 -0
- package/src/lib/components/QRoleList/src/components/content-header/contentHeader.less +31 -0
- package/src/lib/components/QRoleList/src/components/content-header/index.tsx +42 -0
- package/src/lib/components/QRoleList/src/components/userAuthorization/index.tsx +690 -0
- package/src/lib/components/QRoleList/src/components/userAuthorization/userAuthorization.less +97 -0
- package/src/lib/components/QRoleList/src/useConfigData.ts +33 -0
- package/src/lib/components/QSupplierAccountList/index.ts +6 -0
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountForm.vue +187 -0
- package/src/lib/components/QSupplierAccountList/src/QSupplierAccountList.vue +302 -0
- package/src/lib/components/QSupplierAccountList/src/useConfigData.ts +29 -0
- package/src/lib/components/QUsageList/index.ts +6 -0
- package/src/lib/components/QUsageList/src/QUsageList.vue +82 -0
- package/src/lib/components/QUsageList/src/useConfigData.ts +20 -0
- package/src/lib/components/QcustomConfigEdit/component/AddDictCodeModal.vue +140 -0
- package/src/lib/components/QcustomConfigEdit/component/TempalePreviewModal.vue +100 -0
- package/src/lib/components/QcustomConfigEdit/component/dataFormatComponent.tsx +100 -0
- package/src/lib/components/QcustomConfigEdit/component/regexComponent.tsx +71 -0
- package/src/lib/components/QcustomConfigEdit/index.ts +6 -0
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigEdit.vue +1807 -0
- package/src/lib/components/QcustomConfigEdit/src/QcustomConfigRender.tsx +242 -0
- package/src/lib/components/QcustomConfigEdit/src/types.ts +71 -0
- package/src/lib/components/QcustomConfigEdit/src/useConfigComputed.ts +75 -0
- package/src/lib/components/QcustomConfigEdit/src/useConfigData.ts +123 -0
- package/src/lib/components/QcustomConfigEdit/src/useConfigMethods.ts +117 -0
- package/src/lib/components/QcustomConfigEdit/src/useConstant.ts +301 -0
- package/src/lib/components/QcustomConfigEdit/style/index.less +41 -0
- package/src/lib/components/QcustomConfigList/component/ImportJsonCustomConfig.vue +135 -0
- package/src/lib/components/QcustomConfigList/index.ts +6 -0
- package/src/lib/components/QcustomConfigList/src/QcustomConfigList.vue +268 -0
- package/src/lib/components/QcustomConfigList/src/types.ts +1 -0
- package/src/lib/components/QcustomConfigList/src/useConfigData.ts +23 -0
- package/src/lib/components/QcustomConfigList/src/useMethods.ts +36 -0
- package/src/lib/components/QcustomConfigList/style/index.less +3 -0
- package/src/lib/components/QsysConfigList/index.ts +6 -0
- package/src/lib/components/QsysConfigList/src/QsysConfigList.vue +125 -0
- package/src/lib/components/QsysConfigList/src/types.ts +1 -0
- package/src/lib/components/QsysConfigList/src/useConfigData.ts +17 -0
- package/src/lib/components/QsysConfigList/src/useMethods.ts +11 -0
- package/src/lib/components/QsysConfigList/style/index.less +3 -0
- package/src/lib/components/index.ts +78 -0
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesDetail.vue +49 -0
- package/src/lib/components/integratedNodesList/src/QIntegratedNodesEdit.vue +143 -0
- package/src/lib/components/integratedNodesList/src/index.vue +136 -0
- package/src/lib/components/integratedReportList/src/index.vue +86 -0
- package/src/lib/components/integratedReportSearchList/src/index.vue +66 -0
- package/src/lib/components/loginAbnormalLogList/src/index.vue +50 -0
- package/src/lib/components/loginLogList/src/index.vue +57 -0
- package/src/lib/components/loginSupplierLogList/src/index.vue +63 -0
- package/src/lib/components/operateLogList/src/index.vue +57 -0
- package/src/lib/index.ts +15 -0
- package/src/lib/utils/constant.ts +1 -0
- package/src/lib/utils/global.hook.ts +337 -0
- package/src/lib/utils/global.types.ts +49 -0
- package/src/lib/utils/regexp.ts +143 -0
- package/src/main.ts +11 -0
- package/src/vite-env.d.ts +13 -0
- package/tsconfig.json +24 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +61 -0
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
import { h } from 'vue'
|
|
2
|
+
//组件
|
|
3
|
+
import { message, Modal } from '@qqt-product/ui'
|
|
4
|
+
//ts
|
|
5
|
+
import type { HttpClient, exportFuncParms, decaleHttpClientMethod, someParser } from './global.types'
|
|
6
|
+
|
|
7
|
+
export function useConigApiMethods(qHttp: HttpClient) {
|
|
8
|
+
//全局通用导出方法
|
|
9
|
+
|
|
10
|
+
const handleExport = function ({ actionType = 'post', type = '', exportXlsUrl = '', fileName = '', setPostParms, berforCallback, afterCallback }: exportFuncParms) {
|
|
11
|
+
berforCallback && berforCallback()
|
|
12
|
+
|
|
13
|
+
let params = {}
|
|
14
|
+
if (typeof setPostParms == 'function') {
|
|
15
|
+
params = setPostParms()
|
|
16
|
+
} else {
|
|
17
|
+
params = setPostParms
|
|
18
|
+
}
|
|
19
|
+
const acType = actionType as decaleHttpClientMethod
|
|
20
|
+
qHttp[acType]({
|
|
21
|
+
url: exportXlsUrl,
|
|
22
|
+
params: params,
|
|
23
|
+
data: params,
|
|
24
|
+
responseType: 'blob',
|
|
25
|
+
})
|
|
26
|
+
.then((data) => {
|
|
27
|
+
// responseType为blob的请求,统一获取错误信息
|
|
28
|
+
if (data.type === 'application/json') {
|
|
29
|
+
const fileReader = new FileReader()
|
|
30
|
+
fileReader.onloadend = () => {
|
|
31
|
+
const jsonData = JSON.parse(fileReader.result as string)
|
|
32
|
+
message.error(jsonData.message)
|
|
33
|
+
}
|
|
34
|
+
fileReader.readAsText(data as Blob)
|
|
35
|
+
return
|
|
36
|
+
}
|
|
37
|
+
if (!data) {
|
|
38
|
+
message.error('文件下载失败')
|
|
39
|
+
return
|
|
40
|
+
}
|
|
41
|
+
// if ('msSaveBlob' in window.navigator) {
|
|
42
|
+
// window.navigator.msSaveBlob(new Blob([data as Blob]), fileName + '.xls')
|
|
43
|
+
// } else {
|
|
44
|
+
const url = window.URL.createObjectURL(new Blob([data as Blob]))
|
|
45
|
+
const link = document.createElement('a')
|
|
46
|
+
link.style.display = 'none'
|
|
47
|
+
link.href = url
|
|
48
|
+
link.setAttribute('download', `${fileName}.${type}`)
|
|
49
|
+
document.body.appendChild(link)
|
|
50
|
+
link.click()
|
|
51
|
+
document.body.removeChild(link) //下载完成移除元素
|
|
52
|
+
window.URL.revokeObjectURL(url) //释放掉blob对象
|
|
53
|
+
// }
|
|
54
|
+
})
|
|
55
|
+
.finally(() => {
|
|
56
|
+
// confirmLoading.value = false
|
|
57
|
+
afterCallback && afterCallback()
|
|
58
|
+
})
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const handleCopy = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
|
|
62
|
+
if (url == '') {
|
|
63
|
+
message.error('请配置URL')
|
|
64
|
+
}
|
|
65
|
+
const acType = type as decaleHttpClientMethod
|
|
66
|
+
const params = {
|
|
67
|
+
id: row.id,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
Modal.confirm({
|
|
71
|
+
title: '提示',
|
|
72
|
+
content: h('div', {}, [h('p', `${tip}`)]),
|
|
73
|
+
okText: '确认',
|
|
74
|
+
cancelText: '取消',
|
|
75
|
+
onOk() {
|
|
76
|
+
qHttp[acType]({
|
|
77
|
+
url,
|
|
78
|
+
params: params,
|
|
79
|
+
data: params,
|
|
80
|
+
})
|
|
81
|
+
.then((result) => {
|
|
82
|
+
if (result.success) message.success(result.message)
|
|
83
|
+
else message.error(result.message)
|
|
84
|
+
})
|
|
85
|
+
.finally(() => {
|
|
86
|
+
afterCallback && afterCallback()
|
|
87
|
+
})
|
|
88
|
+
},
|
|
89
|
+
})
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const handleCancel = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
|
|
93
|
+
if (url == '') {
|
|
94
|
+
message.error('请配置URL')
|
|
95
|
+
}
|
|
96
|
+
const acType = type as decaleHttpClientMethod
|
|
97
|
+
const params = {
|
|
98
|
+
id: row.id,
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
Modal.confirm({
|
|
102
|
+
title: '提示',
|
|
103
|
+
content: h('div', {}, [h('p', `${tip}`)]),
|
|
104
|
+
okText: '确认',
|
|
105
|
+
cancelText: '取消',
|
|
106
|
+
onOk() {
|
|
107
|
+
qHttp[acType]({
|
|
108
|
+
url,
|
|
109
|
+
params: params,
|
|
110
|
+
data: params,
|
|
111
|
+
})
|
|
112
|
+
.then((result) => {
|
|
113
|
+
if (result.success) message.success(result.message)
|
|
114
|
+
else message.error(result.message)
|
|
115
|
+
})
|
|
116
|
+
.finally(() => {
|
|
117
|
+
afterCallback && afterCallback()
|
|
118
|
+
})
|
|
119
|
+
},
|
|
120
|
+
})
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
const handleDelete = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
|
|
124
|
+
if (url == '') {
|
|
125
|
+
message.error('请配置URL')
|
|
126
|
+
}
|
|
127
|
+
const acType = type as decaleHttpClientMethod
|
|
128
|
+
const params = {
|
|
129
|
+
id: row.id,
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
Modal.confirm({
|
|
133
|
+
title: '提示',
|
|
134
|
+
content: h('div', {}, [h('p', `${tip}`)]),
|
|
135
|
+
okText: '确认',
|
|
136
|
+
cancelText: '取消',
|
|
137
|
+
onOk() {
|
|
138
|
+
qHttp[acType]({
|
|
139
|
+
url,
|
|
140
|
+
params: params,
|
|
141
|
+
data: params,
|
|
142
|
+
})
|
|
143
|
+
.then((result) => {
|
|
144
|
+
if (result.success) message.success(result.message)
|
|
145
|
+
else message.error(result.message)
|
|
146
|
+
})
|
|
147
|
+
.finally(() => {
|
|
148
|
+
afterCallback && afterCallback()
|
|
149
|
+
})
|
|
150
|
+
},
|
|
151
|
+
})
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const handleUpgrade = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
|
|
155
|
+
if (url == '') {
|
|
156
|
+
message.error('请配置URL')
|
|
157
|
+
}
|
|
158
|
+
const acType = type as decaleHttpClientMethod
|
|
159
|
+
const params = {
|
|
160
|
+
id: row.id,
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
Modal.confirm({
|
|
164
|
+
title: '提示',
|
|
165
|
+
content: h('div', {}, [h('p', `${tip}`)]),
|
|
166
|
+
okText: '确认',
|
|
167
|
+
cancelText: '取消',
|
|
168
|
+
onOk() {
|
|
169
|
+
qHttp[acType]({
|
|
170
|
+
url,
|
|
171
|
+
params: params,
|
|
172
|
+
data: params,
|
|
173
|
+
})
|
|
174
|
+
.then((result) => {
|
|
175
|
+
if (result.success) message.success(result.message)
|
|
176
|
+
else message.error(result.message)
|
|
177
|
+
})
|
|
178
|
+
.finally(() => {
|
|
179
|
+
afterCallback && afterCallback()
|
|
180
|
+
})
|
|
181
|
+
},
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
const handlUniversal = ({ url = '', type, row, afterCallback, tip = '提示' }: someParser) => {
|
|
185
|
+
if (url == '') {
|
|
186
|
+
message.error('请配置URL')
|
|
187
|
+
}
|
|
188
|
+
const acType = type as decaleHttpClientMethod
|
|
189
|
+
const params = {
|
|
190
|
+
id: row.id,
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
Modal.confirm({
|
|
194
|
+
title: '提示',
|
|
195
|
+
content: h('div', {}, [h('p', `${tip}`)]),
|
|
196
|
+
okText: '确认',
|
|
197
|
+
cancelText: '取消',
|
|
198
|
+
onOk() {
|
|
199
|
+
qHttp[acType]({
|
|
200
|
+
url,
|
|
201
|
+
params: params,
|
|
202
|
+
data: params,
|
|
203
|
+
})
|
|
204
|
+
.then((result) => {
|
|
205
|
+
if (result.success) message.success(result.message)
|
|
206
|
+
else message.error(result.message)
|
|
207
|
+
})
|
|
208
|
+
.finally(() => {
|
|
209
|
+
afterCallback && afterCallback()
|
|
210
|
+
})
|
|
211
|
+
},
|
|
212
|
+
})
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
return { handleExport, handleCopy, handleCancel, handleDelete, handleUpgrade, handlUniversal }
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export function useCommonRegexp() {
|
|
219
|
+
const email = /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* 验证手机格式
|
|
223
|
+
*/
|
|
224
|
+
const mobile = /^1[3|4|5|7|8|9]\d{9}$/
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* 验证URL格式
|
|
228
|
+
*/
|
|
229
|
+
const url = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-./?%&=]*)?/
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* 验证ISO类型的日期格式
|
|
233
|
+
*/
|
|
234
|
+
const dateISO = /^\d{4}[/-](0?[1-9]|1[012])[/-](0?[1-9]|[12][0-9]|3[01])$/
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* 验证正整数 + 正小数
|
|
238
|
+
*/
|
|
239
|
+
const interger = /^[1-9]+\d*(\.\d*)?$|^0?\.\d*[1-9]\d*|^0+[1-9]\d*(\.\d*)?$/
|
|
240
|
+
// /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* 验证正整数(包括0)
|
|
244
|
+
*/
|
|
245
|
+
const positiveInterger = /^[0]{0,1}(\d+)$/
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* 验证十进制数字
|
|
249
|
+
*/
|
|
250
|
+
const number = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* 验证整数
|
|
254
|
+
*/
|
|
255
|
+
const digits = /^\d+$/
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* 验证身份证号码
|
|
259
|
+
*/
|
|
260
|
+
const idCard = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* 是否车牌号
|
|
264
|
+
*/
|
|
265
|
+
// 新能源车牌
|
|
266
|
+
const carNo = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/
|
|
267
|
+
// 旧车牌
|
|
268
|
+
const carNo2 = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* 金额,只允许4位小数
|
|
272
|
+
*/
|
|
273
|
+
const amount = /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,4}$/
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* 金额,限制位数为10位数
|
|
277
|
+
*/
|
|
278
|
+
const money = /^[1-9]+?\d{0,9}/
|
|
279
|
+
|
|
280
|
+
/**
|
|
281
|
+
* 中文
|
|
282
|
+
*/
|
|
283
|
+
const chinese = /^[\u4e00-\u9fa5]+$/gi
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* 只能输入字母
|
|
287
|
+
*/
|
|
288
|
+
const letter = /^[a-zA-Z]*$/
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* 只能是字母或者数字
|
|
292
|
+
*/
|
|
293
|
+
const enOrNum = /^[0-9a-zA-Z]*$/g
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* 是否固定电话
|
|
297
|
+
*/
|
|
298
|
+
const landline = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* 是否手机号码或者固定电话
|
|
302
|
+
*/
|
|
303
|
+
const mobileOrLandline = /^1[3|4|5|7|8|9]\d{9}|\d{3,4}-\d{7,8}(-\d{3,4})?$/
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 银联卡
|
|
307
|
+
*/
|
|
308
|
+
const unionPayCard = /^62\d{11,17}$/
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* ip地址
|
|
312
|
+
*/
|
|
313
|
+
const ip = /((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/
|
|
314
|
+
|
|
315
|
+
return {
|
|
316
|
+
email,
|
|
317
|
+
mobile,
|
|
318
|
+
url,
|
|
319
|
+
dateISO,
|
|
320
|
+
interger,
|
|
321
|
+
positiveInterger,
|
|
322
|
+
number,
|
|
323
|
+
digits,
|
|
324
|
+
idCard,
|
|
325
|
+
carNo,
|
|
326
|
+
carNo2,
|
|
327
|
+
amount,
|
|
328
|
+
money,
|
|
329
|
+
chinese,
|
|
330
|
+
letter,
|
|
331
|
+
enOrNum,
|
|
332
|
+
landline,
|
|
333
|
+
unionPayCard,
|
|
334
|
+
ip,
|
|
335
|
+
mobileOrLandline,
|
|
336
|
+
}
|
|
337
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export const INJECT_HTTP = 'http'
|
|
2
|
+
|
|
3
|
+
export interface MapObjectNoneType {
|
|
4
|
+
[pro: string]: any
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface RequestConfig extends MapObjectNoneType {
|
|
8
|
+
baseURL?: string
|
|
9
|
+
headers?: object
|
|
10
|
+
timeout?: number
|
|
11
|
+
url?: string
|
|
12
|
+
params?: object
|
|
13
|
+
data?: object
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface ResponseData extends MapObjectNoneType {
|
|
17
|
+
code?: number
|
|
18
|
+
message?: string
|
|
19
|
+
result?: any
|
|
20
|
+
success?: boolean
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface HttpClient {
|
|
24
|
+
get(config: RequestConfig): Promise<ResponseData>
|
|
25
|
+
post(config: RequestConfig): Promise<ResponseData>
|
|
26
|
+
put(config: RequestConfig): Promise<ResponseData>
|
|
27
|
+
registerModuleAction(config: string, other?: MapObjectNoneType): Promise<ResponseData>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface exportFuncParms {
|
|
31
|
+
fileName: string
|
|
32
|
+
type: string
|
|
33
|
+
actionType: string
|
|
34
|
+
// defineColumnCode: string
|
|
35
|
+
exportXlsUrl: string
|
|
36
|
+
setPostParms(): MapObjectNoneType
|
|
37
|
+
berforCallback?(): void
|
|
38
|
+
afterCallback?(): void
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export interface someParser {
|
|
42
|
+
url: string
|
|
43
|
+
row: MapObjectNoneType
|
|
44
|
+
type: string
|
|
45
|
+
tip: string
|
|
46
|
+
afterCallback?(): void
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type decaleHttpClientMethod = 'get' | 'post'
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 验证电子邮箱格式
|
|
3
|
+
*/
|
|
4
|
+
const email = /[^@ \t\r\n]+@[^@ \t\r\n]+\.[^@ \t\r\n]+/
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* 验证手机格式
|
|
8
|
+
*/
|
|
9
|
+
const mobile = /^1[3|4|5|7|8|9]\d{9}$/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* 验证URL格式
|
|
13
|
+
*/
|
|
14
|
+
const url = /http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w-./?%&=]*)?/
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* 验证ISO类型的日期格式
|
|
18
|
+
*/
|
|
19
|
+
const dateISO = /^\d{4}[/-](0?[1-9]|1[012])[/-](0?[1-9]|[12][0-9]|3[01])$/
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 验证正整数 + 正小数
|
|
23
|
+
*/
|
|
24
|
+
const interger = /^[1-9]+\d*(\.\d*)?$|^0?\.\d*[1-9]\d*|^0+[1-9]\d*(\.\d*)?$/
|
|
25
|
+
// /^[+]{0,1}(\d+)$|^[+]{0,1}(\d+\.\d+)$/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* 验证正整数(包括0)
|
|
29
|
+
*/
|
|
30
|
+
const positiveInterger = /^[0]{0,1}(\d+)$/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 验证十进制数字
|
|
34
|
+
*/
|
|
35
|
+
const number = /^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 验证整数
|
|
39
|
+
*/
|
|
40
|
+
const digits = /^\d+$/
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* 验证身份证号码
|
|
44
|
+
*/
|
|
45
|
+
const idCard = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}([0-9]|X)$/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* 是否车牌号
|
|
49
|
+
*/
|
|
50
|
+
// 新能源车牌
|
|
51
|
+
const carNo = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}(([0-9]{5}[DF]$)|([DF][A-HJ-NP-Z0-9][0-9]{4}$))/
|
|
52
|
+
// 旧车牌
|
|
53
|
+
const carNo2 = /^[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领A-Z]{1}[A-Z]{1}[A-HJ-NP-Z0-9]{4}[A-HJ-NP-Z0-9挂学警港澳]{1}$/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* 金额,只允许4位小数
|
|
57
|
+
*/
|
|
58
|
+
const amount = /^[1-9]\d*(,\d{3})*(\.\d{1,2})?$|^0\.\d{1,4}$/
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 金额,限制位数为10位数
|
|
62
|
+
*/
|
|
63
|
+
const money = /^[1-9]+?\d{0,9}/
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* 中文
|
|
67
|
+
*/
|
|
68
|
+
const chinese = /^[\u4e00-\u9fa5]+$/gi
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* 只能输入字母
|
|
72
|
+
*/
|
|
73
|
+
const letter = /^[a-zA-Z]*$/
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* 只能是字母或者数字
|
|
77
|
+
*/
|
|
78
|
+
const enOrNum = /^[0-9a-zA-Z]*$/g
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 是否固定电话
|
|
82
|
+
*/
|
|
83
|
+
const landline = /^\d{3,4}-\d{7,8}(-\d{3,4})?$/
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* 是否手机号码或者固定电话
|
|
87
|
+
*/
|
|
88
|
+
const mobileOrLandline = /^1[3|4|5|7|8|9]\d{9}|\d{3,4}-\d{7,8}(-\d{3,4})?$/
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 银联卡
|
|
92
|
+
*/
|
|
93
|
+
const unionPayCard = /^62\d{11,17}$/
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* ip地址
|
|
97
|
+
*/
|
|
98
|
+
const ip = /((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})(\.((2(5[0-5]|[0-4]\d))|[0-1]?\d{1,2})){3}/
|
|
99
|
+
|
|
100
|
+
export default {
|
|
101
|
+
email,
|
|
102
|
+
mobile,
|
|
103
|
+
url,
|
|
104
|
+
dateISO,
|
|
105
|
+
interger,
|
|
106
|
+
positiveInterger,
|
|
107
|
+
number,
|
|
108
|
+
digits,
|
|
109
|
+
idCard,
|
|
110
|
+
carNo,
|
|
111
|
+
carNo2,
|
|
112
|
+
amount,
|
|
113
|
+
money,
|
|
114
|
+
chinese,
|
|
115
|
+
letter,
|
|
116
|
+
enOrNum,
|
|
117
|
+
landline,
|
|
118
|
+
unionPayCard,
|
|
119
|
+
ip,
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
export const regExpOptions = [
|
|
123
|
+
{ label: '电子邮箱', value: email.toString(), msg: '请输入电子邮箱' },
|
|
124
|
+
{ label: '手机号码', value: mobile.toString(), msg: '请输入手机号码' },
|
|
125
|
+
{ label: 'URL', value: url.toString(), msg: '请输入URL' },
|
|
126
|
+
{ label: '日期格式(ISO类型)', value: dateISO.toString(), msg: '请输入日期' },
|
|
127
|
+
{ label: '正整数+正小数', value: interger.toString(), msg: '只允许输入正整数或正小数' },
|
|
128
|
+
{ label: '正整数', value: positiveInterger.toString(), msg: '只允许输入正整数' },
|
|
129
|
+
{ label: '数字(十进制)', value: number.toString(), msg: '只允许输入数字' },
|
|
130
|
+
{ label: '整数(十进制)', value: digits.toString(), msg: '只允许输入整数' },
|
|
131
|
+
{ label: '身份证', value: idCard.toString(), msg: '请输入身份证' },
|
|
132
|
+
{ label: '车牌(新能源)', value: carNo.toString(), msg: '请输入新能源车牌号码' },
|
|
133
|
+
{ label: '车牌', value: carNo2.toString(), msg: '请输入车牌号码' },
|
|
134
|
+
{ label: '金额(4位小数)', value: amount.toString(), msg: '请输入4位小数金额' },
|
|
135
|
+
{ label: '金额(10位数)', value: money.toString(), msg: '请输入小于10位数的金额' },
|
|
136
|
+
{ label: '汉字', value: chinese.toString(), msg: '请输入汉字' },
|
|
137
|
+
{ label: '字母', value: letter.toString(), msg: '请输入字母' },
|
|
138
|
+
{ label: '字母或数字', value: enOrNum.toString(), msg: '请输入字母或数字' },
|
|
139
|
+
{ label: '固定电话', value: landline.toString(), msg: '请输入固定电话' },
|
|
140
|
+
{ label: '手机号码或者固定电话', value: mobileOrLandline.toString(), msg: '请输入手机号码或者固定电话' },
|
|
141
|
+
{ label: '银联卡', value: unionPayCard.toString(), msg: '请输入银联卡' },
|
|
142
|
+
{ label: 'ip地址', value: ip.toString(), msg: '请输入ip地址' },
|
|
143
|
+
]
|
package/src/main.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { createApp } from 'vue'
|
|
2
|
+
import { qqtSysPageModules } from '@/lib/index'
|
|
3
|
+
import { antd, qqtUI, setupVxeTable } from '@qqt-product/ui'
|
|
4
|
+
import App from '@/App.vue'
|
|
5
|
+
import '@qqt-product/ui/dist/style.css'
|
|
6
|
+
const app = createApp(App)
|
|
7
|
+
app.use(antd)
|
|
8
|
+
setupVxeTable(app)
|
|
9
|
+
app.use(qqtUI())
|
|
10
|
+
app.use(qqtSysPageModules())
|
|
11
|
+
app.mount('#app')
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
2
|
+
import type { GlobalPageLayoutTypes } from '@qqt-product/ui'
|
|
3
|
+
declare module '*.vue' {
|
|
4
|
+
import type { DefineComponent } from 'vue'
|
|
5
|
+
// eslint-disable-next-line @typescript-eslint/ban-types, @typescript-eslint/no-explicit-any
|
|
6
|
+
const component: DefineComponent<{}, {}, any>
|
|
7
|
+
export default component
|
|
8
|
+
}
|
|
9
|
+
declare module 'vue' {
|
|
10
|
+
interface ComponentCustomProperties {
|
|
11
|
+
instance: GlobalPageLayoutTypes.Expose
|
|
12
|
+
}
|
|
13
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"noImplicitAny": false,
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"moduleResolution": "Node",
|
|
8
|
+
"strict": true,
|
|
9
|
+
"jsx": "preserve",
|
|
10
|
+
"sourceMap": true,
|
|
11
|
+
"resolveJsonModule": true,
|
|
12
|
+
"isolatedModules": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"lib": ["ESNext", "DOM"],
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"declaration": true,
|
|
17
|
+
"baseUrl": "./",
|
|
18
|
+
"paths": {
|
|
19
|
+
"@/*": ["src/*"]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"include": ["src/**/*.ts", "src/**/*.d.ts", "src/**/*.tsx", "src/**/*.vue", "../apps/v6/src/setting/vxe-table/feature.ts"],
|
|
23
|
+
"references": [{ "path": "./tsconfig.node.json" }]
|
|
24
|
+
}
|
package/vite.config.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as path from 'path'
|
|
2
|
+
import { defineConfig } from 'vite'
|
|
3
|
+
import vue from '@vitejs/plugin-vue'
|
|
4
|
+
import vueJsx from '@vitejs/plugin-vue-jsx'
|
|
5
|
+
import { resolve } from 'path'
|
|
6
|
+
import dts from 'vite-plugin-dts'
|
|
7
|
+
import vitePluginEslint from 'vite-plugin-eslint'
|
|
8
|
+
// https://vitejs.dev/config/
|
|
9
|
+
export default defineConfig({
|
|
10
|
+
resolve: {
|
|
11
|
+
alias: {
|
|
12
|
+
'@': path.resolve(__dirname, 'src'),
|
|
13
|
+
'@/lib': path.resolve(__dirname, 'src/lib'),
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
server: {
|
|
17
|
+
proxy: {
|
|
18
|
+
'/els': {
|
|
19
|
+
target: 'https://v5sit-micro.51qqt.com',
|
|
20
|
+
ws: false,
|
|
21
|
+
changeOrigin: true,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
build: {
|
|
26
|
+
// 打包文件目录
|
|
27
|
+
outDir: 'dist',
|
|
28
|
+
// 压缩
|
|
29
|
+
minify: true,
|
|
30
|
+
// css 分离
|
|
31
|
+
// cssCodeSplit: true,
|
|
32
|
+
lib: {
|
|
33
|
+
// 入口文件
|
|
34
|
+
entry: resolve(__dirname, './src/lib/index.ts'),
|
|
35
|
+
name: 'ui',
|
|
36
|
+
fileName: (format) => `index.${format}.js`,
|
|
37
|
+
},
|
|
38
|
+
rollupOptions: {
|
|
39
|
+
// 忽略打包的文件
|
|
40
|
+
external: ['vue', 'ant-design-vue', 'vxe-table', 'xe-utils', '@qqt-product/api', '@qqt-product/icons', '@qqt-product/ui', '@qqt-product/utils'],
|
|
41
|
+
output: {
|
|
42
|
+
sourcemap: false,
|
|
43
|
+
globals: {
|
|
44
|
+
vue: 'Vue',
|
|
45
|
+
'ant-design-vue': 'AntDesignVue',
|
|
46
|
+
'vxe-table': 'VxeTable',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
vue(),
|
|
53
|
+
vueJsx(),
|
|
54
|
+
dts({
|
|
55
|
+
outputDir: 'dist',
|
|
56
|
+
staticImport: true,
|
|
57
|
+
insertTypesEntry: true,
|
|
58
|
+
}),
|
|
59
|
+
vitePluginEslint(),
|
|
60
|
+
],
|
|
61
|
+
})
|