violet-mio

Results comments of violet-mio

对element-ui一些组件进行简易二次封装 + 穿梭框组件disabled禁用属性,实现禁用功能 ``` export default { // 自定义穿梭框 name: 'CustomTransfer', props: { // 禁用属性 disabled: { type: Boolean, default: false } } } ``` + 图片预览组件 ``` import ElImageViewer...

使用this.$router.push ![image](https://user-images.githubusercontent.com/22009607/125021404-22a2f100-e0ad-11eb-920d-79229d60f684.png) 完整参考这里边代码 https://gitee.com/violet-mio/my-admin/tree/develop/src/views/goods

vue cli已经内置有这些了,不用你显示配置 ![image](https://user-images.githubusercontent.com/22009607/125020326-39e0df00-e0ab-11eb-8284-68351c385566.png) 你可以通过检查webpack 配置,可以发现最终的配置中有sass-loader ![image](https://user-images.githubusercontent.com/22009607/125020536-993eef00-e0ab-11eb-8c68-1aa5df598951.png) ![image](https://user-images.githubusercontent.com/22009607/125020430-6ac11400-e0ab-11eb-891b-fe4124c876c0.png)

我之前参考https://segmentfault.com/a/1190000039255368 别人这样做,你可以试试

> 可以直接提PR @LastStartDust 已经提啦