diff --git a/.stylelintrc b/.stylelintrc index 3ae31aec8..1e5e8983f 100644 --- a/.stylelintrc +++ b/.stylelintrc @@ -16,6 +16,8 @@ "selector-list-comma-newline-after": null, "selector-pseudo-element-colon-notation": null, "unit-no-unknown": null, - "value-list-max-empty-lines": null + "value-list-max-empty-lines": null, + "font-family-no-missing-generic-family-keyword": null, + "no-descending-specificity": null } } diff --git a/.vscode/settings.json b/.vscode/settings.json index 2915911e1..c214fde05 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,13 +2,19 @@ { "eslint.enable": true, "eslint.options": { - "extensions": [".js", ".vue"], + "extensions": [ + ".js", + ".vue" + ], "configFile": ".eslintrc" }, "eslint.validate": [ "javascript", "javascriptreact", - { "language": "vue", "autoFix": true } + { + "language": "vue", + "autoFix": true + } ], "emmet.syntaxProfiles": { "vue-html": "html", @@ -17,5 +23,8 @@ "eslint.autoFixOnSave": true, "vetur.validation.template": true, "vetur.format.html.wrap_line_length": 60, - "vetur.format.js.InsertSpaceBeforeFunctionParenthesis": true + "vetur.format.js.InsertSpaceBeforeFunctionParenthesis": true, + "stylefmt.config": { + "fix": true + } } diff --git a/components/button/button-group.vue b/components/button/button-group.vue index 080a5c6b9..aab6839e8 100644 --- a/components/button/button-group.vue +++ b/components/button/button-group.vue @@ -1,10 +1,5 @@ - diff --git a/components/button/demo/basic.md b/components/button/demo/basic.md index 4ecf15f1c..de0910473 100644 --- a/components/button/demo/basic.md +++ b/components/button/demo/basic.md @@ -1,8 +1,13 @@ -::: demo - - #### 按钮类型 - 按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。 - + + +#### 按钮类型 +按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。 + + + +#### Type +There are `primary` button, `default` button, `dashed` button and `danger` button in antd. + ```html ``` -::: + diff --git a/components/button/demo/basic.vue b/components/button/demo/basic.vue deleted file mode 100644 index d2deb5fb8..000000000 --- a/components/button/demo/basic.vue +++ /dev/null @@ -1,8 +0,0 @@ - diff --git a/components/button/demo/button-group.vue b/components/button/demo/button-group.md similarity index 74% rename from components/button/demo/button-group.vue rename to components/button/demo/button-group.md index 678fff8d5..78c14db1c 100644 --- a/components/button/demo/button-group.vue +++ b/components/button/demo/button-group.md @@ -1,3 +1,16 @@ + +#### 按钮组合 +可以将多个 `Button` 放入 `Button.Group` 的容器中。 +通过设置 `size` 为 `large` `small` 分别把按钮组合设为大、小尺寸。若不设置 `size`,则尺寸为中。 + + + +#### Button Group +Buttons can be grouped by placing multiple `Button` components into a `Button.Group`. +The `size` can be set to `large`, `small` or left unset resulting in a default size. + + +```html