icarys-fc-vant 1.0.16 → 1.0.17

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 (115) hide show
  1. package/README.md +123 -97
  2. package/dist/index.js +7589 -45
  3. package/dist/index.min.js +7 -0
  4. package/dist/index.min.js.map +1 -0
  5. package/package.json +54 -29
  6. package/src/components/common/subform/LICENSE +21 -0
  7. package/src/components/common/subform/README.md +6 -0
  8. package/src/components/common/wangeditor/LICENSE +21 -0
  9. package/src/components/common/wangeditor/README.md +14 -0
  10. package/src/core/LICENSE +21 -0
  11. package/src/core/README.md +120 -0
  12. package/src/index.js +5 -0
  13. package/src/utils/LICENSE +21 -0
  14. package/src/utils/README.md +24 -0
  15. package/src/vant/LICENSE +21 -0
  16. package/src/vant/examples/App.vue +96 -0
  17. package/src/vant/public/index.html +14 -0
  18. package/src/vant/src/components/icon/IconWarning.vue +12 -0
  19. package/dist/icarys-fc-vant.umd.js +0 -17
  20. package/dist/index.esm.js +0 -39
  21. package/dist/vant/types/index.d.ts +0 -27
  22. /package/{dist → src}/components/common/subform/package.json +0 -0
  23. /package/{dist → src}/components/common/subform/src/component.jsx +0 -0
  24. /package/{dist → src}/components/common/subform/src/index.js +0 -0
  25. /package/{dist → src}/components/common/wangeditor/package-lock.json +0 -0
  26. /package/{dist → src}/components/common/wangeditor/package.json +0 -0
  27. /package/{dist → src}/components/common/wangeditor/src/component.jsx +0 -0
  28. /package/{dist → src}/components/common/wangeditor/src/index.js +0 -0
  29. /package/{dist → src}/core/babel.config.js +0 -0
  30. /package/{dist → src}/core/bili.config.js +0 -0
  31. /package/{dist → src}/core/package-lock.json +0 -0
  32. /package/{dist → src}/core/package.json +0 -0
  33. /package/{dist → src}/core/src/components/formCreate.js +0 -0
  34. /package/{dist → src}/core/src/components/fragment.js +0 -0
  35. /package/{dist → src}/core/src/factory/context.js +0 -0
  36. /package/{dist → src}/core/src/factory/creator.js +0 -0
  37. /package/{dist → src}/core/src/factory/maker.js +0 -0
  38. /package/{dist → src}/core/src/factory/manager.js +0 -0
  39. /package/{dist → src}/core/src/factory/node.js +0 -0
  40. /package/{dist → src}/core/src/factory/parser.js +0 -0
  41. /package/{dist → src}/core/src/frame/api.js +0 -0
  42. /package/{dist → src}/core/src/frame/attrs.js +0 -0
  43. /package/{dist → src}/core/src/frame/dataDriver.js +0 -0
  44. /package/{dist → src}/core/src/frame/fetch.js +0 -0
  45. /package/{dist → src}/core/src/frame/index.js +0 -0
  46. /package/{dist → src}/core/src/frame/language.js +0 -0
  47. /package/{dist → src}/core/src/frame/provider.js +0 -0
  48. /package/{dist → src}/core/src/frame/util.js +0 -0
  49. /package/{dist → src}/core/src/handler/context.js +0 -0
  50. /package/{dist → src}/core/src/handler/effect.js +0 -0
  51. /package/{dist → src}/core/src/handler/index.js +0 -0
  52. /package/{dist → src}/core/src/handler/inject.js +0 -0
  53. /package/{dist → src}/core/src/handler/input.js +0 -0
  54. /package/{dist → src}/core/src/handler/lifecycle.js +0 -0
  55. /package/{dist → src}/core/src/handler/loader.js +0 -0
  56. /package/{dist → src}/core/src/handler/page.js +0 -0
  57. /package/{dist → src}/core/src/handler/render.js +0 -0
  58. /package/{dist → src}/core/src/index.js +0 -0
  59. /package/{dist → src}/core/src/parser/html.js +0 -0
  60. /package/{dist → src}/core/src/render/cache.js +0 -0
  61. /package/{dist → src}/core/src/render/index.js +0 -0
  62. /package/{dist → src}/core/src/render/render.js +0 -0
  63. /package/{dist → src}/core/types/index.d.ts +0 -0
  64. /package/{dist → src}/utils/lib/console.js +0 -0
  65. /package/{dist → src}/utils/lib/debounce.js +0 -0
  66. /package/{dist → src}/utils/lib/deepextend.js +0 -0
  67. /package/{dist → src}/utils/lib/deepset.js +0 -0
  68. /package/{dist → src}/utils/lib/extend.js +0 -0
  69. /package/{dist → src}/utils/lib/index.js +0 -0
  70. /package/{dist → src}/utils/lib/json.js +0 -0
  71. /package/{dist → src}/utils/lib/mergeprops.js +0 -0
  72. /package/{dist → src}/utils/lib/mitt.js +0 -0
  73. /package/{dist → src}/utils/lib/modify.js +0 -0
  74. /package/{dist → src}/utils/lib/slot.js +0 -0
  75. /package/{dist → src}/utils/lib/toarray.js +0 -0
  76. /package/{dist → src}/utils/lib/tocase.js +0 -0
  77. /package/{dist → src}/utils/lib/todate.js +0 -0
  78. /package/{dist → src}/utils/lib/toline.js +0 -0
  79. /package/{dist → src}/utils/lib/topromise.js +0 -0
  80. /package/{dist → src}/utils/lib/tostring.js +0 -0
  81. /package/{dist → src}/utils/lib/type.js +0 -0
  82. /package/{dist → src}/utils/lib/unique.js +0 -0
  83. /package/{dist → src}/utils/package.json +0 -0
  84. /package/{dist → src}/vant/auto-import.d.ts +0 -0
  85. /package/{dist → src}/vant/auto-import.js +0 -0
  86. /package/{dist → src}/vant/babel.config.js +0 -0
  87. /package/{dist → src}/vant/bili.config.js +0 -0
  88. /package/{dist → src}/vant/examples/main.js +0 -0
  89. /package/{dist → src}/vant/examples/rule.js +0 -0
  90. /package/{dist → src}/vant/package.json +0 -0
  91. /package/{dist → src}/vant/src/components/calendar.jsx +0 -0
  92. /package/{dist → src}/vant/src/components/cascader.jsx +0 -0
  93. /package/{dist → src}/vant/src/components/checkbox.jsx +0 -0
  94. /package/{dist → src}/vant/src/components/datePicker.jsx +0 -0
  95. /package/{dist → src}/vant/src/components/group.jsx +0 -0
  96. /package/{dist → src}/vant/src/components/index.js +0 -0
  97. /package/{dist → src}/vant/src/components/radio.jsx +0 -0
  98. /package/{dist → src}/vant/src/components/select.jsx +0 -0
  99. /package/{dist → src}/vant/src/components/timePicker.jsx +0 -0
  100. /package/{dist → src}/vant/src/components/uploader.jsx +0 -0
  101. /package/{dist → src}/vant/src/core/alias.js +0 -0
  102. /package/{dist → src}/vant/src/core/api.js +0 -0
  103. /package/{dist → src}/vant/src/core/config.js +0 -0
  104. /package/{dist → src}/vant/src/core/index.js +0 -0
  105. /package/{dist → src}/vant/src/core/manager.js +0 -0
  106. /package/{dist → src}/vant/src/core/provider.js +0 -0
  107. /package/{dist → src}/vant/src/core/utils.js +0 -0
  108. /package/{dist → src}/vant/src/index.js +0 -0
  109. /package/{dist → src}/vant/src/parsers/hidden.js +0 -0
  110. /package/{dist → src}/vant/src/parsers/index.js +0 -0
  111. /package/{dist → src}/vant/src/parsers/row.js +0 -0
  112. /package/{dist → src}/vant/src/style/index.css +0 -0
  113. /package/{dist → src}/vant/types/config.d.ts +0 -0
  114. /package/{dist → src/vant/types}/index.d.ts +0 -0
  115. /package/{dist → src}/vant/vue.config.js +0 -0
package/package.json CHANGED
@@ -1,49 +1,74 @@
1
1
  {
2
2
  "name": "icarys-fc-vant",
3
- "version": "1.0.16",
4
- "description": "基于FormCreate和Vant的低代码表单生成器",
5
- "main": "dist/index.js",
6
- "module": "dist/index.esm.js",
7
- "unpkg": "dist/icarys-fc-vant.umd.js",
8
- "jsdelivr": "dist/icarys-fc-vant.umd.js",
9
- "typings": "dist/index.d.ts",
10
- "files": [
11
- "README.md",
12
- "package.json",
13
- "dist"
14
- ],
3
+ "version": "1.0.17",
4
+ "description": "基于FormCreate和Vant的移动端低代码表单组件库,可以通过JSON生成具有动态渲染、数据收集、验证和提交功能的表单",
5
+ "main": "./dist/index.min.js",
6
+ "module": "./dist/index.js",
7
+ "unpkg": "./dist/index.min.js",
8
+ "jsdelivr": "./dist/index.min.js",
15
9
  "scripts": {
16
- "build": "node manual-build.js",
17
- "prepublishOnly": "npm run build",
18
- "pub": "npm publish"
10
+ "clean": "rimraf dist/",
11
+ "bili": "bili",
12
+ "build": "npm-run-all clean bili",
13
+ "dev": "vue-cli-service serve src/vant/examples",
14
+ "pub": "npm run build && npm publish"
19
15
  },
20
-
21
16
  "keywords": [
22
- "form-create",
23
- "vant",
24
17
  "vue3",
25
- "lowcode",
26
- "dynamic-form",
27
- "表单生成器"
18
+ "vant",
19
+ "form-create",
20
+ "低代码",
21
+ "动态表单",
22
+ "mobile",
23
+ "表单生成器",
24
+ "json-form"
25
+ ],
26
+ "files": [
27
+ "README.md",
28
+ "package.json",
29
+ "LICENSE",
30
+ "src",
31
+ "types",
32
+ "dist"
28
33
  ],
29
34
  "author": "lvyanrui",
30
35
  "license": "MIT",
31
36
  "peerDependencies": {
32
- "vue": "^3.1.0"
37
+ "vue": "^3.1.0",
38
+ "vant": "^4.0.0"
33
39
  },
34
40
  "dependencies": {
41
+ "@form-create/component-subform": "^3.2.34",
35
42
  "@form-create/core": "^3.2.37",
36
- "@form-create/vant": "^3.2.37",
37
43
  "@form-create/utils": "^3.2.31",
38
- "@form-create/component-subform": "^3.2.34",
39
- "vant": "^4.9",
40
44
  "dayjs": "^1.11.11"
41
45
  },
42
46
  "devDependencies": {
47
+ "@vue/cli-plugin-babel": "~4.5.0",
48
+ "@vue/cli-service": "^4.5.3",
43
49
  "bili": "^5.0.5",
44
- "rimraf": "^5.0.0",
45
- "npm-run-all": "^4.1.5",
46
50
  "cross-env": "^7.0.3",
47
- "@vue/babel-plugin-jsx": "^1.1.5"
51
+ "npm-run-all": "^4.1.5",
52
+ "rimraf": "^3.0.2",
53
+ "rollup-plugin-postcss": "^4.0.2",
54
+ "rollup-plugin-vue": "^6.0.0",
55
+ "vant": "^4.9"
56
+ },
57
+ "buildFormCreateOptions": {
58
+ "name": "icarys-form-create-vant",
59
+ "exportName": "icarysFormCreateVant",
60
+ "extendExternals": [
61
+ "vant",
62
+ "vue"
63
+ ],
64
+ "extendGlobal": {
65
+ "vue": "Vue",
66
+ "vant": "vant"
67
+ },
68
+ "fileName": "index",
69
+ "formats": [
70
+ "umd",
71
+ "esm"
72
+ ]
48
73
  }
49
- }
74
+ }
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 xaboy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,6 @@
1
+ # @form-create/component-subform
2
+
3
+ @form-create 内置组件
4
+
5
+ [GitHub](https://github.com/xaboy/form-create) | [文档](http://form-create.com/v3/) | [Document](http://form-create.com/v3/)
6
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 xaboy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,14 @@
1
+ # @form-create/component-wangeditor
2
+
3
+ @form-create 富文本组件
4
+
5
+ [GitHub](https://github.com/xaboy/form-create) | [文档](http://form-create.com/v3/) | [Document](http://form-create.com/v3/)
6
+
7
+
8
+ props
9
+
10
+ | 属性 | 类型 | 说明 |
11
+ | -------------- | -------- | ------------------------------ |
12
+ | v-model | string | 富文本内容 |
13
+ | init | Function | 初始化 wangEditor |
14
+ | disabled | boolean | 禁用富文本组件 |
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 xaboy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,120 @@
1
+ <p align="center">
2
+ <a href="https://www.form-create.com" target="_blank">
3
+ <img width="300" alt="FormCreate" src="https://static.form-create.com/file/img/info-logo2.png">
4
+ </a>
5
+ </p>
6
+
7
+ <p align="center">
8
+ <a href="https://www.form-create.com/" target="_blank">官网</a>
9
+ <span>&nbsp;|&nbsp;</span>
10
+ <a href="https://form-create.com/v3/guide/" target="_blank">帮助文档</a>
11
+ <span>&nbsp;|&nbsp;</span>
12
+ <a href="https://pro.form-create.com/view/" target="_blank">可视化表单设计器</a>
13
+ <span>&nbsp;|&nbsp;</span>
14
+ <a href="https://pro.form-create.com/mobile/" target="_blank">移动端表单设计器</a>
15
+ </p>
16
+
17
+ <p align="center">
18
+ <a href="https://github.com/xaboy/form-create" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="TIM" /></a>
19
+ <a href="https://github.com/xaboy/form-create" target="_blank"><img src="https://img.shields.io/npm/dt/@form-create/element-ui.svg" alt="dt" /></a>
20
+ </p>
21
+
22
+ **FormCreate 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的低代码表单生成组件。支持6个UI框架,适配移动端,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。**
23
+
24
+ [![FcDesigner](https://static.form-create.com/file/img/banner-m2.jpg?20251027)](https://pro.form-create.com/view)
25
+
26
+ ## 特点
27
+ - 使用JSON数据生成表单
28
+ - 支持扩展,生成任何Vue组件和HTML标签
29
+ - 支持6个UI框架
30
+ - 支持组件之间联动
31
+ - 提供丰富的表单操作API
32
+ - 支持子表单和分组
33
+ - 高性能
34
+ - **适配移动端**
35
+ - **多语言**
36
+
37
+ ## 支持的UI框架
38
+
39
+ [![FcDesigner](https://static.form-create.com/file/img/products.jpg)](https://form-create.com/)
40
+
41
+
42
+ > 如果对您有帮助,您可以点右上角 "Star" 支持一下 谢谢!本项目还在不断开发完善中,如有任何建议或问题[请在这里提出](https://github.com/xaboy/form-create/issues/new)
43
+
44
+ > 开发者讨论群[629709230](https://jq.qq.com/?_wv=1027&k=F1FlEFIV)
45
+
46
+
47
+ - **预览**
48
+
49
+ ![demo1](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live3.gif)
50
+
51
+ ![demo2](https://form-create.com/v3/img/form-create.mobile.jpg)
52
+
53
+ <details>
54
+ <summary><b>更多</b></summary>
55
+
56
+ - **操作表单**
57
+
58
+ [详细说明](https://www.form-create.com/v3/instance.html)
59
+
60
+ ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live2.gif)
61
+
62
+ - **`group` 组件**
63
+
64
+ [详细说明](https://www.form-create.com/v3/guide/group.html)
65
+
66
+ ![demo3](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-group.gif)
67
+
68
+ - **`control` 配置项**
69
+
70
+ [详细说明](https://www.form-create.com/v3/guide/control.html)
71
+
72
+ ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live4.gif)
73
+ </details>
74
+
75
+ ## 包说明
76
+
77
+ | 包名 | 说明 |
78
+ |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------|
79
+ | @form-create/element-ui [![version](https://img.shields.io/npm/v/@form-create/element-ui/next.svg)](https://www.npmjs.com/package/@form-create/element-ui) | [element-plus 版本](http://form-create.com/v3/element-ui/) |
80
+ | @form-create/ant-design-vue [![version](https://img.shields.io/npm/v/@form-create/ant-design-vue/next.svg)](https://www.npmjs.com/package/@form-create/ant-design-vue) | [ant-design-vue 版本](http://form-create.com/v3/ant-design-vue/) |
81
+ | @form-create/arco-design [![version](https://img.shields.io/npm/v/@form-create/arco-design/next.svg)](https://www.npmjs.com/package/@form-create/arco-design) | [arco-design 版本](http://form-create.com/v3/arco-design/) |
82
+ | @form-create/naive-ui [![version](https://img.shields.io/npm/v/@form-create/naive-ui/next.svg)](https://www.npmjs.com/package/@form-create/naive-ui) | [naive-ui 版本](http://form-create.com/v3/naive-ui/) |
83
+ | @form-create/tdesign [![version](https://img.shields.io/npm/v/@form-create/tdesign/next.svg)](https://www.npmjs.com/package/@form-create/tdesign) | [tdesign 版本](http://form-create.com/v3/tdesign/) |
84
+ | @form-create/iview [![version](https://img.shields.io/npm/v/@form-create/iview.svg)](https://www.npmjs.com/package/@form-create/iview) | [iview 版本](http://form-create.com/v2/iview/) |
85
+ | @form-create/view-design [![version](https://img.shields.io/npm/v/@form-create/view-design.svg)](https://www.npmjs.com/package/@form-create/view-design) | [view-design 版本](http://form-create.com/v2/iview/) |
86
+ | @form-create/vant [![version](https://img.shields.io/npm/v/@form-create/vant.svg)](https://www.npmjs.com/package/@form-create/vant) | [vant 版本(移动端)](http://form-create.com/v3/vant/) |
87
+ | @form-create/designer [![version](https://img.shields.io/npm/v/@form-create/designer.svg)](https://www.npmjs.com/package/@form-create/designer) | [可视化表单设计器](http://form-create.com/v3/designer) |
88
+ | @form-create/vant-designer [![version](https://img.shields.io/npm/v/@form-create/vant-designer.svg)](https://www.npmjs.com/package/@form-create/designer) | [移动端表单设计器](http://form-create.com/v3/mobile) |
89
+
90
+ **分支说明**
91
+
92
+ - **latest:** Vue2.0版本分支
93
+ - **super:** Vue2.7版本分支(该版本功能和next分支功能一致)
94
+ - **next:** Vue3.0版本分支
95
+
96
+ ## 示例
97
+
98
+ - [在线示例](https://www.form-create.com/v3/guide/demo.html)
99
+
100
+
101
+
102
+ <details>
103
+ <summary><b>效果图</b></summary>
104
+
105
+ ![https://raw.githubusercontent.com/xaboy/form-create/dev/images/sample110.jpg](https://raw.githubusercontent.com/xaboy/form-create/dev/images/sample110.jpg)
106
+ </details>
107
+
108
+
109
+ ## 联系
110
+ ![http://static.form-create.com/file/img/support.jpg](http://static.form-create.com/file/img/support.jpg)
111
+
112
+ ## 感谢
113
+
114
+ [时光弧线](https://github.com/shiguanghuxian) | [wxxtqk](https://github.com/wxxtqk) | [williamBoss](https://github.com/williamBoss) | [HeyMrLin](https://github.com/HeyMrLin) | [djkloop](https://github.com/djkloop) | [daiwenyong](https://github.com/daiwenyong) | [JetBrains](https://www.jetbrains.com/?from=form-create)
115
+
116
+ ## License
117
+
118
+ [MIT](http://opensource.org/licenses/MIT)
119
+
120
+ Copyright (c) 2018-present xaboy
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ // 主入口文件
2
+ export { default as formCreateMobile } from './vant/src/index';
3
+ export { default as formCreate } from './core/src/index';
4
+ export * from './utils/lib';
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 xaboy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,24 @@
1
+ # @form-create/utils
2
+ **form-create 是一个可以通过 JSON 生成具有动态渲染、数据收集、验证和提交功能的表单生成组件。支持6个UI框架,并且支持生成任何 Vue 组件。内置20种常用表单组件和自定义组件,再复杂的表单都可以轻松搞定。**
3
+
4
+ form-create is a form generation component that can generate dynamic rendering, data collection, verification and submission functions through JSON. Supports 5 UI frameworks, and supports the generation of any Vue components. Built-in 20 kinds of commonly used form components and custom components, no matter how complex forms can be easily handled.
5
+
6
+ [GitHub](https://github.com/xaboy/form-create) | [文档](http://form-create.com/v2) | [Document](http://form-create.com/en/v2)
7
+
8
+
9
+ - **预览**
10
+
11
+ ![demo1](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live3.gif)
12
+
13
+
14
+ - **操作表单**
15
+
16
+ ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live2.gif)
17
+
18
+ - **`group` 组件**
19
+
20
+ ![demo3](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-group.gif)
21
+
22
+ - **`control` 配置项**
23
+
24
+ ![demo2](https://raw.githubusercontent.com/xaboy/form-create/dev/images/demo-live4.gif)
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 xaboy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,96 @@
1
+ <template>
2
+ <div>
3
+ <h1 class="title">FormCreate Vant Demo</h1>
4
+ <h3>Render</h3>
5
+ <div class="container">
6
+ <div class="mobile">
7
+ <form-create-mobile name="test" :rule="rule" v-model:api="fapi" :option="option" v-model="formData" />
8
+ </div>
9
+
10
+ </div>
11
+
12
+ </div>
13
+ </template>
14
+
15
+ <script>
16
+ import {defineComponent, ref, watch} from 'vue'
17
+ import mock from './rule';
18
+
19
+ export default defineComponent({
20
+ setup() {
21
+ const fapi = ref({});
22
+ const rule = ref(mock())
23
+
24
+ //formData
25
+ const formData = ref({goods_name2: 'goods_name2'})
26
+ const json = ref({});
27
+ watch(formData, value => {
28
+ json.value = value;
29
+ })
30
+
31
+ //option
32
+ const option = ref({
33
+ beforeFetch(opt) {
34
+ return new Promise(resolve => {
35
+ setTimeout(() => {
36
+ resolve();
37
+ }, 5000)
38
+ });
39
+ },
40
+ resetBtn: true
41
+ })
42
+
43
+ return {
44
+ fapi,
45
+ rule,
46
+ formData,
47
+ json,
48
+ option,
49
+ }
50
+ }
51
+ })
52
+ </script>
53
+
54
+ <style>
55
+ .title {
56
+ background-image: -webkit-linear-gradient(left, #d81159, #e53a40 10%, #ffbc42 20%, #75d701 30%, #30a9de 40%, #d81159 50%, #e53a40 60%, #ffbc42 70%, #75d701 80%, #30a9de 90%, #d81159);
57
+ -webkit-background-clip: text;
58
+ background-clip: text;
59
+ color: transparent;
60
+ background-size: 200% 100%;
61
+ -webkit-animation: flowlight 5s linear infinite;
62
+ animation: flowlight 5s linear infinite;
63
+ }
64
+
65
+ .container {
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: center;
69
+ }
70
+
71
+ .mobile {
72
+ width:390px;
73
+ height: calc(100vh - 200px);
74
+ overflow: scroll;
75
+ border-radius: 25px;
76
+ box-shadow: 0 0 1px 10px #000;
77
+ }
78
+
79
+ @keyframes flowlight {
80
+ 0% {
81
+ background-position: 0 0;
82
+ }
83
+ 100% {
84
+ background-position: -100% 0;
85
+ }
86
+ }
87
+
88
+ @-webkit-keyframes flowlight {
89
+ 0% {
90
+ background-position: 0 0;
91
+ }
92
+ 100% {
93
+ background-position: -100% 0;
94
+ }
95
+ }
96
+ </style>
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+
4
+ <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,minimum-scale=1,viewport-fit=cover">
7
+ <title>form-create 示例</title>
8
+ </head>
9
+
10
+ <body>
11
+ <div id="app">
12
+ </div>
13
+ </body>
14
+ </html>
@@ -0,0 +1,12 @@
1
+ <template>
2
+ <svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg">
3
+ <path fill="currentColor"
4
+ d="M512 64a448 448 0 110 896 448 448 0 010-896zm0 832a384 384 0 000-768 384 384 0 000 768zm48-176a48 48 0 11-96 0 48 48 0 0196 0zm-48-464a32 32 0 0132 32v288a32 32 0 01-64 0V288a32 32 0 0132-32z"></path>
5
+ </svg>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ name: 'IconWarning'
11
+ }
12
+ </script>
@@ -1,17 +0,0 @@
1
-
2
- (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
- typeof define === 'function' && define.amd ? define(factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.icarysFcVant = factory());
6
- })(this, function () {
7
- "use strict";
8
-
9
- // 简单的UMD包装
10
- return {
11
- formCreateMobile: null, // 会被动态加载
12
- formCreate: null,
13
- default: null,
14
- parseJson: function(str) { return JSON.parse(str); },
15
- toJson: function(obj) { return JSON.stringify(obj); }
16
- };
17
- });
package/dist/index.esm.js DELETED
@@ -1,39 +0,0 @@
1
-
2
- // icarys-fc-vant - 主入口文件
3
- // 注意:由于JSX组件的复杂性,这个包主要提供工具函数
4
- // 如需完整的FormCreate功能,请直接使用 @form-create/vant
5
-
6
- // 提供基本的FormCreate工厂函数(简化版)
7
- function createFormCreate() {
8
- return {
9
- // 基础API
10
- component: function() {},
11
- componentAlias: function() {},
12
- // 其他方法可以在这里扩展
13
- };
14
- }
15
-
16
- export const formCreateMobile = createFormCreate();
17
- export const formCreate = createFormCreate();
18
- export const createFormCreate = createFormCreate();
19
-
20
- // 导出工具函数
21
- export const parseJson = function(str) { return JSON.parse(str); };
22
- export const toJson = function(obj) { return JSON.stringify(obj); };
23
- export const toArray = function(val) { return Array.isArray(val) ? val : [val]; };
24
- export const toString = function(val) { return val == null ? '' : String(val); };
25
- export const extend = function(target) {
26
- for (var i = 1; i < arguments.length; i++) {
27
- var source = arguments[i];
28
- if (source) {
29
- for (var key in source) {
30
- if (source.hasOwnProperty(key)) {
31
- target[key] = source[key];
32
- }
33
- }
34
- }
35
- }
36
- return target;
37
- };
38
-
39
- export default formCreateMobile;
@@ -1,27 +0,0 @@
1
- import {
2
- FormCreate,
3
- FormCreateProps as $FormCreateProps,
4
- FormRule as $FormRule,
5
- Options as $Options,
6
- Rule as $Rule,
7
- Creator as $Creator,
8
- Control as $Control,
9
- Api as $Api,
10
- Effect as $Effect,
11
- Parser as $Parser,
12
- } from "@form-create/core";
13
- import {ApiAttrs, CreatorAttrs, OptionAttrs, RuleAttrs} from "./config";
14
- import {ExtractPropTypes} from "vue";
15
-
16
- declare const formCreateMobile: FormCreate<{}, OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>;
17
- export default formCreateMobile;
18
- export declare const maker: typeof formCreateMobile.maker;
19
- export type FormRule = $FormRule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
20
- export type Options = $Options<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
21
- export type Rule = $Rule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
22
- export type Effect = $Effect<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
23
- export type Creator = $Creator<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
24
- export type Control = $Control<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
25
- export type Api = $Api<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
26
- export type FormCreateProps = ExtractPropTypes<$FormCreateProps<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>>
27
- export type Parser = $Parser
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes