| | |
| | | } |
| | | |
| | | UNSAFE_componentWillMount () { |
| | | const { components } = this.props |
| | | const { components, viewType } = this.props |
| | | let options = [] |
| | | |
| | | if (components) { |
| | |
| | | if (adapters.indexOf('wxmini') === -1) { |
| | | options = options.filter(item => item.adapter !== 'mini') |
| | | } |
| | | } |
| | | |
| | | if (viewType === 'popview') { |
| | | options = options.filter(item => !['topbar', 'navbar', 'login', 'officialAccount'].includes(item.component)) |
| | | } |
| | | |
| | | this.setState({ |
| | |
| | | content: '', |
| | | onOk() { |
| | | return new Promise(resolve => { |
| | | Api.getSystemConfig({ |
| | | Api.getCloudConfig({ |
| | | func: 's_custom_components_adduptdel', |
| | | c_id: item.uuid, |
| | | images: '', |