docs: update slot scopes for form and update veui (#21)

Co-authored-by: GU Yiling <justice360@gmail.com>
This commit is contained in:
xdm 2022-01-26 09:56:35 +08:00 committed by GitHub
parent 17a9801fc6
commit ec8316f743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 58 additions and 46 deletions

View File

@ -75,8 +75,20 @@
| 名称 | 描述 |
| -- | -- |
| ``default`` | 可直接内联 `Fieldset``Field` 组件。无默认内容。 |
| ``actions`` | 表单操作内容,如“提交”、“取消”按钮等。无默认内容。 |
| ``default`` | [^slot-default] |
| ``actions`` | 表单操作内容,如“提交”、“取消”按钮等。无默认内容。作用域参数与 [`default`](#slots-default) 插槽相同。 |
^^^slot-default
可直接内联 `Fieldset``Field` 组件。无默认内容。
+++作用域参数
| 名称 | 类型 | 描述 |
| -- | -- | -- |
| `submit` | `() => void` | 触发表单提交。 |
| `validating` | `boolean` | 是否正在执行表单校验。 |
+++
^^^
### 事件

78
package-lock.json generated
View File

@ -17,7 +17,7 @@
"@stackblitz/sdk": "^1.5.2",
"babel-eslint": "^10.1.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-veui": "^2.5.1",
"babel-plugin-veui": "^2.5.2",
"cheerio": "^1.0.0-rc.10",
"dls-graphics": "^1.0.0-alpha.3",
"dls-icons-vue": "^0.14.0",
@ -75,10 +75,10 @@
"stylus-loader": "^3.0.2",
"unist-util-remove": "^1.0.1",
"unist-util-visit": "^1.4.0",
"veui": "^2.5.1",
"veui-loader": "^2.5.1",
"veui-theme-dls": "^2.5.1",
"veui-theme-dls-icons": "^2.5.1",
"veui": "^2.5.2",
"veui-loader": "^2.5.2",
"veui-theme-dls": "^2.5.2",
"veui-theme-dls-icons": "^2.5.2",
"vue-awesome": "^4.5.0",
"vue-i18n": "^8.16.0",
"vue-live": "^1.17.2",
@ -5246,9 +5246,9 @@
}
},
"node_modules/babel-plugin-veui": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.5.1.tgz",
"integrity": "sha512-NzKax4VuEN99qJY9W21XZpUG1g2vi/MNA6zR0rG3ZdoHxKkwwL0g7vx8Tg7boOwGDJbnkSsovwVIyhK2i8dCWQ==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.5.2.tgz",
"integrity": "sha512-E3LdU0rif9oma4e5zvVnFzGpTaOLRhPAm+plqG2W7KgoZZfdu58bDBOyHEHkq6Gx4O6D9+j0bYXF5R/tb9eW8A==",
"dev": true,
"peerDependencies": {
"veui": "*"
@ -20981,9 +20981,9 @@
}
},
"node_modules/veui": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui/-/veui-2.5.1.tgz",
"integrity": "sha512-YMqiI5Gx4fN9ULPhZ7tvsGFPXJyM53ByH4CEgtXC63nlPOogpyLEt0gA+frBpeatcxNvMd2oHYRir0UD+Mmp0w==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui/-/veui-2.5.2.tgz",
"integrity": "sha512-AgBTrZO/+dLzHQhBi/knTiKsqjph2d3F9zcLQZNKxbs01jELjnI9JmIto3n/2yz+ZqsQ+H8fymUiVyYuP8A0ow==",
"dev": true,
"dependencies": {
"bytes": "^3.0.0",
@ -21008,9 +21008,9 @@
}
},
"node_modules/veui-loader": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.5.1.tgz",
"integrity": "sha512-CobVKfNqsE/FgOkCK41+gAn6lySaG5wpEiZCSm7Muc1uUW6EH2HDuCMYAm8hHhtKKsQLFy1nl5BGDHwsHv6Cmw==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.5.2.tgz",
"integrity": "sha512-pN/hzH5PzFxUMKnIx82e748l5gUTMQTQ/VK8wjfRWVdOCcvwYmT63KW5tK8YbaD9H4BFTpKxEFD6BYFkUO5KlA==",
"dev": true,
"dependencies": {
"loader-utils": "^2.0.0",
@ -21134,9 +21134,9 @@
}
},
"node_modules/veui-theme-dls": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.5.1.tgz",
"integrity": "sha512-nH7TDaZOLR2r9ru4oUz7Kiv6Vc+uJ+aCKtg8X0FIEKDoOL0ng/maQBId4xJDNx6+sHmysXLbzWjpD2cxsFNiMQ==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.5.2.tgz",
"integrity": "sha512-8VMXI7h9v81HojB7bM5BAmLACc3IJQxfET7K4VwcRMhVfgpGtAjfc++slhcufjn7eMy7+w3MavBcUrclt1roKQ==",
"dev": true,
"dependencies": {
"classlist-polyfill": "^1.2.0",
@ -21144,22 +21144,22 @@
"focus-visible": "^4.1.0",
"less-plugin-dls": "^5.1.0",
"less-plugin-est": "^3.0.0",
"veui-theme-dls-icons": "^2.5.1"
"veui-theme-dls-icons": "^2.5.2"
},
"peerDependencies": {
"veui": "2.5.1"
"veui": "2.5.2"
}
},
"node_modules/veui-theme-dls-icons": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.5.1.tgz",
"integrity": "sha512-XSEisZ9j99rXrX86FsMVFL4f0UC1kHpyYTPYHdnW8Ma+F0ExZE/e469OsGKLjKsrmkvbTQ4uaDJnre7X+Jltrw==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.5.2.tgz",
"integrity": "sha512-MmbsSGIeUSOzHnZZI3VUPhOZEo52QLrI4TgQzv7RGn4phNlbTQbB/EYpmd6IsUsUPvmKeFkpuyKnuVIdQPYPrA==",
"dev": true,
"dependencies": {
"dls-icons-vue": "^2.3.0"
},
"peerDependencies": {
"veui": "2.5.1"
"veui": "2.5.2"
}
},
"node_modules/veui-theme-dls-icons/node_modules/dls-icons-vue": {
@ -26943,9 +26943,9 @@
}
},
"babel-plugin-veui": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.5.1.tgz",
"integrity": "sha512-NzKax4VuEN99qJY9W21XZpUG1g2vi/MNA6zR0rG3ZdoHxKkwwL0g7vx8Tg7boOwGDJbnkSsovwVIyhK2i8dCWQ==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/babel-plugin-veui/-/babel-plugin-veui-2.5.2.tgz",
"integrity": "sha512-E3LdU0rif9oma4e5zvVnFzGpTaOLRhPAm+plqG2W7KgoZZfdu58bDBOyHEHkq6Gx4O6D9+j0bYXF5R/tb9eW8A==",
"dev": true,
"requires": {}
},
@ -39559,9 +39559,9 @@
"dev": true
},
"veui": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui/-/veui-2.5.1.tgz",
"integrity": "sha512-YMqiI5Gx4fN9ULPhZ7tvsGFPXJyM53ByH4CEgtXC63nlPOogpyLEt0gA+frBpeatcxNvMd2oHYRir0UD+Mmp0w==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui/-/veui-2.5.2.tgz",
"integrity": "sha512-AgBTrZO/+dLzHQhBi/knTiKsqjph2d3F9zcLQZNKxbs01jELjnI9JmIto3n/2yz+ZqsQ+H8fymUiVyYuP8A0ow==",
"dev": true,
"requires": {
"bytes": "^3.0.0",
@ -39585,9 +39585,9 @@
}
},
"veui-loader": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.5.1.tgz",
"integrity": "sha512-CobVKfNqsE/FgOkCK41+gAn6lySaG5wpEiZCSm7Muc1uUW6EH2HDuCMYAm8hHhtKKsQLFy1nl5BGDHwsHv6Cmw==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-loader/-/veui-loader-2.5.2.tgz",
"integrity": "sha512-pN/hzH5PzFxUMKnIx82e748l5gUTMQTQ/VK8wjfRWVdOCcvwYmT63KW5tK8YbaD9H4BFTpKxEFD6BYFkUO5KlA==",
"dev": true,
"requires": {
"loader-utils": "^2.0.0",
@ -39677,9 +39677,9 @@
}
},
"veui-theme-dls": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.5.1.tgz",
"integrity": "sha512-nH7TDaZOLR2r9ru4oUz7Kiv6Vc+uJ+aCKtg8X0FIEKDoOL0ng/maQBId4xJDNx6+sHmysXLbzWjpD2cxsFNiMQ==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-theme-dls/-/veui-theme-dls-2.5.2.tgz",
"integrity": "sha512-8VMXI7h9v81HojB7bM5BAmLACc3IJQxfET7K4VwcRMhVfgpGtAjfc++slhcufjn7eMy7+w3MavBcUrclt1roKQ==",
"dev": true,
"requires": {
"classlist-polyfill": "^1.2.0",
@ -39687,7 +39687,7 @@
"focus-visible": "^4.1.0",
"less-plugin-dls": "^5.1.0",
"less-plugin-est": "^3.0.0",
"veui-theme-dls-icons": "^2.5.1"
"veui-theme-dls-icons": "^2.5.2"
},
"dependencies": {
"dls-icons-vue": {
@ -39702,9 +39702,9 @@
}
},
"veui-theme-dls-icons": {
"version": "2.5.1",
"resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.5.1.tgz",
"integrity": "sha512-XSEisZ9j99rXrX86FsMVFL4f0UC1kHpyYTPYHdnW8Ma+F0ExZE/e469OsGKLjKsrmkvbTQ4uaDJnre7X+Jltrw==",
"version": "2.5.2",
"resolved": "https://registry.npmjs.org/veui-theme-dls-icons/-/veui-theme-dls-icons-2.5.2.tgz",
"integrity": "sha512-MmbsSGIeUSOzHnZZI3VUPhOZEo52QLrI4TgQzv7RGn4phNlbTQbB/EYpmd6IsUsUPvmKeFkpuyKnuVIdQPYPrA==",
"dev": true,
"requires": {
"dls-icons-vue": "^2.3.0"

View File

@ -25,7 +25,7 @@
"@stackblitz/sdk": "^1.5.2",
"babel-eslint": "^10.1.0",
"babel-plugin-lodash": "^3.3.4",
"babel-plugin-veui": "^2.5.1",
"babel-plugin-veui": "^2.5.2",
"cheerio": "^1.0.0-rc.10",
"dls-graphics": "^1.0.0-alpha.3",
"dls-icons-vue": "^0.14.0",
@ -83,10 +83,10 @@
"stylus-loader": "^3.0.2",
"unist-util-remove": "^1.0.1",
"unist-util-visit": "^1.4.0",
"veui": "^2.5.1",
"veui-loader": "^2.5.1",
"veui-theme-dls": "^2.5.1",
"veui-theme-dls-icons": "^2.5.1",
"veui": "^2.5.2",
"veui-loader": "^2.5.2",
"veui-theme-dls": "^2.5.2",
"veui-theme-dls-icons": "^2.5.2",
"vue-awesome": "^4.5.0",
"vue-i18n": "^8.16.0",
"vue-live": "^1.17.2",