vue3-sketch-ruler在vue3+typescript https://www.npmjs.com/package/vue3-sketch-ruler/v/1.1.5?activeTab=versions 安装后,发现 这个没有 复制完代码,准备运行,发现缺少 vue-demi 感觉vue2整的不彻底 ,没办法,yarn add vue-demi <template><SketchRule:thick="thick":scale="scale":width="1920":height...
> In using vue3, the zoom operation used for page presentation. Latest version: 2.2.7, last published: 2 months ago. Start using vue3-sketch-ruler in your project by running `npm i vue3-sketch-ruler`. There are 29 other projects in the npm registry using
49 changes: 29 additions & 20 deletions 49 src/sketch-ruler/index.vue Original file line numberDiff line numberDiff line change @@ -6,8 +6,8 @@ :zoomInMethod="zoomInMethod" :zoomOutMethod="zoomOutMethod" ></slot> <slot></slot> @@ -52,14 +52,14 @@ import RulerWrap...
kakajun / vue3-sketch-ruler Public Notifications Fork 48 Star 227 Commit Permalink 📃 docs:调整案例4 Browse files master v2.2.2 kakajun committed Sep 2, 2024 1 parent 7678f6a commit ad25be4 Showing 4 changed files with 18 additions and 7 deletions. Whitespace Ignore ...
1. vue3的eslint修复和styleLint和pretty的代码格式化,支持适应vue3中使用sketchRuler,同时改写为vue3 Composition API 的写法 2. 用typerscript进行重构,对类型进行定义,同时方便后续扩展 3. 对shadow和palette参数进行对象合并计算,在以前palette的参数要么都传,要么不传,我这里改进后可以只传需要修 改的属性即可...
最近使用vue ui创建了一个vue3+typescript项目,需要配置代码格式化和git提交信息规范。 使用vue UI创建的时候,使用eslint 选择项目总是错误。搞得一头雾水,没办法单独添加ESlint Vue3的开发插件使用了尤大推荐的Volar,Volar插件中没有Eslint和Prettier相关配置,需要我们自己按自己项目的实际需要进行配置。
importSketchRulefrom'../../src/index'//这里可以换成打包后的 importSketchRulefrom'vue3-sketch-ruler' import'vue3-sketch-ruler/lib/style.css' constsketchruleRef=ref() constpost=reactive({ thick:20, Expand Down 2 changes: 1 addition & 1 deletion2packages/docs/src/router/index.ts ...
Zoom operation of page display in vue 3 . Contribute to kakajun/vue3-sketch-ruler development by creating an account on GitHub.
querySelectorAll('.sketch-ruler .lines .line')) // 也可以根据 targetRect 显示位置 // const pRect = dragParentRef.value!.getBoundingClientRect() // const hLines = post.lines.h.reduce((arr: any[], item: number) => { // const hTop = pRect.top / post.scale + item // // 顶部...
Zoom operation of page display in vue 3 . Contribute to kakajun/vue3-sketch-ruler development by creating an account on GitHub.