zhytech-ui 1.0.0 → 1.0.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.
Files changed (65) hide show
  1. package/dist/src/components/drag/draggable/src/vuedraggable.d.ts +74 -0
  2. package/dist/src/components/dynamicFilter/index.vue.d.ts +134 -0
  3. package/dist/src/components/dynamicForm/components/advanced/groupLayout/index.d.ts +57 -0
  4. package/dist/src/components/dynamicForm/components/advanced/groupLayout/propsEditor.vue.d.ts +8 -0
  5. package/dist/src/components/dynamicForm/components/advanced/groupLayout/renderer.vue.d.ts +67 -0
  6. package/dist/src/components/dynamicForm/components/advanced/index.d.ts +4 -0
  7. package/dist/src/components/dynamicForm/components/advanced/upload/index.d.ts +62 -0
  8. package/dist/src/components/dynamicForm/components/advanced/upload/propsEditor.vue.d.ts +8 -0
  9. package/dist/src/components/dynamicForm/components/advanced/upload/renderer.vue.d.ts +79 -0
  10. package/dist/src/components/dynamicForm/components/advanced/uploadImage/index.d.ts +62 -0
  11. package/dist/src/components/dynamicForm/components/advanced/uploadImage/propsEditor.vue.d.ts +8 -0
  12. package/dist/src/components/dynamicForm/components/advanced/uploadImage/renderer.vue.d.ts +79 -0
  13. package/dist/src/components/dynamicForm/components/application/employee/index.d.ts +113 -0
  14. package/dist/src/components/dynamicForm/components/application/employee/propsEditor.vue.d.ts +13 -0
  15. package/dist/src/components/dynamicForm/components/application/employee/renderer.vue.d.ts +100 -0
  16. package/dist/src/components/dynamicForm/components/application/grade/hooks/useGrade.d.ts +8 -0
  17. package/dist/src/components/dynamicForm/components/application/grade/index.d.ts +92 -0
  18. package/dist/src/components/dynamicForm/components/application/grade/propsEditor.vue.d.ts +2 -0
  19. package/dist/src/components/dynamicForm/components/application/grade/renderer.vue.d.ts +98 -0
  20. package/dist/src/components/dynamicForm/components/application/index.d.ts +4 -0
  21. package/dist/src/components/dynamicForm/components/application/post/index.d.ts +93 -0
  22. package/dist/src/components/dynamicForm/components/application/post/propsEditor.vue.d.ts +2 -0
  23. package/dist/src/components/dynamicForm/components/application/post/renderer.vue.d.ts +100 -0
  24. package/dist/src/components/dynamicForm/components/base/checkbox/index.d.ts +103 -0
  25. package/dist/src/components/dynamicForm/components/base/checkbox/propsEditor.vue.d.ts +21 -0
  26. package/dist/src/components/dynamicForm/components/base/checkbox/renderer.vue.d.ts +98 -0
  27. package/dist/src/components/dynamicForm/components/base/index.d.ts +5 -0
  28. package/dist/src/components/dynamicForm/components/base/input/index.d.ts +107 -0
  29. package/dist/src/components/dynamicForm/components/base/input/propsEditor.vue.d.ts +2 -0
  30. package/dist/src/components/dynamicForm/components/base/input/renderer.vue.d.ts +113 -0
  31. package/dist/src/components/dynamicForm/components/base/label/index.d.ts +24 -0
  32. package/dist/src/components/dynamicForm/components/base/label/renderer.vue.d.ts +13 -0
  33. package/dist/src/components/dynamicForm/components/base/radio/index.d.ts +103 -0
  34. package/dist/src/components/dynamicForm/components/base/radio/propsEditor.vue.d.ts +21 -0
  35. package/dist/src/components/dynamicForm/components/base/radio/renderer.vue.d.ts +98 -0
  36. package/dist/src/components/dynamicForm/components/batchAddDialog.vue.d.ts +33 -0
  37. package/dist/src/components/dynamicForm/components/common/componentAdvancedPropsEditor.vue.d.ts +2 -0
  38. package/dist/src/components/dynamicForm/components/common/componentBasePropsEditor.vue.d.ts +21 -0
  39. package/dist/src/components/dynamicForm/components/common/componentDesigner.vue.d.ts +24 -0
  40. package/dist/src/components/dynamicForm/components/common/componentRenderer.vue.d.ts +53 -0
  41. package/dist/src/components/dynamicForm/components/common/conditionInput.vue.d.ts +112 -0
  42. package/dist/src/components/dynamicForm/components/common/dictionaryBinder.vue.d.ts +71 -0
  43. package/dist/src/components/dynamicForm/components/common/formPropsEditor.vue.d.ts +12 -0
  44. package/dist/src/components/dynamicForm/components/common/toolbar.vue.d.ts +60 -0
  45. package/dist/src/components/dynamicForm/components/componentType.d.ts +4 -0
  46. package/dist/src/components/dynamicForm/formDesigner.vue.d.ts +173 -0
  47. package/dist/src/components/dynamicForm/formRenderer.vue.d.ts +170 -0
  48. package/dist/src/components/dynamicForm/index.d.ts +8 -0
  49. package/dist/src/components/dynamicForm/types/batchAddComponentParam.d.ts +37 -0
  50. package/dist/src/components/dynamicForm/types/componentAttribute/advanced/groupLayoutAttribute.d.ts +29 -0
  51. package/dist/src/components/dynamicForm/types/componentAttribute/advanced/uploadAttribute.d.ts +25 -0
  52. package/dist/src/components/dynamicForm/types/componentAttribute/application/employeeAttribute.d.ts +29 -0
  53. package/dist/src/components/dynamicForm/types/componentAttribute/application/gradeAttribute.d.ts +45 -0
  54. package/dist/src/components/dynamicForm/types/componentAttribute/application/postAttribute.d.ts +29 -0
  55. package/dist/src/components/dynamicForm/types/componentAttribute/base/checkboxAttribute.d.ts +21 -0
  56. package/dist/src/components/dynamicForm/types/componentAttribute/base/inputAttribute.d.ts +21 -0
  57. package/dist/src/components/dynamicForm/types/componentAttribute/base/radioAttribute.d.ts +13 -0
  58. package/dist/src/components/dynamicForm/types/componentAttribute/baseAttribute.d.ts +73 -0
  59. package/dist/src/components/dynamicForm/types/componentAttribute/editAttribute.d.ts +61 -0
  60. package/dist/src/components/dynamicForm/types/componentAttribute/index.d.ts +11 -0
  61. package/dist/src/components/dynamicForm/types/documentView.d.ts +101 -0
  62. package/dist/src/components/dynamicForm/types/formAttribute.d.ts +84 -0
  63. package/dist/src/components/dynamicForm/types/uploadOption.d.ts +22 -0
  64. package/dist/src/components/index.d.ts +8 -0
  65. package/package.json +71 -58
@@ -0,0 +1,84 @@
1
+ /**
2
+ * @description: 动态表单属性类型
3
+ */
4
+ export interface formAttribute {
5
+ /**
6
+ * 表单ID
7
+ */
8
+ formID?: string;
9
+ /**
10
+ * 表单名称
11
+ */
12
+ formName: string;
13
+ /**
14
+ * 表单类型 1:问卷表单;2:试卷表单
15
+ */
16
+ formType: string;
17
+ /**
18
+ * 标题位置
19
+ */
20
+ labelPosition: string;
21
+ /**
22
+ * 标题宽度
23
+ */
24
+ labelWidth: number;
25
+ /**
26
+ * 大小
27
+ */
28
+ size: string;
29
+ /**
30
+ * 栅格数量
31
+ */
32
+ column: number;
33
+ }
34
+ /**
35
+ * @description: 动态表单数据参数类型
36
+ */
37
+ export interface dynamicFormData<T extends formAttribute | Record<string, any>> {
38
+ /**
39
+ * 表单属性
40
+ */
41
+ props: T;
42
+ /**
43
+ * 表单中组件集合
44
+ */
45
+ components: Record<string, any>[];
46
+ /**
47
+ * 表单数据
48
+ */
49
+ datas: Record<string, any>;
50
+ }
51
+ /**
52
+ * @description: 动态表单字典表参数类型
53
+ */
54
+ export interface dictionaryItem {
55
+ /**
56
+ * 字典项目ID
57
+ */
58
+ value: string;
59
+ /**
60
+ * 字典项目名称
61
+ */
62
+ label: string;
63
+ /**
64
+ * 字典项目来源
65
+ */
66
+ itemSourceType?: string;
67
+ /**
68
+ * 字典项目来源
69
+ */
70
+ itemSourceTypeName?: string;
71
+ }
72
+ /**
73
+ * @description: 动态表单字典表参数类型
74
+ */
75
+ export interface dictionaryData {
76
+ /**
77
+ * 字典项目集合
78
+ */
79
+ dictionaryItems: dictionaryItem[];
80
+ /**
81
+ * 字典项目来源映射map
82
+ */
83
+ souceTypeMap: Map<string, string>;
84
+ }
@@ -0,0 +1,22 @@
1
+ import { documentView } from './documentView';
2
+ /**
3
+ * @description: 上传文件参数
4
+ */
5
+ export interface uploadOption {
6
+ /**
7
+ * 上传文件api接口
8
+ */
9
+ serverApi: string;
10
+ /**
11
+ * 上传文件的请求头部
12
+ */
13
+ headers?: Record<string, any>;
14
+ /**
15
+ * 是否自动上传
16
+ */
17
+ autoUpload: boolean;
18
+ /**
19
+ * 上传文件时附加参数,如果autoUpload=true,必须传此参数
20
+ */
21
+ params?: documentView;
22
+ }
@@ -0,0 +1,8 @@
1
+ import { conditionType, dynamicFilter } from './dynamicFilter/index';
2
+ import { batchAddComponentParam, documentView, dynamicFormData, formAttribute, GetFormTemplateMethod, uploadOption, formDesigner, formRenderer } from './dynamicForm/index';
3
+ export type { conditionType, dynamicFormData, formAttribute, uploadOption, documentView, batchAddComponentParam, GetFormTemplateMethod };
4
+ export { formDesigner, formRenderer, dynamicFilter };
5
+ declare const _default: {
6
+ install: (app: any, options?: Record<string, any> | undefined) => void;
7
+ };
8
+ export default _default;
package/package.json CHANGED
@@ -1,58 +1,71 @@
1
- {
2
- "name": "zhytech-ui",
3
- "version": "1.0.0",
4
- "private": false,
5
- "scripts": {
6
- "dev": "vite",
7
- "build": "vite build",
8
- "preview": "vite preview",
9
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
10
- "format": "prettier --write src/"
11
- },
12
- "files": [
13
- "dist"
14
- ],
15
- "main": "./dist/zhytech-ui.umd.js",
16
- "module": "./dist/zhytech-ui.es.js",
17
- "exports": {
18
- ".": {
19
- "import": "./dist/zhytech-ui.es.js",
20
- "require": "./dist/zhytech-ui.umd.js"
21
- }
22
- },
23
- "volta": {
24
- "node": "18.16.0"
25
- },
26
- "dependencies": {
27
- "@vueuse/core": "^10.4.1",
28
- "autoprefixer": "^10.4.14",
29
- "element-plus": "^2.6.1",
30
- "postcss-loader": "^7.3.3",
31
- "postcss-pxtorem": "^6.0.0",
32
- "sortablejs": "^1.15.0",
33
- "vue": "3.4.0",
34
- "vue-router": "^4.2.0"
35
- },
36
- "devDependencies": {
37
- "@rushstack/eslint-patch": "^1.2.0",
38
- "@tsconfig/node18": "^2.0.1",
39
- "@types/node": "^18.16.8",
40
- "@vitejs/plugin-vue": "^4.2.3",
41
- "@vue/eslint-config-prettier": "^7.1.0",
42
- "@vue/eslint-config-typescript": "^11.0.3",
43
- "@vue/tsconfig": "^0.4.0",
44
- "eslint": "^8.39.0",
45
- "eslint-plugin-vue": "^9.11.0",
46
- "node-sass": "8.0.0",
47
- "prettier": "^2.8.8",
48
- "sass": "^1.62.1",
49
- "sass-loader": "^13.3.1",
50
- "style-loader": "^3.3.3",
51
- "terser": "^5.18.0",
52
- "typescript": "~5.0.4",
53
- "unplugin-auto-import": "^0.16.4",
54
- "unplugin-vue-components": "^0.25.1",
55
- "vite": "^4.3.5",
56
- "vue-tsc": "^1.6.4"
57
- }
58
- }
1
+ {
2
+ "name": "zhytech-ui",
3
+ "version": "1.0.2",
4
+ "private": false,
5
+ "scripts": {
6
+ "dev": "vite",
7
+ "build": "vite build",
8
+ "preview": "vite preview",
9
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
10
+ "format": "prettier --write src/"
11
+ },
12
+ "files": [
13
+ "dist"
14
+ ],
15
+ "description": "基于Vue3 + ElementPlus封装的公司内部组件库",
16
+ "author": "SJZ",
17
+ "keywords": [
18
+ "zhytech-ui",
19
+ "ui",
20
+ "form",
21
+ "vue"
22
+ ],
23
+ "license": "MIT",
24
+ "main": "./dist/zhytech-ui.umd.js",
25
+ "module": "./dist/zhytech-ui.es.js",
26
+ "exports": {
27
+ ".": {
28
+ "import": "./dist/zhytech-ui.es.js",
29
+ "require": "./dist/zhytech-ui.umd.js"
30
+ }
31
+ },
32
+ "publishConfig": {
33
+ "registry": "https://registry.npmjs.org/"
34
+ },
35
+ "volta": {
36
+ "node": "18.16.0"
37
+ },
38
+ "dependencies": {
39
+ "@vueuse/core": "^10.4.1",
40
+ "autoprefixer": "^10.4.14",
41
+ "element-plus": "^2.6.1",
42
+ "postcss-loader": "^7.3.3",
43
+ "postcss-pxtorem": "^6.0.0",
44
+ "sortablejs": "^1.15.0",
45
+ "vue": "3.4.0",
46
+ "vue-router": "^4.2.0"
47
+ },
48
+ "devDependencies": {
49
+ "@rushstack/eslint-patch": "^1.2.0",
50
+ "@tsconfig/node18": "^2.0.1",
51
+ "@types/node": "^18.16.8",
52
+ "@vitejs/plugin-vue": "^4.2.3",
53
+ "@vue/eslint-config-prettier": "^7.1.0",
54
+ "@vue/eslint-config-typescript": "^11.0.3",
55
+ "@vue/tsconfig": "^0.4.0",
56
+ "eslint": "^8.39.0",
57
+ "eslint-plugin-vue": "^9.11.0",
58
+ "node-sass": "8.0.0",
59
+ "prettier": "^2.8.8",
60
+ "sass": "^1.62.1",
61
+ "sass-loader": "^13.3.1",
62
+ "style-loader": "^3.3.3",
63
+ "terser": "^5.18.0",
64
+ "typescript": "~5.0.4",
65
+ "unplugin-auto-import": "^0.16.4",
66
+ "unplugin-vue-components": "^0.25.1",
67
+ "vite": "^4.3.5",
68
+ "vite-plugin-dts": "^4.0.3",
69
+ "vue-tsc": "^1.6.4"
70
+ }
71
+ }