首页 > 其他 > 详细

iview的table中点击Icon弹Poptip,render函数的写法

时间:2019-01-27 18:37:22      阅读:590      评论:0      收藏:0      [点我收藏+]
render: (h, params) => {
              return h(‘div‘, [
                          h(‘div‘, [
                              h(‘Poptip‘, {
                                  props: {
                                    confirm: true,
                                    transfer: true,
                                    placement: ‘left-start‘,
                                    title: ‘确定要删除吗!‘,
                                    type: ‘error‘,
                                    size: ‘small‘,
                                    width: ‘300‘,
                                    vModel: true
                                  },
                                  on: {
                                      ‘on-ok‘: ()=>{
                                          this.$Message.info(‘点击了确定‘)
                                      },
                                      ‘on-cancel‘: ()=>{
                                          this.$Message.info(‘点击了取消‘)
                                      }
                                  }
                              }, [
                                h(‘Icon‘,{
                                    props: {
                                      type: ‘ios-gear‘,
                                      size:18
                                    }
                                })
                              ])
                          ]),
                      ]);
                  }

 

iview的table中点击Icon弹Poptip,render函数的写法

原文:https://www.cnblogs.com/ivan5277/p/10327305.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!