forked from opentiny/tiny-vue
fix(tree-menu): [tree-menu] the search box supports custom placeholder (#1867)
This commit is contained in:
parent
da8bfaf2e4
commit
03f3f419cb
|
@ -78,6 +78,17 @@ export default {
|
||||||
mode: ['pc'],
|
mode: ['pc'],
|
||||||
pcDemo: 'show-expand'
|
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',
|
name: 'data',
|
||||||
typeAnchorName: 'ITreeNodeData',
|
typeAnchorName: 'ITreeNodeData',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<tiny-tree-menu></tiny-tree-menu>
|
<tiny-tree-menu placeholder="请输入内容进行筛选"></tiny-tree-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<template>
|
<template>
|
||||||
<tiny-tree-menu></tiny-tree-menu>
|
<tiny-tree-menu placeholder="请输入内容进行筛选"></tiny-tree-menu>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
Loading…
Reference in New Issue