Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

popup中通过v-model绑定报错 #195

Open
michael2043 opened this issue Jan 27, 2019 · 3 comments
Open

popup中通过v-model绑定报错 #195

michael2043 opened this issue Jan 27, 2019 · 3 comments

Comments

@michael2043
Copy link

michael2043 commented Jan 27, 2019

let template = '<textarea v-model="commentContent" placeholder="请输入内容" style="height:150px"></textarea>';
let popup = $popup.fromTemplate(template, options)
popup.show().then((buttonIndex) => {
......
});

data() {
return {
commentContent:''
};
},
image

@YanAnHuaZai
Copy link

我想的办法就是:
let template = '<textarea placeholder="请输入内容" style="height:150px">'+this.commentContent+'</textarea>';

@michael2043
Copy link
Author

let options = {
effect: 'scale',
title: '',
buttons: [
{text: '发布', theme: 'assertive'},
{text: '发布1', theme: 'assertive'}
],
showClose: true
}
buttons里配置的按钮,点击就直接关闭了,能否调用自己的逻辑后通过调用hide方法手动关闭

@YanAnHuaZai
Copy link

找了控制的地方,但是尝试自己修改一下 失败了 感觉我那样做很麻烦

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants