Commit 8fab5d5b8e82010ca3a95a63ae65498b76e31419

Authored by ly525
1 parent a16b9091

hide background plugin in plugin list

front-end/h5/src/components/core/editor/shortcuts-panel/index.js
@@ -89,7 +89,7 @@ export default { @@ -89,7 +89,7 @@ export default {
89 return ( 89 return (
90 <a-row gutter={20}> 90 <a-row gutter={20}>
91 { 91 {
92 - this.pluginsList.map(plugin => ( 92 + this.pluginsList.filter(plugin => plugin.visible).map(plugin => (
93 <a-col span={12} style={{ marginTop: '10px' }}> 93 <a-col span={12} style={{ marginTop: '10px' }}>
94 <ShortcutButton 94 <ShortcutButton
95 clickFn={this.onClickShortcut.bind(this, plugin)} 95 clickFn={this.onClickShortcut.bind(this, plugin)}
front-end/h5/src/mixins/load-plugins.js
@@ -41,18 +41,18 @@ export const pluginsList = [ @@ -41,18 +41,18 @@ export const pluginsList = [
41 visible: true, 41 visible: true,
42 name: LbpButton.name 42 name: LbpButton.name
43 }, 43 },
44 - // {  
45 - // i18nTitle: {  
46 - // 'en-US': 'Carousel',  
47 - // 'zh-CN': '轮播图'  
48 - // },  
49 - // title: '轮播图',  
50 - // icon: 'photo',  
51 - // component: LbpFormRadioGroup,  
52 - // visible: true,  
53 - // name: LbpFormRadioGroup.name,  
54 - // disabled: true  
55 - // }, 44 + {
  45 + i18nTitle: {
  46 + 'en-US': 'Carousel',
  47 + 'zh-CN': '轮播图'
  48 + },
  49 + title: '轮播图',
  50 + icon: 'photo',
  51 + component: LbpFormRadioGroup,
  52 + visible: true,
  53 + name: LbpFormRadioGroup.name,
  54 + disabled: true
  55 + },
56 { 56 {
57 i18nTitle: { 57 i18nTitle: {
58 'en-US': 'Map', 58 'en-US': 'Map',