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
import java.util.Iterator; | |
import java.util.Objects; | |
import java.util.concurrent.*; | |
import java.util.function.Consumer; | |
import java.util.function.Function; | |
/** | |
* @author sunzsh | |
* @param <T> 延迟业务数据的类型 | |
*/ |
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
export default { | |
install(Vue) { | |
const delegates = { | |
'el-select': (component, element) => { | |
return [component.$refs.reference.$el] | |
}, | |
'el-pagination': (component, element) => { | |
const sizesComponent = component.$children.find((child) => child.$options._componentTag === 'sizes'); | |
const eles_ElSelectInSizes = delegates['el-select'](sizesComponent.$children[0], element); |
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
on run | |
tell application "Finder" to set aliasItemName to selection as alias | |
set posixPathName to POSIX path of aliasItemName | |
return posixPathName | |
end run |
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
javascript:$('#content_views').unbind('copy');csdn.copyright.textData='';document.querySelectorAll(".prism,.hljs-button").forEach((b)=>{b.setAttribute('data-title','\u590d\u5236');b.onclick=function(e){navigator.clipboard.writeText(e.target.parentElement.innerText);e.stopPropagation();e.target.setAttribute('data-title','\u590d\u5236\u6210\u529f');setTimeout(()=>{e.target.setAttribute('data-title','\u590d\u5236');},2000)}});document.querySelectorAll("style").forEach((s)=>{if((s.innerText||"").indexOf('#content_views pre')>-1){s.parentElement.removeChild(s)}}); |
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
"editor.renderFinalNewline": "dimmed", | |
"workbench.colorCustomizations": { | |
"editorLineNumber.foreground": "#222", | |
"editorLineNumber.activeForeground": "#666", | |
"editorLineNumber.dimmedForeground": "#111", | |
"editorIndentGuide.background": "#222", | |
"editorIndentGuide.activeBackground": "#666", | |
"editor.lineHighlightBackground": "#111", //修改光标所在行的背景色 | |
"editor.lineHighlightBorder": "#333", //修改光标所在行的边框色 | |
"editor.wordHighlightBorder": "#e4893995" |
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
javascript:(function(){document.querySelector('.hide-article-pos').remove();document.querySelector('.article_content').style.height='initial';})() |
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
Vue.directive('drag', (el) => { | |
const oDiv = el // 当前元素 | |
const minTop = oDiv.getAttribute('drag-min-top') | |
const ifMoveSizeArea = 20 | |
oDiv.onmousedown = e => { | |
let target = oDiv | |
while (window.getComputedStyle(target).position !== 'absolute' && target !== document.body) { | |
target = target.parentElement | |
} |
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
<script> | |
import { Table } from 'element-ui'; | |
export default { | |
extends: Table, | |
mounted() { | |
this.$nextTick(function () { | |
let thead = this.$el.querySelector('.el-table__header-wrapper thead'); | |
let theadNew = thead.cloneNode(true); | |
this.$el.querySelector('.el-table__body-wrapper table').appendChild(theadNew); | |
}) |
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
javascript:(function(){setNativeValue=function(qs,value){const element=document.querySelector(qs);const valueSetter=Object.getOwnPropertyDescriptor(element,'value').set;const prototype=Object.getPrototypeOf(element);const prototypeValueSetter=Object.getOwnPropertyDescriptor(prototype,'value').set;if(valueSetter&&valueSetter!==prototypeValueSetter){prototypeValueSetter.call(element,value)}else{valueSetter.call(element,value)}element.dispatchEvent(new Event('input',{bubbles: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
<style> | |
@keyframes shake { | |
10%, | |
90% { | |
transform: translate3d(-1px, 0, 0); | |
} | |
20%, | |
80% { | |
transform: translate3d(2px, 0, 0); |
NewerOlder