This file contains hidden or 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
| // Z-index mapping: Correctly place your variable in the correct position based on what it should appear above and behind. | |
| // Example usage: z-index: z(header); | |
| $z-list: ( | |
| highest, | |
| lowest | |
| ); | |
| @function z($var) { |
This file contains hidden or 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
| /* eslint-disable no-underscore-dangle */ | |
| export default (computedName) => ({ | |
| watch: { | |
| // We add in a mechanism to delay re-render of this component | |
| // depending on derived reactive data. | |
| [computedName](val) { | |
| const render = this._watcher; | |
| if (render && val) { | |
| this._suspendGetter = render.getter; | |
| render.getter = () => { render.dirty = true; }; |
This file contains hidden or 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 axios from 'axios'; | |
| let instance = axios.create(); | |
| instance.defaults.baseURL = 'xxx.teamwork.com' | |
| instance.defaults.headers.common['Authorization'] = 'Bearer XXX'; | |
| export default instance; |
OlderNewer