- 博客(73)
- 收藏
- 关注
原创 小程序实现超出显示省略号, 点击展开显示全部和点击收起显示省略号
主要就是使用浮动float: right;把按钮移动到右边和clear: both;清除浮动到最后一行, 用::before伪类。
2025-02-07 16:56:14
233
原创 微信小程序web-view标签嵌套h5
web-view嵌套h5的字段不能和路由的一样<template> <div v-if="webViewUrl"> <web-view :src="webViewUrl"></web-view> </div></template><script>export default { data() { return { webViewUrl: '' }; }, as
2024-02-27 10:04:22
350
原创 uni-app小程序,uview-ui组件样式无法穿透修改的解决办法
:v-deep .类样式{}/deep/ .类样式{}在需要改动的文件内加上。
2023-10-24 15:25:13
2701
原创 vue3+ts 错误: 找不到模块“./App.vue”或其相应的类型声明。
【代码】vue3+ts 错误: 找不到模块“./App.vue”或其相应的类型声明。
2023-06-02 22:27:53
171
转载 css实现文字渐变色
解决办法:如果对兼容性要求不高,且为了保证平稳退化,可以使用css的特征检测选择器@supports,虽然这个选择器本身也有兼容性问题,但是这样写至少能保证有一个默认颜色。原理:为文字设置渐变背景颜色,并设置透明颜色字体,使用background-clip:text对背景进行裁剪,留下文本部分的背景,从而实现渐变效果。问题:background-clip: text的兼容性并不好,一旦浏览器不兼容,背景就会直接暴露出来。可以到https://caniuse.com/,查看具体的浏览器支持度。
2023-04-11 13:49:16
1476
原创 饿了么的 el-collapse 组件回车键会触发显隐(第一次手动触发后)
饿了么的 el-collapse 组件回车键会触发显隐(第一次手动触发后)
2022-12-29 18:28:52
533
原创 报错Error in nextTick: “TypeError: undefined is not iterable
【代码】报错Error in nextTick: "TypeError: undefined is not iterable。
2022-08-24 17:54:29
4179
原创 read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was
安装依赖报错根据这个报错信息可以得出,目前你电脑npm的版本是适合于lockfileVersion@1的,但是你的package-lock.json是源于lockfileVersion@2的。因为代码中使用的某个插件只能用特定版本的npm下载,所以会报错导致npm install失败。这时就需要升级一下npm。windows键加 x ,然后按 i 调出power shell页面。然后运行指令又报了这个错误猜测可能是npm有问题不能只用npm自己来升级自己,需要使用其它的工具升级最后使用 cn
2022-07-13 18:18:44
4748
原创 vue安装sass后报错 this.getOptions is not a function
以上安装方式是安装当前最新版本我卸载了最新版本,安装了9.0.3版本
2022-07-13 10:32:40
956
原创 react定义bus事件(实现vue的$bus非父子传值)
定义bus事件 挂载到window创建utils/bus.js文件// a shim for bindif (typeof Function.prototype.bind !== "function") { Function.prototype.bind = function (bind) { var self = this; return function () { var args = Array.prototype.slice.call(argum
2022-05-04 17:14:47
486
原创 SVG图标使用
SVG图标// helper.js 文件/** * @param {string | string[] | undefined} color * @param {number} index * @param {string} defaultColor * @return {string} */export const getIconColor = (color, index, defaultColor) => { return color ? ( typeof
2022-04-25 10:45:09
333
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人