cnhis-design-vue 0.3.8-beta → 3.0.0

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +59 -0
  2. package/README.md +22 -22
  3. package/env.d.ts +22 -22
  4. package/es/big-table/index.css +785 -7
  5. package/es/big-table/index.js +1862 -1450
  6. package/es/button-print/index.css +811 -9
  7. package/es/button-print/index.js +705 -774
  8. package/es/drag-layout/index.css +1044 -12
  9. package/es/drag-layout/index.js +705 -774
  10. package/es/grid/index.css +1045 -12
  11. package/es/grid/index.js +32 -40
  12. package/es/index.css +1044 -12
  13. package/es/index.js +1869 -1455
  14. package/package.json +8 -3
  15. package/packages/big-table/index.ts +8 -3
  16. package/packages/big-table/src/BigTable.vue +55 -312
  17. package/packages/big-table/src/FieldSet.vue +477 -0
  18. package/packages/big-table/src/assets/style/table-base.less +77 -81
  19. package/packages/big-table/src/assets/style/table-global.less +0 -8
  20. package/packages/big-table/src/components/TextOverTooltip.vue +1 -1
  21. package/packages/big-table/src/components/edit-form/edit-select-table.vue +13 -7
  22. package/packages/big-table/src/components/edit-form/edit-select.vue +24 -3
  23. package/packages/big-table/src/hooks/useEdit.ts +73 -0
  24. package/packages/big-table/src/hooks/useFormat.ts +1 -1
  25. package/packages/big-table/src/hooks/useNestTable.ts +1 -1
  26. package/packages/big-table/src/hooks/useTableParse.ts +3 -3
  27. package/packages/big-table/src/utils.ts +1 -1
  28. package/packages/button-print/index.ts +3 -3
  29. package/packages/button-print/src/ButtonPrint.vue +2 -2
  30. package/packages/button-print/src/components/IdentityVerification.vue +1 -1
  31. package/packages/drag-layout/index.ts +3 -3
  32. package/packages/drag-layout/src/DragLayout.vue +2 -2
  33. package/packages/grid/index.ts +3 -3
  34. package/packages/grid/src/Grid.tsx +1 -1
  35. package/src/core/{create.ts → create.js} +1 -1
  36. package/src/utils/{vexutils.ts → vexutils.js} +44 -44
  37. package/tsconfig.node.json +8 -8
  38. package/packages/big-table/src/components/SvgIcon.vue +0 -49
  39. package/packages/button-print/src/utils/crypto.js +0 -25
package/CHANGELOG.md ADDED
@@ -0,0 +1,59 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
+
5
+ ## 3.0.0 (2022-05-12)
6
+
7
+
8
+ ### Features
9
+
10
+ * 表格行编辑 ([aaf7351](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/aaf7351741518ee984741d40aa2db572682510ed))
11
+ * 部分结构、方法优化 ([28f904e](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/28f904e57025943e6352829ab69ff21a65d7b07f))
12
+ * 打包路径配置 ([7e5e83c](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/7e5e83cf0664c9eaa2493e6e5d57d2bbabe0b705))
13
+ * 分离BigTable的state、emit、补充BigTable方法 ([6b3ff34](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/6b3ff3431cbd4411d9446bb0736248d04cba930f))
14
+ * 更改ico图标 ([cc67da5](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/cc67da541a09def8ae5b242d7632fda9cd9ea00f))
15
+ * 删除BigTable无用的expose方法 ([f1de86d](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/f1de86d9d2c4487e8aae2e0566dff91b6cf90ec0))
16
+ * 提取BigTable中部分工具方法 ([c7ddcbd](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/c7ddcbd4df2cf71120a971950e413af2a899712a))
17
+ * 完善表格编辑功能 ([f25a92a](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/f25a92ac552837cd6560701ec1b9956e4151da4e))
18
+ * 完善BigTable公共组件 ([7bae845](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/7bae8454bc2a48d0d03072bbe184b089296c5f21))
19
+ * 新增baseTable组件demo ([613bb40](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/613bb409e14825958ea83f8622ec952f89cd5d26))
20
+ * 新增drag-layout ([e7da534](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/e7da53454ffe3607cd7fb19fa610a49a6ccf596e))
21
+ * 新增vxe-table组件,待完善 ([cff14e7](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/cff14e7a4e5244409cfd5b2e203a59a65afb607b))
22
+ * 优化部分antd组件为naive ([b56ef53](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/b56ef538001a3e6915de50580312fb47757a114b))
23
+ * 优化打包配置 ([9f6f1b1](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/9f6f1b166848412eb6806bbafcf7209c44c68cdf))
24
+ * 优化首页 ([739cc5f](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/739cc5f55ebd3cf96540afedf09f85314f3f801d))
25
+ * 增加搜索防抖以及部分字段配置更改 ([a4e8542](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/a4e85423289e7c2e0c76f96a0f5878e7138fbfa4))
26
+ * 增加css打包压缩 ([9ba9069](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/9ba9069cdfc554c00fcbbe688f1bfa5f96b09c0e))
27
+ * 增加grid 表格基础组件,待完善 ([eab1bbe](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/eab1bbeef45329204811c682ec0444d1a3f02578))
28
+ * big-table ([77bef18](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/77bef18e12fe086b53abbb04edfe699ef0efc1d5))
29
+ * button-print ([0c8ca04](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/0c8ca049957994413c156da37480220fe08e90c3))
30
+ * DragLayout ([2798c8c](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/2798c8c6b971bd4cbc1dbd7698523d256b95c890))
31
+ * edit-form ([0791618](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/07916183d1bb97b794aa49b84182508161850f04))
32
+ * edit-input ([5fbb95d](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/5fbb95dae4352eb8f2dd98f973f0944ac33c969a))
33
+ * edit-select ([1750e2c](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/1750e2c6c10a44a94c393c3059476574d2aa9210))
34
+ * edit-table新增行与删除 ([c34fc17](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/c34fc1770666216b4732493bfee9dceeccab4062))
35
+ * EditForm ([ee200a5](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/ee200a530112688d754dd523a5598e4a235360e6))
36
+ * editForm部分功能 ([53554b5](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/53554b593d874784414ccf81edd452dc39416105))
37
+ * FieldSet字段设置 ([66e7d8f](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/66e7d8f914128a9e550a94a643a0ec3434d1bd68))
38
+ * grid的methods ([1166857](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/11668571c8896daed763458ed92f03331aa553c5))
39
+ * grid全局引用vxe-table,按需引用会报错 ([d90e8b8](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/d90e8b8ea909337b54267978b109da20c47deed4))
40
+ * ignore ([8553407](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/85534077bbb99b7740c37e03be3aa98c852be2b8))
41
+ * prop interface和打印账号 ([6bc9446](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/6bc9446d0f26f21bff086b6bace1be2c6bc08532))
42
+ * useBatchEditing ([d5f6261](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/d5f626182735cb356ed6e9a70d0895754f2c4aab))
43
+ * useNestTable,优化useBatchEditing ([327d5f3](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/327d5f3aad20f5df324a8eb289894e8a57f8c7a0))
44
+ * vue3版组件库初次架构 ([212ca49](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/212ca4956f5dd045cfe417bab34812dc05883c27))
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * .vue格式文件withDefaults类型定义只能在内部处理? ([2830aa4](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/2830aa4d72d5ddac3447c700cfa6b5476d4dafa4))
50
+ * 测试优化button-print ([c01ec55](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/c01ec55fe0c2e811c86ada2679b6004fdbaeacd0))
51
+ * 打包报错 ([e290116](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/e2901164e27811464e3fabbc1e894e98607b33a5))
52
+ * 打包报错unknown word ([be20dc4](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/be20dc436b93fe5b5a28103bc28bf73f7b65e98c))
53
+ * 打包后bigtable控制台警告需要使用函数式插槽以及deep样式失效 ([7ac2404](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/7ac240426072f93fe7bef254b96518be100d5a01))
54
+ * 更改portal用法为teleport ([993f855](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/993f85500081852aff685e8c7b0b35de002e1da7))
55
+ * 修复优化rollup打包相关 ([872ed5a](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/872ed5a6dec17e14e77988e86772b8c95dd5d433))
56
+ * handleEdit事件报错 ([71e6d5e](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/71e6d5e59e0277f8a0b74dcd3854ffafdac779f0))
57
+ * hover事件包含select组件失效 ([65e64d5](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/65e64d534d6642b0264d3613032c2dc25a407307))
58
+ * import_meta.globEager、vueJsxCompat打包报错 ([b384e27](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/b384e2712227418cf86c9b72b2c145d4e69f6cc5))
59
+ * slots打包编译成属性 ([b12bb40](http://120.25.59.85:3000/cnhis-frontend/cnhis-design-vue/commit/b12bb40c21be0dce1e7786058ae2863997638f8d))
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
- # Vue 3 + Typescript + Vite
2
-
3
- This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
-
5
- ## Recommended IDE Setup
6
-
7
- - [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
-
9
- ## Type Support For `.vue` Imports in TS
10
-
11
- Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
12
-
13
- ## 使用
14
- ```JavaScript
15
- import { createApp } from "vue";
16
- import App from "./App.vue";
17
- import cui from "cnhis-design-vue";
18
- import "cnhis-design-vue/es/index.css";
19
-
20
- const app = createApp(App);
21
- app.use(cui);
22
- app.mount("#app");
1
+ # Vue 3 + Typescript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and Typescript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ ## Recommended IDE Setup
6
+
7
+ - [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=johnsoncodehk.volar)
8
+
9
+ ## Type Support For `.vue` Imports in TS
10
+
11
+ Since TypeScript cannot handle type information for `.vue` imports, they are shimmed to be a generic Vue component type by default. In most cases this is fine if you don't really care about component prop types outside of templates. However, if you wish to get actual prop types in `.vue` imports (for example to get props validation when using manual `h(...)` calls), you can enable Volar's `.vue` type support plugin by running `Volar: Switch TS Plugin on/off` from VSCode command palette.
12
+
13
+ ## 使用
14
+ ```JavaScript
15
+ import { createApp } from "vue";
16
+ import App from "./App.vue";
17
+ import cui from "cnhis-design-vue";
18
+ import "cnhis-design-vue/es/index.css";
19
+
20
+ const app = createApp(App);
21
+ app.use(cui);
22
+ app.mount("#app");
23
23
  ```
package/env.d.ts CHANGED
@@ -1,22 +1,22 @@
1
- /// <reference types="vite/client" />
2
-
3
- interface ImportMetaEnv {
4
- readonly VITE_APP_TYPE: string
5
- // 更多环境变量...
6
- }
7
-
8
- interface ImportMeta {
9
- readonly env: ImportMetaEnv
10
- }
11
-
12
- declare module '*.vue' {
13
- import type { App, defineComponent } from 'vue'
14
- // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
15
- // // const component: DefineComponent<{}, {}, any>
16
- const component: ReturnType<typeof defineComponent> & {
17
- install(app: App): void;
18
- };
19
- export default component
20
- }
21
-
22
- declare module 'qs'
1
+ /// <reference types="vite/client" />
2
+
3
+ interface ImportMetaEnv {
4
+ readonly VITE_APP_TYPE: string
5
+ // 更多环境变量...
6
+ }
7
+
8
+ interface ImportMeta {
9
+ readonly env: ImportMetaEnv
10
+ }
11
+
12
+ declare module '*.vue' {
13
+ import type { App, defineComponent } from 'vue'
14
+ // // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/ban-types
15
+ // // const component: DefineComponent<{}, {}, any>
16
+ const component: ReturnType<typeof defineComponent> & {
17
+ install(app: App): void;
18
+ };
19
+ export default component
20
+ }
21
+
22
+ declare module 'qs'