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
git config --global http.proxy http://127.0.0.1:1080 | |
git config --global https.proxy http://127.0.0.1:1080 | |
git config --global --unset http.proxy | |
git config --global --unset https.proxy | |
npm config delete proxy |
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 (function clipboard(document) { | |
let textArea; | |
// 创建文本元素 | |
function createTextArea(text) { | |
textArea = document.createElement('textArea'); | |
textArea.setAttribute('readonly', true); | |
textArea.value = text; | |
document.body.appendChild(textArea); |
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
body, html, p, h1, h2, h3, h4, h5, h6, ul, li { | |
margin: 0; | |
padding: 0; | |
} | |
// 以下三个是实现滚动条不占位的代码 | |
html { | |
overflow-y: scroll; | |
} |
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
[参考链接](https://www.eventbrite.com/engineering/mobile-safari-why/) | |
在按钮元素上加上如下属性 | |
/* Allows content to fill the viewport and go beyond the bottom */ | |
height: 100%; | |
/* Allows you to scroll below the viewport; default value is visible */ | |
overflow-y: scroll; | |
/* To smooth any scrolling behavior */ | |
-webkit-overflow-scrolling: touch; |
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
module.exports = { | |
root: true, | |
env: { | |
node: true | |
}, | |
'extends': [ | |
'plugin:vue/essential', | |
'@vue/standard', | |
'@vue/typescript' | |
], |
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
@mixin placeholder($fontSize: 16px, $color: rgba(153,153,153,0.54)) { | |
&::-webkit-input-placeholder{ | |
color: $color; | |
} | |
&:-moz-placeholder { | |
color: $color; | |
} | |
&::-moz-placeholder { | |
color: $color; | |
} |
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
* { | |
-webkit-tap-highlight-color: transparent; | |
} | |
*, | |
*::after, | |
*::before { | |
box-sizing: border-box; | |
} | |
html, |
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 { | |
inserted (el, binding, vnode) { | |
vnode.context.$nextTick(() => { | |
let ripple = new Ripple({ el, binding }) | |
ripple.addEvent() | |
}) | |
}, | |
update (el, binding, vnode) { | |
vnode.context.$nextTick(() => { | |
let ripple = new Ripple({ el, binding }) |
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
<html> | |
<head> | |
<title>Parcel Sandbox</title> | |
<meta charset="UTF-8" /> | |
</head> | |
<style> | |
.circle_process{ | |
position: relative; | |
width: 200px; | |
height : 200px; |
NewerOlder