adtec-core-package 0.3.3 → 0.3.4
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.en.md +36 -36
- package/package.json +58 -56
- package/src/api/BasicApi.ts +17 -17
- package/src/api/DocumentApi.ts +18 -18
- package/src/api/SysDictCacheApi.ts +26 -26
- package/src/api/SysUserApi.ts +35 -35
- package/src/api/framework.ts +12 -12
- package/src/assets/style/ant.scss +19 -19
- package/src/assets/style/index.less +180 -180
- package/src/components/ElFlex/ElFlex.vue +297 -297
- package/src/components/Search/ElSearch.vue +150 -154
- package/src/components/Table/ElTableColumnEdit.vue +218 -218
- package/src/components/Title/ElTitle.vue +49 -49
- package/src/components/autoToolTip/ElAutoToolTip.vue +61 -61
- package/src/components/baseEcharts/index.vue +48 -0
- package/src/components/business/userSelect.vue +412 -412
- package/src/components/upload/FileView.vue +158 -158
- package/src/components/upload/FileViewComponents.vue +57 -57
- package/src/config/ElementPlusConfig.ts +95 -95
- package/src/css/elementUI/autocomplete.scss +89 -89
- package/src/css/elementUI/common/var.scss +1549 -1549
- package/src/css/elementUI/date-picker/picker.scss +219 -219
- package/src/css/elementUI/drawer.scss +164 -164
- package/src/css/elementUI/table.scss +694 -694
- package/src/css/elementUI/tabs.scss +659 -659
- package/src/directives/vKeydown.ts +93 -93
- package/src/hooks/useDictHooks.ts +76 -76
- package/src/hooks/useEcharts.ts +58 -0
- package/src/hooks/useFileView.ts +34 -34
- package/src/hooks/useMessageHooks.ts +132 -132
- package/src/hooks/useResetRefHooks.ts +18 -18
- package/src/interface/BaseEntity.ts +28 -28
- package/src/interface/IMdmDept.ts +82 -82
- package/src/interface/IOrgDeptInfo.ts +12 -12
- package/src/interface/ISysDictDataCacheVo.ts +46 -46
- package/src/interface/ISysDictType.ts +37 -37
- package/src/interface/ISysMenuDataVo.ts +22 -22
- package/src/interface/ISysMenuInfoVo.ts +83 -83
- package/src/interface/ISysMenuOperationVo.ts +21 -21
- package/src/interface/ISysUploadFiles.ts +16 -16
- package/src/interface/ISysUserInfo.ts +70 -70
- package/src/interface/IUserPermissionVo.ts +34 -34
- package/src/interface/Message.ts +69 -69
- package/src/interface/PageData.ts +17 -17
- package/src/interface/ResponseData.ts +16 -16
- package/src/interface/dictMapType.ts +11 -11
- package/src/interface/enum/MessageEnum.ts +41 -41
- package/src/mixin/globalMixin.ts +4 -1
- package/src/packages/index.ts +18 -18
- package/src/packages/text.vue +13 -13
- package/src/plugins/echartsConfig.ts +80 -0
- package/src/plugins/plugins.ts +12 -12
- package/src/stores/dictStore.ts +20 -20
- package/src/stores/messageStore.ts +49 -49
- package/src/stores/storeConfig.ts +23 -23
- package/src/stores/userInfoStore.ts +31 -31
- package/src/utils/AxiosConfig.ts +216 -216
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<!--创建人 胡啸东-->
|
|
2
|
+
<!--说明: index-->
|
|
3
|
+
<!--创建时间: 2024/11/4 下午4:52-->
|
|
4
|
+
<!--修改时间: 2024/11/4 下午4:52-->
|
|
5
|
+
<template>
|
|
6
|
+
<div
|
|
7
|
+
ref="echartsRef"
|
|
8
|
+
:style="{
|
|
9
|
+
width: width,
|
|
10
|
+
height: height,
|
|
11
|
+
}"
|
|
12
|
+
/>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script lang="ts" setup>
|
|
16
|
+
import { onMounted, ref, watch, type PropType } from 'vue'
|
|
17
|
+
import { useEcharts, type EChartsCoreOption } from '../../hooks/useEcharts.ts' // 引入hooks
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
options: { type: Object as PropType<EChartsCoreOption>, required: true },
|
|
20
|
+
height: { type: String, default: '100%' },
|
|
21
|
+
width: { type: String, default: '100%' },
|
|
22
|
+
themeColors: { type: Array as PropType<string[]>, default: () => [] },
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const echartsRef = ref()
|
|
26
|
+
|
|
27
|
+
const { setOptions, initCharts } = useEcharts(echartsRef, props.options)
|
|
28
|
+
|
|
29
|
+
watch(
|
|
30
|
+
() => props.options,
|
|
31
|
+
(nVal) => {
|
|
32
|
+
let targetOptions: EChartsCoreOption = {}
|
|
33
|
+
if (props.themeColors && props.themeColors.length > 0) {
|
|
34
|
+
targetOptions = { ...nVal }
|
|
35
|
+
targetOptions.color = props.themeColors
|
|
36
|
+
} else {
|
|
37
|
+
targetOptions = { ...nVal }
|
|
38
|
+
}
|
|
39
|
+
setOptions(targetOptions)
|
|
40
|
+
},
|
|
41
|
+
{ deep: true },
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
onMounted(() => {
|
|
45
|
+
initCharts()
|
|
46
|
+
})
|
|
47
|
+
defineExpose({ setOptions, initCharts })
|
|
48
|
+
</script>
|