forked from opentiny/tiny-vue
fix(tree-menu): [tree-menu] Delete the prefix-icon attribute of the tree menu component (#1789)
This commit is contained in:
parent
746c8ea054
commit
3aee085d47
|
@ -283,17 +283,6 @@ export default {
|
|||
mode: ['pc'],
|
||||
pcDemo: 'only-check-children'
|
||||
},
|
||||
{
|
||||
name: 'prefix-icon',
|
||||
type: 'Component',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '自定义前置图标',
|
||||
'en-US': 'Customize the front icon'
|
||||
},
|
||||
mode: ['pc'],
|
||||
pcDemo: 'custom-icon'
|
||||
},
|
||||
{
|
||||
name: 'props',
|
||||
typeAnchorName: 'IProps',
|
||||
|
@ -381,8 +370,8 @@ export default {
|
|||
type: 'Component',
|
||||
defaultValue: '',
|
||||
desc: {
|
||||
'zh-CN': '自定义后置图标',
|
||||
'en-US': 'Customize the post icon'
|
||||
'zh-CN': '全局设置带图标树形菜单',
|
||||
'en-US': 'Global settings with icon tree menu'
|
||||
},
|
||||
mode: ['pc'],
|
||||
pcDemo: 'custom-icon'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<tiny-tree-menu :search-icon="tinyIconCalendar" :prefix-icon="tinyIconDoubleRight"></tiny-tree-menu>
|
||||
<tiny-tree-menu :search-icon="tinyIconCalendar" :suffix-icon="tinyIconDoubleRight"></tiny-tree-menu>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<template>
|
||||
<tiny-tree-menu :search-icon="tinyIconCalendar" :prefix-icon="tinyIconDoubleRight"></tiny-tree-menu>
|
||||
<tiny-tree-menu :search-icon="tinyIconCalendar" :suffix-icon="tinyIconDoubleRight"></tiny-tree-menu>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
|
|
|
@ -156,9 +156,9 @@ export default {
|
|||
},
|
||||
desc: {
|
||||
'zh-CN':
|
||||
'<p>通过 <code>search-icon</code> 属性自定义搜索图标, <code>prefix-icon</code> 自定义前置图标。</p>\n',
|
||||
'<p>通过 <code>search-icon</code> 属性设置自定义搜索图标。</p>\n <p>通过 <code>suffix-icon</code> 属性全局设置带图标树形菜单。</p>\n',
|
||||
'en-US':
|
||||
'<p>Customize the search icon through the <code>search-icon</code> attribute, and through the <code>prefix-icon</code> attribute customize prefix icon.</p>\n'
|
||||
'<p>Set a custom search icon through the <code>search icon</code> attribute .</p> \n <code>suffix icon</code> attribute global settings with icon tree menu</p>\n'
|
||||
},
|
||||
codeFiles: ['custom-icon.vue']
|
||||
},
|
||||
|
|
|
@ -12,7 +12,6 @@ export const treeMenuProps = {
|
|||
nodeKey: String,
|
||||
defaultExpandAll: Boolean,
|
||||
suffixIcon: Object,
|
||||
prefixIcon: Object,
|
||||
searchIcon: {
|
||||
type: Object,
|
||||
default: () => iconSearch()
|
||||
|
|
|
@ -137,7 +137,6 @@ export default defineComponent({
|
|||
nodeKey: String,
|
||||
defaultExpandAll: Boolean,
|
||||
suffixIcon: Object,
|
||||
prefixIcon: Object,
|
||||
searchIcon: {
|
||||
type: Object,
|
||||
default: () => iconSearch()
|
||||
|
|
Loading…
Reference in New Issue