0.1.3 • Published 2 years ago

element-ts-wyl v0.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

API 文档

xdm-caster

引入

import xdmCaster from 'element-ts-wyl';
components: {
  xdmCaster;
}
名称说明类型
options绑定选择内容{ value: string; label: string; children:{父级}[]}[]
props配置选项见 element 官网
filterable是否可以搜索选项boolean

使用

<xdm-caster :options="options" :props="{ multiple: true }" filterable></xdm-caster>
名称说明类型
beforDeleteTag在删除标签之前执行Promise 类型函数

示例

handleChange(): Promise<any> {
    return new Promise((reslove, reject) => {
      this.$confirm('此操作将永久删除该文件, 是否继续?', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        type: 'warning'
      })
        .then(() => {
          reslove(1);
        })
        .catch(() => {
          reject();
          this.$message({
            type: 'info',
            message: '已取消删除'
          });
        });
    });
  }
0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago