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'], mode: ['pc'],
pcDemo: 'only-check-children' 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', name: 'props',
typeAnchorName: 'IProps', typeAnchorName: 'IProps',
@ -381,8 +370,8 @@ export default {
type: 'Component', type: 'Component',
defaultValue: '', defaultValue: '',
desc: { desc: {
'zh-CN': '自定义后置图标', 'zh-CN': '全局设置带图标树形菜单',
'en-US': 'Customize the post icon' 'en-US': 'Global settings with icon tree menu'
}, },
mode: ['pc'], mode: ['pc'],
pcDemo: 'custom-icon' pcDemo: 'custom-icon'

View File

@ -1,5 +1,5 @@
<template> <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> </template>
<script setup> <script setup>

View File

@ -1,5 +1,5 @@
<template> <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> </template>
<script> <script>

View File

@ -156,9 +156,9 @@ export default {
}, },
desc: { desc: {
'zh-CN': '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': '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'] codeFiles: ['custom-icon.vue']
}, },

View File

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

View File

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