1
This commit is contained in:
@@ -273,23 +273,23 @@ export default {
|
||||
methods: {
|
||||
example() {
|
||||
// 成功提示
|
||||
this.$uiTool.success('操作成功')
|
||||
this.$ window.framework.uiTool.success('操作成功')
|
||||
|
||||
// 错误提示
|
||||
this.$uiTool.error('操作失败')
|
||||
this.$ window.framework.uiTool.error('操作失败')
|
||||
|
||||
// 警告提示
|
||||
this.$uiTool.warning('警告信息')
|
||||
this.$ window.framework.uiTool.warning('警告信息')
|
||||
|
||||
// 确认对话框
|
||||
this.$uiTool.confirm('确定删除吗?').then(() => {
|
||||
this.$ window.framework.uiTool.confirm('确定删除吗?').then(() => {
|
||||
// 确认后的操作
|
||||
}).catch(() => {
|
||||
// 取消后的操作
|
||||
})
|
||||
|
||||
// Loading
|
||||
const loading = this.$uiTool.loading('加载中...')
|
||||
const loading = this.$ window.framework.uiTool.loading('加载中...')
|
||||
setTimeout(() => loading.close(), 2000)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user