mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-06 17:18:40 +08:00
Merge branch 'Moonofweisheng:master' into master
This commit is contained in:
commit
841c725b1d
@ -1,20 +0,0 @@
|
||||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
|
||||
const SearchBox = path.join(__dirname, '../node_modules/vitepress/dist/client/theme-default/components/VPAlgoliaSearchBox.vue')
|
||||
|
||||
fs.readFile(SearchBox, 'utf8', (err, data) => {
|
||||
if (err) {
|
||||
console.error(err)
|
||||
return
|
||||
}
|
||||
const reult = data.replace('const { pathname, hash } = new URL(absoluteUrl)', 'return absoluteUrl')
|
||||
fs.writeFile(SearchBox, reult, 'utf8', (err) => {
|
||||
if (err) {
|
||||
console.error(err)
|
||||
return
|
||||
}
|
||||
})
|
||||
|
||||
// 在这里进行代码替换操作
|
||||
})
|
||||
@ -172,6 +172,8 @@ function handleChange(event) {
|
||||
| center | 当有label属性时,设置标题和输入框垂直居中,默认为顶部居中 | boolean | - | false | - |
|
||||
| label-width | 设置左侧标题宽度 | string | - | 33% | - |
|
||||
| use-label-slot | 使用 label 插槽 | boolean | - | false | - |
|
||||
| use-suffix-slot | 使用 后置图标 插槽 | boolean | - | false | - |
|
||||
| use-prefix-slot | 使用 前置图标 插槽 | boolean | - | false | - |
|
||||
| required | cell 类型下必填样式 | boolean | - | false | - |
|
||||
| name | form 表单中的字段名 | string | - | - | - |
|
||||
| no-border | 非 cell 类型下是否隐藏下划线 | boolean | - | false | - | - |
|
||||
@ -192,6 +194,9 @@ function handleChange(event) {
|
||||
| clicksuffixicon | 点击后置图标时触发 | - | - |
|
||||
|
||||
## Slot
|
||||
:::tip 提示
|
||||
使用插槽需要配置是否启用对应的插槽,分别对应`use-label-slot`、`use-suffix-slot`、`use-prefix-slot`。
|
||||
:::
|
||||
|
||||
| name | 说明 | 最低版本 |
|
||||
|------|-----|---------|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user