摘要: 1、介绍 什么是store? Store是一个保存状态和业务逻辑的实体,它并不与你的组件树绑定,换句话说,它承载着全局状态。它有点像一个永远存在的组件,每个组件都可以读取和写入它。 Vuex Vuex就是专为Vue应用程序开发的store。它用于管理Vue应用中的共享状态,使得多个组件能够方便地访问 阅读全文
posted @ 2026-04-10 15:44 luckylou 阅读(6) 评论(0) 推荐(0)
摘要: 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 阅读(219) 评论(0) 推荐(0)
摘要: 您需要增加节点允许的内存量。 您可以通过以下方式在全局范围内执 打开一个cmd窗口跑 setx NODE_OPTIONS --max_old_space_size=6144关闭所有cmd /代码编辑器重新打开cmd并再次运行节点命令(npm等) 阅读全文
posted @ 2024-06-17 15:56 luckylou 阅读(189) 评论(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 阅读(96) 评论(0) 推荐(0)
摘要: 需要设置height的具体值,auto不生效 解决方法 大概预估一下max-height的值 使用max-height代替height 阅读全文
posted @ 2024-06-06 10:51 luckylou 阅读(28) 评论(0) 推荐(0)
摘要: 1)相同点: ?? 和 || 的用法相同,都是前后是值,中间用符号连接,根据前面的值来判断最终是返回前面的值还是后面的值。 One ?? Two One || Two 2)不同点: 判断的方法不同: 使用 ?? 时,只有One为 null 或者 undefined 时才会返回 two; 使用 || 阅读全文
posted @ 2024-05-30 11:42 luckylou 阅读(228) 评论(0) 推荐(1)
摘要: 执行以下命令 NODE_OPTIONS="--openssl-legacy-provider" 然后 npm run serve 阅读全文
posted @ 2024-04-29 18:13 luckylou 阅读(63) 评论(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 阅读(1129) 评论(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 阅读(76) 评论(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 阅读(1538) 评论(0) 推荐(0)