UNPKG

@prettyy/ui

Version:

vue2 UI

42 lines (34 loc) 819 B
# @pretty/ui ## 安装 ``` npm install @prettyy/ui ``` ## 引入 ``` javascript import XWUI from '@prettyy/ui' import '@prettyy/ui/dist/css/index.css' ``` ## 使用 ```javascript this.$confirm("确定删除吗?", { type: "warning" }); this.$alert("确定删除吗?", { type: "warning" }); this.$msgbox({ title: '提示', content: '确定删除吗?', confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning', showClose: true, showConfirmButton: true, showCancelButton: false, alert: false, callback: action => { } }) this.$message.success('已经删除了') this.$message.error('已经删除了') this.$message.info('已经删除了') this.$message.warning('已经删除了') const loading = this.$loading() loading.close() ```