摘要: const imageStyle = computed(() => { return { transform: `translate(${translate.value.x}px, ${translate.value.y}px) scale(${imgScale.value}) rotate(${r 阅读全文
posted @ 2024-07-04 16:37 luckylou 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 您需要增加节点允许的内存量。 您可以通过以下方式在全局范围内执 打开一个cmd窗口跑 setx NODE_OPTIONS --max_old_space_size=6144关闭所有cmd /代码编辑器重新打开cmd并再次运行节点命令(npm等) 阅读全文
posted @ 2024-06-17 15:56 luckylou 阅读(2) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <img :style="imageStyle" src="path/to/your/image.jpg" alt="Rotated Image"> <button @click="rotateImage">Rotate Image</button> </div> 阅读全文
posted @ 2024-06-14 17:29 luckylou 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 需要设置height的具体值,auto不生效 解决方法 大概预估一下max-height的值 使用max-height代替height 阅读全文
posted @ 2024-06-06 10:51 luckylou 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 1)相同点: ?? 和 || 的用法相同,都是前后是值,中间用符号连接,根据前面的值来判断最终是返回前面的值还是后面的值。 One ?? Two One || Two 2)不同点: 判断的方法不同: 使用 ?? 时,只有One为 null 或者 undefined 时才会返回 two; 使用 || 阅读全文
posted @ 2024-05-30 11:42 luckylou 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 执行以下命令 NODE_OPTIONS="--openssl-legacy-provider" 然后 npm run serve 阅读全文
posted @ 2024-04-29 18:13 luckylou 阅读(4) 评论(0) 推荐(0) 编辑
摘要: <template> <a-input-search v-model:value="searchText" allow-clear @search="onSearch" @clear="clearSearch" placeholder="请输入" /> <a-button @click="clear 阅读全文
posted @ 2024-03-21 15:07 luckylou 阅读(297) 评论(0) 推荐(0) 编辑
摘要: &:focus { border-color: var(--ant-primary-color); background: var(--ant-primary-color); } &:focus:hover { border-color: var(--ant-primary-color-hover) 阅读全文
posted @ 2024-03-15 15:41 luckylou 阅读(34) 评论(0) 推荐(0) 编辑
摘要: <style scoped lang="sass"> .main_wrapper padding: 0 53px position: relative top: -20px /deep/ .el-tabs__item height: 30px line-height: 30px color: #ff 阅读全文
posted @ 2024-02-26 14:53 luckylou 阅读(630) 评论(0) 推荐(0) 编辑
摘要: Object.entries() 静态方法返回一个数组,包含给定对象自有的可枚举字符串键属性的键值对。 JavaScript Demo: Object.entries() const object1 = { a: 'somestring', b: 42, }; for (const [key, va 阅读全文
posted @ 2024-01-24 15:10 luckylou 阅读(12) 评论(0) 推荐(0) 编辑