LY
LY
关于 commitlint, husky, eslint 的具体信息可以见官网。 - commitlint: [官网](http://marionebl.github.io/commitlint/#/), [github 仓库](https://github.com/marionebl/commitlint) - husky: [github 仓库](https://github.com/typicode/husky) - eslint [中文官网](http://eslint.cn/) ## 一、配置 commitlint commitlint 搭配 husky 的 commit message 钩子后,每次提交 git 版本信息的时候,会根据配置的规则进行校验,若不符合规则会 commit...
For the past three years, I’ve been using both React and Vue in different projects, ranging from smaller websites to large scale apps. 在过去的三年里,我一直在不同的项目中使用 React 和 Vue,范围从小型网站到大型应用程序。 Last month I...
今天偶然发现,在Vue中使用插槽slot,是无法通过v-show控制slot的显示的,来看代码 ``` Vue.component('fade', { props: ['show'], template: ` `, methods: { handleBeforeEnter: function(el) { el.style.color = 'red' }, handleEnter: function(el, done) { setTimeout(() => { el.style.color = 'green' done() },...
[Vue 的父组件和子组件生命周期钩子执行顺序是什么](https://github.com/Advanced-Frontend/Daily-Interview-Question/issues/128)
# CSS如何实现文字两端对齐 **关键** 1. `text-align: justify` 2. `after、before伪元素` ## 具体实现 ```html demo * { margin: 0; padding: 0; } .row>div:first-of-type { /* width: 500px; */ height: 50px; line-height: 50px; font-size:...
```json { "workbench.colorCustomizations": { "activityBar.background": "#111111", "activityBarBadge.background": "#FFA000", "list.activeSelectionForeground": "#FFA000", "list.inactiveSelectionForeground": "#FFA000", "list.highlightForeground": "#FFA000", "scrollbarSlider.activeBackground": "#FFA00050", "editorSuggestWidget.highlightForeground": "#FFA000", "textLink.foreground": "#FFA000", "progressBar.background": "#FFA000", "pickerGroup.foreground": "#FFA000", "tab.activeBorder": "#FFA000", "notificationLink.foreground": "#FFA000", "editorWidget.resizeBorder": "#FFA000",...
1. [vue计算属性和watch的区别](https://segmentfault.com/a/1190000012948175)