Skip to content

Commit af4cc65

Browse files
committed
完成vue 版本的lib
1 parent e8d3891 commit af4cc65

25 files changed

+1790
-249
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# vue-antd-super-form
2+
3+
### install
4+
> npm i -S vue-antd-super-form
5+
6+
```vue
7+
<vue-antd-super-form
8+
:data
9+
/>
10+
```

build/rollup.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ const baseConfig = {
2424
},
2525
},
2626
postVue: [
27-
buble(),
27+
buble({
28+
objectAssign: 'Object.assign',
29+
}),
2830
],
2931
},
3032
};
@@ -46,7 +48,7 @@ if (!argv.format || argv.format === 'es') {
4648
const esConfig = {
4749
...baseConfig,
4850
output: {
49-
file: 'dist/vue-antd-super-form.esm.js',
51+
file: 'src/dist/vue-antd-super-form.esm.js',
5052
format: 'esm',
5153
exports: 'named',
5254
},
@@ -70,7 +72,7 @@ if (!argv.format || argv.format === 'cjs') {
7072
external,
7173
output: {
7274
compact: true,
73-
file: 'dist/vue-antd-super-form.ssr.js',
75+
file: 'src/dist/vue-antd-super-form.ssr.js',
7476
format: 'cjs',
7577
name: 'VueAntdSuperForm',
7678
exports: 'named',
@@ -97,7 +99,7 @@ if (!argv.format || argv.format === 'iife') {
9799
external,
98100
output: {
99101
compact: true,
100-
file: 'dist/vue-antd-super-form.min.js',
102+
file: 'src/dist/vue-antd-super-form.min.js',
101103
format: 'iife',
102104
name: 'VueAntdSuperForm',
103105
exports: 'named',

dist/vue-antd-super-form.esm.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue-antd-super-form.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

dist/vue-antd-super-form.ssr.js

Lines changed: 0 additions & 198 deletions
This file was deleted.

package.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
"main": "dist/vue-antd-super-form.ssr.js",
66
"module": "dist/vue-antd-super-form.esm.js",
77
"unpkg": "dist/vue-antd-super-form.min.js",
8-
"files": [
9-
"dist/*",
10-
"src/**/*.vue",
11-
"!src/lib-dev.vue"
12-
],
138
"scripts": {
149
"start": "cross-env NODE_ENV=production rollup --config build/rollup.config.js -w",
1510
"build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
@@ -19,15 +14,33 @@
1914
},
2015
"dependencies": {},
2116
"devDependencies": {
17+
"ant-design-vue": "^1.3.15",
2218
"cross-env": "^5.2.0",
2319
"minimist": "^1.2.0",
2420
"rollup": "^1.12.1",
2521
"rollup-plugin-buble": "^0.19.6",
2622
"rollup-plugin-commonjs": "^10.0.0",
23+
"rollup-plugin-less": "^1.1.2",
2724
"rollup-plugin-replace": "^2.2.0",
2825
"rollup-plugin-terser": "^4.0.4",
2926
"rollup-plugin-vue": "^5.0.0",
3027
"vue": "^2.6.10",
3128
"vue-template-compiler": "^2.6.10"
32-
}
29+
},
30+
"keywords": [
31+
"vue",
32+
"antd",
33+
"Form"
34+
],
35+
"repository": {
36+
"type": "git",
37+
"url": "git+https://github.com/bitores/vue-antd-super-form.git"
38+
},
39+
"author": "bitores",
40+
"email": "huangzhengjie@dingtalk.com",
41+
"license": "ISC",
42+
"bugs": {
43+
"url": "https://github.com/bitores/vue-antd-super-form/issues"
44+
},
45+
"homepage": "https://github.com/bitores/vue-antd-super-form#readme"
3346
}

rollup.build.css

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.form,
2+
.table {
3+
background: #fff;
4+
padding: 20px;
5+
border-radius: 5px;
6+
margin-bottom: 10px;
7+
}

src/.npmignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.git
2+
CVS
3+
.svn
4+
.hg
5+
.lock-wscript
6+
.wafpickle-N
7+
*.swp
8+
.DS_Store
9+
._*
10+
npm-debug.log
11+
node_modules
12+
lib-components
13+
entry.js
14+
lib-dev.vue
15+
package-lock.json

0 commit comments

Comments
 (0)