Skip to content

Commit 2ec6978

Browse files
committed
chore: update optimize
1 parent 2b605bd commit 2ec6978

File tree

4 files changed

+29
-16
lines changed

4 files changed

+29
-16
lines changed

build/vite/optimize.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ const include = [
1616
'crypto-js',
1717
'cropperjs',
1818
'lodash-es',
19-
'vxe-table',
2019
'nprogress',
2120
'animate.css',
21+
'vxe-table',
2222
'vxe-table/es/style',
23+
'vxe-table/lib/locale/lang/zh-CN',
24+
'vxe-table/lib/locale/lang/en-US',
2325
'web-storage-cache',
2426
'@iconify/iconify',
2527
'@vueuse/core',
@@ -61,7 +63,11 @@ const include = [
6163
'element-plus/es/components/menu/style/index',
6264
'element-plus/es/components/sub-menu/style/index',
6365
'element-plus/es/components/menu-item/style/index',
64-
'element-plus/es/components/option/style/index'
66+
'element-plus/es/components/option/style/index',
67+
'element-plus/es/components/dropdown/style/index',
68+
'element-plus/es/components/dropdown-menu/style/index',
69+
'element-plus/es/components/dropdown-item/style/index',
70+
'element-plus/es/components/skeleton/style/index'
6571
]
6672

6773
const exclude = ['@iconify/json']

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@wangeditor/editor-for-vue": "^5.1.10",
3333
"@zxcvbn-ts/core": "^2.2.1",
3434
"animate.css": "^4.1.1",
35-
"axios": "^1.3.2",
35+
"axios": "^1.3.3",
3636
"bpmn-js-token-simulation": "^0.10.0",
3737
"camunda-bpmn-moddle": "^7.0.1",
3838
"cropperjs": "^1.5.13",
@@ -66,9 +66,9 @@
6666
"xml-js": "^1.6.11"
6767
},
6868
"devDependencies": {
69-
"@commitlint/cli": "^17.4.2",
70-
"@commitlint/config-conventional": "^17.4.2",
71-
"@iconify/json": "^2.2.20",
69+
"@commitlint/cli": "^17.4.3",
70+
"@commitlint/config-conventional": "^17.4.3",
71+
"@iconify/json": "^2.2.21",
7272
"@intlify/unplugin-vue-i18n": "^0.8.2",
7373
"@purge-icons/generated": "^0.9.0",
7474
"@types/intro.js": "^5.1.0",
@@ -77,28 +77,28 @@
7777
"@types/nprogress": "^0.2.0",
7878
"@types/qrcode": "^1.5.0",
7979
"@types/qs": "^6.9.7",
80-
"@typescript-eslint/eslint-plugin": "^5.51.0",
81-
"@typescript-eslint/parser": "^5.51.0",
80+
"@typescript-eslint/eslint-plugin": "^5.52.0",
81+
"@typescript-eslint/parser": "^5.52.0",
8282
"@vitejs/plugin-legacy": "^4.0.1",
8383
"@vitejs/plugin-vue": "^4.0.0",
8484
"@vitejs/plugin-vue-jsx": "^3.0.0",
8585
"autoprefixer": "^10.4.13",
8686
"bpmn-js": "^8.9.0",
8787
"bpmn-js-properties-panel": "^0.46.0",
8888
"consola": "^2.15.3",
89-
"eslint": "^8.33.0",
89+
"eslint": "^8.34.0",
9090
"eslint-config-prettier": "^8.6.0",
9191
"eslint-define-config": "^1.15.0",
9292
"eslint-plugin-prettier": "^4.2.1",
9393
"eslint-plugin-vue": "^9.9.0",
94-
"lint-staged": "^13.1.1",
94+
"lint-staged": "^13.1.2",
9595
"postcss": "^8.4.21",
9696
"postcss-html": "^1.5.0",
9797
"postcss-scss": "^4.0.6",
9898
"prettier": "^2.8.4",
9999
"rimraf": "^4.1.2",
100100
"rollup": "^3.15.0",
101-
"sass": "^1.58.0",
101+
"sass": "^1.58.1",
102102
"stylelint": "^15.1.0",
103103
"stylelint-config-html": "^1.1.0",
104104
"stylelint-config-prettier": "^9.0.5",

src/types/auto-components.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,22 +51,29 @@ declare module '@vue/runtime-core' {
5151
ElIcon: typeof import('element-plus/es')['ElIcon']
5252
ElImageViewer: typeof import('element-plus/es')['ElImageViewer']
5353
ElInput: typeof import('element-plus/es')['ElInput']
54+
ElInputNumber: typeof import('element-plus/es')['ElInputNumber']
5455
ElLink: typeof import('element-plus/es')['ElLink']
5556
ElOption: typeof import('element-plus/es')['ElOption']
5657
ElPagination: typeof import('element-plus/es')['ElPagination']
5758
ElPopover: typeof import('element-plus/es')['ElPopover']
59+
ElRadio: typeof import('element-plus/es')['ElRadio']
60+
ElRadioButton: typeof import('element-plus/es')['ElRadioButton']
61+
ElRadioGroup: typeof import('element-plus/es')['ElRadioGroup']
5862
ElRow: typeof import('element-plus/es')['ElRow']
5963
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
6064
ElSelect: typeof import('element-plus/es')['ElSelect']
6165
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
6266
ElSwitch: typeof import('element-plus/es')['ElSwitch']
6367
ElTable: typeof import('element-plus/es')['ElTable']
6468
ElTableColumn: typeof import('element-plus/es')['ElTableColumn']
69+
ElTableV2: typeof import('element-plus/es')['ElTableV2']
6570
ElTabPane: typeof import('element-plus/es')['ElTabPane']
6671
ElTabs: typeof import('element-plus/es')['ElTabs']
6772
ElTag: typeof import('element-plus/es')['ElTag']
6873
ElTooltip: typeof import('element-plus/es')['ElTooltip']
74+
ElTransfer: typeof import('element-plus/es')['ElTransfer']
6975
ElTree: typeof import('element-plus/es')['ElTree']
76+
ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect']
7077
ElUpload: typeof import('element-plus/es')['ElUpload']
7178
Error: typeof import('./../components/Error/src/Error.vue')['default']
7279
FlowCondition: typeof import('./../components/bpmnProcessDesigner/package/penal/flow-condition/FlowCondition.vue')['default']

src/views/bpm/processInstance/detail.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,13 +201,13 @@ import * as ActivityApi from '@/api/bpm/activity'
201201
import { formatPast2 } from '@/utils/formatTime'
202202
import { setConfAndFields2 } from '@/utils/formCreate'
203203
// import { OptionAttrs } from '@form-create/element-ui/types/config'
204-
import { ApiAttrs } from '@form-create/element-ui/types/config'
204+
import type { ApiAttrs } from '@form-create/element-ui/types/config'
205205
import { useUserStore } from '@/store/modules/user'
206206
207207
const { query } = useRoute() // 查询参数
208208
const message = useMessage() // 消息弹窗
209209
const { t } = useI18n() // 国际化
210-
const { proxy } = getCurrentInstance()
210+
const { proxy } = getCurrentInstance() as any
211211
212212
// ========== 审批信息 ==========
213213
const id = query.id as unknown as number
@@ -404,9 +404,9 @@ const getDetail = () => {
404404
data.formVariables
405405
)
406406
nextTick().then(() => {
407-
fApi.value?.fapi.btn.show(false)
408-
fApi.value?.fapi.resetBtn.show(false)
409-
fApi.value?.fapi.disabled(true)
407+
fApi.value?.btn.show(false)
408+
fApi.value?.resetBtn.show(false)
409+
fApi.value?.disabled(true)
410410
})
411411
}
412412

0 commit comments

Comments
 (0)