| | |
| | | item.label = '值' |
| | | } else if (item.key === 'format') { |
| | | if (card.eleType === 'text') { |
| | | item.options = item.oriOptions.filter(op => op.value !== 'percent' && op.value !== 'thdSeparator') |
| | | item.options = item.oriOptions.filter(op => !['percent', 'thdSeparator', 'abs'].includes(op.value)) |
| | | } else if (card.eleType === 'number') { |
| | | item.options = item.oriOptions.filter(op => !op.value || op.value === 'percent' || op.value === 'thdSeparator') |
| | | item.options = item.oriOptions.filter(op => !op.value || ['percent', 'thdSeparator', 'abs'].includes(op.value)) |
| | | } |
| | | } else if (item.key === 'url') { |
| | | item.required = card.eleType !== 'qrcode' |
| | |
| | | } |
| | | } else if (item.key === 'format') { |
| | | if (value === 'text') { |
| | | item.options = item.oriOptions.filter(op => op.value !== 'percent' && op.value !== 'thdSeparator') |
| | | item.options = item.oriOptions.filter(op => !['percent', 'thdSeparator', 'abs'].includes(op.value)) |
| | | } else if (value === 'number') { |
| | | item.options = item.oriOptions.filter(op => !op.value || op.value === 'percent' || op.value === 'thdSeparator') |
| | | item.options = item.oriOptions.filter(op => !op.value || ['percent', 'thdSeparator', 'abs'].includes(op.value)) |
| | | } |
| | | } else if (item.key === 'url') { |
| | | item.required = value !== 'qrcode' |