mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-02 03:08:21 +08:00
fix(build): [date-picker] type
prop error in web-types.json (#15376)
This commit is contained in:
parent
838bad208c
commit
f8c2510705
@ -80,7 +80,6 @@ const reAttribute: ReAttribute = (value, key) => {
|
|||||||
} else if (key === 'Type') {
|
} else if (key === 'Type') {
|
||||||
return rewriteType(str)
|
return rewriteType(str)
|
||||||
.replaceAll(/\bfunction(\(.*\))?(:\s*\w+)?\b/gi, 'Function')
|
.replaceAll(/\bfunction(\(.*\))?(:\s*\w+)?\b/gi, 'Function')
|
||||||
.replaceAll(/\bdate\b/g, 'Date')
|
|
||||||
.replaceAll(/\([^)]*\)(?!\s*=>)/g, '')
|
.replaceAll(/\([^)]*\)(?!\s*=>)/g, '')
|
||||||
.replaceAll(/(<[^>]*>|\{[^}]*}|\([^)]*\))/g, (item) => {
|
.replaceAll(/(<[^>]*>|\{[^}]*}|\([^)]*\))/g, (item) => {
|
||||||
return item.replaceAll(/(\/|\|)/g, '=_0!')
|
return item.replaceAll(/(\/|\|)/g, '=_0!')
|
||||||
|
Loading…
Reference in New Issue
Block a user