04 2023 档案
摘要:业务效果 核心代码 <template> <a-pagination v-model:current="current" :total="total" :pageSize="pageSize" show-less-items show-size-changer :pageSizeOptions="[
阅读全文
摘要:https://juejin.cn/post/6999687348120190983#heading-7 Vue3 通信使用写法 1. props 用 props 传数据给子组件有两种方法,如下 方法一,setup() 方法写法 // Parent.vue 传送 <child :msg1="msg1
阅读全文
摘要:参考:https://www.cnblogs.com/lovewhatIlove/p/16476165.html #### 安装terser ``` npm add -D terser ``` #### vite中配置 ``` import { defineConfig } from "vite";
阅读全文
摘要:在utils下封装mitt.js import mitt from 'mitt' export default mitt() // mitt基本使用:https://juejin.cn/post/6973106775755063333 组件中引入mitt并使用 import mitt from '@
阅读全文
摘要:<a-tabs v-model:activeKey="activeKey" @change="clickTag"> <a-tab-pane key="1" tab="警情" v-if="tab01Visible" :forceRender="true"> <AssociatedElementsInf
阅读全文
摘要:业务效果图 核心代码 <template> <div class="select-container"> <a-modal v-model:visible="visible" @ok="handleOk" @cancel="handleCancel" width="1500px"> <templat
阅读全文
摘要:import lodash from 'lodash' globalUserDataOptions.value = lodash.unionBy(globalUserDataOptions.value, "value");
阅读全文
摘要:案例 <div ref="logContainer></div> const logContainer = ref(null); const onStepChange = () =>{ logContainer.value.scrollIntoView({ behavior: "smooth", /
阅读全文
摘要:console.log('deselectTagValue: > ', deselectTagValue) console.log('tempTags::::before', tags.value) let tempTags = toRaw(tags.value); console.log('tem
阅读全文
摘要:参考:https://blog.csdn.net/sdibtjf1702/article/details/121923943 #### 效果  使用前端路由,当切换到新路由时,想要页
阅读全文