Vue2使用render挂载地图组件
export class Popup { map: L.Map; pop: L.Popup; constructor(options: PopuopOptions) { this.map = options.map; ...
export class Popup { map: L.Map; pop: L.Popup; constructor(options: PopuopOptions) { this.map = options.map; ...
<!-- * @Description: * @Author: pang bo * @Date: 2021-06-22 14:45:47 * @LastEditTime: 2021-06-22 14:48:29 * @LastEditors: Do...
vite.config.ts resolve: { alias: { "@": path.resolve(__dirname, "./src"), }, },tsconfig.json{ "compilerOptions":...
初步判断这是因为 require 是属于 Webpack 的方法,而我使用的是 Vite,所以我们需要去寻找 Vite 静态资源处理的方法,方法如下。co...
<script setup> import { defineProps, reactive, useContext } from 'vue' const context = useContext() const props = definePr...
vue2Vue.prototype.$verson = '1.0.0'1vue3Vue.config.globalProperties.$verson = '1.0.0'1使用都是一样的this.$verson
indexMethod(index: number) { let curpage = (this as any).$parent.pageIndex; //单前页码,具体看组件取值 if (curpage === 0)...
之前用react做地图聚合开发,发现dom即使暂未显示到页面使用reactDom.render也能渲染,但是使用vue的时候就没有渲染出来,就是因为dom不在...
import axios from 'axios' const CancelToken = axios.CancelToken; this.cancel && this.cancel("取消了请求"); let result =...
後端代碼module.exports = (io) => { const userInfo = {} io.on('connection', (socket) => { console.log('建立鏈...