
iview
fk129
这个作者很懒,什么都没留下…
展开
-
iview进度条配置
// 进度条配置Vue.prototype.$Loading.config({ color: '#2d8cf0', failedColor: '#f0ad4e', height: 10});原创 2019-04-13 19:56:11 · 4771 阅读 · 0 评论 -
iview 全局提示Message 全局配置
一、在main.js配置// 全局配置messageVue.prototype.$Message.config({ top: 100, duration: 3});二、在文件里配置this.$Message.config({ top: 50, duration: 3});原创 2019-10-23 09:15:19 · 2540 阅读 · 0 评论 -
iview table展示图片、文字,判断显示相应内容
在项目中使用iview的table控件时,遇到的问题:1.表格如何显示图片(居中):{ title: '户籍照片', type: 'photoUrl', align: 'center', render: (h, params) => { return h("div",{ style: { height: "100px", margin: "10px",overflow...原创 2020-03-17 15:34:19 · 1137 阅读 · 0 评论 -
设置iview tree选中
// tree 树数据//ids 要选中节点的idfunction filterDeviceTree(tree, ids) { let _tree = JSON.parse(JSON.stringify(tree)) if (ids.length == 0) { return _tree } return _tree.filter((item...原创 2019-10-21 10:41:23 · 4323 阅读 · 2 评论 -
iview 重新显示Modal内嵌的Tabs默认选中显示指定项
Tabs的value当前激活 tab 面板的 name,可以展示相应项;但是只有初始加载是有效;当重新显示指定显示项没有用能用的是 this.$refs.tabs.activeKey = ‘name1’ ,activeKey是活动的TabPane 对应的值是TabPane 中的name值(name1)<Tabs ref="tabs"> <TabPane label="" name="alarmInfo"> </TabPane>原创 2020-06-18 14:52:06 · 1310 阅读 · 0 评论 -
动态数据生成collapse自动打开第一面板
vue使用iview手风琴遇到的坑。vue动态数据生成手风琴,初始化打开面板值时,不会自动打开面板值。<Collapse ref="Collapse" v-model="collapseValue"> <Panel ref="resultChcked" v-for="(item,index) in siteList" :key="index" > <span style="margin-left:30px;">{{item.time}}</span&原创 2020-06-05 14:23:37 · 1599 阅读 · 0 评论