logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

vue3 element-plus 图片预览二次封装 全局函数式调用

由于官方没有提供全局使用的图片预览方法,所以进行一下封装方便使用// MyImageViewer.vue<template><el-image-viewerv-if="isShow":urlList="urlList":zIndex="options.zIndex":initialIndex="options.initialIndex":infinite="options.inf

#vue.js#elementui#javascript
vue3 setup中使用mapState hook封装

import { useStore, mapState } from 'vuex'import { computed } from 'vue'export function useState (mapper) {const store = useStore()const stateFunObj = mapState(mapper)const state = {}Object.keys(stateF

到底了