| | |
| | | fields.forEach(item => { |
| | | if (item.type !== 'text' && item.type !== 'number') return |
| | | |
| | | resets.push({ |
| | | value: item.field, |
| | | text: item.label |
| | | }) |
| | | if (item.label !== item.field) { |
| | | resets.push({ |
| | | value: item.field, |
| | | text: item.label + ' (' + item.field + ')' |
| | | }) |
| | | } else { |
| | | resets.push({ |
| | | value: item.field, |
| | | text: item.label |
| | | }) |
| | | } |
| | | }) |
| | | |
| | | return [ |
| | |
| | | options: modules |
| | | }, |
| | | { |
| | | type: 'number', |
| | | key: 'syncDelay', |
| | | label: '刷新延迟', |
| | | initVal: card.syncDelay, |
| | | tooltip: '同步刷新组件的延迟时间,单位毫秒。', |
| | | // placeholder: '单位毫秒', |
| | | required: false |
| | | }, |
| | | { |
| | | type: 'cascader', |
| | | key: 'anchors', |
| | | label: '跳转锚点', |