king
2024-08-25 326aa6b3effaccc71cfe0775d47b0f29eb3695a6
src/menu/transfer/index.jsx
@@ -26,7 +26,7 @@
  trigger = () => {
    const { config } = this.props
    const _this = this
    const that = this
    if (!config.enabled) {
      let tb = config.components[0]
@@ -36,7 +36,7 @@
          content: '',
          onOk() {
            return new Promise(resolve => {
              _this.execUpdate(resolve, true)
              that.execUpdate(resolve, true)
            })
          },
          onCancel() {}
@@ -58,7 +58,7 @@
      content: '',
      onOk() {
        return new Promise(resolve => {
          _this.execUpdate(resolve)
          that.execUpdate(resolve)
        })
      },
      onCancel() {}
@@ -73,8 +73,6 @@
    _config.enabled = false
    delete _config.autoMatic
    let useMSearch = false
    if (clear) {
      _config.components = []
@@ -91,9 +89,6 @@
            tab.components[0].width = 24
            tab.components[0].wrap.width = 24
            tab.components[0].wrap.name = tab.components[0].name
            if (tab.components[0].setting.useMSearch === 'true') {
              useMSearch = true
            }
  
            tab.components[0].action.forEach(btn => {
              if (btn.OpenType === 'popview' && btn.config) {
@@ -145,14 +140,14 @@
      })
    }
    if (useMSearch) {
    if (_config.components[0].search && _config.components[0].search.length > 0) {
      let cell = {
        uuid: Utils.getuuid(),
        type: 'search',
        width: 24,
        subtype: 'mainsearch',
        name: '搜索',
        search: _config.components[0].search || [],
        search: _config.components[0].search,
        style: {borderBottomColor: '#f0f0f0', borderBottomWidth: '1px'},
        wrap: {float: 'left', blacklist: [], name: '搜索', width: 24}
      }