![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
vue
cfangling
这个作者很懒,什么都没留下…
展开
-
vuex
state const Counter = { template: `div>{{ count }}div>`, computed: { count () { return this.$store.state.count } } } mapState computed: mapState({ count: state => stat转载 2018-01-31 14:04:59 · 337 阅读 · 0 评论 -
vue scss
在vue中使用scss npm install node-sass sass-loader --save-dev <style lang="scss" scoped> ... </style>原创 2018-04-12 10:18:34 · 506 阅读 · 0 评论 -
判断是pc端还是app端,进入不同的页面
methods: { IsPC() { var userAgentInfo = navigator.userAgent var Agents = ['Android', 'iPhone', 'SymbianOS', 'Windows Phone','iPad', 'iPod'] var flag = true for (var v...转载 2018-06-05 16:03:03 · 1245 阅读 · 0 评论 -
vue-cli+webpack项目打包到服务器后,ttf字体找不到
vue-cli+webpack项目打包到服务器后,ttf字体找不到 更改 build/utils.js 文件中 ExtractTextPlugin 插件的options 配置: if (options.extract) { return ExtractTextPlugin.extract({ use: loaders, publicPath: '../../', ...转载 2018-08-20 10:06:21 · 2948 阅读 · 0 评论 -
vue elementUI el-select 同时获取label 和 value 的值
<el-select v-model="selectedVal" @change="startWareAddress"> <el-option v-for="item in wareList" :key="item.whsCode" :label="item.whsName" :value="item.whsCode">&am原创 2018-09-14 14:56:11 · 34848 阅读 · 6 评论 -
使用iframe时动态获取内容高度
使用iframe时动态获取内容高度 iframe页面里的内容是由vue写的。 iframe要加在用js写的地方。 原理:iframe嵌套,会有跨域问题。 我们可以使用postMessage(),自行将内容高度不停的向外传。 父页面,获取到高度设置给iframe。ok data () { return { infoMenu: infoMenu, indInfo:'',...原创 2019-05-23 14:20:36 · 5916 阅读 · 0 评论