adtec-core-package 2.2.7 → 2.2.9

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/eslint.config.js CHANGED
@@ -1,11 +1,9 @@
1
-
2
- // eslint.config.js
3
1
  import pluginVue from 'eslint-plugin-vue';
4
2
  import vueTsEslintConfig from '@vue/eslint-config-typescript';
5
3
  import skipFormatting from '@vue/eslint-config-prettier/skip-formatting';
6
-
7
4
  export default [
8
5
  {
6
+ name: 'app/files-to-lint',
9
7
  files: ['**/*.{js,ts,mts,tsx,vue}'],
10
8
  rules: {
11
9
  'no-console': 'off',
@@ -15,14 +13,28 @@ export default [
15
13
  'no-restricted-syntax': 'off',
16
14
  'no-plusplus': 'off',
17
15
  'no-param-reassign': 'off',
18
- '@typescript-eslint/no-explicit-any': 'warn',
19
- },
20
- languageOptions: {
21
- parser: '@typescript-eslint/parser',
16
+ '@typescript-eslint/no-explicit-any': 'off',
17
+ parserOptions: {
18
+ parser: '@typescript-eslint/parser',
19
+ },
22
20
  },
23
21
  },
24
22
  {
23
+ name: 'app/files-to-ignore',
25
24
  ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
25
+ rules: {
26
+ 'no-console': 'off',
27
+ 'no-debugger': 'off',
28
+ 'no-undef': 'off',
29
+ 'no-unused-vars': 'off',
30
+ 'no-restricted-syntax': 'off',
31
+ 'no-plusplus': 'off',
32
+ 'no-param-reassign': 'off',
33
+ '@typescript-eslint/no-explicit-any': 'off',
34
+ parserOptions: {
35
+ parser: '@typescript-eslint/parser',
36
+ },
37
+ },
26
38
  },
27
39
  {
28
40
  files: ['**/*.{ts,mts,tsx,vue}'],
@@ -34,11 +46,9 @@ export default [
34
46
  'no-restricted-syntax': 'off',
35
47
  'no-plusplus': 'off',
36
48
  'no-param-reassign': 'off',
37
- '@typescript-eslint/no-explicit-any': 'warn',
38
- },
39
- languageOptions: {
40
- parser: '@typescript-eslint/parser',
49
+ '@typescript-eslint/no-explicit-any': 'off',
41
50
  },
51
+ ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
42
52
  },
43
53
  ...pluginVue.configs['flat/essential'],
44
54
  ...vueTsEslintConfig(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adtec-core-package",
3
- "version": "2.2.7",
3
+ "version": "2.2.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,5 +1,8 @@
1
1
  import { VxeGrid } from 'vxe-table'
2
- import { VxeUI } from 'vxe-pc-ui'
2
+ //@ts-ignore
3
+ import {
4
+ VxeUI,
5
+ VxeTooltip } from 'vxe-pc-ui'
3
6
 
4
7
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element'
5
8
  import '@vxe-ui/plugin-render-element/dist/style.css'
@@ -15,15 +18,19 @@ import zhCN from 'vxe-table/lib/locale/lang/zh-CN'
15
18
  /**
16
19
  * 局部初始化 vxe-table 插件与配置
17
20
  */
18
- export function initVxeTableInPage(enableExcel: boolean = false, enablePdf: boolean = false) {
21
+ export function initVxeTableInPage(
22
+ enableExcel: boolean = false,
23
+ enablePdf: boolean = false,
24
+ enableElementPlus: boolean = true,
25
+ ) {
19
26
  // 设置语言
20
27
  VxeUI.setI18n('zh-CN', zhCN)
21
28
  VxeUI.setLanguage('zh-CN')
22
-
29
+ VxeUI.component(VxeTooltip)
23
30
  // 局部注册插件
24
- VxeUI.use(VxeUIPluginRenderElement)
25
- if (enableExcel) VxeUI.use(VxeUIPluginExportXLSX, { ExcelJS })
26
- if (enablePdf) VxeUI.use(VxeUIPluginExportPDF, { jsPDF })
31
+ enableElementPlus && VxeUI.use(VxeUIPluginRenderElement)
32
+ enableExcel && VxeUI.use(VxeUIPluginExportXLSX, { ExcelJS })
33
+ enablePdf && VxeUI.use(VxeUIPluginExportPDF, { jsPDF })
27
34
 
28
35
  // 设置表格配置(可复制你在 VxeTableConfig.ts 中的配置)
29
36
  VxeUI.setConfig({
@@ -4,6 +4,7 @@
4
4
  * 创建时间: 2024/9/4 上午11:30
5
5
  * 修改时间: 2024/9/4 上午11:30
6
6
  */
7
+
7
8
  import type { MessageViewType, MessageType } from '../interface/enum/MessageEnum.ts'
8
9
 
9
10
  /**