Damonlanyang

Results comments of Damonlanyang

> 找到config/index.js 配置文件,找build打包对象里的assetsPublicPath属性 > > 默认值为/,更改为./就好了 最新的 用vue-cli构建的VUE项目,貌似没有那个config文件夹,更没有那个assetsPublicPath属性了,怎么办呢

使用mpvue引入linui按照上面的方法试了依然报错 ![image](https://user-images.githubusercontent.com/23103070/79435281-04f9ef80-8002-11ea-8225-7cd102b50b9c.png) ![image](https://user-images.githubusercontent.com/23103070/79435359-1e9b3700-8002-11ea-9ac5-8a70a5013f61.png)

> > 使用mpvue引入linui按照上面的方法试了依然报错 > > ![image](https://user-images.githubusercontent.com/23103070/79435281-04f9ef80-8002-11ea-8225-7cd102b50b9c.png) > > ![image](https://user-images.githubusercontent.com/23103070/79435359-1e9b3700-8002-11ea-9ac5-8a70a5013f61.png) > > 相对路径前面写../../../ 你只写了两个 目录层级不对 ![image](https://user-images.githubusercontent.com/23103070/79436583-a897cf80-8003-11ea-9779-8efce5051f5a.png) 改成../../../,依然报同样的错

> @Damonlanyang 检查一下这个文件是否有问题 static/dist/action-sheet/index.js 这个文件就是从linui的仓库下载后直接把dist文件夹复制进去的。这个文件就是个压缩js ![image](https://user-images.githubusercontent.com/23103070/79437622-07aa1400-8005-11ea-8af5-f99c98a6e932.png)

> @Damonlanyang 检查一下这个文件是否有问题 static/dist/action-sheet/index.js 解决了。在微信开发者工具里,把ES5->ES6选项勾选上就可以了。

请问,自定义选项卡,怎么把下面的内容放进去? ![image](https://user-images.githubusercontent.com/23103070/79840281-49adce00-83e8-11ea-8b3e-8c81adccef5b.png)

有点类似这个,右边的内容怎么关联到选项卡? ![image](https://user-images.githubusercontent.com/23103070/79841275-c42b1d80-83e9-11ea-9965-d035a8d1d691.png)

> `segment`组件本质上是不包含内容区域的,仅仅只是一个标签。 > 如果你需要标签与内容联动,建议使用`tabs`组件。 > 如果一定要使用`segment`组件,则需要监听`linchange`事件,自行编写内容切换的逻辑, 我知道。但是tabs组件无法满足我自定义选项卡头的需求。 ![image](https://user-images.githubusercontent.com/23103070/79842084-f5f0b400-83ea-11ea-921e-406e2d5b33ba.png)

> ok,了解了。 > 如果给tabs提供一个标签的slot就可以满足你的需求 对吧 对的。

> > 可以提供一下你的js代码吗 > > ![image](https://user-images.githubusercontent.com/23103070/79845486-b5e00000-83ef-11ea-9448-48dfd9046b14.png) ![image](https://user-images.githubusercontent.com/23103070/79845584-dad47300-83ef-11ea-9e54-4727b9eddb14.png)