iview 在modal中用render渲染select

					this.$Modal.confirm({
                      render: (h) => {
                        return h('Select', {
                          props: {
                            value: this.value,
                            autofocus: true,
                            placeholder: '修改設備狀態'
                          },
                          on: {
                            'on-change':(event) => {
                              console.log(event)
                            }
                          },
                        },
                        this.value.map((value) => {
                          return h('Option', {
                            props: {value: value.value}
                          }, value.label)
                        })
                        )
                      }
                    })
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章