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'],
|
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'
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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']
|
||||||
},
|
},
|
||||||
|
|
|
@ -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()
|
||||||
|
|
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue