icarys-form-create-vant 1.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.
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "icarys-form-create-vant",
3
+ "version": "1.0.0",
4
+ "description": "基于FormCreate和Vant的移动端低代码表单组件库,可以通过JSON生成具有动态渲染、数据收集、验证和提交功能的表单",
5
+ "main": "./dist/index.min.js",
6
+ "unpkg": "./dist/index.min.js",
7
+ "jsdelivr": "./dist/index.min.js",
8
+ "typings": "./types/index.d.ts",
9
+ "scripts": {
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"
15
+ },
16
+
17
+ "keywords": [
18
+ "vue3",
19
+ "vant",
20
+ "form-create",
21
+ "低代码",
22
+ "动态表单",
23
+ "mobile",
24
+ "表单生成器",
25
+ "json-form"
26
+ ],
27
+ "files": [
28
+ "README.md",
29
+ "package.json",
30
+ "LICENSE",
31
+ "types",
32
+ "dist"
33
+ ],
34
+ "author": "icarys",
35
+ "license": "MIT",
36
+ "peerDependencies": {
37
+ "vue": "^3.1.0",
38
+ "vant": "^4.0.0"
39
+ },
40
+ "dependencies": {
41
+ "@form-create/component-subform": "^3.2.34",
42
+ "@form-create/core": "^3.2.37",
43
+ "@form-create/utils": "^3.2.31",
44
+ "dayjs": "^1.11.11"
45
+ },
46
+ "devDependencies": {
47
+ "@vue/cli-plugin-babel": "~4.5.0",
48
+ "@vue/cli-service": "^4.5.3",
49
+ "bili": "^5.0.5",
50
+ "cross-env": "^7.0.3",
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
+ ]
73
+ }
74
+ }
@@ -0,0 +1,39 @@
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 "../src/vant/types/config";
14
+ import {ExtractPropTypes} from "vue";
15
+
16
+ // 导出移动端表单生成器
17
+ declare const formCreateMobile: FormCreate<{}, OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>;
18
+
19
+ // 导出核心表单生成器
20
+ declare const formCreate: FormCreate;
21
+
22
+ // 导出工具函数
23
+ export * from '../src/utils/lib';
24
+
25
+ // 主要导出
26
+ export { formCreateMobile, formCreate };
27
+ export default formCreateMobile;
28
+
29
+ // 类型定义
30
+ export declare const maker: typeof formCreateMobile.maker;
31
+ export type FormRule = $FormRule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
32
+ export type Options = $Options<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
33
+ export type Rule = $Rule<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
34
+ export type Effect = $Effect<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
35
+ export type Creator = $Creator<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
36
+ export type Control = $Control<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
37
+ export type Api = $Api<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>
38
+ export type FormCreateProps = ExtractPropTypes<$FormCreateProps<OptionAttrs, CreatorAttrs, RuleAttrs, ApiAttrs>>
39
+ export type Parser = $Parser