- 博客(10)
- 收藏
- 关注
原创 uni-app 插槽使用v-if报错In order to be iterable, non-array objects must have a Symbol.iterator method.
uni-app 插槽使用v-if报错In order to be iterable, non-array objects must have a Symbol.iterator method.
2022-09-21 15:29:44
982
原创 uni-app 安卓打包自有证书失败,提示证书无效
Caused by: com.android.ide.common.signing.KeytoolException: Failed to read key lfjlalias from store \"[PackagePath]/wgtRoot/__UNI__D60A4D1/.manifest/google-keystore.keystore\": Invalid keystore formatat com.android.ide.common.signing.KeystoreHelper.getCer
2022-06-24 15:45:50
2557
原创 vue 多个组件动态加载(动态组件的使用)
需求:多个卡片根据接口返的数据列表去加载初步想法:直接使用v-if指令进行条件渲染<div> <CarefulClerkAnswer v-if="item.gameName=='careful_clerk'" @viewImg="viewImg" :question="item"></CarefulClerkAnswer> <LittleWaiterAnswer v-if="item.gameName=='little_waiter'" @vi
2021-11-20 16:28:53
1993
2
原创 CSS3 :nth-child() 、:nth-of-type()选择器对比
p:nth-child(2) 选择属于其父元素的第二个子元素的每个 <p> 元素。 p:nth-of-type(2) 选择属于其父元素第二个 <p> 元素的每个 <p> 元素。 nth-child使用<!DOCTYPE html><html><head><style> p:nth-child(2){background:#ff0000;}</style></.
2021-11-17 11:37:56
387
原创 vue项目中同时使用多个UI组件,按需引入方法
首先,安装 babel-plugin-component:npm install babel-plugin-component -D在babel.config.js中配置。配置格式如下plugins: [['some-plugin', {}],['some-plugin', {}, 'some unique name'],]注意这里的'some unique name' ,表示组件唯一标识名称,按需引入多个组件时要设置,否则会报错。我的项目中同时使用了element-u..
2021-11-02 11:57:48
3602
原创 vue使用js-table2excel将数据导出Excel表格,含文字、图片类型, 设置表格样式/添加合并单元格
在vue项目中使用js-table2excel导出带有文字、图片类型的excel表格
2021-10-27 10:14:21
13624
14
原创 element-ui el-select/el-cascader设置默认值,默认值不显示
最近接手了一个后台管理项目,项目使用了Element-ui组件, 使用了Select 下拉菜单展示并选择内容,使用了cascader做级联城市选择器看了官方文档我们知道可以使用v-model绑定数据,设置初始值/默认值<el-form-item label="班级" prop="classId"> <el-select v-model="form.classId" placeholder="请选择班级"> <el-option v-for="(valu
2021-10-21 17:58:36
6466
原创 修改Element-ui源码
项目中使用了element-ui image,需要监听到蒙版关闭事件,原来没有暴露这个事件,然后就需要对源码进行修改。1.首先从Element-ui官网下载一份源码到本地https://github.com/ElemeFE/element2.下载并解压得到3.进入element-dev中运行npm installnpm run dev成功后可访问http://localhost:8085会看到和官网一样的项目页面4.进入element文件夹,packages文件夹就是.
2021-10-20 15:01:12
4274
原创 vue项目中使用mint-ui swiper 报Ignored attempt to cancel a touchmove event with cancelable=false, for examp
控制台查看报错信息,定位到报错位置,将event.preventDefault();注释掉,报错就没有了mint-ui.common.js文件路径:/node_modules/mint-ui/lib/mint-ui.common.js
2021-10-20 14:40:38
5056
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人