Skip to content

Commit 88eb968

Browse files
committed
fix(docs): 更新发送器组件文档,调整输入框宽度并完善触发字符弹窗配置说明
1 parent 9621522 commit 88eb968

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

docs/src/components/sender.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<br />
3333
<el-x-sender
3434
style="width: fit-content;"
35-
inputWidth="500px"
35+
inputWidth="480px"
3636
placeholder="💌 欢迎使用 Element-UI-X"
3737
/>
3838
</div>
@@ -264,7 +264,7 @@
264264

265265
### 触发字符弹出框
266266

267-
通过 `triggerStrings` 配置触发字符,当输入这些字符时显示弹出框。
267+
通过 `triggerStrings` 配置触发字符,当输入这些字符时显示弹出框。可以通过 `triggerPopoverWidth``triggerPopoverLeft` 属性自定义弹出框的宽度和左偏移量。
268268

269269
:::demo
270270

@@ -275,7 +275,9 @@
275275
v-model="message"
276276
placeholder="输入 @ 或 # 触发弹出框"
277277
:trigger-strings="['@', '#']"
278-
:triggerPopoverOffset="0"
278+
:triggerPopoverOffset="100"
279+
:triggerPopoverLeft="'100px'"
280+
:triggerPopoverWidth="'200px'"
279281
:trigger-popover-visible.sync="showTriggerPopover"
280282
@submit="handleSubmit"
281283
@trigger="handleTrigger"

0 commit comments

Comments
 (0)