From 2cb6bd0c3b0d85a9beb209a06efc9d93c1a6f818 Mon Sep 17 00:00:00 2001 From: xuqingkai Date: Thu, 24 Aug 2023 11:01:48 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E2=9C=8F=EF=B8=8F=20=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8DInput=E7=BB=84=E4=BB=B6=E6=96=87=E6=A1=A3=E4=B8=AD?= =?UTF-8?q?=E7=BC=BA=E5=B0=91=E5=85=B3=E4=BA=8E=E4=B8=A4=E4=B8=AA=E5=9B=BE?= =?UTF-8?q?=E6=A0=87slot=E4=BB=8B=E7=BB=8D=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/rewriteVitepress.js | 20 -------------------- docs/component/input.md | 5 +++++ 2 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 build/rewriteVitepress.js diff --git a/build/rewriteVitepress.js b/build/rewriteVitepress.js deleted file mode 100644 index 6d6d2349..00000000 --- a/build/rewriteVitepress.js +++ /dev/null @@ -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 - } - }) - - // 在这里进行代码替换操作 -}) diff --git a/docs/component/input.md b/docs/component/input.md index ebf4829a..5d54c5c3 100644 --- a/docs/component/input.md +++ b/docs/component/input.md @@ -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 | 说明 | 最低版本 | |------|-----|---------|