Skip to content

Commit

Permalink
fix(tree-menu): [tree-menu] Delete the prefix-icon attribute of the t…
Browse files Browse the repository at this point in the history
…ree menu component (#1789)
  • Loading branch information
wuyiping0628 authored Jul 31, 2024
1 parent 746c8ea commit 3aee085
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 19 deletions.
15 changes: 2 additions & 13 deletions examples/sites/demos/apis/tree-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
2 changes: 1 addition & 1 deletion examples/sites/demos/pc/app/tree-menu/custom-icon.vue
Original file line number Diff line number Diff line change
@@ -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>
Expand Down
4 changes: 2 additions & 2 deletions examples/sites/demos/pc/app/tree-menu/webdoc/tree-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']
},
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/tree-menu/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export const treeMenuProps = {
nodeKey: String,
defaultExpandAll: Boolean,
suffixIcon: Object,
prefixIcon: Object,
searchIcon: {
type: Object,
default: () => iconSearch()
Expand Down
1 change: 0 additions & 1 deletion packages/vue/src/tree-menu/src/pc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,6 @@ export default defineComponent({
nodeKey: String,
defaultExpandAll: Boolean,
suffixIcon: Object,
prefixIcon: Object,
searchIcon: {
type: Object,
default: () => iconSearch()
Expand Down

0 comments on commit 3aee085

Please sign in to comment.