jaimecheng / vue-esign Goto Github PK
View Code? Open in Web Editor NEWcanvas手写签字 电子签名 A canvas signature component of vue.
Home Page: https://jaimecheng.github.io/vue-esign/demo/
License: MIT License
canvas手写签字 电子签名 A canvas signature component of vue.
Home Page: https://jaimecheng.github.io/vue-esign/demo/
License: MIT License
vue3中组件销毁前的回调是bedoreUnMount,但是源码中使用的仍然是bedoreDestroy,导致removeEvents方法没有生效,resize方法没有删除,改变视口大小时,后台会一直报错。
项目能够正常运行,但是在打包的时候报错
'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
file: D:/work/test/datagovern-ui/node_modules/vue-esign/src/index.vue:278:9
276: }
277:
278: import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue"
^
279:
280: function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
error during build:
Error: 'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
at error (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
at Module.error (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:12412:16)
at Module.traceVariable (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:12771:29)
at ModuleScope.findVariable (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:11423:39)
at FunctionScope.findVariable (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:6355:38)
at ChildScope.findVariable (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:6355:38) at Identifier.bind (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:7422:40)
at CallExpression.bind (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:5252:23)
at CallExpression.bind (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:8918:15)
at SequenceExpression.bind (file:///D:/work/test/datagovern-ui/node_modules/rollup/dist/es/shared/rollup.js:5248:73)
你好,我这边有需求使用到你提供的技术,但我没找到有对应的typescript版。因此我参照你们的重写了一份typesrcirpt版本的,如果你们需要,可以从地址拉去
首先感谢作者提供的签名插件,很好用,不过发生了很尴尬的事情
当前环境:Vue 3.2.25,Vite 2.8.0
Vite 打包报错
'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue import { openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue" ^ 269: 270: function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { error during build: Error: 'openBlock' is not exported by node_modules/vue-esign/node_modules/vue/dist/vue.runtime.esm.js, imported by node_modules/vue-esign/src/index.vue
是因为插件包用的Vue是2.x版本吗
在画布上提示 “请在此签名” placeholder 字样
希望能增加撤回功能
使用vue-esign 时,手机侧向,第一个字便宜正常,第二个就偏移过大, 使用得是demo实例
这种签名有法律效益吗
RollupError: Unexpected token (Note that you need plugins to import files that are not JavaScript) nitro 15:51:31
1:
^
2: <canvas ref="canvas" @mousedown="mouseDown" @mousemove="mouseMove" @mouseup="mouseUp"
3: @touchstart="touchStart" @touchmove="touchMove" @touchend="touchEnd">
ERROR Unexpected token (Note that you need plugins to import files that are not JavaScript)
这个问题是问题nuxt使用的vue3的语法,vue-esign使用vue2导致的吗?有木有解决方案呢。
旋转90度后 路径不对了 求解
Vue2.x中使用bgColor.sync设置背景色无效
vue 3.2.31,使用vite打包会报错
'openBlock' is not exported by
无法设置画布得背景色
"vue-esign": "^1.0.5",
你好,更新到1.1.2版本后,会报错如下:
Cannot read properties of undefined (reading 'format')
但是我看generate()生成图片的方法,里面可以默认不填内容,是不是可以不对图片进行质量压缩?
可以回显签名吗?
谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.