king
2021-12-19 9e322cf8ed0d62124fcd017d6066ecfc50950196
src/views/mobdesign/index.jsx
@@ -1210,6 +1210,8 @@
  verifyConfig = (show) => {
    const { config } = this.state
    let error = ''
    let searchSum = 0
    let swipes = []
    let check = (components) => {
      components.forEach(item => {
@@ -1224,6 +1226,18 @@
          return
        } else if (item.type === 'navbar' && !item.wrap.MenuNo) {
          error = `导航栏《${item.name}》未设置菜单参数!`
        } else if (item.type === 'topbar') {
          if (item.wrap.type === 'search' || item.wrap.type === 'searchIcon' || (item.wrap.type === 'navbar' && item.wrap.search === 'true')) {
            searchSum += 1
          }
        } else if (item.type === 'search') {
          searchSum += 1
          if (!item.wrap.field) {
            error = `搜索条件《${item.name}》未设置搜索字段!`
          }
        }
        if (item.wrap && item.wrap.pagestyle === 'slide') {
          swipes.push(item.name)
        }
        if (['propcard', 'brafteditor', 'sandbox', 'tabbar', 'stepform', 'tabform'].includes(item.subtype) && item.wrap.datatype === 'static') return
@@ -1255,6 +1269,12 @@
    check(config.components)
    if (!error && searchSum > 1) {
      error = '搜索组件与导航栏的搜索功能不可同时使用。'
    } else if (!error && swipes.length > 1) {
      error = `页面中不可同时使用多个滑动加载组件。(${swipes.join('、')})`
    }
    if (show && error) {
      notification.warning({
        top: 92,