fix(tree-menu): [tree-menu] Delete the prefix-icon attribute of the tree menu component (#1789)

This commit is contained in:
wuyiping0628 2024-07-30 23:24:18 -07:00 committed by GitHub
parent 746c8ea054
commit 3aee085d47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 6 additions and 19 deletions

View File

@ -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'

View File

@ -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>

View File

@ -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>

View File

@ -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']
},

View File

@ -12,7 +12,6 @@ export const treeMenuProps = {
nodeKey: String,
defaultExpandAll: Boolean,
suffixIcon: Object,
prefixIcon: Object,
searchIcon: {
type: Object,
default: () => iconSearch()

View File

@ -137,7 +137,6 @@ export default defineComponent({
nodeKey: String,
defaultExpandAll: Boolean,
suffixIcon: Object,
prefixIcon: Object,
searchIcon: {
type: Object,
default: () => iconSearch()