-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4742 from nwind/fix-input-password-icon-2
fix: 修复 input-password 在 antd 下不显示问题
- Loading branch information
Showing
3 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/** | ||
* 用于查找某个变量在 cxd-variables 里但不在 properties.scss 里的情况 | ||
*/ | ||
|
||
const fs = require('fs'); | ||
const path = require('path'); | ||
|
||
const cxdVariables = fs.readFileSync( | ||
path.join(__dirname, '..', 'scss', 'themes', '_cxd-variables.scss'), | ||
{encoding: 'utf8'} | ||
); | ||
|
||
const commonVariables = fs.readFileSync( | ||
path.join(__dirname, '..', 'scss', '_properties.scss'), | ||
{encoding: 'utf8'} | ||
); | ||
|
||
const cxdVariableSet = new Set(); | ||
|
||
cxdVariables.match(/\-\-[\-a-zA-Z0-9]+/g).forEach(function (variable) { | ||
cxdVariableSet.add(variable); | ||
}); | ||
|
||
const commonVariableSet = new Set(); | ||
|
||
commonVariables.match(/\-\-[\-a-zA-Z0-9]+/g).forEach(function (variable) { | ||
commonVariableSet.add(variable); | ||
}); | ||
|
||
for (const variable of cxdVariableSet) { | ||
if (!commonVariableSet.has(variable)) { | ||
console.log(variable); | ||
} | ||
} |