Ant Design Vue
gblfy
心如向阳,次第花开!
展开
-
启动vue项目失败,报错Failed at the [email protected] postinstall script.
在启动vue项目的时候报错报错信息如下:npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! [email protected] postinstall: `node scripts/build.js`npm ERR! Exit status 1npm ERR!npm ERR! Failed at the [email protected] postinstall script.npm ERR! This is probably not a pro原创 2021-05-16 16:38:31 · 544 阅读 · 0 评论 -
Ant Design Vue list表格组件
文章目录1.案例部分代码2. 简述3.案例代码1.案例部分代码 <a-table :columns="columns" :row-key="record => record.id" :data-source="ebooks" :pagination="pagination" :loading="loading" @change="handleTableChange"原创 2021-04-19 18:55:49 · 2122 阅读 · 3 评论 -
安装和使用Ant Design Vue 图标库
# 进入到web项目根目录 cd web #在cmd命令窗口执行 npm install @ant-design/icons-vue --save # 在main.ts引入import {createApp} from 'vue'import App from './App.vue'import router from './router'import store from './store'import Antd from 'ant-design-vue';import 'an原创 2021-04-19 18:38:15 · 5144 阅读 · 1 评论 -
Ant Design Vue页面数据复制
页面编辑时复制对象,修改表单时,不影响列表数据/** * 空校验 null或""都返回true */ public static isEmpty (obj: any) { if ((typeof obj === 'string')) { return !obj || obj.replace(/\s+/g, "") === "" } else { return (!obj || JSON.stringify(obj) === "{}" || obj.l原创 2021-04-19 18:26:58 · 1645 阅读 · 0 评论 -
Ant Design Vue 表格数据按树型展示
/** * 使用递归将数组转为树形结构 * 父ID属性为parent */ public static array2Tree (array: any, parentId: number) { if (Tool.isEmpty(array)) { return []; } const result = []; for (let i = 0; i < array.length; i++) { const c = array[i原创 2021-04-19 18:29:26 · 2278 阅读 · 1 评论