Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
27 lines
497 B
TypeScript
27 lines
497 B
TypeScript
Component({
|
|
properties: {
|
|
/** 是否显示弹框 */
|
|
show: {
|
|
type: Boolean,
|
|
value: false
|
|
}
|
|
},
|
|
|
|
methods: {
|
|
/** 点击遮罩关闭 */
|
|
onClose() {
|
|
this.triggerEvent('close')
|
|
},
|
|
|
|
/** 一键添加本人 */
|
|
onAddSelf() {
|
|
this.triggerEvent('addself')
|
|
},
|
|
|
|
/** 添加其他用户 */
|
|
onAddOther() {
|
|
this.triggerEvent('addother')
|
|
}
|
|
}
|
|
})
|