@dhccmobile/vue3-lo-form 1.1.41 → 2.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 (165) hide show
  1. package/.env.local.bak +6 -6
  2. package/.eslintrc.js +28 -28
  3. package/README.md +70 -62
  4. package/babel.config.js +3 -3
  5. package/dist/vue3-lo-form.common.js +7700 -107778
  6. package/dist/vue3-lo-form.common.js.map +1 -1
  7. package/dist/vue3-lo-form.css +1 -1
  8. package/dist/vue3-lo-form.umd.js +7773 -107851
  9. package/dist/vue3-lo-form.umd.js.map +1 -1
  10. package/dist/vue3-lo-form.umd.min.js +1 -56
  11. package/dist/vue3-lo-form.umd.min.js.map +1 -1
  12. package/package.json +65 -61
  13. package/public/index.html +17 -17
  14. package/public/js/pinyin.ts +101 -101
  15. package/src/App.vue +741 -741
  16. package/src/components/form/DvForm.vue +642 -642
  17. package/src/components/form/DvFormLayout.vue +1569 -1569
  18. package/src/components/form/StretchText.vue +90 -90
  19. package/src/components/index.ts +3 -3
  20. package/src/constants/config/form-template.config.ts +32 -32
  21. package/src/constants/config/form.config.ts +4 -4
  22. package/src/constants/config/storage.config.ts +4 -4
  23. package/src/constants/encode-assets/svg.ts +11 -11
  24. package/src/constants/enum/builtIn-label.enum.ts +5 -5
  25. package/src/constants/enum/cache-type.enum.ts +7 -7
  26. package/src/constants/enum/control-format-type.enum.ts +9 -9
  27. package/src/constants/enum/dynamic-option-type.enum.ts +6 -6
  28. package/src/constants/enum/form-bus-attr.enum.ts +8 -8
  29. package/src/constants/enum/form-field-class.enum.ts +7 -7
  30. package/src/constants/enum/form-field-type.enum.ts +25 -25
  31. package/src/constants/enum/form-type.enum.ts +5 -5
  32. package/src/constants/enum/index.ts +19 -19
  33. package/src/constants/enum/lateral-arrangement.enum.ts +9 -9
  34. package/src/constants/enum/money-unit.enum.ts +6 -6
  35. package/src/constants/enum/option-type.enum.ts +5 -5
  36. package/src/constants/enum/submitted-type.enum.ts +32 -31
  37. package/src/constants/enum/support-upload-type.enum.ts +5 -5
  38. package/src/constants/enum/switch.enum.ts +5 -5
  39. package/src/constants/enum/upload-type.enum.ts +17 -17
  40. package/src/constants/enum/validate-rules.enum.ts +25 -25
  41. package/src/constants/enum/validate-status.enum.ts +8 -8
  42. package/src/constants/enum/vertical-arrangement.enum.ts +7 -7
  43. package/src/constants/enum/zoom-type.ts +6 -6
  44. package/src/constants/index.ts +3 -3
  45. package/src/core/FormApi.ts +1238 -1238
  46. package/src/core/index.ts +1 -1
  47. package/src/domain/AbstractControl.ts +6 -6
  48. package/src/domain/Control.ts +14 -14
  49. package/src/domain/CustomFormat.ts +6 -6
  50. package/src/domain/DesForm.ts +48 -48
  51. package/src/domain/DesFormControl.ts +241 -241
  52. package/src/domain/DesFormLayout.ts +51 -51
  53. package/src/domain/FieldChangeHistory.ts +9 -9
  54. package/src/domain/FormConfig.ts +15 -15
  55. package/src/domain/FormControl.ts +125 -125
  56. package/src/domain/FormEnum.ts +9 -9
  57. package/src/domain/FormGroup.ts +42 -42
  58. package/src/domain/FormRestfulResponse.ts +6 -6
  59. package/src/domain/ProvideInjectData.ts +10 -10
  60. package/src/domain/SysDictDetail.ts +38 -38
  61. package/src/domain/SysDictInfo.ts +40 -40
  62. package/src/domain/SysDictTreeDetail.ts +52 -52
  63. package/src/domain/index.ts +12 -12
  64. package/src/filtres/amount-capitalization.filter.ts +154 -147
  65. package/src/filtres/extract-options.filter.ts +53 -53
  66. package/src/filtres/generate-grid-column-end.filter.ts +22 -22
  67. package/src/filtres/generate-grid-template-columns.filter.ts +24 -24
  68. package/src/filtres/switch-enum-convert.filter.ts +18 -18
  69. package/src/filtres/zoom-multiple.filter.ts +32 -32
  70. package/src/index.ts +73 -73
  71. package/src/main.ts +17 -17
  72. package/src/services/api.service.ts +73 -73
  73. package/src/services/clean-local-forage.service.ts +58 -58
  74. package/src/services/date-format.service.ts +74 -74
  75. package/src/services/dict-local-forage.service.ts +58 -58
  76. package/src/services/form-bean-utils.service.ts +41 -41
  77. package/src/services/form-local-forage.service.ts +59 -59
  78. package/src/services/form-tools.service.ts +739 -659
  79. package/src/services/form-tree-node-convert.service.ts +240 -240
  80. package/src/services/form-validate.service.ts +103 -103
  81. package/src/services/index.ts +9 -9
  82. package/src/services/router.service.ts +96 -96
  83. package/src/services/validate-generator.service.ts +710 -710
  84. package/src/shims-vue.d.ts +6 -6
  85. package/src/store/dict.store.ts +63 -63
  86. package/src/store/form.store.ts +32 -32
  87. package/src/store/index.ts +2 -2
  88. package/src/styles/datePicker.scss +125 -125
  89. package/src/styles/index.scss +195 -195
  90. package/src/styles/theme1.scss +277 -277
  91. package/src/styles/theme2.scss +376 -376
  92. package/src/styles/themes.scss +9 -9
  93. package/src/types/vfForm.ts +11 -11
  94. package/tsconfig.json +40 -40
  95. package/types/components/index.d.ts +3 -3
  96. package/types/constants/config/form-template.config.d.ts +30 -30
  97. package/types/constants/config/form.config.d.ts +4 -4
  98. package/types/constants/config/storage.config.d.ts +4 -4
  99. package/types/constants/encode-assets/svg.d.ts +5 -5
  100. package/types/constants/enum/builtIn-label.enum.d.ts +7 -7
  101. package/types/constants/enum/cache-type.enum.d.ts +15 -15
  102. package/types/constants/enum/control-format-type.enum.d.ts +23 -23
  103. package/types/constants/enum/dynamic-option-type.enum.d.ts +11 -11
  104. package/types/constants/enum/form-bus-attr.enum.d.ts +19 -19
  105. package/types/constants/enum/form-field-class.enum.d.ts +18 -18
  106. package/types/constants/enum/form-field-type.enum.d.ts +111 -111
  107. package/types/constants/enum/form-type.enum.d.ts +11 -11
  108. package/types/constants/enum/index.d.ts +19 -19
  109. package/types/constants/enum/lateral-arrangement.enum.d.ts +23 -23
  110. package/types/constants/enum/money-unit.enum.d.ts +15 -15
  111. package/types/constants/enum/option-type.enum.d.ts +11 -11
  112. package/types/constants/enum/submitted-type.enum.d.ts +115 -111
  113. package/types/constants/enum/support-upload-type.enum.d.ts +11 -11
  114. package/types/constants/enum/switch.enum.d.ts +11 -11
  115. package/types/constants/enum/upload-type.enum.d.ts +59 -59
  116. package/types/constants/enum/validate-rules.enum.d.ts +2 -2
  117. package/types/constants/enum/validate-status.enum.d.ts +2 -2
  118. package/types/constants/enum/vertical-arrangement.enum.d.ts +21 -21
  119. package/types/constants/enum/zoom-type.d.ts +15 -15
  120. package/types/constants/index.d.ts +3 -3
  121. package/types/core/FormApi.d.ts +376 -376
  122. package/types/core/index.d.ts +1 -1
  123. package/types/domain/AbstractControl.d.ts +5 -5
  124. package/types/domain/Control.d.ts +13 -13
  125. package/types/domain/CustomFormat.d.ts +5 -5
  126. package/types/domain/DesForm.d.ts +32 -32
  127. package/types/domain/DesFormControl.d.ts +160 -160
  128. package/types/domain/DesFormLayout.d.ts +33 -33
  129. package/types/domain/FieldChangeHistory.d.ts +9 -9
  130. package/types/domain/FormConfig.d.ts +15 -15
  131. package/types/domain/FormControl.d.ts +60 -60
  132. package/types/domain/FormEnum.d.ts +10 -10
  133. package/types/domain/FormGroup.d.ts +27 -27
  134. package/types/domain/FormRestfulResponse.d.ts +6 -6
  135. package/types/domain/ProvideInjectData.d.ts +10 -10
  136. package/types/domain/SysDictDetail.d.ts +24 -24
  137. package/types/domain/SysDictInfo.d.ts +26 -26
  138. package/types/domain/SysDictTreeDetail.d.ts +34 -34
  139. package/types/domain/index.d.ts +12 -12
  140. package/types/filtres/amount-capitalization.filter.d.ts +7 -7
  141. package/types/filtres/extract-options.filter.d.ts +13 -13
  142. package/types/filtres/generate-grid-column-end.filter.d.ts +11 -11
  143. package/types/filtres/generate-grid-template-columns.filter.d.ts +11 -11
  144. package/types/filtres/switch-enum-convert.filter.d.ts +2 -2
  145. package/types/filtres/zoom-multiple.filter.d.ts +3 -3
  146. package/types/index.d.ts +13 -13
  147. package/types/main.d.ts +2 -2
  148. package/types/services/api.service.d.ts +25 -25
  149. package/types/services/clean-local-forage.service.d.ts +28 -28
  150. package/types/services/date-format.service.d.ts +21 -21
  151. package/types/services/dict-local-forage.service.d.ts +28 -28
  152. package/types/services/form-bean-utils.service.d.ts +23 -23
  153. package/types/services/form-local-forage.service.d.ts +28 -28
  154. package/types/services/form-tools.service.d.ts +153 -144
  155. package/types/services/form-tree-node-convert.service.d.ts +104 -104
  156. package/types/services/form-validate.service.d.ts +32 -32
  157. package/types/services/index.d.ts +9 -9
  158. package/types/services/router.service.d.ts +40 -40
  159. package/types/services/validate-generator.service.d.ts +154 -154
  160. package/types/store/dict.store.d.ts +29 -29
  161. package/types/store/form.store.d.ts +17 -17
  162. package/types/store/index.d.ts +2 -2
  163. package/types/types/vfForm.d.ts +10 -10
  164. package/vue.config.js +38 -29
  165. package/dhccmobile-vue3-lo-form-1.1.41.tgz +0 -0
package/.env.local.bak CHANGED
@@ -1,6 +1,6 @@
1
- // 编译环境
2
- NODE_ENV = development
3
- // 应用编号
4
- VUE_APP_APP_ID = 1009549605007003648
5
- // 开发平台配置数据接口
6
- VUE_APP_LOONG_CONFIGURE_DATA_INTERFACE_API = http://10.7.114.80:31135
1
+ // 编译环境
2
+ NODE_ENV = development
3
+ // 应用编号
4
+ VUE_APP_APP_ID = 1009549605007003648
5
+ // 开发平台配置数据接口
6
+ VUE_APP_LOONG_CONFIGURE_DATA_INTERFACE_API = http://10.7.114.80:31135
package/.eslintrc.js CHANGED
@@ -1,28 +1,28 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- extends: ["plugin:vue/essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint"],
7
- parserOptions: {
8
- ecmaVersion: 2020,
9
- },
10
- rules: {
11
- "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
12
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
13
- "prettier/prettier": [
14
- "error",
15
- {
16
- printWidth: 400,
17
- endOfLine: "auto",
18
- },
19
- ],
20
- "@typescript-eslint/no-non-null-assertion": "off",
21
- "@typescript-eslint/no-empty-function": "off",
22
- "@typescript-eslint/no-explicit-any": "off",
23
- "@typescript-eslint/no-this-alias": 0,
24
- "@typescript-eslint/camelcase": 0,
25
- "@typescript-eslint/no-var-requires": 0,
26
- "vue/no-v-model-argument": "off",
27
- },
28
- };
1
+ module.exports = {
2
+ root: true,
3
+ env: {
4
+ node: true,
5
+ },
6
+ extends: ["plugin:vue/essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint"],
7
+ parserOptions: {
8
+ ecmaVersion: 2020,
9
+ },
10
+ rules: {
11
+ "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
12
+ "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
13
+ "prettier/prettier": [
14
+ "error",
15
+ {
16
+ printWidth: 400,
17
+ endOfLine: "auto",
18
+ },
19
+ ],
20
+ "@typescript-eslint/no-non-null-assertion": "off",
21
+ "@typescript-eslint/no-empty-function": "off",
22
+ "@typescript-eslint/no-explicit-any": "off",
23
+ "@typescript-eslint/no-this-alias": 0,
24
+ "@typescript-eslint/camelcase": 0,
25
+ "@typescript-eslint/no-var-requires": 0,
26
+ "vue/no-v-model-argument": "off",
27
+ },
28
+ };
package/README.md CHANGED
@@ -1,62 +1,70 @@
1
- # 内部
2
-
3
- ## 简介
4
- 动态表单-支持Vue3.0版-PC端-插件
5
-
6
- ## 目录结构
7
- ├── build // 构建相关
8
- ├── src // 源代码
9
- ├── assets // 资源目录,这里的资源会被wabpack构建
10
- ├── css // 全局样式
11
- │ ├── icons // 项目所有 svg icons
12
- │ │ │ ├── iconfont // 阿里巴巴矢量图标库
13
- │ │ │ └── font-awesome // font-awesom矢量图标库
14
- │ │ ├── img // 图片
15
- │ │ ├── json // json数据文件
16
- │ │ ├── lang // 国际化 language
17
- └── plugins // 离线插件
18
- │ ├── components // 小组件,公共组件
19
- │ ├── constants // 全局常量
20
- │ │ ├── api // 后端接口资源文件
21
- │ │ ├── config // 配置常量
22
- │ │ ├── enum // 枚举类
23
- │ │ └── types // 类型声明文件
24
- │ ├── directives // 全局指令
25
- ├── filtres // 全局过滤器
26
- │ ├── model // 模型
27
- ├── domain // 自定义模型
28
- │ │ └── entity // 实体模型,和后端数据交互对象一致
29
- │ ├── router // 路由
30
- │ ├── service // 服务/工具类
31
- ├── store // 数据缓存工具类
32
- │ ├── views // 页面级组件
33
- ├── app-management // 应用管理
34
- ├── ...... // 其他业务模块
35
- │ │ └── user-management // 用户管理
36
- ├── App.vue // 根组件
37
- └── main.ts // 入口js文件 加载组件 初始化等
38
- ├── public // 纯静态资源,不会被wabpack构建
39
- │ ├── favicon.ico // favicon图标
40
- └── index.html // 入口页面
41
- ├── .browserslistrc // 目标浏览器配置表
42
- ├── .env.* // 多环境配置
43
- ├── eslintrc.js // eslint 配置项
44
- ├── .gitignore // git 忽略项
45
- ├── babel.config.js // babel编译配置
46
- ├── package.json // npm包配置文件,里面定义了项目的npm脚本,依赖包等信息
47
- ├── package-lock.json // 描述 node_modules 文件中所有模块的版本信息,模块来源及依赖的小版本信息
48
- ├── README.md // 项目介绍
49
- ├── tsconfig.json // typescript编译配置
50
- └── vue.config.js // vue 编译配置
51
-
52
- ## 引入插件
53
- | 名称 | 描述 | 版本 | 文档地址 |
54
- | ---- | ---- | ---- | ---- |
55
- | vue | 构建数据驱动的 web 界面的渐进式框架 | 3.2.36 | https://cn.vuejs.org/v2/guide/
56
- | core-js | 提供了es5、es6的polyfills | 3.6.5 | https://github.com/zloirock/core-js#readme
57
- | vue-router | 前端路由 | 4.0.0-0 | https://router.vuejs.org/zh/installation.html
58
-
59
- ## 延伸阅读
60
- * [风格指南](https://cn.vuejs.org/v2/style-guide/)
61
- * [类风格组件语法](https://class-component.vuejs.org/)
62
- * [Vue CLI](https://cli.vuejs.org/zh/guide/)
1
+ # 内部
2
+
3
+ ## 简介
4
+ 动态表单-支持Vue3.0版-PC端-插件
5
+
6
+ ### 更新日志
7
+ ### 2.0.0
8
+ 1.优化打包,减小打包后的体积
9
+ 2.添加节假日查询开关,默认 false。 `formToolsService.setSupHoliday(true)`
10
+ 3.添加表单disabled自定义背景色, 默认 #f0f0f0。 `formToolsService.setFormDisabledColor("#eee")`
11
+ ### 1.1.42
12
+ 修复金额转大写逻辑错误问题
13
+
14
+ ## 目录结构
15
+ ├── build // 构建相关
16
+ ├── src // 源代码
17
+ ├── assets // 资源目录,这里的资源会被wabpack构建
18
+ ├── css // 全局样式
19
+ ├── icons // 项目所有 svg icons
20
+ │ │ ├── iconfont // 阿里巴巴矢量图标库
21
+ │ │ └── font-awesome // font-awesom矢量图标库
22
+ │ │ ├── img // 图片
23
+ │ │ ├── json // json数据文件
24
+ ├── lang // 国际化 language
25
+ └── plugins // 离线插件
26
+ │ ├── components // 小组件,公共组件
27
+ │ ├── constants // 全局常量
28
+ │ │ ├── api // 后端接口资源文件
29
+ ├── config // 配置常量
30
+ ├── enum // 枚举类
31
+ └── types // 类型声明文件
32
+ │ ├── directives // 全局指令
33
+ ├── filtres // 全局过滤器
34
+ ├── model // 模型
35
+ │ │ ├── domain // 自定义模型
36
+ └── entity // 实体模型,和后端数据交互对象一致
37
+ ├── router // 路由
38
+ ├── service // 服务/工具类
39
+ │ ├── store // 数据缓存工具类
40
+ ├── views // 页面级组件
41
+ │ ├── app-management // 应用管理
42
+ │ │ │ ├── ...... // 其他业务模块
43
+ │ └── user-management // 用户管理
44
+ ├── App.vue // 根组件
45
+ └── main.ts // 入口js文件 加载组件 初始化等
46
+ ├── public // 纯静态资源,不会被wabpack构建
47
+ ├── favicon.ico // favicon图标
48
+ └── index.html // 入口页面
49
+ ├── .browserslistrc // 目标浏览器配置表
50
+ ├── .env.* // 多环境配置
51
+ ├── eslintrc.js // eslint 配置项
52
+ ├── .gitignore // git 忽略项
53
+ ├── babel.config.js // babel编译配置
54
+ ├── package.json // npm包配置文件,里面定义了项目的npm脚本,依赖包等信息
55
+ ├── package-lock.json // 描述 node_modules 文件中所有模块的版本信息,模块来源及依赖的小版本信息
56
+ ├── README.md // 项目介绍
57
+ ├── tsconfig.json // typescript编译配置
58
+ └── vue.config.js // vue 编译配置
59
+
60
+ ## 引入插件
61
+ | 名称 | 描述 | 版本 | 文档地址 |
62
+ | ---- | ---- | ---- | ---- |
63
+ | vue | 构建数据驱动的 web 界面的渐进式框架 | 3.2.36 | https://cn.vuejs.org/v2/guide/
64
+ | core-js | 提供了es5、es6的polyfills | 3.6.5 | https://github.com/zloirock/core-js#readme
65
+ | vue-router | 前端路由 | 4.0.0-0 | https://router.vuejs.org/zh/installation.html
66
+
67
+ ## 延伸阅读
68
+ * [风格指南](https://cn.vuejs.org/v2/style-guide/)
69
+ * [类风格组件语法](https://class-component.vuejs.org/)
70
+ * [Vue CLI](https://cli.vuejs.org/zh/guide/)
package/babel.config.js CHANGED
@@ -1,3 +1,3 @@
1
- module.exports = {
2
- presets: ["@vue/cli-plugin-babel/preset"],
3
- };
1
+ module.exports = {
2
+ presets: ["@vue/cli-plugin-babel/preset"],
3
+ };