fix(tree-menu): [tree-menu] the search box supports custom placeholder (#1867)

This commit is contained in:
wuyiping0628 2024-08-15 23:44:38 -07:00 committed by GitHub
parent da8bfaf2e4
commit 03f3f419cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View File

@ -78,6 +78,17 @@ export default {
mode: ['pc'],
pcDemo: 'show-expand'
},
{
name: 'placeholder',
type: 'string',
defaultValue: '',
desc: {
'zh-CN': '当数据为空时的占位符',
'en-US': 'Placeholder when data is empty'
},
mode: ['pc'],
pcDemo: 'basic-usage'
},
{
name: 'data',
typeAnchorName: 'ITreeNodeData',

View File

@ -1,5 +1,5 @@
<template>
<tiny-tree-menu></tiny-tree-menu>
<tiny-tree-menu placeholder="请输入内容进行筛选"></tiny-tree-menu>
</template>
<script setup>

View File

@ -1,5 +1,5 @@
<template>
<tiny-tree-menu></tiny-tree-menu>
<tiny-tree-menu placeholder="请输入内容进行筛选"></tiny-tree-menu>
</template>
<script>