yqform-edit 1.0.41 → 1.0.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/yqform-edit.common.js +409 -4
- package/dist/yqform-edit.css +1 -1
- package/dist/yqform-edit.umd.js +409 -4
- package/dist/yqform-edit.umd.min.js +5 -5
- package/package.json +1 -1
- package/src/index.js +29 -21
|
@@ -19073,7 +19073,7 @@ module.exports = version;
|
|
|
19073
19073
|
/* unused harmony export mapActions */
|
|
19074
19074
|
/* unused harmony export mapGetters */
|
|
19075
19075
|
/* unused harmony export mapMutations */
|
|
19076
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
19076
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return mapState; });
|
|
19077
19077
|
/*!
|
|
19078
19078
|
* vuex v3.6.2
|
|
19079
19079
|
* (c) 2021 Evan You
|
|
@@ -20232,7 +20232,7 @@ var index = {
|
|
|
20232
20232
|
createLogger: createLogger
|
|
20233
20233
|
};
|
|
20234
20234
|
|
|
20235
|
-
/*
|
|
20235
|
+
/* harmony default export */ __webpack_exports__["a"] = (index);
|
|
20236
20236
|
|
|
20237
20237
|
|
|
20238
20238
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__("c8ba")))
|
|
@@ -31104,6 +31104,17 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
|
|
|
31104
31104
|
}
|
|
31105
31105
|
|
|
31106
31106
|
|
|
31107
|
+
/***/ }),
|
|
31108
|
+
|
|
31109
|
+
/***/ "91fa":
|
|
31110
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
31111
|
+
|
|
31112
|
+
"use strict";
|
|
31113
|
+
/* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_cache_loader_dist_cjs_js_ref_1_0_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a1968bcc_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("f12b");
|
|
31114
|
+
/* harmony import */ var _mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_cache_loader_dist_cjs_js_ref_1_0_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a1968bcc_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_mini_css_extract_plugin_dist_loader_js_ref_7_oneOf_1_0_css_loader_dist_cjs_js_ref_7_oneOf_1_1_vue_loader_lib_loaders_stylePostLoader_js_postcss_loader_src_index_js_ref_7_oneOf_1_2_cache_loader_dist_cjs_js_ref_1_0_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_style_index_0_id_a1968bcc_prod_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
|
|
31115
|
+
/* unused harmony reexport * */
|
|
31116
|
+
|
|
31117
|
+
|
|
31107
31118
|
/***/ }),
|
|
31108
31119
|
|
|
31109
31120
|
/***/ "92fa":
|
|
@@ -57017,6 +57028,13 @@ exports.default = {
|
|
|
57017
57028
|
|
|
57018
57029
|
/***/ }),
|
|
57019
57030
|
|
|
57031
|
+
/***/ "f12b":
|
|
57032
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
57033
|
+
|
|
57034
|
+
// extracted by mini-css-extract-plugin
|
|
57035
|
+
|
|
57036
|
+
/***/ }),
|
|
57037
|
+
|
|
57020
57038
|
/***/ "f225":
|
|
57021
57039
|
/***/ (function(module, exports, __webpack_require__) {
|
|
57022
57040
|
|
|
@@ -79631,7 +79649,7 @@ var lodash_default = /*#__PURE__*/__webpack_require__.n(lodash);
|
|
|
79631
79649
|
};
|
|
79632
79650
|
},
|
|
79633
79651
|
|
|
79634
|
-
computed: { ...Object(vuex_esm["
|
|
79652
|
+
computed: { ...Object(vuex_esm["b" /* mapState */])('e7ingForm', ['baseTypes', 'timeTypes', 'otherTypes'])
|
|
79635
79653
|
},
|
|
79636
79654
|
watch: {
|
|
79637
79655
|
itemContent: {
|
|
@@ -80839,6 +80857,17 @@ var App_component = normalizeComponent(
|
|
|
80839
80857
|
namespaced: true,
|
|
80840
80858
|
state: state
|
|
80841
80859
|
});
|
|
80860
|
+
// CONCATENATED MODULE: ./src/store/index.js
|
|
80861
|
+
|
|
80862
|
+
|
|
80863
|
+
|
|
80864
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(vuex_esm["a" /* default */]);
|
|
80865
|
+
/* harmony default export */ var store = (new vuex_esm["a" /* default */].Store({
|
|
80866
|
+
namespaced: true,
|
|
80867
|
+
modules: {
|
|
80868
|
+
e7ingForm: e7ingForm
|
|
80869
|
+
}
|
|
80870
|
+
}));
|
|
80842
80871
|
// EXTERNAL MODULE: ./node_modules/vant/lib/index.css
|
|
80843
80872
|
var lib = __webpack_require__("157a");
|
|
80844
80873
|
|
|
@@ -80851,6 +80880,380 @@ var global = __webpack_require__("e008");
|
|
|
80851
80880
|
// EXTERNAL MODULE: ./node_modules/@vant/touch-emulator/dist/index.mjs
|
|
80852
80881
|
var dist = __webpack_require__("b749");
|
|
80853
80882
|
|
|
80883
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"08733aea-vue-loader-template"}!./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-esign/src/index.vue?vue&type=template&id=a1968bcc&scoped=true&
|
|
80884
|
+
var srcvue_type_template_id_a1968bcc_scoped_true_render = function render() {
|
|
80885
|
+
var _vm = this,
|
|
80886
|
+
_c = _vm._self._c;
|
|
80887
|
+
|
|
80888
|
+
return _c('canvas', {
|
|
80889
|
+
ref: "canvas",
|
|
80890
|
+
on: {
|
|
80891
|
+
"mousedown": _vm.mouseDown,
|
|
80892
|
+
"mousemove": _vm.mouseMove,
|
|
80893
|
+
"mouseup": _vm.mouseUp,
|
|
80894
|
+
"touchstart": _vm.touchStart,
|
|
80895
|
+
"touchmove": _vm.touchMove,
|
|
80896
|
+
"touchend": _vm.touchEnd
|
|
80897
|
+
}
|
|
80898
|
+
});
|
|
80899
|
+
};
|
|
80900
|
+
|
|
80901
|
+
var srcvue_type_template_id_a1968bcc_scoped_true_staticRenderFns = [];
|
|
80902
|
+
|
|
80903
|
+
// CONCATENATED MODULE: ./node_modules/vue-esign/src/index.vue?vue&type=template&id=a1968bcc&scoped=true&
|
|
80904
|
+
|
|
80905
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--13-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vue-esign/src/index.vue?vue&type=script&lang=js&
|
|
80906
|
+
|
|
80907
|
+
/* harmony default export */ var srcvue_type_script_lang_js_ = ({
|
|
80908
|
+
props: {
|
|
80909
|
+
width: {
|
|
80910
|
+
type: Number,
|
|
80911
|
+
default: 800
|
|
80912
|
+
},
|
|
80913
|
+
height: {
|
|
80914
|
+
type: Number,
|
|
80915
|
+
default: 300
|
|
80916
|
+
},
|
|
80917
|
+
lineWidth: {
|
|
80918
|
+
type: Number,
|
|
80919
|
+
default: 4
|
|
80920
|
+
},
|
|
80921
|
+
lineColor: {
|
|
80922
|
+
type: String,
|
|
80923
|
+
default: '#000000'
|
|
80924
|
+
},
|
|
80925
|
+
bgColor: {
|
|
80926
|
+
type: String,
|
|
80927
|
+
default: ''
|
|
80928
|
+
},
|
|
80929
|
+
isCrop: {
|
|
80930
|
+
type: Boolean,
|
|
80931
|
+
default: false
|
|
80932
|
+
},
|
|
80933
|
+
isClearBgColor: {
|
|
80934
|
+
type: Boolean,
|
|
80935
|
+
default: true
|
|
80936
|
+
},
|
|
80937
|
+
format: {
|
|
80938
|
+
type: String,
|
|
80939
|
+
default: 'image/png'
|
|
80940
|
+
},
|
|
80941
|
+
quality: {
|
|
80942
|
+
type: Number,
|
|
80943
|
+
default: 1
|
|
80944
|
+
}
|
|
80945
|
+
},
|
|
80946
|
+
|
|
80947
|
+
data() {
|
|
80948
|
+
return {
|
|
80949
|
+
hasDrew: false,
|
|
80950
|
+
resultImg: '',
|
|
80951
|
+
points: [],
|
|
80952
|
+
canvasTxt: null,
|
|
80953
|
+
startX: 0,
|
|
80954
|
+
startY: 0,
|
|
80955
|
+
isDrawing: false,
|
|
80956
|
+
sratio: 1
|
|
80957
|
+
};
|
|
80958
|
+
},
|
|
80959
|
+
|
|
80960
|
+
computed: {
|
|
80961
|
+
ratio() {
|
|
80962
|
+
return this.height / this.width;
|
|
80963
|
+
},
|
|
80964
|
+
|
|
80965
|
+
stageInfo() {
|
|
80966
|
+
return this.$refs.canvas.getBoundingClientRect();
|
|
80967
|
+
},
|
|
80968
|
+
|
|
80969
|
+
myBg() {
|
|
80970
|
+
return this.bgColor ? this.bgColor : 'rgba(255, 255, 255, 0)';
|
|
80971
|
+
}
|
|
80972
|
+
|
|
80973
|
+
},
|
|
80974
|
+
watch: {
|
|
80975
|
+
'myBg': function (newVal) {
|
|
80976
|
+
this.$refs.canvas.style.background = newVal;
|
|
80977
|
+
}
|
|
80978
|
+
},
|
|
80979
|
+
|
|
80980
|
+
beforeMount() {
|
|
80981
|
+
window.addEventListener('resize', this.$_resizeHandler);
|
|
80982
|
+
},
|
|
80983
|
+
|
|
80984
|
+
beforeDestroy() {
|
|
80985
|
+
window.removeEventListener('resize', this.$_resizeHandler);
|
|
80986
|
+
},
|
|
80987
|
+
|
|
80988
|
+
mounted() {
|
|
80989
|
+
const canvas = this.$refs.canvas;
|
|
80990
|
+
canvas.height = this.height;
|
|
80991
|
+
canvas.width = this.width;
|
|
80992
|
+
canvas.style.background = this.myBg;
|
|
80993
|
+
this.$_resizeHandler(); // 在画板以外松开鼠标后冻结画笔
|
|
80994
|
+
|
|
80995
|
+
document.onmouseup = () => {
|
|
80996
|
+
this.isDrawing = false;
|
|
80997
|
+
};
|
|
80998
|
+
},
|
|
80999
|
+
|
|
81000
|
+
methods: {
|
|
81001
|
+
$_resizeHandler() {
|
|
81002
|
+
const canvas = this.$refs.canvas;
|
|
81003
|
+
canvas.style.width = this.width + "px";
|
|
81004
|
+
const realw = parseFloat(window.getComputedStyle(canvas).width);
|
|
81005
|
+
canvas.style.height = this.ratio * realw + "px";
|
|
81006
|
+
this.canvasTxt = canvas.getContext('2d');
|
|
81007
|
+
this.canvasTxt.scale(1 * this.sratio, 1 * this.sratio);
|
|
81008
|
+
this.sratio = realw / this.width;
|
|
81009
|
+
this.canvasTxt.scale(1 / this.sratio, 1 / this.sratio);
|
|
81010
|
+
},
|
|
81011
|
+
|
|
81012
|
+
// pc
|
|
81013
|
+
mouseDown(e) {
|
|
81014
|
+
e = e || event;
|
|
81015
|
+
e.preventDefault();
|
|
81016
|
+
this.isDrawing = true;
|
|
81017
|
+
this.hasDrew = true;
|
|
81018
|
+
let obj = {
|
|
81019
|
+
x: e.offsetX,
|
|
81020
|
+
y: e.offsetY
|
|
81021
|
+
};
|
|
81022
|
+
this.drawStart(obj);
|
|
81023
|
+
},
|
|
81024
|
+
|
|
81025
|
+
mouseMove(e) {
|
|
81026
|
+
e = e || event;
|
|
81027
|
+
e.preventDefault();
|
|
81028
|
+
|
|
81029
|
+
if (this.isDrawing) {
|
|
81030
|
+
let obj = {
|
|
81031
|
+
x: e.offsetX,
|
|
81032
|
+
y: e.offsetY
|
|
81033
|
+
};
|
|
81034
|
+
this.drawMove(obj);
|
|
81035
|
+
}
|
|
81036
|
+
},
|
|
81037
|
+
|
|
81038
|
+
mouseUp(e) {
|
|
81039
|
+
e = e || event;
|
|
81040
|
+
e.preventDefault();
|
|
81041
|
+
let obj = {
|
|
81042
|
+
x: e.offsetX,
|
|
81043
|
+
y: e.offsetY
|
|
81044
|
+
};
|
|
81045
|
+
this.drawEnd(obj);
|
|
81046
|
+
this.isDrawing = false;
|
|
81047
|
+
},
|
|
81048
|
+
|
|
81049
|
+
// mobile
|
|
81050
|
+
touchStart(e) {
|
|
81051
|
+
e = e || event;
|
|
81052
|
+
e.preventDefault();
|
|
81053
|
+
this.hasDrew = true;
|
|
81054
|
+
|
|
81055
|
+
if (e.touches.length === 1) {
|
|
81056
|
+
let obj = {
|
|
81057
|
+
x: e.targetTouches[0].clientX - this.$refs.canvas.getBoundingClientRect().left,
|
|
81058
|
+
y: e.targetTouches[0].clientY - this.$refs.canvas.getBoundingClientRect().top
|
|
81059
|
+
};
|
|
81060
|
+
this.drawStart(obj);
|
|
81061
|
+
}
|
|
81062
|
+
},
|
|
81063
|
+
|
|
81064
|
+
touchMove(e) {
|
|
81065
|
+
e = e || event;
|
|
81066
|
+
e.preventDefault();
|
|
81067
|
+
|
|
81068
|
+
if (e.touches.length === 1) {
|
|
81069
|
+
let obj = {
|
|
81070
|
+
x: e.targetTouches[0].clientX - this.$refs.canvas.getBoundingClientRect().left,
|
|
81071
|
+
y: e.targetTouches[0].clientY - this.$refs.canvas.getBoundingClientRect().top
|
|
81072
|
+
};
|
|
81073
|
+
this.drawMove(obj);
|
|
81074
|
+
}
|
|
81075
|
+
},
|
|
81076
|
+
|
|
81077
|
+
touchEnd(e) {
|
|
81078
|
+
e = e || event;
|
|
81079
|
+
e.preventDefault();
|
|
81080
|
+
|
|
81081
|
+
if (e.touches.length === 1) {
|
|
81082
|
+
let obj = {
|
|
81083
|
+
x: e.targetTouches[0].clientX - this.$refs.canvas.getBoundingClientRect().left,
|
|
81084
|
+
y: e.targetTouches[0].clientY - this.$refs.canvas.getBoundingClientRect().top
|
|
81085
|
+
};
|
|
81086
|
+
this.drawEnd(obj);
|
|
81087
|
+
}
|
|
81088
|
+
},
|
|
81089
|
+
|
|
81090
|
+
// 绘制
|
|
81091
|
+
drawStart(obj) {
|
|
81092
|
+
this.startX = obj.x;
|
|
81093
|
+
this.startY = obj.y;
|
|
81094
|
+
this.canvasTxt.beginPath();
|
|
81095
|
+
this.canvasTxt.moveTo(this.startX, this.startY);
|
|
81096
|
+
this.canvasTxt.lineTo(obj.x, obj.y);
|
|
81097
|
+
this.canvasTxt.lineCap = 'round';
|
|
81098
|
+
this.canvasTxt.lineJoin = 'round';
|
|
81099
|
+
this.canvasTxt.lineWidth = this.lineWidth * this.sratio;
|
|
81100
|
+
this.canvasTxt.stroke();
|
|
81101
|
+
this.canvasTxt.closePath();
|
|
81102
|
+
this.points.push(obj);
|
|
81103
|
+
},
|
|
81104
|
+
|
|
81105
|
+
drawMove(obj) {
|
|
81106
|
+
this.canvasTxt.beginPath();
|
|
81107
|
+
this.canvasTxt.moveTo(this.startX, this.startY);
|
|
81108
|
+
this.canvasTxt.lineTo(obj.x, obj.y);
|
|
81109
|
+
this.canvasTxt.strokeStyle = this.lineColor;
|
|
81110
|
+
this.canvasTxt.lineWidth = this.lineWidth * this.sratio;
|
|
81111
|
+
this.canvasTxt.lineCap = 'round';
|
|
81112
|
+
this.canvasTxt.lineJoin = 'round';
|
|
81113
|
+
this.canvasTxt.stroke();
|
|
81114
|
+
this.canvasTxt.closePath();
|
|
81115
|
+
this.startY = obj.y;
|
|
81116
|
+
this.startX = obj.x;
|
|
81117
|
+
this.points.push(obj);
|
|
81118
|
+
},
|
|
81119
|
+
|
|
81120
|
+
drawEnd(obj) {
|
|
81121
|
+
this.canvasTxt.beginPath();
|
|
81122
|
+
this.canvasTxt.moveTo(this.startX, this.startY);
|
|
81123
|
+
this.canvasTxt.lineTo(obj.x, obj.y);
|
|
81124
|
+
this.canvasTxt.lineCap = 'round';
|
|
81125
|
+
this.canvasTxt.lineJoin = 'round';
|
|
81126
|
+
this.canvasTxt.stroke();
|
|
81127
|
+
this.canvasTxt.closePath();
|
|
81128
|
+
this.points.push(obj);
|
|
81129
|
+
this.points.push({
|
|
81130
|
+
x: -1,
|
|
81131
|
+
y: -1
|
|
81132
|
+
});
|
|
81133
|
+
},
|
|
81134
|
+
|
|
81135
|
+
// 操作
|
|
81136
|
+
generate(options) {
|
|
81137
|
+
let imgFormat = options && options.format ? options.format : this.format;
|
|
81138
|
+
let imgQuality = options && options.quality ? options.quality : this.quality;
|
|
81139
|
+
const pm = new Promise((resolve, reject) => {
|
|
81140
|
+
if (!this.hasDrew) {
|
|
81141
|
+
reject(`Warning: Not Signned!`);
|
|
81142
|
+
return;
|
|
81143
|
+
}
|
|
81144
|
+
|
|
81145
|
+
var resImgData = this.canvasTxt.getImageData(0, 0, this.$refs.canvas.width, this.$refs.canvas.height);
|
|
81146
|
+
this.canvasTxt.globalCompositeOperation = "destination-over";
|
|
81147
|
+
this.canvasTxt.fillStyle = this.myBg;
|
|
81148
|
+
this.canvasTxt.fillRect(0, 0, this.$refs.canvas.width, this.$refs.canvas.height);
|
|
81149
|
+
this.resultImg = this.$refs.canvas.toDataURL(imgFormat, imgQuality);
|
|
81150
|
+
var resultImg = this.resultImg;
|
|
81151
|
+
this.canvasTxt.clearRect(0, 0, this.$refs.canvas.width, this.$refs.canvas.height);
|
|
81152
|
+
this.canvasTxt.putImageData(resImgData, 0, 0);
|
|
81153
|
+
this.canvasTxt.globalCompositeOperation = "source-over";
|
|
81154
|
+
|
|
81155
|
+
if (this.isCrop) {
|
|
81156
|
+
const crop_area = this.getCropArea(resImgData.data);
|
|
81157
|
+
var crop_canvas = document.createElement('canvas');
|
|
81158
|
+
const crop_ctx = crop_canvas.getContext('2d');
|
|
81159
|
+
crop_canvas.width = crop_area[2] - crop_area[0];
|
|
81160
|
+
crop_canvas.height = crop_area[3] - crop_area[1];
|
|
81161
|
+
const crop_imgData = this.canvasTxt.getImageData(...crop_area);
|
|
81162
|
+
crop_ctx.globalCompositeOperation = "destination-over";
|
|
81163
|
+
crop_ctx.putImageData(crop_imgData, 0, 0);
|
|
81164
|
+
crop_ctx.fillStyle = this.myBg;
|
|
81165
|
+
crop_ctx.fillRect(0, 0, crop_canvas.width, crop_canvas.height);
|
|
81166
|
+
resultImg = crop_canvas.toDataURL(imgFormat, imgQuality);
|
|
81167
|
+
crop_canvas = null;
|
|
81168
|
+
}
|
|
81169
|
+
|
|
81170
|
+
resolve(resultImg);
|
|
81171
|
+
});
|
|
81172
|
+
return pm;
|
|
81173
|
+
},
|
|
81174
|
+
|
|
81175
|
+
reset() {
|
|
81176
|
+
this.canvasTxt.clearRect(0, 0, this.$refs.canvas.width, this.$refs.canvas.height);
|
|
81177
|
+
|
|
81178
|
+
if (this.isClearBgColor) {
|
|
81179
|
+
this.$emit('update:bgColor', '');
|
|
81180
|
+
this.$refs.canvas.style.background = 'rgba(255, 255, 255, 0)';
|
|
81181
|
+
}
|
|
81182
|
+
|
|
81183
|
+
this.points = [];
|
|
81184
|
+
this.hasDrew = false;
|
|
81185
|
+
this.resultImg = '';
|
|
81186
|
+
},
|
|
81187
|
+
|
|
81188
|
+
getCropArea(imgData) {
|
|
81189
|
+
var topX = this.$refs.canvas.width;
|
|
81190
|
+
var btmX = 0;
|
|
81191
|
+
var topY = this.$refs.canvas.height;
|
|
81192
|
+
var btnY = 0;
|
|
81193
|
+
|
|
81194
|
+
for (var i = 0; i < this.$refs.canvas.width; i++) {
|
|
81195
|
+
for (var j = 0; j < this.$refs.canvas.height; j++) {
|
|
81196
|
+
var pos = (i + this.$refs.canvas.width * j) * 4;
|
|
81197
|
+
|
|
81198
|
+
if (imgData[pos] > 0 || imgData[pos + 1] > 0 || imgData[pos + 2] || imgData[pos + 3] > 0) {
|
|
81199
|
+
btnY = Math.max(j, btnY);
|
|
81200
|
+
btmX = Math.max(i, btmX);
|
|
81201
|
+
topY = Math.min(j, topY);
|
|
81202
|
+
topX = Math.min(i, topX);
|
|
81203
|
+
}
|
|
81204
|
+
}
|
|
81205
|
+
}
|
|
81206
|
+
|
|
81207
|
+
topX++;
|
|
81208
|
+
btmX++;
|
|
81209
|
+
topY++;
|
|
81210
|
+
btnY++;
|
|
81211
|
+
const data = [topX, topY, btmX, btnY];
|
|
81212
|
+
return data;
|
|
81213
|
+
}
|
|
81214
|
+
|
|
81215
|
+
}
|
|
81216
|
+
});
|
|
81217
|
+
// CONCATENATED MODULE: ./node_modules/vue-esign/src/index.vue?vue&type=script&lang=js&
|
|
81218
|
+
/* harmony default export */ var vue_esign_srcvue_type_script_lang_js_ = (srcvue_type_script_lang_js_);
|
|
81219
|
+
// EXTERNAL MODULE: ./node_modules/vue-esign/src/index.vue?vue&type=style&index=0&id=a1968bcc&prod&scoped=true&lang=css&
|
|
81220
|
+
var srcvue_type_style_index_0_id_a1968bcc_prod_scoped_true_lang_css_ = __webpack_require__("91fa");
|
|
81221
|
+
|
|
81222
|
+
// CONCATENATED MODULE: ./node_modules/vue-esign/src/index.vue
|
|
81223
|
+
|
|
81224
|
+
|
|
81225
|
+
|
|
81226
|
+
|
|
81227
|
+
|
|
81228
|
+
|
|
81229
|
+
/* normalize component */
|
|
81230
|
+
|
|
81231
|
+
var src_component = normalizeComponent(
|
|
81232
|
+
vue_esign_srcvue_type_script_lang_js_,
|
|
81233
|
+
srcvue_type_template_id_a1968bcc_scoped_true_render,
|
|
81234
|
+
srcvue_type_template_id_a1968bcc_scoped_true_staticRenderFns,
|
|
81235
|
+
false,
|
|
81236
|
+
null,
|
|
81237
|
+
"a1968bcc",
|
|
81238
|
+
null
|
|
81239
|
+
|
|
81240
|
+
)
|
|
81241
|
+
|
|
81242
|
+
/* harmony default export */ var vue_esign_src = (src_component.exports);
|
|
81243
|
+
// CONCATENATED MODULE: ./node_modules/vue-esign/src/index.js
|
|
81244
|
+
|
|
81245
|
+
vue_esign_src.install = function (Vue) {
|
|
81246
|
+
if (this.installed) {
|
|
81247
|
+
return
|
|
81248
|
+
}
|
|
81249
|
+
this.installed = true
|
|
81250
|
+
Vue.component('vueEsign', vue_esign_src)
|
|
81251
|
+
}
|
|
81252
|
+
/* harmony default export */ var node_modules_vue_esign_src = (vue_esign_src);
|
|
81253
|
+
|
|
81254
|
+
// if (typeof window !== 'undefined' && window.Vue) {
|
|
81255
|
+
// window.Vue.use(vueEsign)
|
|
81256
|
+
// }
|
|
80854
81257
|
// CONCATENATED MODULE: ./src/index.js
|
|
80855
81258
|
|
|
80856
81259
|
|
|
@@ -80930,12 +81333,14 @@ var dist = __webpack_require__("b749");
|
|
|
80930
81333
|
|
|
80931
81334
|
|
|
80932
81335
|
|
|
81336
|
+
|
|
80933
81337
|
|
|
80934
81338
|
|
|
80935
81339
|
const vantComponents = [vant_es_button, es_field, vant_es_icon, vant_es_switch, vant_es_picker, es_popup, es_radio_group, vant_es_radio, vant_es_checkbox, es_checkbox_group, datetime_picker, es_uploader, es_rate, es_slider, es_area, es_cell_group, es_calendar, vant_es_image, es_dropdown_menu, es_dropdown_item];
|
|
80936
81340
|
const elementComponent = [lib_date_picker_default.a, lib_dialog_default.a, lib_tooltip_default.a, lib_time_picker_default.a, lib_cascader_default.a, lib_upload_default.a, lib_select_default.a, lib_option_default.a, lib_popover_default.a, lib_input_default.a, lib_switch_default.a];
|
|
80937
81341
|
vantComponents.forEach(item => external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(item));
|
|
80938
81342
|
elementComponent.forEach(item => external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(item));
|
|
81343
|
+
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.use(node_modules_vue_esign_src);
|
|
80939
81344
|
external_commonjs_vue_commonjs2_vue_root_Vue_default.a.config.productionTip = false;
|
|
80940
81345
|
const components = [App];
|
|
80941
81346
|
|
|
@@ -80950,7 +81355,7 @@ const install = function (Vue, opts = {}) {
|
|
|
80950
81355
|
Vue.component(component.name, component);
|
|
80951
81356
|
}); // 将表单组件中的store注册到父组件中
|
|
80952
81357
|
|
|
80953
|
-
(_opts$store = opts.store) === null || _opts$store === void 0 ? void 0 : _opts$store.registerModule("e7ingForm",
|
|
81358
|
+
(_opts$store = opts.store) === null || _opts$store === void 0 ? void 0 : _opts$store.registerModule("e7ingForm", formStore);
|
|
80954
81359
|
};
|
|
80955
81360
|
|
|
80956
81361
|
if (typeof window !== "undefined" && window.Vue) {
|