adtec-core-package 2.2.1 → 2.2.2
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/package.json
CHANGED
|
@@ -140,7 +140,6 @@ interface Props<T extends IpageDataQuery, E extends IMdmEmployee> {
|
|
|
140
140
|
defalutQueryParam?: any
|
|
141
141
|
multiple?: boolean
|
|
142
142
|
showOrgInfo?: boolean
|
|
143
|
-
defaultSelectUserCodes?: string
|
|
144
143
|
}
|
|
145
144
|
|
|
146
145
|
const props = withDefaults(defineProps<Props<IMdmEmployeeQuery, IMdmEmployee>>(), {
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-flex>
|
|
3
|
+
<component :is="h(VxeGrid, { ...$attrs, ref: changeRef }, $slots)"></component>
|
|
4
|
+
</el-flex>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script setup lang="ts">
|
|
8
|
+
//@ts-ignore
|
|
9
|
+
import { components, initVxeTableInPage } from 'adtec-core-package/src/config/VxeTableConfig'
|
|
10
|
+
// 导入默认的语言
|
|
11
|
+
import { defineComponent, getCurrentInstance, h } from 'vue'
|
|
12
|
+
const { VxeGrid } = components
|
|
13
|
+
defineComponent({
|
|
14
|
+
components: {
|
|
15
|
+
VxeGrid,
|
|
16
|
+
},
|
|
17
|
+
})
|
|
18
|
+
const { renderComponent = { enableElementPlus: true, enableExcel: false, enablePdf: false } } =
|
|
19
|
+
defineProps<{
|
|
20
|
+
renderComponent?: {
|
|
21
|
+
enableElementPlus?: boolean
|
|
22
|
+
enableExcel?: boolean
|
|
23
|
+
enablePdf?: boolean
|
|
24
|
+
}
|
|
25
|
+
}>()
|
|
26
|
+
|
|
27
|
+
initVxeTableInPage(renderComponent.enableExcel,renderComponent.enablePdf)
|
|
28
|
+
|
|
29
|
+
const vm = getCurrentInstance()
|
|
30
|
+
|
|
31
|
+
const changeRef = (exposed: any) => {
|
|
32
|
+
vm && (vm.exposed = exposed)
|
|
33
|
+
}
|
|
34
|
+
</script>
|
|
35
|
+
|
|
36
|
+
<style scoped lang="scss"></style>
|