Pārlūkot izejas kodu

新增图片上传和签名自定义组件

wyn 1 mēnesi atpakaļ
vecāks
revīzija
4a62f471ba

+ 0 - 1
src/components/SignaturePad/SignaturePad.vue

@@ -19,7 +19,6 @@
 
 <script>
 import SignaturePad from 'signature_pad'
-// import SignaturePad from 'signature_pad/dist/signature_pad.min.js'
 
 export default {
   name: 'SignaturePad',

+ 2 - 0
src/components/generator/config.js

@@ -148,6 +148,7 @@ export const inputComponents = [
     height: 300, // 编辑器高度
     branding: false // 隐藏右下角品牌烙印
   },
+  //新增组件
   {
     __config__: {
       label: '签名',
@@ -528,6 +529,7 @@ export const selectComponents = [
     'list-type': 'text',
     multiple: false
   },
+  //新增组件
   {
     __config__: {
       label: '图片上传',

+ 1 - 1
src/main.js

@@ -71,7 +71,7 @@ Vue.component('FileUpload', FileUpload)
 Vue.component('ImageUpload', ImageUpload)
 Vue.component('ImageUploadSingle', ImageUploadSingle)
 Vue.component('ImagePreview', ImagePreview)
-// 全局注册签名组件
+// 签名组件
 Vue.component('signature-pad', SignaturePad)
 
 // 解决el-radio报错