vue3-sketch-ruler contain template compile demo with vue-demi to vue2/3 KesionX commented May 10, 2022 • edited 我想打包一个 vue2、vue3 都可用的组件库 打包完后的组件,在 vue3 项目中使用没有问题 但是在 vue2 项目中运行时报了如下错误 Uncaught TypeError: e.defineComponent is not a func...
constSketchRule=window.SketchRuler constApp={ components:{'sketch-rule':SketchRule}, setup(){ constsketchruleRef=ref() constpost=reactive({ thick:20, width:1470, height:800, showShadowText:false, canvasWidth:1000, canvasHeight:500, showRuler:true, ...
Zoom operation of page display in vue 3 . Contribute to kakajun/vue3-sketch-ruler development by creating an account on GitHub.
Zoom operation of page display in vue 3 . Contribute to kakajun/vue3-sketch-ruler development by creating an account on GitHub.
案例浏览: https://kakajun.github.io/vue3-sketch-ruler/1x 安装 支持全局导入和模块导入 vue3 npm install --save vue3-sketch-ruler vue-demi or yarn add vue3-sketch-ruler vue-demi -S vue2 npm install --save vue3-sketch-ruler vue-demi @vue/composition-api or yarn add vue3-sketch-...
import type { SketchRulerProps } from 'vue3-sketch-ruler' ``` CDN 引入, 详情参见[CDN demo](https://github.com/kakajun/vue3-sketch-ruler/blob/master/example/mydemo.html) ```js constSketchRule=window.SketchRuler constApp={ components:{'sketch-rule':SketchRule ...