Skip to content

Commit 8a7ea0b

Browse files
committed
feat: add component: input space submit reset form form-item form-layout form-button-group
1 parent 12fb5e5 commit 8a7ea0b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2801
-129
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"node": true
44
},
55
"extends": [
6-
"plugin:vue/vue3-recommended",
6+
"plugin:vue/vue3-essential",
77
"plugin:@typescript-eslint/recommended",
88
"prettier/@typescript-eslint"
99
],

docs/.vuepress/config.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ module.exports = {
1818
href: '//img.alicdn.com/imgextra/i3/O1CN01XtT3Tv1Wd1b5hNVKy_!!6000000002810-55-tps-360-360.svg',
1919
},
2020
],
21+
[
22+
'link',
23+
{
24+
rel: 'stylesheet',
25+
href: 'https://unpkg.com/ant-design-vue@1.7.8/dist/antd.css',
26+
},
27+
],
2128
],
2229
themeConfig: {
2330
logo: '//img.alicdn.com/imgextra/i2/O1CN01Kq3OHU1fph6LGqjIz_!!6000000004056-55-tps-1141-150.svg',
@@ -53,4 +60,20 @@ module.exports = {
5360
},
5461
],
5562
],
63+
less: {
64+
modifyVars: {},
65+
javascriptEnabled: true,
66+
},
67+
configureWebpack: (config, isServer) => {
68+
return {
69+
resolve: {
70+
alias: {
71+
'@formily/antdv': path.resolve(
72+
__dirname,
73+
'../../packages/components/src'
74+
),
75+
},
76+
},
77+
}
78+
},
5679
}

docs/.vuepress/enhanceApp.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
import pageComponents from '@internal/page-components'
2+
import AntDesign from 'ant-design-vue'
3+
import '@formily/antdv/style.ts'
24

35
export default ({ Vue }) => {
46
for (const [name, component] of Object.entries(pageComponents)) {
57
Vue.component(name, component)
68
}
9+
Vue.use(AntDesign)
710
}

docs/guide/input.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
## API
1818

19-
参考 [https://element.eleme.io/#/zh-CN/component/input](https://element.eleme.io/#/zh-CN/component/input)
19+
参考 [https://antdv.com/components/input-cn](https://antdv.com/components/input-cn)

docs/guide/reset.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
## API
2020

21-
按钮相关的 API 属性,我们参考 [https://element.eleme.io/#/zh-CN/component/button](https://element.eleme.io/#/zh-CN/component/button) 即可,剩下是 Reset 组件独有的 API 属性
21+
按钮相关的 API 属性,我们参考 [https://antdv.com/components/button-cn](https://antdv.com/components/button-cn) 即可,剩下是 Reset 组件独有的 API 属性
2222

2323
### 事件
2424

docs/guide/space.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
## API
1818

19-
参考 [https://ant.design/components/space-cn/](https://ant.design/components/space-cn/)
19+
参考 [https://antdv.com/components/space-cn](https://antdv.com/components/space-cn)

docs/guide/submit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
## API
1414

15-
按钮相关的 API 属性,我们参考 [https://element.eleme.io/#/zh-CN/component/button](https://element.eleme.io/#/zh-CN/component/button) 即可,剩下是 Submit 组件独有的 API 属性
15+
按钮相关的 API 属性,我们参考 [https://antdv.com/components/button-cn](https://antdv.com/components/button-cn) 即可,剩下是 Submit 组件独有的 API 属性
1616

1717
| 属性名 | 类型 | 描述 | 默认值 |
1818
| --------------- | ------------------------------------------------------------------------------------------------ | -------------------- | ------------------------------------- | --- |

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,19 @@
2525
"lint": "eslint ."
2626
},
2727
"devDependencies": {
28-
"@formily/template": "^1.0.0-alpha.0",
28+
"@commitlint/cli": "^14.1.0",
29+
"@commitlint/config-conventional": "^14.1.0",
30+
"@commitlint/prompt-cli": "^14.1.0",
2931
"@formily/core": "^2.0.0",
32+
"@formily/template": "^1.0.0-alpha.0",
3033
"@formily/vue": "^2.0.0",
31-
"@vue/composition-api": "^1.4.0",
3234
"@testing-library/jest-dom": "^5.0.0",
3335
"@testing-library/vue": "^5.6.2",
34-
"@vue/test-utils": "1.0.0-beta.22",
3536
"@types/jest": "^24.0.18",
3637
"@typescript-eslint/eslint-plugin": "^4.9.1",
3738
"@typescript-eslint/parser": "^4.8.2",
39+
"@vue/composition-api": "^1.4.0",
40+
"@vue/test-utils": "1.0.0-beta.22",
3841
"@vuepress-dumi/vuepress-plugin-dumi-previewer": "0.3.3",
3942
"@vuepress-dumi/vuepress-theme-dumi": "0.3.3",
4043
"@vuepress/plugin-back-to-top": "^1.8.2",
@@ -50,23 +53,20 @@
5053
"eslint-plugin-promise": "^4.0.0",
5154
"eslint-plugin-vue": "^7.0.1",
5255
"ghooks": "^2.0.4",
56+
"lerna": "^4.0.0",
57+
"less": "^4.1.2",
58+
"less-loader": "^5.0.0",
5359
"lint-staged": "^8.2.1",
54-
"@commitlint/cli": "^14.1.0",
55-
"@commitlint/prompt-cli": "^14.1.0",
56-
"@commitlint/config-conventional": "^14.1.0",
5760
"prettier": "^2.2.1",
5861
"pretty-quick": "^3.1.0",
62+
"raw-loader": "^4.0.0",
5963
"ts-import-plugin": "1.6.1",
6064
"ts-jest": "^26.0.0",
6165
"ts-node": "^9.1.1",
62-
"lerna": "^4.0.0",
6366
"typescript": "^4.1.5",
6467
"vue": "^2.6.0",
6568
"vuepress": "^1.8.2",
66-
"vuepress-plugin-typescript": "^0.3.1",
67-
"sass": "^1.34.1",
68-
"sass-loader": "^8.0.2",
69-
"raw-loader": "^4.0.0"
69+
"vuepress-plugin-typescript": "^0.3.1"
7070
},
7171
"repository": {
7272
"type": "git",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const stylePrefix = 'formily-antdv'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './configs'
2+
export * from './shared'

0 commit comments

Comments
 (0)