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
.mask { | |
:global { | |
.#{$antd-prefix}-form-item-control { | |
display: none; | |
} | |
.#{$antd-prefix}-form-item-label::after { | |
content: '**'; | |
display: block; | |
} |
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
root = true | |
[*] | |
charset = utf-8 | |
end_of_line = lf | |
insert_final_newline = true |
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
.item-title { | |
white-space: nowrap; | |
overflow: hidden; | |
text-overflow: ellipsis; | |
} | |
.item-desc { | |
word-break: break-all; | |
white-space: normal; | |
} |
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
# delete empty folders | |
$tdc="DIRECTORY" | |
do { | |
$dirs = gci $tdc -directory -recurse | Where { (gci $_.fullName -Force).count -eq 0 } | select -expandproperty FullName | |
$dirs | Foreach-Object { Remove-Item $_ } | |
$count = $count + 1 | |
} while ($dirs.count -gt 0) | |
echo 'empty folders deleted' | |
# delete files in specific format |
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
.tmall.com, | |
.taobao.com, | |
.163.com, | |
.126.net, | |
github.com, | |
github.blog, | |
.github*.com, | |
.google*.com, | |
.amazonaws.com, | |
.schemastore.org, |
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
// const API = 'http://127.0.0.1:8080'; | |
const API = 'http://192.168.0.107:8080'; | |
export default { | |
entry: "./src/index.js", | |
disableCSSModules: true, | |
outputPath: "../../../spa/cube1", | |
library: "weaCube", | |
libraryTarget: "umd", | |
theme: { | |
"@primary-color": "#2db7f5" |
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
let arr = [5,6,7] | |
let [a] = arr // a: 5 | |
let obj = {'age': 21, 'name': 'xzl'} | |
let {name, age} = obj // name: "xzl",age: 89 | |
// 数组解构按顺序赋值,对象解构按key赋值 |
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
let value = "2020-12-01 17:00" | |
//let value = "17:00" | |
//let value = "00:00" | |
let timeReg = /^(0?[0-9]|1[0-9]|2[0-3]):(0?[0-9]|[1-5][0-9])$/gi; | |
let dateReg = /^[1-2]\d{3}\-(0[1-9]|1[0-2])\-(0[1-9]|[1-2][0-9]|3[0-1])$/gi; | |
let isDateTime = false; | |
let arr = value.split(" "); | |
if (arr.length==2 && dateReg.test(arr[0]) && timeReg.test(arr[1])) { | |
isDateTime = true; | |
} |
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
const resizeObserver = new ResizeObserver(entries => { | |
for (let entry of entries) { | |
entry.target.style.borderRadius = Math.max(0, 250 - entry.contentRect.width) + 'px'; | |
} | |
console.log('resized') | |
}); | |
resizeObserver.observe($('#jquery-div')[0]); | |
resizeObserver.observe($(document.getElementById('raw-div'))[0]); |
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
Object.keys(this).filter(key=>key.match(/[sS]tore/)) | |
Object.keys(this).forEach((e)=>{e.match(/[sS]tore/)?console.log(e):'';}) |
NewerOlder