mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
fix: input-excel 自动去掉邮箱地址里的 mailto: Closes #6889
This commit is contained in:
parent
347bd37d3b
commit
4d443a67dc
@ -299,6 +299,9 @@ export default class ExcelControl extends React.PureComponent<
|
|||||||
const ExcelValueType = this.ExcelJS.ValueType;
|
const ExcelValueType = this.ExcelJS.ValueType;
|
||||||
if (cell.type === ExcelValueType.Hyperlink) {
|
if (cell.type === ExcelValueType.Hyperlink) {
|
||||||
value = cell.value.hyperlink;
|
value = cell.value.hyperlink;
|
||||||
|
if (value.startsWith('mailto:')) {
|
||||||
|
value = value.substring(7);
|
||||||
|
}
|
||||||
} else if (cell.type === ExcelValueType.Formula) {
|
} else if (cell.type === ExcelValueType.Formula) {
|
||||||
value = cell.value.result;
|
value = cell.value.result;
|
||||||
} else if (cell.type === ExcelValueType.RichText) {
|
} else if (cell.type === ExcelValueType.RichText) {
|
||||||
|
Loading…
Reference in New Issue
Block a user