centaline-data-driven 1.5.66 → 1.5.68
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/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
- package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +11 -10
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +11 -14
- package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +7 -7
- package/obj/project.assets.json +11 -52
- package/package.json +1 -1
- package/release-log.md +22 -2
- package/src/Detail.vue +3 -3
- package/src/Form.vue +4 -8
- package/src/SearchList.vue +48 -25
- package/src/centaline/api/index.js +51 -6
- package/src/centaline/dynamicCb/src/dynamicCb.vue +5 -1
- package/src/centaline/dynamicForm/src/dynamicForm.vue +2 -2
- package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +7 -50
- package/src/centaline/dynamicHyperLink/index.js +1 -1
- package/src/centaline/dynamicLayout/src/dynamicLayoutChildren.vue +17 -17
- package/src/centaline/dynamicPlaceHolder/index.js +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +1 -1
- package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +88 -14
- package/src/centaline/dynamicViewerFile/src/dynamicViewerFile.vue +20 -7
- package/src/centaline/loader/src/ctl/Base.js +7 -6
- package/src/centaline/loader/src/ctl/Button.js +16 -16
- package/src/centaline/loader/src/ctl/FormList.js +2 -2
- package/src/centaline/loader/src/ctl/Mo.js +4 -2
- package/src/centaline/loader/src/ctl/PlaceHolder.js +2 -2
- package/src/centaline/loader/src/ctl/Router.js +14 -0
- package/src/centaline/loader/src/ctl/TimeSelect.js +6 -2
- package/src/main.js +15 -10
- package/wwwroot/static/centaline/centaline-data-driven.js +212 -108
- package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
- package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache.v2 +0 -0
- package/.vs/Centaline.Front_End.DataDriven/config/applicationhost.config +0 -1034
- package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.csproj.FileListAbsolute.txt +0 -6
|
@@ -1067,11 +1067,11 @@ var Base = function Base(source) {
|
|
|
1067
1067
|
reset: function reset() {
|
|
1068
1068
|
var _this = this;
|
|
1069
1069
|
|
|
1070
|
-
if (this.type
|
|
1070
|
+
if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.Hidden || this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.Label || this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.MultiLineLabel) {} else if (this.isScreen) {
|
|
1071
1071
|
if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.DateRange || this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.DateTimeRange) {
|
|
1072
1072
|
this.value = this.defaultFormat[0];
|
|
1073
1073
|
this.value1 = this.defaultFormat[1];
|
|
1074
|
-
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.
|
|
1074
|
+
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.CheckBoxList) {
|
|
1075
1075
|
this.value = this.defaultValue;
|
|
1076
1076
|
this.forceUpdate();
|
|
1077
1077
|
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.MultiSelectNoSearch) {
|
|
@@ -1100,7 +1100,7 @@ var Base = function Base(source) {
|
|
|
1100
1100
|
if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.DateRange || this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.DateTimeRange) {
|
|
1101
1101
|
this.value = '';
|
|
1102
1102
|
this.value1 = '';
|
|
1103
|
-
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.
|
|
1103
|
+
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.CheckBoxList) {
|
|
1104
1104
|
this.checkedItemArr = [];
|
|
1105
1105
|
this.updateCode1();
|
|
1106
1106
|
} else if (this.type === __WEBPACK_IMPORTED_MODULE_2__ctl_lib_Enum__["default"].ControlType.MultiSelectNoSearch) {
|
|
@@ -3610,6 +3610,19 @@ var Router = function Router(source) {
|
|
|
3610
3610
|
});
|
|
3611
3611
|
}
|
|
3612
3612
|
},
|
|
3613
|
+
doBlobAction: function doBlobAction(data, callback, scripts) {
|
|
3614
|
+
if (rtn.action) {
|
|
3615
|
+
__WEBPACK_IMPORTED_MODULE_1_vue___default.a.prototype.$api.postBlobHandler(__WEBPACK_IMPORTED_MODULE_2__common__["default"].globalUri(), rtn.getActionPara(data), scripts).then(function (response) {
|
|
3616
|
+
callback(response.data, response.headers);
|
|
3617
|
+
}).catch(function (ex) {
|
|
3618
|
+
// callback(ex); //里面需要有data.rtnCode === 200的处理
|
|
3619
|
+
});
|
|
3620
|
+
} else {
|
|
3621
|
+
callback({
|
|
3622
|
+
rtnCode: __WEBPACK_IMPORTED_MODULE_3__lib_Enum__["default"].ReturnCode.Successful
|
|
3623
|
+
});
|
|
3624
|
+
}
|
|
3625
|
+
},
|
|
3613
3626
|
getSearchPara: function getSearchPara() {
|
|
3614
3627
|
var params = {
|
|
3615
3628
|
fields: []
|
|
@@ -4441,7 +4454,10 @@ __WEBPACK_IMPORTED_MODULE_2_axios___default.a.defaults.maxContentLength = 400000
|
|
|
4441
4454
|
|
|
4442
4455
|
var api = {
|
|
4443
4456
|
get: function get(url, params, callback) {
|
|
4444
|
-
if (
|
|
4457
|
+
if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
|
|
4458
|
+
url = params.action;
|
|
4459
|
+
params = params.para;
|
|
4460
|
+
} else if (__WEBPACK_IMPORTED_MODULE_5__common__["default"].flagRouterSelf()) {
|
|
4445
4461
|
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + params.action;
|
|
4446
4462
|
params = params.para;
|
|
4447
4463
|
}
|
|
@@ -4454,7 +4470,10 @@ var api = {
|
|
|
4454
4470
|
});
|
|
4455
4471
|
},
|
|
4456
4472
|
post: function post(url, params, callback) {
|
|
4457
|
-
if (
|
|
4473
|
+
if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
|
|
4474
|
+
url = params.action;
|
|
4475
|
+
params = params.para;
|
|
4476
|
+
} else if (__WEBPACK_IMPORTED_MODULE_5__common__["default"].flagRouterSelf()) {
|
|
4458
4477
|
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + params.action;
|
|
4459
4478
|
params = params.para;
|
|
4460
4479
|
}
|
|
@@ -4476,7 +4495,6 @@ var api = {
|
|
|
4476
4495
|
|
|
4477
4496
|
// 执行js
|
|
4478
4497
|
if (data.clientActionType === __WEBPACK_IMPORTED_MODULE_4__loader_src_ctl_lib_Enum__["default"].ClientActionType.ExcuteScript && data.content) {
|
|
4479
|
-
// eval(data.content);
|
|
4480
4498
|
__WEBPACK_IMPORTED_MODULE_5__common__["default"].excute.call(scripts, data.content);
|
|
4481
4499
|
}
|
|
4482
4500
|
|
|
@@ -4545,17 +4563,22 @@ var api = {
|
|
|
4545
4563
|
return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a.reject(response);
|
|
4546
4564
|
}
|
|
4547
4565
|
//返回给下一个链式调用
|
|
4548
|
-
return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a.resolve(response.data);
|
|
4566
|
+
return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a.resolve(response.data, response.headers);
|
|
4549
4567
|
},
|
|
4550
4568
|
postHandler: function postHandler(url, params, scripts) {
|
|
4551
4569
|
var _this = this;
|
|
4552
4570
|
|
|
4553
|
-
if (
|
|
4571
|
+
if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
|
|
4572
|
+
url = params.action;
|
|
4573
|
+
params = params.para;
|
|
4574
|
+
} else if (__WEBPACK_IMPORTED_MODULE_5__common__["default"].flagRouterSelf()) {
|
|
4554
4575
|
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + params.action;
|
|
4555
4576
|
params = params.para;
|
|
4556
4577
|
}
|
|
4578
|
+
var responseType = params.responseType || 'json';
|
|
4557
4579
|
return __WEBPACK_IMPORTED_MODULE_2_axios___default.a.post(url, params, {
|
|
4558
|
-
headers: __WEBPACK_IMPORTED_MODULE_5__common__["default"].getDataDrivenOpts().handler.getRequestHeaders()
|
|
4580
|
+
headers: __WEBPACK_IMPORTED_MODULE_5__common__["default"].getDataDrivenOpts().handler.getRequestHeaders(),
|
|
4581
|
+
responseType: responseType
|
|
4559
4582
|
}).then(function (response) {
|
|
4560
4583
|
return _this.postThenHandler(response, scripts);
|
|
4561
4584
|
}).catch(function (ex) {
|
|
@@ -4575,13 +4598,45 @@ var api = {
|
|
|
4575
4598
|
return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a.resolve(ex.data ? ex.data : ex); //错误处理了,直接返回成功,要判断response.rtnCode=200再处理
|
|
4576
4599
|
});
|
|
4577
4600
|
},
|
|
4578
|
-
|
|
4601
|
+
postBlobHandler: function postBlobHandler(url, params, scripts) {
|
|
4579
4602
|
var _this2 = this;
|
|
4580
4603
|
|
|
4604
|
+
if (params.action.indexOf('http://') > -1 || params.action.indexOf('https://') > -1) {
|
|
4605
|
+
url = params.action;
|
|
4606
|
+
params = params.para;
|
|
4607
|
+
} else if (__WEBPACK_IMPORTED_MODULE_5__common__["default"].flagRouterSelf()) {
|
|
4608
|
+
url = url + (url == '' || url.substr(-1) == '/' ? '' : '/') + params.action;
|
|
4609
|
+
params = params.para;
|
|
4610
|
+
}
|
|
4581
4611
|
return __WEBPACK_IMPORTED_MODULE_2_axios___default.a.post(url, params, {
|
|
4582
|
-
headers:
|
|
4612
|
+
headers: __WEBPACK_IMPORTED_MODULE_5__common__["default"].getDataDrivenOpts().handler.getRequestHeaders(),
|
|
4613
|
+
responseType: 'blob'
|
|
4583
4614
|
}).then(function (response) {
|
|
4584
4615
|
return _this2.postThenHandler(response, scripts);
|
|
4616
|
+
}).catch(function (ex) {
|
|
4617
|
+
if (ex.message) {
|
|
4618
|
+
__WEBPACK_IMPORTED_MODULE_3_vue___default.a.prototype.$message({
|
|
4619
|
+
message: ex.message,
|
|
4620
|
+
type: 'error',
|
|
4621
|
+
showClose: true
|
|
4622
|
+
});
|
|
4623
|
+
} else if (typeof ex.data === "string") {
|
|
4624
|
+
__WEBPACK_IMPORTED_MODULE_3_vue___default.a.prototype.$message({
|
|
4625
|
+
message: ex.data,
|
|
4626
|
+
type: 'error',
|
|
4627
|
+
showClose: true
|
|
4628
|
+
});
|
|
4629
|
+
}
|
|
4630
|
+
return __WEBPACK_IMPORTED_MODULE_1_babel_runtime_core_js_promise___default.a.resolve(ex); //错误处理了,直接返回成功,要判断response.rtnCode=200再处理
|
|
4631
|
+
});
|
|
4632
|
+
},
|
|
4633
|
+
SliceUpload: function SliceUpload(url, params, scripts) {
|
|
4634
|
+
var _this3 = this;
|
|
4635
|
+
|
|
4636
|
+
return __WEBPACK_IMPORTED_MODULE_2_axios___default.a.post(url, params, {
|
|
4637
|
+
headers: __WEBPACK_IMPORTED_MODULE_0_babel_runtime_helpers_extends___default()({}, __WEBPACK_IMPORTED_MODULE_5__common__["default"].getDataDrivenOpts().handler.getRequestHeaders(), { 'Content-Type': 'multipart/form-data' })
|
|
4638
|
+
}).then(function (response) {
|
|
4639
|
+
return _this3.postThenHandler(response, scripts);
|
|
4585
4640
|
}).catch(function (ex) {
|
|
4586
4641
|
if (ex.message) {
|
|
4587
4642
|
__WEBPACK_IMPORTED_MODULE_3_vue___default.a.prototype.$message({
|
|
@@ -5379,7 +5434,7 @@ module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABX
|
|
|
5379
5434
|
"use strict";
|
|
5380
5435
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__ = __webpack_require__(187);
|
|
5381
5436
|
/* unused harmony namespace reexport */
|
|
5382
|
-
/* harmony import */ var
|
|
5437
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_53b0433e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__ = __webpack_require__(490);
|
|
5383
5438
|
function injectStyle (ssrContext) {
|
|
5384
5439
|
__webpack_require__(484)
|
|
5385
5440
|
}
|
|
@@ -5399,7 +5454,7 @@ var __vue_scopeId__ = null
|
|
|
5399
5454
|
var __vue_module_identifier__ = null
|
|
5400
5455
|
var Component = normalizeComponent(
|
|
5401
5456
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicForm_vue__["a" /* default */],
|
|
5402
|
-
|
|
5457
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_53b0433e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicForm_vue__["a" /* default */],
|
|
5403
5458
|
__vue_template_functional__,
|
|
5404
5459
|
__vue_styles__,
|
|
5405
5460
|
__vue_scopeId__,
|
|
@@ -5799,7 +5854,7 @@ var Component = normalizeComponent(
|
|
|
5799
5854
|
"use strict";
|
|
5800
5855
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchScreen_vue__ = __webpack_require__(161);
|
|
5801
5856
|
/* unused harmony namespace reexport */
|
|
5802
|
-
/* harmony import */ var
|
|
5857
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_8eced880_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchScreen_vue__ = __webpack_require__(417);
|
|
5803
5858
|
function injectStyle (ssrContext) {
|
|
5804
5859
|
__webpack_require__(415)
|
|
5805
5860
|
}
|
|
@@ -5819,7 +5874,7 @@ var __vue_scopeId__ = null
|
|
|
5819
5874
|
var __vue_module_identifier__ = null
|
|
5820
5875
|
var Component = normalizeComponent(
|
|
5821
5876
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchScreen_vue__["a" /* default */],
|
|
5822
|
-
|
|
5877
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_8eced880_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchScreen_vue__["a" /* default */],
|
|
5823
5878
|
__vue_template_functional__,
|
|
5824
5879
|
__vue_styles__,
|
|
5825
5880
|
__vue_scopeId__,
|
|
@@ -7941,7 +7996,9 @@ var Mo = function Mo(source, moreActionRouter) {
|
|
|
7941
7996
|
} else {
|
|
7942
7997
|
this._value = [];
|
|
7943
7998
|
this.options.forEach(function (v) {
|
|
7944
|
-
|
|
7999
|
+
if (!v.flagDeleted && v.flagDeleted !== 1) {
|
|
8000
|
+
_this._value.push(v[_this.optionAttrs.value]);
|
|
8001
|
+
}
|
|
7945
8002
|
});
|
|
7946
8003
|
return this._value;
|
|
7947
8004
|
}
|
|
@@ -7996,7 +8053,7 @@ var Mo = function Mo(source, moreActionRouter) {
|
|
|
7996
8053
|
if (source.code1) {
|
|
7997
8054
|
var rtnLabelValue = '';
|
|
7998
8055
|
JSON.parse(source.code1).forEach(function (op) {
|
|
7999
|
-
if (op.flagDeleted !== 1) {
|
|
8056
|
+
if (!op.flagDeleted && op.flagDeleted !== 1) {
|
|
8000
8057
|
rtnLabelValue += op[rtn.optionAttrs.label] + ' ';
|
|
8001
8058
|
}
|
|
8002
8059
|
});
|
|
@@ -12984,7 +13041,8 @@ exports.f = __webpack_require__(29) ? gOPD : function getOwnPropertyDescriptor(O
|
|
|
12984
13041
|
mixins: [__WEBPACK_IMPORTED_MODULE_0__mixins_dynamicElement__["a" /* default */]],
|
|
12985
13042
|
props: {
|
|
12986
13043
|
vmodel: Object,
|
|
12987
|
-
api: String
|
|
13044
|
+
api: String,
|
|
13045
|
+
from: String
|
|
12988
13046
|
},
|
|
12989
13047
|
data: function data() {
|
|
12990
13048
|
return {};
|
|
@@ -13007,6 +13065,9 @@ exports.f = __webpack_require__(29) ? gOPD : function getOwnPropertyDescriptor(O
|
|
|
13007
13065
|
methods: {
|
|
13008
13066
|
load: function load(data) {
|
|
13009
13067
|
this.model = data;
|
|
13068
|
+
if (this.from == "form" && this.model.code1 == "") {
|
|
13069
|
+
this.model.code1 = "0";
|
|
13070
|
+
}
|
|
13010
13071
|
},
|
|
13011
13072
|
toggleCheckbox: function toggleCheckbox() {
|
|
13012
13073
|
this.model.value = !this.model.value;
|
|
@@ -16540,7 +16601,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
16540
16601
|
field.doAction(submitData, function (data) {
|
|
16541
16602
|
if (data.content) {
|
|
16542
16603
|
if (data.content.indexOf("http://") === 0 || data.content.indexOf("https://") === 0) {
|
|
16543
|
-
if (data.
|
|
16604
|
+
if (data.content.indexOf(".zip") > -1) {
|
|
16544
16605
|
window.location.href = encodeURI(data.action);
|
|
16545
16606
|
} else {
|
|
16546
16607
|
if (data.content.indexOf("?") > -1) {
|
|
@@ -16800,7 +16861,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
16800
16861
|
"use strict";
|
|
16801
16862
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__ = __webpack_require__(163);
|
|
16802
16863
|
/* unused harmony namespace reexport */
|
|
16803
|
-
/* harmony import */ var
|
|
16864
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_cd2a4300_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__ = __webpack_require__(456);
|
|
16804
16865
|
function injectStyle (ssrContext) {
|
|
16805
16866
|
__webpack_require__(418)
|
|
16806
16867
|
}
|
|
@@ -16820,7 +16881,7 @@ var __vue_scopeId__ = null
|
|
|
16820
16881
|
var __vue_module_identifier__ = null
|
|
16821
16882
|
var Component = normalizeComponent(
|
|
16822
16883
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicSearchTable_vue__["a" /* default */],
|
|
16823
|
-
|
|
16884
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_cd2a4300_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicSearchTable_vue__["a" /* default */],
|
|
16824
16885
|
__vue_template_functional__,
|
|
16825
16886
|
__vue_styles__,
|
|
16826
16887
|
__vue_scopeId__,
|
|
@@ -17508,7 +17569,7 @@ var Component = normalizeComponent(
|
|
|
17508
17569
|
if (topHeigth >= scrollTop) {
|
|
17509
17570
|
break;
|
|
17510
17571
|
} else {
|
|
17511
|
-
topHeigth = topHeigth + this.model.listData[index].$heigth;
|
|
17572
|
+
topHeigth = topHeigth + this.model.listData[index].$heigth || 31;
|
|
17512
17573
|
}
|
|
17513
17574
|
}
|
|
17514
17575
|
this.firstRow = index - 1;
|
|
@@ -17989,7 +18050,52 @@ var Component = normalizeComponent(
|
|
|
17989
18050
|
} else if (field.isExport || field.flagAsync) {
|
|
17990
18051
|
if (field.flagAsync) {
|
|
17991
18052
|
field.doAction(submitData, function (res) {
|
|
17992
|
-
if (res.
|
|
18053
|
+
if (res.rtnCode && res.rtnCode === 202 && res.rtnMsg) {
|
|
18054
|
+
self.$common.confirm(res.rtnMsg, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' }).then(function () {
|
|
18055
|
+
submitData.flagHaveAlert = 1;
|
|
18056
|
+
field.doAction(submitData, function (res) {
|
|
18057
|
+
if (res.content && res.content.action) {
|
|
18058
|
+
var dialogOption = {
|
|
18059
|
+
title: field.pageTitle || field.label,
|
|
18060
|
+
content: [{
|
|
18061
|
+
component: 'ct-progress',
|
|
18062
|
+
attrs: {
|
|
18063
|
+
progressAction: res.content.action,
|
|
18064
|
+
progressKey: res.content.key,
|
|
18065
|
+
progressType: field.isExport ? 'export' : 'import',
|
|
18066
|
+
width: '350px',
|
|
18067
|
+
height: '165px'
|
|
18068
|
+
},
|
|
18069
|
+
on: {
|
|
18070
|
+
finished: function finished(data) {
|
|
18071
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
18072
|
+
if (data.rtnMsg) {
|
|
18073
|
+
self.$message({
|
|
18074
|
+
message: data.rtnMsg,
|
|
18075
|
+
type: 'success',
|
|
18076
|
+
showClose: true
|
|
18077
|
+
});
|
|
18078
|
+
}
|
|
18079
|
+
if (!field.isExport) {
|
|
18080
|
+
self.getPage(1);
|
|
18081
|
+
}
|
|
18082
|
+
},
|
|
18083
|
+
error: function error(data) {
|
|
18084
|
+
self.$common.closeDialog(dialogOption.dialog);
|
|
18085
|
+
self.$message({
|
|
18086
|
+
message: data.rtnMsg,
|
|
18087
|
+
type: 'warning',
|
|
18088
|
+
showClose: true
|
|
18089
|
+
});
|
|
18090
|
+
}
|
|
18091
|
+
}
|
|
18092
|
+
}]
|
|
18093
|
+
};
|
|
18094
|
+
self.$common.openDialog(dialogOption);
|
|
18095
|
+
}
|
|
18096
|
+
});
|
|
18097
|
+
}).catch(function () {});
|
|
18098
|
+
} else if (res.content && res.content.action) {
|
|
17993
18099
|
var dialogOption = {
|
|
17994
18100
|
title: field.pageTitle || field.label,
|
|
17995
18101
|
content: [{
|
|
@@ -18041,19 +18147,45 @@ var Component = normalizeComponent(
|
|
|
18041
18147
|
}
|
|
18042
18148
|
}
|
|
18043
18149
|
} else {
|
|
18044
|
-
field.
|
|
18045
|
-
if (data.
|
|
18046
|
-
|
|
18047
|
-
|
|
18048
|
-
|
|
18049
|
-
|
|
18050
|
-
|
|
18051
|
-
|
|
18052
|
-
|
|
18053
|
-
|
|
18054
|
-
|
|
18150
|
+
field.doBlobAction(submitData, function (data, headers) {
|
|
18151
|
+
if (data.type == "application/json") {
|
|
18152
|
+
var reader = new FileReader();
|
|
18153
|
+
reader.readAsText(data, 'utf-8');
|
|
18154
|
+
reader.onload = function () {
|
|
18155
|
+
data = JSON.parse(reader.result);
|
|
18156
|
+
if (data.content) {
|
|
18157
|
+
if (data.content.indexOf("http://") === 0 || data.content.indexOf("https://") === 0) {
|
|
18158
|
+
if (data.content.indexOf(".zip") > -1) {
|
|
18159
|
+
window.location.href = encodeURI(data.action);
|
|
18160
|
+
} else {
|
|
18161
|
+
if (data.content.indexOf("?") > -1) {
|
|
18162
|
+
self.downloadUrl = data.content + "&" + Math.random();
|
|
18163
|
+
} else {
|
|
18164
|
+
self.downloadUrl = data.content + "?" + Math.random();
|
|
18165
|
+
}
|
|
18166
|
+
}
|
|
18167
|
+
} else {}
|
|
18055
18168
|
}
|
|
18056
|
-
}
|
|
18169
|
+
};
|
|
18170
|
+
} else {
|
|
18171
|
+
if (!headers['content-disposition']) {
|
|
18172
|
+
self.$message({
|
|
18173
|
+
message: '返回结果headers必须包含Access-Control-Expose-Headers和Content-Disposition!',
|
|
18174
|
+
type: 'error',
|
|
18175
|
+
showClose: true
|
|
18176
|
+
});
|
|
18177
|
+
return false;
|
|
18178
|
+
}
|
|
18179
|
+
|
|
18180
|
+
var blob = new Blob([data], { type: "application/octet-stream;" });
|
|
18181
|
+
var url = window.URL.createObjectURL(blob);
|
|
18182
|
+
var link = document.createElement('a');
|
|
18183
|
+
var fileName = decodeURIComponent(escape(headers['content-disposition'].split('filename=')[1]));
|
|
18184
|
+
link.href = url;
|
|
18185
|
+
link.setAttribute('download', fileName);
|
|
18186
|
+
document.body.appendChild(link);
|
|
18187
|
+
link.click();
|
|
18188
|
+
document.body.removeChild(link);
|
|
18057
18189
|
}
|
|
18058
18190
|
});
|
|
18059
18191
|
}
|
|
@@ -19546,7 +19678,7 @@ var Component = normalizeComponent(
|
|
|
19546
19678
|
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
|
19547
19679
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicLayoutChildren_vue__ = __webpack_require__(171);
|
|
19548
19680
|
/* empty harmony namespace reexport */
|
|
19549
|
-
/* harmony import */ var
|
|
19681
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a70a15e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicLayoutChildren_vue__ = __webpack_require__(454);
|
|
19550
19682
|
var normalizeComponent = __webpack_require__(0)
|
|
19551
19683
|
/* script */
|
|
19552
19684
|
|
|
@@ -19563,7 +19695,7 @@ var __vue_scopeId__ = null
|
|
|
19563
19695
|
var __vue_module_identifier__ = null
|
|
19564
19696
|
var Component = normalizeComponent(
|
|
19565
19697
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicLayoutChildren_vue__["a" /* default */],
|
|
19566
|
-
|
|
19698
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_1a70a15e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicLayoutChildren_vue__["a" /* default */],
|
|
19567
19699
|
__vue_template_functional__,
|
|
19568
19700
|
__vue_styles__,
|
|
19569
19701
|
__vue_scopeId__,
|
|
@@ -20269,8 +20401,8 @@ var Component = normalizeComponent(
|
|
|
20269
20401
|
|
|
20270
20402
|
return Object.create(
|
|
20271
20403
|
{
|
|
20272
|
-
set
|
|
20273
|
-
get
|
|
20404
|
+
set,
|
|
20405
|
+
get,
|
|
20274
20406
|
remove: function (name, attributes) {
|
|
20275
20407
|
set(
|
|
20276
20408
|
name,
|
|
@@ -23723,7 +23855,7 @@ module.exports = g;
|
|
|
23723
23855
|
field.doAction(submitData, function (data) {
|
|
23724
23856
|
if (data.content) {
|
|
23725
23857
|
if (data.content.indexOf("http://") === 0 || data.content.indexOf("https://") === 0) {
|
|
23726
|
-
if (data.
|
|
23858
|
+
if (data.content.indexOf(".zip") > -1) {
|
|
23727
23859
|
window.location.href = encodeURI(data.action);
|
|
23728
23860
|
} else {
|
|
23729
23861
|
if (data.content.indexOf("?") > -1) {
|
|
@@ -24032,7 +24164,7 @@ module.exports = g;
|
|
|
24032
24164
|
if (f.model && typeof f.validExcute !== 'undefined') {
|
|
24033
24165
|
if (!f.validExcute()) {
|
|
24034
24166
|
if (i === 0) {
|
|
24035
|
-
if (f.model.is == "ct-file" || f.model.is == "ct-repeat") {
|
|
24167
|
+
if (f.model.is == "ct-file" || f.model.is == "ct-repeat" || f.model.is == "ct-form-list-table") {
|
|
24036
24168
|
self.$message({
|
|
24037
24169
|
message: f.validMessage,
|
|
24038
24170
|
type: 'error',
|
|
@@ -24333,8 +24465,7 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24333
24465
|
foucus: false,
|
|
24334
24466
|
itemKey: Math.random(),
|
|
24335
24467
|
tableColumnWith: 0,
|
|
24336
|
-
fixedButtons: false
|
|
24337
|
-
scrollLeft: 0
|
|
24468
|
+
fixedButtons: false
|
|
24338
24469
|
};
|
|
24339
24470
|
},
|
|
24340
24471
|
created: function created() {
|
|
@@ -24348,23 +24479,7 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24348
24479
|
self.model.refFieldsLabel = this.$refs.FieldsLabel;
|
|
24349
24480
|
});
|
|
24350
24481
|
},
|
|
24351
|
-
mounted: function mounted() {
|
|
24352
|
-
var self = this;
|
|
24353
|
-
this.$nextTick(function () {
|
|
24354
|
-
var domT = document.querySelector('#listTable');
|
|
24355
|
-
if (domT) {
|
|
24356
|
-
var domB = domT.querySelector('.el-table__body-wrapper');
|
|
24357
|
-
if (domB && domB.scrollWidth > domB.offsetWidth) {
|
|
24358
|
-
this.fixedButtons = 'right';
|
|
24359
|
-
}
|
|
24360
|
-
if (domB) {
|
|
24361
|
-
domB.addEventListener("scroll", function () {
|
|
24362
|
-
self.scrollLeft = domB.scrollLeft;
|
|
24363
|
-
});
|
|
24364
|
-
}
|
|
24365
|
-
}
|
|
24366
|
-
});
|
|
24367
|
-
},
|
|
24482
|
+
mounted: function mounted() {},
|
|
24368
24483
|
|
|
24369
24484
|
methods: {
|
|
24370
24485
|
getHeadClass: function getHeadClass(v) {
|
|
@@ -24418,7 +24533,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24418
24533
|
app.model.currentRow.isNew = true;
|
|
24419
24534
|
app.model.currentRow.index = app.model.tableData.length - 1;
|
|
24420
24535
|
}
|
|
24421
|
-
app.resetScroll();
|
|
24422
24536
|
},
|
|
24423
24537
|
|
|
24424
24538
|
//修改
|
|
@@ -24470,7 +24584,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24470
24584
|
}
|
|
24471
24585
|
row.isSet = !row.isSet;
|
|
24472
24586
|
app.itemKey = Math.random();
|
|
24473
|
-
app.resetScroll();
|
|
24474
24587
|
return;
|
|
24475
24588
|
}
|
|
24476
24589
|
|
|
@@ -24502,7 +24615,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24502
24615
|
app.itemKey = Math.random();
|
|
24503
24616
|
this.model.change = this.model.formListChange;
|
|
24504
24617
|
app.$emit('change');
|
|
24505
|
-
app.resetScroll();
|
|
24506
24618
|
}
|
|
24507
24619
|
}
|
|
24508
24620
|
} else {
|
|
@@ -24513,7 +24625,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24513
24625
|
app.model.currentRow.isSet = true;
|
|
24514
24626
|
row.isSet = true;
|
|
24515
24627
|
app.itemKey = Math.random();
|
|
24516
|
-
app.resetScroll();
|
|
24517
24628
|
}
|
|
24518
24629
|
},
|
|
24519
24630
|
|
|
@@ -24570,8 +24681,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24570
24681
|
fd.$forceUpdate();
|
|
24571
24682
|
}
|
|
24572
24683
|
});
|
|
24573
|
-
self.itemKey = Math.random();
|
|
24574
|
-
self.resetScroll();
|
|
24575
24684
|
});
|
|
24576
24685
|
},
|
|
24577
24686
|
fieldsValidExcute: function fieldsValidExcute() {
|
|
@@ -24624,11 +24733,7 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24624
24733
|
;
|
|
24625
24734
|
|
|
24626
24735
|
if (rtnBool && self.model.required && this.model.tableData.length === 0) {
|
|
24627
|
-
self
|
|
24628
|
-
message: this.model.label + " 表格不能为空",
|
|
24629
|
-
type: 'warning',
|
|
24630
|
-
showClose: true
|
|
24631
|
-
});
|
|
24736
|
+
self.validMessage = this.model.label + " 表格不能为空";
|
|
24632
24737
|
rtnBool = false;
|
|
24633
24738
|
}
|
|
24634
24739
|
self.foucus = true;
|
|
@@ -24776,23 +24881,6 @@ var ctSpan = { //临时的span组件对象,用于vue双向绑定,强制更
|
|
|
24776
24881
|
// 移除 document 中临时的 span
|
|
24777
24882
|
document.body.removeChild(span);
|
|
24778
24883
|
return h('span', column.label);
|
|
24779
|
-
},
|
|
24780
|
-
resetScroll: function resetScroll() {
|
|
24781
|
-
var self = this;
|
|
24782
|
-
this.$nextTick(function () {
|
|
24783
|
-
var domT = document.querySelector('#listTable');
|
|
24784
|
-
if (domT) {
|
|
24785
|
-
var domB = domT.querySelector('.el-table__body-wrapper');
|
|
24786
|
-
if (domB) {
|
|
24787
|
-
if (this.scrollLeft > 0) {
|
|
24788
|
-
domB.scrollLeft = this.scrollLeft;
|
|
24789
|
-
}
|
|
24790
|
-
domB.addEventListener("scroll", function () {
|
|
24791
|
-
self.scrollLeft = domB.scrollLeft;
|
|
24792
|
-
});
|
|
24793
|
-
}
|
|
24794
|
-
}
|
|
24795
|
-
});
|
|
24796
24884
|
}
|
|
24797
24885
|
}
|
|
24798
24886
|
});
|
|
@@ -34044,7 +34132,9 @@ var TimeSelect = function TimeSelect(source, isRange, dateType) {
|
|
|
34044
34132
|
},
|
|
34045
34133
|
get value() {
|
|
34046
34134
|
if (source.code1 && source.format != "HH:mm" && Object.prototype.toString.call(source.code1) === "[object String]") {
|
|
34047
|
-
source.code1
|
|
34135
|
+
if (source.code1.length <= 8) {
|
|
34136
|
+
source.code1 = new Date(__WEBPACK_IMPORTED_MODULE_5__common__["default"].formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code1);
|
|
34137
|
+
}
|
|
34048
34138
|
}
|
|
34049
34139
|
return source.code1;
|
|
34050
34140
|
},
|
|
@@ -34056,7 +34146,9 @@ var TimeSelect = function TimeSelect(source, isRange, dateType) {
|
|
|
34056
34146
|
},
|
|
34057
34147
|
get value1() {
|
|
34058
34148
|
if (source.code2 && source.format != "HH:mm" && Object.prototype.toString.call(source.code2) === "[object String]") {
|
|
34059
|
-
source.code2
|
|
34149
|
+
if (source.code2.length <= 8) {
|
|
34150
|
+
source.code2 = new Date(__WEBPACK_IMPORTED_MODULE_5__common__["default"].formatDate(new Date(), 'yyyy-MM-dd') + ' ' + source.code2);
|
|
34151
|
+
}
|
|
34060
34152
|
}
|
|
34061
34153
|
return source.code2;
|
|
34062
34154
|
},
|
|
@@ -34181,7 +34273,7 @@ var FormList = function FormList(source, master) {
|
|
|
34181
34273
|
return master.controlType;
|
|
34182
34274
|
},
|
|
34183
34275
|
get label() {
|
|
34184
|
-
return master.
|
|
34276
|
+
return master.controlLabel || '';
|
|
34185
34277
|
},
|
|
34186
34278
|
get source() {
|
|
34187
34279
|
return source;
|
|
@@ -34567,7 +34659,7 @@ var FormList = function FormList(source, master) {
|
|
|
34567
34659
|
|
|
34568
34660
|
if (!isRepeat) {
|
|
34569
34661
|
for (var findex = 0; findex < row.length; findex++) {
|
|
34570
|
-
//循环所在行的列
|
|
34662
|
+
//循环所在行的列
|
|
34571
34663
|
__WEBPACK_IMPORTED_MODULE_8_vue___default.a.set(row[findex], 'code1', ev.formData.source.fields[findex].code1);
|
|
34572
34664
|
__WEBPACK_IMPORTED_MODULE_8_vue___default.a.set(row[findex], 'name1', ev.formData.source.fields[findex].name1);
|
|
34573
34665
|
switch (ev.formData.source.fields[findex].controlType) {
|
|
@@ -44644,9 +44736,21 @@ __WEBPACK_IMPORTED_MODULE_2_vue___default.a.use(__WEBPACK_IMPORTED_MODULE_1_v_vi
|
|
|
44644
44736
|
return url;
|
|
44645
44737
|
}
|
|
44646
44738
|
},
|
|
44647
|
-
handDownload: function handDownload(url) {
|
|
44739
|
+
handDownload: function handDownload(url, itemFile) {
|
|
44648
44740
|
var self = this;
|
|
44649
44741
|
self.downloadLoading = true;
|
|
44742
|
+
if (itemFile.downloadLogAction) {
|
|
44743
|
+
this.$api.postHandler(this.$common.globalUri(), { action: itemFile.downloadLogAction, para: {} }).then(function (response) {
|
|
44744
|
+
if (response.rtnCode === 200) {
|
|
44745
|
+
self.handDownloadUrl(url);
|
|
44746
|
+
}
|
|
44747
|
+
});
|
|
44748
|
+
} else {
|
|
44749
|
+
self.handDownloadUrl(url);
|
|
44750
|
+
}
|
|
44751
|
+
},
|
|
44752
|
+
handDownloadUrl: function handDownloadUrl(url) {
|
|
44753
|
+
var self = this;
|
|
44650
44754
|
if (url.indexOf("?") > -1) {
|
|
44651
44755
|
self.downloadUrl = self.getDownloadUrl(url) + "&" + Math.random();
|
|
44652
44756
|
} else {
|
|
@@ -48124,7 +48228,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
48124
48228
|
"use strict";
|
|
48125
48229
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicCb_vue__ = __webpack_require__(147);
|
|
48126
48230
|
/* unused harmony namespace reexport */
|
|
48127
|
-
/* harmony import */ var
|
|
48231
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_b380321e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicCb_vue__ = __webpack_require__(368);
|
|
48128
48232
|
function injectStyle (ssrContext) {
|
|
48129
48233
|
__webpack_require__(366)
|
|
48130
48234
|
}
|
|
@@ -48144,7 +48248,7 @@ var __vue_scopeId__ = null
|
|
|
48144
48248
|
var __vue_module_identifier__ = null
|
|
48145
48249
|
var Component = normalizeComponent(
|
|
48146
48250
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicCb_vue__["a" /* default */],
|
|
48147
|
-
|
|
48251
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_b380321e_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicCb_vue__["a" /* default */],
|
|
48148
48252
|
__vue_template_functional__,
|
|
48149
48253
|
__vue_styles__,
|
|
48150
48254
|
__vue_scopeId__,
|
|
@@ -48165,7 +48269,7 @@ var content = __webpack_require__(367);
|
|
|
48165
48269
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
48166
48270
|
if(content.locals) module.exports = content.locals;
|
|
48167
48271
|
// add the styles to the DOM
|
|
48168
|
-
var update = __webpack_require__(2)("
|
|
48272
|
+
var update = __webpack_require__(2)("5a0355bb", content, true, {});
|
|
48169
48273
|
|
|
48170
48274
|
/***/ }),
|
|
48171
48275
|
/* 367 */
|
|
@@ -49738,7 +49842,7 @@ var content = __webpack_require__(416);
|
|
|
49738
49842
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
49739
49843
|
if(content.locals) module.exports = content.locals;
|
|
49740
49844
|
// add the styles to the DOM
|
|
49741
|
-
var update = __webpack_require__(2)("
|
|
49845
|
+
var update = __webpack_require__(2)("59c7b78b", content, true, {});
|
|
49742
49846
|
|
|
49743
49847
|
/***/ }),
|
|
49744
49848
|
/* 416 */
|
|
@@ -49775,7 +49879,7 @@ var content = __webpack_require__(419);
|
|
|
49775
49879
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
49776
49880
|
if(content.locals) module.exports = content.locals;
|
|
49777
49881
|
// add the styles to the DOM
|
|
49778
|
-
var update = __webpack_require__(2)("
|
|
49882
|
+
var update = __webpack_require__(2)("3b300b0e", content, true, {});
|
|
49779
49883
|
|
|
49780
49884
|
/***/ }),
|
|
49781
49885
|
/* 419 */
|
|
@@ -51029,7 +51133,7 @@ var content = __webpack_require__(485);
|
|
|
51029
51133
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
51030
51134
|
if(content.locals) module.exports = content.locals;
|
|
51031
51135
|
// add the styles to the DOM
|
|
51032
|
-
var update = __webpack_require__(2)("
|
|
51136
|
+
var update = __webpack_require__(2)("079855eb", content, true, {});
|
|
51033
51137
|
|
|
51034
51138
|
/***/ }),
|
|
51035
51139
|
/* 485 */
|
|
@@ -51052,7 +51156,7 @@ exports.push([module.i, ".el-collapse{border-top:none}.ct-collapse-item-title .e
|
|
|
51052
51156
|
"use strict";
|
|
51053
51157
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__ = __webpack_require__(188);
|
|
51054
51158
|
/* unused harmony namespace reexport */
|
|
51055
|
-
/* harmony import */ var
|
|
51159
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_79b7d080_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__ = __webpack_require__(489);
|
|
51056
51160
|
function injectStyle (ssrContext) {
|
|
51057
51161
|
__webpack_require__(487)
|
|
51058
51162
|
}
|
|
@@ -51072,7 +51176,7 @@ var __vue_scopeId__ = null
|
|
|
51072
51176
|
var __vue_module_identifier__ = null
|
|
51073
51177
|
var Component = normalizeComponent(
|
|
51074
51178
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
51075
|
-
|
|
51179
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_79b7d080_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicFormListTable_vue__["a" /* default */],
|
|
51076
51180
|
__vue_template_functional__,
|
|
51077
51181
|
__vue_styles__,
|
|
51078
51182
|
__vue_scopeId__,
|
|
@@ -51093,7 +51197,7 @@ var content = __webpack_require__(488);
|
|
|
51093
51197
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
51094
51198
|
if(content.locals) module.exports = content.locals;
|
|
51095
51199
|
// add the styles to the DOM
|
|
51096
|
-
var update = __webpack_require__(2)("
|
|
51200
|
+
var update = __webpack_require__(2)("1c5213c7", content, true, {});
|
|
51097
51201
|
|
|
51098
51202
|
/***/ }),
|
|
51099
51203
|
/* 488 */
|
|
@@ -51114,7 +51218,7 @@ exports.push([module.i, ".el-table-add-row{margin-top:10px;width:100%;height:34p
|
|
|
51114
51218
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
51115
51219
|
|
|
51116
51220
|
"use strict";
|
|
51117
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list",class:{'tableDisabled':_vm.model.tableDisabled}},[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id))?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(_vm.model.selectRouter!==null)?_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}}):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")]):_vm._e()],1),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{
|
|
51221
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"focus",rawName:"v-focus",value:(_vm.foucus),expression:"foucus"}],staticClass:"ct-form-list",class:{'tableDisabled':_vm.model.tableDisabled}},[(_vm.model.title)?_c('div',{staticClass:"list-title"},[_c('h5',[_vm._v(_vm._s(_vm.model.title))])]):(_vm.model.create || (_vm.model.selectRouter && _vm.model.selectRouter.id))?_c('div',{staticClass:"list-title"}):_vm._e(),_vm._v(" "),_c('div',{staticClass:"list-button"},[(_vm.model.selectRouter!==null)?_c(_vm.model.selectRouter.is,{tag:"component",attrs:{"vmodel":_vm.model.selectRouter},on:{"click":_vm.popupSearchListHandle}}):_vm._e(),_vm._v(" "),(_vm.model.create)?_c('el-button',{staticClass:"max-btn-add",staticStyle:{"width":"auto"},attrs:{"disabled":_vm.model.disabled,"type":"success","size":"mini","icon":"el-icon-circle-plus-outline"},on:{"click":_vm.addRow}},[_vm._v("\n "+_vm._s(_vm.model.createText)+"\n ")]):_vm._e()],1),_vm._v(" "),_c('div',{attrs:{"id":"listTable"}},[_c('el-row',[_c('el-col',{attrs:{"span":24}},[_c('el-table',{staticClass:"max-table--border",staticStyle:{"width":"100%"},attrs:{"size":"mini","data":_vm.model.tableData,"border":"","highlight-current-row":"","show-summary":_vm.model.showSummary,"summary-method":_vm.getSummaries}},[_vm._l((_vm.model.rows[0].field),function(v,i){return (v.show !== false && v.type!==13)?_c('el-table-column',{key:i,attrs:{"prop":v.id,"label":v.label,"width":v.width,"fixed":_vm.model.frozenColumns.includes(v.id),"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"header",fn:function(scope){return [_c('div',{class:[{'ct-table-required':v.required&&_vm.model.rows[0].edit&& _vm.model.rows[0].delete&&!_vm.model.tableDisabled},_vm.getHeadClass(v)]},[_vm._v("\n "+_vm._s(v.label)+"\n ")])]}},{key:"default",fn:function(scope){return [(scope.row.isSet)?_c('span',[_c(_vm.model.currentRow.data[v.id].locked || _vm.model.currentRow.data[v.id].is!==v.is?_vm.model.currentRow.data[v.id].is:v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":_vm.model.currentRow.data[v.id],"api":_vm.model.OptApi},on:{"change":function($event){_vm.changeHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)},"input":function($event){_vm.inputHandler(_vm.model.currentRow.data[v.id], _vm.model.currentRow.data.$sourceIndex)}}})],1):(v.is=='ct-sensitiveeye')?_c('span',[_c(v.is,{key:_vm.model.currentRow.data[v.id].rowKey+_vm.itemKey,ref:"Fields",refInFor:true,tag:"component",attrs:{"vmodel":scope.row[v.id],"vrowmodel":scope.row,"api":_vm.model.OptApi}})],1):(v.router)?_c('span',{class:'cell',staticStyle:{"display":"flex"}},[_c('span',[_vm._v(_vm._s(scope.row.isSet))]),_vm._v(" "),_c('ct-tablecurrency',{attrs:{"router":v.router,"colValue":scope.row[v.id].code1,"rowData":scope.row},on:{"click":_vm.rolRouterClickHandler}})],1):_c('ct-span',{key:scope.row[v.id].rowKey+_vm.itemKey,ref:"FieldsLabel",refInFor:true,attrs:{"vmodel":scope.row[v.id],"rowNum":scope.row.$sourceIndex,"rowData":scope.row}})]}}])}):_vm._e()}),_vm._v(" "),(_vm.model.rows[0].edit || _vm.model.rows[0].delete || _vm.model.buttons.length > 0)?_c('el-table-column',{attrs:{"label":"操作","fixed":_vm.fixedButtons,"width":'100%',"render-header":_vm.renderHeader,"min-width":_vm.tableColumnWith},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [(scope.row.edit || scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,true)}}},[_vm._v("\n "+_vm._s(scope.row.isSet?'保存':"修改")+"\n ")]):_vm._e(),_vm._v(" "),(scope.row.delete && !scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--danger el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.deleteRow(scope.$index, scope.row.$sourceIndex)}}},[_vm._v("\n 删除\n ")]):(scope.row.isSet)?_c('span',{staticClass:"el-tag el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.saveRow(scope.row,scope.$index,false)}}},[_vm._v("\n 取消\n ")]):_vm._e(),_vm._v(" "),_vm._l((_vm.model.buttons),function(v,i){return (!scope.row.isSet && v.show && ( !v.rightField || !scope.row[v.rightField] || scope.row[v.rightField].value == 1 ))?_c('span',{staticClass:"el-tag el-tag--info el-tag--mini",staticStyle:{"cursor":"pointer"},on:{"click":function($event){_vm.buttonClick(scope.row, v)}}},[_vm._v("\n "+_vm._s(v.label)+"\n ")]):_vm._e()})]}}])}):_vm._e()],2)],1)],1)],1),_vm._v(" "),(_vm.model.description)?_c('div',{domProps:{"innerHTML":_vm._s(_vm.model.description)}}):_vm._e()])}
|
|
51118
51222
|
var staticRenderFns = []
|
|
51119
51223
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
51120
51224
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|
|
@@ -55485,7 +55589,7 @@ exports.push([module.i, ".picedit-stage{position:absolute;left:0;right:0;bottom:
|
|
|
55485
55589
|
/* 527 */
|
|
55486
55590
|
/***/ (function(module, exports, __webpack_require__) {
|
|
55487
55591
|
|
|
55488
|
-
!function(t,e){ true?module.exports=e():"function"==typeof define&&define.amd?define("vue-cropper",[],e):"object"==typeof exports?exports["vue-cropper"]=e():t["vue-cropper"]=e()}(self,(()=>(()=>{var t={173:(t,e,r)=>{(t.exports=r(252)(!1)).push([t.id,'\n.vue-cropper[data-v-8ed66ddc] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-8ed66ddc],\n.cropper-box-canvas[data-v-8ed66ddc],\n.cropper-drag-box[data-v-8ed66ddc],\n.cropper-crop-box[data-v-8ed66ddc],\n.cropper-face[data-v-8ed66ddc] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-8ed66ddc] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-8ed66ddc] {\n overflow: hidden;\n}\n.cropper-move[data-v-8ed66ddc] {\n cursor: move;\n}\n.cropper-crop[data-v-8ed66ddc] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-8ed66ddc] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-8ed66ddc] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-8ed66ddc] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-8ed66ddc] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-8ed66ddc] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-8ed66ddc] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-8ed66ddc] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-8ed66ddc] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-8ed66ddc] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-8ed66ddc] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-8ed66ddc] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-8ed66ddc] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-8ed66ddc] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-8ed66ddc] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-8ed66ddc] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-8ed66ddc] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-8ed66ddc] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-8ed66ddc] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-8ed66ddc] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-8ed66ddc] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-8ed66ddc] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-8ed66ddc] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-8ed66ddc],\n .point4[data-v-8ed66ddc],\n .point5[data-v-8ed66ddc],\n .point7[data-v-8ed66ddc] {\n display: none;\n}\n.point3[data-v-8ed66ddc] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-8ed66ddc] {\n top: 0;\n left: 0;\n}\n.point6[data-v-8ed66ddc] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-8ed66ddc] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},252:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r,o=t[1]||"",i=t[3];if(!i)return o;if(e&&"function"==typeof btoa){var n=(r=i,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),s=i.sources.map((function(t){return"/*# sourceURL="+i.sourceRoot+t+" */"}));return[o].concat(s).concat([n]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+r+"}":r})).join("")},e.i=function(t,r){"string"==typeof t&&(t=[[null,t,""]]);for(var o={},i=0;i<this.length;i++){var n=this[i][0];"number"==typeof n&&(o[n]=!0)}for(i=0;i<t.length;i++){var s=t[i];"number"==typeof s[0]&&o[s[0]]||(r&&!s[2]?s[2]=r:r&&(s[2]="("+s[2]+") and ("+r+")"),e.push(s))}},e}},125:(t,e,r)=>{var o=r(173);"string"==typeof o&&(o=[[t.id,o,""]]);r(723)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(t.exports=o.locals)},723:(t,e,r)=>{var o,i,n={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=o.apply(this,arguments)),i}),a=function(t,e){return e?e.querySelector(t):document.querySelector(t)},c=function(t){var e={};return function(t,r){if("function"==typeof t)return t();if(void 0===e[t]){var o=a.call(this,t,r);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}}(),h=null,p=0,u=[],d=r(947);function l(t,e){for(var r=0;r<t.length;r++){var o=t[r],i=n[o.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](o.parts[s]);for(;s<o.parts.length;s++)i.parts.push(x(o.parts[s],e))}else{var a=[];for(s=0;s<o.parts.length;s++)a.push(x(o.parts[s],e));n[o.id]={id:o.id,refs:1,parts:a}}}}function f(t,e){for(var r=[],o={},i=0;i<t.length;i++){var n=t[i],s=e.base?n[0]+e.base:n[0],a={css:n[1],media:n[2],sourceMap:n[3]};o[s]?o[s].parts.push(a):r.push(o[s]={id:s,parts:[a]})}return r}function g(t,e){var r=c(t.insertInto);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=u[u.length-1];if("top"===t.insertAt)o?o.nextSibling?r.insertBefore(e,o.nextSibling):r.appendChild(e):r.insertBefore(e,r.firstChild),u.push(e);else if("bottom"===t.insertAt)r.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=c(t.insertAt.before,r);r.insertBefore(e,i)}}function v(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=u.indexOf(t);e>=0&&u.splice(e,1)}function m(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var o=r.nc;o&&(t.attrs.nonce=o)}return w(e,t.attrs),g(t,e),e}function w(t,e){Object.keys(e).forEach((function(r){t.setAttribute(r,e[r])}))}function x(t,e){var r,o,i,n;if(e.transform&&t.css){if(!(n="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=n}if(e.singleton){var s=p++;r=h||(h=m(e)),o=y.bind(null,r,s,!1),i=y.bind(null,r,s,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",w(e,t.attrs),g(t,e),e}(e),o=A.bind(null,r,e),i=function(){v(r),r.href&&URL.revokeObjectURL(r.href)}):(r=m(e),o=O.bind(null,r),i=function(){v(r)});return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var r=f(t,e);return l(r,e),function(t){for(var o=[],i=0;i<r.length;i++){var s=r[i];(a=n[s.id]).refs--,o.push(a)}for(t&&l(f(t,e),e),i=0;i<o.length;i++){var a;if(0===(a=o[i]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete n[a.id]}}}};var C,b=(C=[],function(t,e){return C[t]=e,C.filter(Boolean).join("\n")});function y(t,e,r,o){var i=r?"":o.css;if(t.styleSheet)t.styleSheet.cssText=b(e,i);else{var n=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(n,s[e]):t.appendChild(n)}}function O(t,e){var r=e.css,o=e.media;if(o&&t.setAttribute("media",o),t.styleSheet)t.styleSheet.cssText=r;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(r))}}function A(t,e,r){var o=r.css,i=r.sourceMap,n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(o=d(o)),i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var s=new Blob([o],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},947:t=>{t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var r=e.protocol+"//"+e.host,o=r+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){var i,n=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(n)?t:(i=0===n.indexOf("//")?n:0===n.indexOf("/")?r+n:o+n.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")}))}}},e={};function r(o){var i=e[o];if(void 0!==i)return i.exports;var n=e[o]={id:o,exports:{}};return t[o](n,n.exports,r),n.exports}r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nc=void 0;var o={};return(()=>{"use strict";r.r(o),r.d(o,{VueCropper:()=>h,default:()=>u});var t=function(){var t=this,e=t._self._c;return e("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[t.imgs?e("div",{staticClass:"cropper-box"},[e("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[e("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]):t._e(),t._v(" "),e("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),e("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[e("span",{staticClass:"cropper-view-box"},[e("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),e("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?e("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(t.cropInfo.width)+" × "+t._s(t.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():e("span",[e("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){return t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){return t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),e("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){return t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){return t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),e("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){return t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){return t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),e("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){return t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){return t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),e("span",{staticClass:"crop-point point1",on:{mousedown:function(e){return t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){return t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),e("span",{staticClass:"crop-point point2",on:{mousedown:function(e){return t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){return t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),e("span",{staticClass:"crop-point point3",on:{mousedown:function(e){return t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){return t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),e("span",{staticClass:"crop-point point4",on:{mousedown:function(e){return t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){return t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),e("span",{staticClass:"crop-point point5",on:{mousedown:function(e){return t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){return t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),e("span",{staticClass:"crop-point point6",on:{mousedown:function(e){return t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){return t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),e("span",{staticClass:"crop-point point7",on:{mousedown:function(e){return t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){return t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),e("span",{staticClass:"crop-point point8",on:{mousedown:function(e){return t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){return t.changeCropSize(e,!0,!0,2,2)}}})])])])};function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,o=new Array(e);r<e;r++)o[r]=t[r];return o}function i(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var o,i,n,s,a=[],c=!0,h=!1;try{if(n=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(o=n.call(r)).done)&&(a.push(o.value),a.length!==e);c=!0);}catch(t){h=!0,i=t}finally{try{if(!c&&null!=r.return&&(s=r.return(),Object(s)!==s))return}finally{if(h)throw i}}return a}}(t,r)||function(t,r){if(t){if("string"==typeof t)return e(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?e(t,r):void 0}}(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}t._withStripped=!0;var n={};n.getData=function(t){return new Promise((function(e,r){var o={};(function(t){var e=null;return new Promise((function(r,o){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),r=e.length,o=new ArrayBuffer(r),i=new Uint8Array(o),n=0;n<r;n++)i[n]=e.charCodeAt(n);return o}(t.src),r(e);else if(/^blob\:/i.test(t.src)){var i=new FileReader;i.onload=function(t){e=t.target.result,r(e)},function(t,e){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="blob",r.onload=function(t){var e;200!=this.status&&0!==this.status||(e=this.response,i.readAsArrayBuffer(e))},r.send()}(t.src)}else{var n=new XMLHttpRequest;n.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=n.response,r(e),n=null},n.open("GET",t.src,!0),n.responseType="arraybuffer",n.send(null)}else o("img error")}))})(t).then((function(t){o.arrayBuffer=t,o.orientation=function(t){var e,r,o,i,n,s,a,c,h,p=new DataView(t),u=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<u;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){s=c;break}c++}if(s&&(r=s+10,"Exif"===function(t,e,r){var o,i="";for(o=e,r+=e;o<r;o++)i+=String.fromCharCode(t.getUint8(o));return i}(p,s+4,4)&&((i=18761===(n=p.getUint16(r)))||19789===n)&&42===p.getUint16(r+2,i)&&(o=p.getUint32(r+4,i))>=8&&(a=r+o)),a)for(u=p.getUint16(a,i),h=0;h<u;h++)if(c=a+12*h+2,274===p.getUint16(c,i)){c+=8,e=p.getUint16(c,i);break}return e}(t),e(o)})).catch((function(t){r(t)}))}))};const s=n,a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10},validator:function(t){return Array.isArray(t)?Number(t[0])>=0&&Number(t[1])>=0:Number(t)>=0}}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){return navigator.userAgent,!!window.ActiveXObject||"ActiveXObject"in window},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),(this.autoCrop||this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(t){for(var e=navigator.userAgent.split(" "),r="",o=new RegExp(t,"i"),i=0;i<e.length;i++)o.test(e[i])&&(r=e[i]);return r?r.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(t,e,r,o){var i=this;if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){var n=this.getVersion("version");n[0]>13&&n[1]>1&&(e=-1)}else{var s=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(s){var a=s[1];((a=a.split("_"))[0]>13||a[0]>=13&&a[1]>=4)&&(e=-1)}}var c=document.createElement("canvas"),h=c.getContext("2d");switch(h.save(),e){case 2:c.width=r,c.height=o,h.translate(r,0),h.scale(-1,1);break;case 3:c.width=r,c.height=o,h.translate(r/2,o/2),h.rotate(180*Math.PI/180),h.translate(-r/2,-o/2);break;case 4:c.width=r,c.height=o,h.translate(0,o),h.scale(1,-1);break;case 5:c.height=r,c.width=o,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:c.width=o,c.height=r,h.translate(o/2,r/2),h.rotate(90*Math.PI/180),h.translate(-r/2,-o/2);break;case 7:c.height=r,c.width=o,h.rotate(.5*Math.PI),h.translate(r,-o),h.scale(-1,1);break;case 8:c.height=r,c.width=o,h.translate(o/2,r/2),h.rotate(-90*Math.PI/180),h.translate(-r/2,-o/2);break;default:c.width=r,c.height=o}h.drawImage(t,0,0,r,o),h.restore(),c.toBlob((function(t){var e=URL.createObjectURL(t);URL.revokeObjectURL(i.imgs),i.imgs=e}),"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var r=e.width,o=e.height;s.getData(e).then((function(i){t.orientation=i.orientation||1;var n=Number(t.maxImgSize);!t.orientation&&r<n&o<n?t.imgs=t.img:(r>n&&(o=o/r*n,r=n),o>n&&(r=r/o*n,o=n),t.checkOrientationImage(e,t.orientation,r,o))}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var r=new XMLHttpRequest;r.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},r.open("GET",this.img,!0),r.responseType="blob",r.send()}else e.src=this.img},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var r=this.scale,o=this.touches[0].clientX,i=this.touches[0].clientY,n=t.touches[0].clientX,s=t.touches[0].clientY,a=this.touches[1].clientX,c=this.touches[1].clientY,h=t.touches[1].clientX,p=t.touches[1].clientY,u=Math.sqrt(Math.pow(o-a,2)+Math.pow(i-c,2)),d=Math.sqrt(Math.pow(n-h,2)+Math.pow(s-p,2))-u,l=1,f=(l=(l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth)>.1?.1:l)*d;if(!this.touchNow){if(this.touchNow=!0,d>0?r+=Math.abs(f):d<0&&r>Math.abs(f)&&(r-=Math.abs(f)),this.touches=t.touches,setTimeout((function(){e.touchNow=!1}),8),!this.checkoutImgAxis(this.x,this.y,r))return!1;this.scale=r}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var r,o,i="clientX"in t?t.clientX:t.touches[0].clientX,n="clientY"in t?t.clientY:t.touches[0].clientY;r=i-this.moveX,o=n-this.moveY,this.$nextTick((function(){if(e.centerBox){var t,i,n,s,a=e.getImgAxis(r,o,e.scale),c=e.getCropAxis(),h=e.trueHeight*e.scale,p=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(h-p)/2,i=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(p-h)/2,n=t-h+e.cropW,s=i-p+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,i=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,n=t-p+e.cropW,s=i-h+e.cropH}a.x1>=c.x1&&(r=t),a.y1>=c.y1&&(o=i),a.x2<=c.x2&&(r=n),a.y2<=c.y2&&(o=s)}e.x=r,e.y=o,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})}))},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var r=this.scale,o=t.deltaY||t.wheelDelta;o=navigator.userAgent.indexOf("Firefox")>0?30*o:o,this.isIE&&(o=-o);var i=this.coe,n=(i=i/this.trueWidth>i/this.trueHeight?i/this.trueHeight:i/this.trueWidth)*o;n<0?r+=Math.abs(n):r>Math.abs(n)&&(r-=Math.abs(n));var s=n<0?"add":"reduce";if(s!==this.coeStatus&&(this.coeStatus=s,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){e.scaling=!1,e.coe=e.coe+=.01}),50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,r))return!1;this.scale=r},changeScale:function(t){var e=this.scale;t=t||1;var r=20;if((t*=r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var r="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,o="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick((function(){var t=r-e.cropX,i=o-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var n=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];n+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=n,e.cropOffsertY=e.cropOffsertY}else i>0?(e.cropH=i+e.cropChangeY>e.h?e.h-e.cropChangeY:i,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(i)>e.h?e.cropChangeY:Math.abs(i),e.cropOffsertY=e.cropChangeY+i>0?e.cropChangeY+i:0)}))},changeCropSize:function(t,e,r,o,i){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=r,this.changeCropTypeX=o,this.changeCropTypeY=i,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("changeCropSize",{width:this.cropW,height:this.cropH}),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(t){var e=this;t.preventDefault();var r="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,o="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0,n=this.w,s=this.h,a=0,c=0;if(this.centerBox){var h=this.getImgAxis(),p=h.x2,u=h.y2;a=h.x1>0?h.x1:0,c=h.y1>0?h.y1:0,n>p&&(n=p),s>u&&(s=u)}var d=i(this.checkCropLimitSize(),2),l=d[0],f=d[1];this.$nextTick((function(){var t=r-e.cropX,i=o-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t<l?(e.cropW=l,e.cropOffsertX=e.cropOldW+e.cropChangeX-a-l):e.cropOldW-t>0?(e.cropW=n-e.cropChangeX-t<=n-a?e.cropOldW-t:e.cropOldW+e.cropChangeX-a,e.cropOffsertX=n-e.cropChangeX-t<=n-a?e.cropChangeX+t:a):(e.cropW=Math.abs(t)+e.cropChangeX<=n?Math.abs(t)-e.cropOldW:n-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t<l?e.cropW=l:e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=n?e.cropOldW+t:n-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=n-e.cropChangeX+Math.abs(t+e.cropOldW)<=n-a?Math.abs(t+e.cropOldW):e.cropChangeX-a,e.cropOffsertX=n-e.cropChangeX+Math.abs(t+e.cropOldW)<=n-a?e.cropChangeX-Math.abs(t+e.cropOldW):a))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-i<f?(e.cropH=f,e.cropOffsertY=e.cropOldH+e.cropChangeY-c-f):e.cropOldH-i>0?(e.cropH=s-e.cropChangeY-i<=s-c?e.cropOldH-i:e.cropOldH+e.cropChangeY-c,e.cropOffsertY=s-e.cropChangeY-i<=s-c?e.cropChangeY+i:c):(e.cropH=Math.abs(i)+e.cropChangeY<=s?Math.abs(i)-e.cropOldH:s-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+i<f?e.cropH=f:e.cropOldH+i>0?(e.cropH=e.cropOldH+i+e.cropOffsertY<=s?e.cropOldH+i:s-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=s-e.cropChangeY+Math.abs(i+e.cropOldH)<=s-c?Math.abs(i+e.cropOldH):e.cropChangeY-c,e.cropOffsertY=s-e.cropChangeY+Math.abs(i+e.cropOldH)<=s-c?e.cropChangeY-Math.abs(i+e.cropOldH):c))),e.canChangeX&&e.fixed){var h=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];h<f?(e.cropH=f,e.cropW=e.fixedNumber[0]*f/e.fixedNumber[1],1===e.changeCropTypeX&&(e.cropOffsertX=e.cropChangeX+(e.cropOldW-e.cropW))):h+e.cropOffsertY>s?(e.cropH=s-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],1===e.changeCropTypeX&&(e.cropOffsertX=e.cropChangeX+(e.cropOldW-e.cropW))):e.cropH=h}if(e.canChangeY&&e.fixed){var p=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];p<l?(e.cropW=l,e.cropH=e.fixedNumber[1]*l/e.fixedNumber[0]):p+e.cropOffsertX>n?(e.cropW=n-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=p}e.$emit("cropSizing",{cropW:e.cropW,cropH:e.cropH}),e.$emit("crop-sizing",{cropW:e.cropW,cropH:e.cropH})}))},checkCropLimitSize:function(){this.cropW,this.cropH;var t=this.limitMinSize,e=new Array;return e=Array.isArray(t)?t:[t,t],[parseFloat(e[0]),parseFloat(e[1])]},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},calculateSize:function(t,e,r,o,i,n){var s=t/e,a=i,c=n;return a<r&&(a=r,c=Math.ceil(a/s)),c<o&&(c=o,(a=Math.ceil(c*s))<r&&(a=r,c=Math.ceil(a/s))),a<i&&(a=i,c=Math.ceil(a/s)),c<n&&(c=n,a=Math.ceil(c*s)),{width:a,height:c}},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1);var t=i(this.checkCropLimitSize(),2),e=t[0],r=t[1],o=this.fixed?this.calculateSize(this.fixedNumber[0],this.fixedNumber[1],e,r,this.cropW,this.cropH):{width:e,height:r},n=o.width,s=o.height;n>this.cropW&&(this.cropW=n,this.cropOffsertX+n>this.w&&(this.cropOffsertX=this.w-n)),s>this.cropH&&(this.cropH=s,this.cropOffsertY+s>this.h&&(this.cropOffsertY=this.h-s)),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,r,o="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY;e=o-this.cropOffsertX,r=i-this.cropOffsertY,this.cropX=e,this.cropY=r,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var r=this,o=0,i=0;t&&(t.preventDefault(),o="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick((function(){var t,n,s=o-r.cropX,a=i-r.cropY;if(e&&(s=r.cropOffsertX,a=r.cropOffsertY),t=s<=0?0:s+r.cropW>r.w?r.w-r.cropW:s,n=a<=0?0:a+r.cropH>r.h?r.h-r.cropH:a,r.centerBox){var c=r.getImgAxis();t<=c.x1&&(t=c.x1),t+r.cropW>c.x2&&(t=c.x2-r.cropW),n<=c.y1&&(n=c.y1),n+r.cropH>c.y2&&(n=c.y2-r.cropH)}r.cropOffsertX=t,r.cropOffsertY=n,r.$emit("cropMoving",{moving:!0,axis:r.getCropAxis()}),r.$emit("crop-moving",{moving:!0,axis:r.getCropAxis()})}))},getImgAxis:function(t,e,r){t=t||this.x,e=e||this.y,r=r||this.scale;var o={x1:0,x2:0,y1:0,y2:0},i=this.trueWidth*r,n=this.trueHeight*r;switch(this.rotate){case 0:o.x1=t+this.trueWidth*(1-r)/2,o.x2=o.x1+this.trueWidth*r,o.y1=e+this.trueHeight*(1-r)/2,o.y2=o.y1+this.trueHeight*r;break;case 1:case-1:case 3:case-3:o.x1=t+this.trueWidth*(1-r)/2+(i-n)/2,o.x2=o.x1+this.trueHeight*r,o.y1=e+this.trueHeight*(1-r)/2+(n-i)/2,o.y2=o.y1+this.trueWidth*r;break;default:o.x1=t+this.trueWidth*(1-r)/2,o.x2=o.x1+this.trueWidth*r,o.y1=e+this.trueHeight*(1-r)/2,o.y2=o.y1+this.trueHeight*r}return o},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,r=document.createElement("canvas"),o=new Image,i=this.rotate,n=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;function h(t,e){r.width=Math.round(t),r.height=Math.round(e)}o.onload=function(){if(0!==e.cropW){var p=r.getContext("2d"),u=1;e.high&!e.full&&(u=window.devicePixelRatio),1!==e.enlarge&!e.full&&(u=Math.abs(Number(e.enlarge)));var d=e.cropW*u,l=e.cropH*u,f=n*e.scale*u,g=s*e.scale*u,v=(e.x-a+e.trueWidth*(1-e.scale)/2)*u,m=(e.y-c+e.trueHeight*(1-e.scale)/2)*u;switch(h(d,l),p.save(),i){case 0:e.full?(h(d/e.scale,l/e.scale),p.drawImage(o,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(o,v,m,f,g);break;case 1:case-3:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*i*Math.PI/180),p.drawImage(o,m,-v-g/e.scale,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*i*Math.PI/180),p.drawImage(o,m,-v-g,f,g));break;case 2:case-2:e.full?(h(d/e.scale,l/e.scale),p.rotate(90*i*Math.PI/180),v/=e.scale,m/=e.scale,p.drawImage(o,-v-f/e.scale,-m-g/e.scale,f/e.scale,g/e.scale)):(p.rotate(90*i*Math.PI/180),p.drawImage(o,-v-f,-m-g,f,g));break;case 3:case-1:e.full?(h(d/e.scale,l/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*i*Math.PI/180),p.drawImage(o,-m-f/e.scale,v,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*i*Math.PI/180),p.drawImage(o,-m-f,v,f,g));break;default:e.full?(h(d/e.scale,l/e.scale),p.drawImage(o,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(o,v,m,f,g)}p.restore()}else{var w=n*e.scale,x=s*e.scale,C=r.getContext("2d");switch(C.save(),i){case 0:h(w,x),C.drawImage(o,0,0,w,x);break;case 1:case-3:h(x,w),C.rotate(90*i*Math.PI/180),C.drawImage(o,0,-x,w,x);break;case 2:case-2:h(w,x),C.rotate(90*i*Math.PI/180),C.drawImage(o,-w,-x,w,x);break;case 3:case-1:h(x,w),C.rotate(90*i*Math.PI/180),C.drawImage(o,-w,0,w,x);break;default:h(w,x),C.drawImage(o,0,0,w,x)}C.restore()}t(r)},"data"!==this.img.substr(0,4)&&(o.crossOrigin="Anonymous"),o.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked((function(r){t(r.toDataURL("image/"+e.outputType,e.outputSize))}))},getCropBlob:function(t){var e=this;this.getCropChecked((function(r){r.toBlob((function(e){return t(e)}),"image/"+e.outputType,e.outputSize)}))},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout((function(){t.isCanShow=!0}),16);var e=this.cropW,r=this.cropH,o=this.scale,i={};i.div={width:"".concat(e,"px"),height:"".concat(r,"px")};var n=(this.x-this.cropOffsertX)/o,s=(this.y-this.cropOffsertY)/o;i.w=e,i.h=r,i.url=this.imgs,i.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(o,")translate3d(").concat(n,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},i.html='\n <div class="show-preview" style="width: '.concat(i.w,"px; height: ").concat(i.h,'px; overflow: hidden">\n <div style="width: ').concat(e,"px; height: ").concat(r,'px">\n <img src=').concat(i.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(o,")translate3d(").concat(n,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",i),this.$emit("real-time",i)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick((function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout((function(){t.showPreview()}),20)}))},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),r=this.mode.split(" ");switch(r[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)<this.h&&(t=(e=this.h)/this.trueHeight);break;default:try{var o=r[0];if(-1!==o.search("px")){o=o.replace("px","");var i=parseFloat(o)/this.trueWidth,n=1,s=r[1];-1!==s.search("px")&&(s=s.replace("px",""),n=(e=parseFloat(s))/this.trueHeight),t=Math.min(i,n)}if(-1!==o.search("%")&&(o=o.replace("%",""),t=parseFloat(o)/100*this.w/this.trueWidth),2===r.length&&"auto"===o){var a=r[1];-1!==a.search("px")&&(a=a.replace("px",""),t=(e=parseFloat(a))/this.trueHeight),-1!==a.search("%")&&(a=a.replace("%",""),t=(e=parseFloat(a)/100*this.h)/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){if(""!==this.imgs&&null!==this.imgs){this.clearCrop(),this.cropping=!0;var r=this.w,o=this.h;if(this.centerBox){var i=Math.abs(this.rotate)%2>0,n=(i?this.trueHeight:this.trueWidth)*this.scale,s=(i?this.trueWidth:this.trueHeight)*this.scale;r=n<r?n:r,o=s<o?s:o}var a=t||parseFloat(this.autoCropWidth),c=e||parseFloat(this.autoCropHeight);0!==a&&0!==c||(a=.8*r,c=.8*o),a=a>r?r:a,c=c>o?o:c,this.fixed&&(c=a/this.fixedNumber[0]*this.fixedNumber[1]),c>this.h&&(a=(c=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(a,c)}},changeCrop:function(t,e){var r=this;if(this.centerBox){var o=this.getImgAxis();t>o.x2-o.x1&&(e=(t=o.x2-o.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>o.y2-o.y1&&(t=(e=o.y2-o.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick((function(){r.cropOffsertX=(r.w-r.cropW)/2,r.cropOffsertY=(r.h-r.cropH)/2,r.centerBox&&r.moveCrop(null,!0)}))},refresh:function(){var t=this;this.img,this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick((function(){t.checkedImg()}))},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,r){t=t||this.x,e=e||this.y,r=r||this.scale;var o=!0;if(this.centerBox){var i=this.getImgAxis(t,e,r),n=this.getCropAxis();i.x1>=n.x1&&(o=!1),i.x2<=n.x2&&(o=!1),i.y1>=n.y1&&(o=!1),i.y2<=n.y2&&(o=!1)}return o}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,r,o){for(var i=atob(this.toDataURL(r,o).split(",")[1]),n=i.length,s=new Uint8Array(n),a=0;a<n;a++)s[a]=i.charCodeAt(a);e(new Blob([s],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};r(125);var c=function(t,e,r,o,i,n,s,a){var c,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=[],h._compiled=!0),n&&(h._scopeId="data-v-"+n),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(t,e){return c.call(e),p(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:h}}(a,t,0,0,0,"8ed66ddc");const h=c.exports;var p=function(t){t.component("VueCropper",h)};"undefined"!=typeof window&&window.Vue&&p(window.Vue);const u={version:"0.5.11",install:p,VueCropper:h,vueCropper:h}})(),o})()));
|
|
55592
|
+
!function(t,e){ true?module.exports=e():"function"==typeof define&&define.amd?define("vue-cropper",[],e):"object"==typeof exports?exports["vue-cropper"]=e():t["vue-cropper"]=e()}(window,function(){return function(t){var e={};function o(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=e,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(t,e){if(1&e&&(t=o(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)o.d(n,r,function(e){return t[e]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=6)}([function(t,e,o){var n=o(2);"string"==typeof n&&(n=[[t.i,n,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};o(4)(n,r);n.locals&&(t.exports=n.locals)},function(t,e,o){"use strict";var n=o(0);o.n(n).a},function(t,e,o){(t.exports=o(3)(!1)).push([t.i,'\n.vue-cropper[data-v-6dae58fd] {\n position: relative;\n width: 100%;\n height: 100%;\n box-sizing: border-box;\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n direction: ltr;\n touch-action: none;\n text-align: left;\n background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");\n}\n.cropper-box[data-v-6dae58fd],\n.cropper-box-canvas[data-v-6dae58fd],\n.cropper-drag-box[data-v-6dae58fd],\n.cropper-crop-box[data-v-6dae58fd],\n.cropper-face[data-v-6dae58fd] {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n user-select: none;\n}\n.cropper-box-canvas img[data-v-6dae58fd] {\n position: relative;\n text-align: left;\n user-select: none;\n transform: none;\n max-width: none;\n max-height: none;\n}\n.cropper-box[data-v-6dae58fd] {\n overflow: hidden;\n}\n.cropper-move[data-v-6dae58fd] {\n cursor: move;\n}\n.cropper-crop[data-v-6dae58fd] {\n cursor: crosshair;\n}\n.cropper-modal[data-v-6dae58fd] {\n background: rgba(0, 0, 0, 0.5);\n}\n.cropper-crop-box[data-v-6dae58fd] {\n /*border: 2px solid #39f;*/\n}\n.cropper-view-box[data-v-6dae58fd] {\n display: block;\n overflow: hidden;\n width: 100%;\n height: 100%;\n outline: 1px solid #39f;\n outline-color: rgba(51, 153, 255, 0.75);\n user-select: none;\n}\n.cropper-view-box img[data-v-6dae58fd] {\n user-select: none;\n text-align: left;\n max-width: none;\n max-height: none;\n}\n.cropper-face[data-v-6dae58fd] {\n top: 0;\n left: 0;\n background-color: #fff;\n opacity: 0.1;\n}\n.crop-info[data-v-6dae58fd] {\n position: absolute;\n left: 0px;\n min-width: 65px;\n text-align: center;\n color: white;\n line-height: 20px;\n background-color: rgba(0, 0, 0, 0.8);\n font-size: 12px;\n}\n.crop-line[data-v-6dae58fd] {\n position: absolute;\n display: block;\n width: 100%;\n height: 100%;\n opacity: 0.1;\n}\n.line-w[data-v-6dae58fd] {\n top: -3px;\n left: 0;\n height: 5px;\n cursor: n-resize;\n}\n.line-a[data-v-6dae58fd] {\n top: 0;\n left: -3px;\n width: 5px;\n cursor: w-resize;\n}\n.line-s[data-v-6dae58fd] {\n bottom: -3px;\n left: 0;\n height: 5px;\n cursor: s-resize;\n}\n.line-d[data-v-6dae58fd] {\n top: 0;\n right: -3px;\n width: 5px;\n cursor: e-resize;\n}\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 8px;\n height: 8px;\n opacity: 0.75;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -4px;\n left: -4px;\n cursor: nw-resize;\n}\n.point2[data-v-6dae58fd] {\n top: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: n-resize;\n}\n.point3[data-v-6dae58fd] {\n top: -4px;\n right: -4px;\n cursor: ne-resize;\n}\n.point4[data-v-6dae58fd] {\n top: 50%;\n left: -4px;\n margin-top: -3px;\n cursor: w-resize;\n}\n.point5[data-v-6dae58fd] {\n top: 50%;\n right: -4px;\n margin-top: -3px;\n cursor: e-resize;\n}\n.point6[data-v-6dae58fd] {\n bottom: -5px;\n left: -4px;\n cursor: sw-resize;\n}\n.point7[data-v-6dae58fd] {\n bottom: -5px;\n left: 50%;\n margin-left: -3px;\n cursor: s-resize;\n}\n.point8[data-v-6dae58fd] {\n bottom: -5px;\n right: -4px;\n cursor: se-resize;\n}\n@media screen and (max-width: 500px) {\n.crop-point[data-v-6dae58fd] {\n position: absolute;\n width: 20px;\n height: 20px;\n opacity: 0.45;\n background-color: #39f;\n border-radius: 100%;\n}\n.point1[data-v-6dae58fd] {\n top: -10px;\n left: -10px;\n}\n.point2[data-v-6dae58fd],\n .point4[data-v-6dae58fd],\n .point5[data-v-6dae58fd],\n .point7[data-v-6dae58fd] {\n display: none;\n}\n.point3[data-v-6dae58fd] {\n top: -10px;\n right: -10px;\n}\n.point4[data-v-6dae58fd] {\n top: 0;\n left: 0;\n}\n.point6[data-v-6dae58fd] {\n bottom: -10px;\n left: -10px;\n}\n.point8[data-v-6dae58fd] {\n bottom: -10px;\n right: -10px;\n}\n}\n',""])},function(t,e){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o=function(t,e){var o=t[1]||"",n=t[3];if(!n)return o;if(e&&"function"==typeof btoa){var r=function(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}(n),i=n.sources.map(function(t){return"/*# sourceURL="+n.sourceRoot+t+" */"});return[o].concat(i).concat([r]).join("\n")}return[o].join("\n")}(e,t);return e[2]?"@media "+e[2]+"{"+o+"}":o}).join("")},e.i=function(t,o){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(n[i]=!0)}for(r=0;r<t.length;r++){var s=t[r];"number"==typeof s[0]&&n[s[0]]||(o&&!s[2]?s[2]=o:o&&(s[2]="("+s[2]+") and ("+o+")"),e.push(s))}},e}},function(t,e,o){var n={},r=function(t){var e;return function(){return void 0===e&&(e=t.apply(this,arguments)),e}}(function(){return window&&document&&document.all&&!window.atob}),i=function(t){var e={};return function(t,o){if("function"==typeof t)return t();if(void 0===e[t]){var n=function(t,e){return e?e.querySelector(t):document.querySelector(t)}.call(this,t,o);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}}(),s=null,a=0,c=[],h=o(5);function p(t,e){for(var o=0;o<t.length;o++){var r=t[o],i=n[r.id];if(i){i.refs++;for(var s=0;s<i.parts.length;s++)i.parts[s](r.parts[s]);for(;s<r.parts.length;s++)i.parts.push(v(r.parts[s],e))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(v(r.parts[s],e));n[r.id]={id:r.id,refs:1,parts:a}}}}function u(t,e){for(var o=[],n={},r=0;r<t.length;r++){var i=t[r],s=e.base?i[0]+e.base:i[0],a={css:i[1],media:i[2],sourceMap:i[3]};n[s]?n[s].parts.push(a):o.push(n[s]={id:s,parts:[a]})}return o}function l(t,e){var o=i(t.insertInto);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var n=c[c.length-1];if("top"===t.insertAt)n?n.nextSibling?o.insertBefore(e,n.nextSibling):o.appendChild(e):o.insertBefore(e,o.firstChild),c.push(e);else if("bottom"===t.insertAt)o.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=i(t.insertAt.before,o);o.insertBefore(e,r)}}function d(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);var e=c.indexOf(t);e>=0&&c.splice(e,1)}function f(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var n=function(){0;return o.nc}();n&&(t.attrs.nonce=n)}return g(e,t.attrs),l(t,e),e}function g(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}function v(t,e){var o,n,r,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var c=a++;o=s||(s=f(e)),n=w.bind(null,o,c,!1),r=w.bind(null,o,c,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(o=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",g(e,t.attrs),l(t,e),e}(e),n=function(t,e,o){var n=o.css,r=o.sourceMap,i=void 0===e.convertToAbsoluteUrls&&r;(e.convertToAbsoluteUrls||i)&&(n=h(n));r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([n],{type:"text/css"}),a=t.href;t.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}.bind(null,o,e),r=function(){d(o),o.href&&URL.revokeObjectURL(o.href)}):(o=f(e),n=function(t,e){var o=e.css,n=e.media;n&&t.setAttribute("media",n);if(t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}.bind(null,o),r=function(){d(o)});return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=r()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var o=u(t,e);return p(o,e),function(t){for(var r=[],i=0;i<o.length;i++){var s=o[i];(a=n[s.id]).refs--,r.push(a)}t&&p(u(t,e),e);for(i=0;i<r.length;i++){var a;if(0===(a=r[i]).refs){for(var c=0;c<a.parts.length;c++)a.parts[c]();delete n[a.id]}}}};var m=function(){var t=[];return function(e,o){return t[e]=o,t.filter(Boolean).join("\n")}}();function w(t,e,o,n){var r=o?"":n.css;if(t.styleSheet)t.styleSheet.cssText=m(e,r);else{var i=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(i,s[e]):t.appendChild(i)}}},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var o=e.protocol+"//"+e.host,n=o+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(t,e){var r,i=e.trim().replace(/^"(.*)"$/,function(t,e){return e}).replace(/^'(.*)'$/,function(t,e){return e});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?t:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?o+i:n+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")})}},function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:t.scaleImg,mouseout:t.cancelScale}},[t.imgs?o("div",{staticClass:"cropper-box"},[o("div",{directives:[{name:"show",rawName:"v-show",value:!t.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+t.x/t.scale+"px,"+t.y/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"}},[o("img",{ref:"cropperImg",attrs:{src:t.imgs,alt:"cropper-img"}})])]):t._e(),t._v(" "),o("div",{staticClass:"cropper-drag-box",class:{"cropper-move":t.move&&!t.crop,"cropper-crop":t.crop,"cropper-modal":t.cropping},on:{mousedown:t.startMove,touchstart:t.startMove}}),t._v(" "),o("div",{directives:[{name:"show",rawName:"v-show",value:t.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:t.cropW+"px",height:t.cropH+"px",transform:"translate3d("+t.cropOffsertX+"px,"+t.cropOffsertY+"px,0)"}},[o("span",{staticClass:"cropper-view-box"},[o("img",{style:{width:t.trueWidth+"px",height:t.trueHeight+"px",transform:"scale("+t.scale+","+t.scale+") translate3d("+(t.x-t.cropOffsertX)/t.scale+"px,"+(t.y-t.cropOffsertY)/t.scale+"px,0)rotateZ("+90*t.rotate+"deg)"},attrs:{src:t.imgs,alt:"cropper-img"}})]),t._v(" "),o("span",{staticClass:"cropper-face cropper-move",on:{mousedown:t.cropMove,touchstart:t.cropMove}}),t._v(" "),t.info?o("span",{staticClass:"crop-info",style:{top:t.cropInfo.top}},[t._v(t._s(t.cropInfo.width)+" × "+t._s(t.cropInfo.height))]):t._e(),t._v(" "),t.fixedBox?t._e():o("span",[o("span",{staticClass:"crop-line line-w",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-line line-a",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-line line-s",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-line line-d",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point1",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point2",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,1)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point3",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,1)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,1)}}}),t._v(" "),o("span",{staticClass:"crop-point point4",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,1,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,1,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point5",on:{mousedown:function(e){t.changeCropSize(e,!0,!1,2,0)},touchstart:function(e){t.changeCropSize(e,!0,!1,2,0)}}}),t._v(" "),o("span",{staticClass:"crop-point point6",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,1,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,1,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point7",on:{mousedown:function(e){t.changeCropSize(e,!1,!0,0,2)},touchstart:function(e){t.changeCropSize(e,!1,!0,0,2)}}}),t._v(" "),o("span",{staticClass:"crop-point point8",on:{mousedown:function(e){t.changeCropSize(e,!0,!0,2,2)},touchstart:function(e){t.changeCropSize(e,!0,!0,2,2)}}})])])])};n._withStripped=!0;var r={};r.getData=function(t){return new Promise(function(e,o){var n={};(function(t){var e=null;return new Promise(function(o,n){if(t.src)if(/^data\:/i.test(t.src))e=function(t){t=t.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var e=atob(t),o=e.length,n=new ArrayBuffer(o),r=new Uint8Array(n),i=0;i<o;i++)r[i]=e.charCodeAt(i);return n}(t.src),o(e);else if(/^blob\:/i.test(t.src)){var r=new FileReader;r.onload=function(t){e=t.target.result,o(e)},function(t,e){var o=new XMLHttpRequest;o.open("GET",t,!0),o.responseType="blob",o.onload=function(t){200!=this.status&&0!==this.status||e(this.response)},o.send()}(t.src,function(t){r.readAsArrayBuffer(t)})}else{var i=new XMLHttpRequest;i.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";e=i.response,o(e),i=null},i.open("GET",t.src,!0),i.responseType="arraybuffer",i.send(null)}else n("img error")})})(t).then(function(t){n.arrayBuffer=t,n.orientation=function(t){var e,o,n,r,i,s,a,c,h,p=new DataView(t),u=p.byteLength;if(255===p.getUint8(0)&&216===p.getUint8(1))for(c=2;c<u;){if(255===p.getUint8(c)&&225===p.getUint8(c+1)){s=c;break}c++}s&&(o=s+10,"Exif"===function(t,e,o){var n,r="";for(n=e,o+=e;n<o;n++)r+=String.fromCharCode(t.getUint8(n));return r}(p,s+4,4)&&(i=p.getUint16(o),((r=18761===i)||19789===i)&&42===p.getUint16(o+2,r)&&(n=p.getUint32(o+4,r))>=8&&(a=o+n)));if(a)for(u=p.getUint16(a,r),h=0;h<u;h++)if(c=a+12*h+2,274===p.getUint16(c,r)){c+=8,e=p.getUint16(c,r);break}return e}(t),e(n)}).catch(function(t){o(t)})})};var i=r,s={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:"",isCanShow:!0}},props:{img:{type:[String,Blob,null,File],default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:[Number,String],default:0},autoCropHeight:{type:[Number,String],default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1},centerBox:{type:Boolean,default:!1},high:{type:Boolean,default:!0},infoTrue:{type:Boolean,default:!1},maxImgSize:{type:[Number,String],default:2e3},enlarge:{type:[Number,String],default:1},preW:{type:[Number,String],default:0},mode:{type:String,default:"contain"},limitMinSize:{type:[Number,Array,String],default:function(){return 10}}},computed:{cropInfo:function(){var t={};if(t.top=this.cropOffsertY>21?"-21px":"0px",t.width=this.cropW>0?this.cropW:0,t.height=this.cropH>0?this.cropH:0,this.infoTrue){var e=1;this.high&&!this.full&&(e=window.devicePixelRatio),1!==this.enlarge&!this.full&&(e=Math.abs(Number(this.enlarge))),t.width=t.width*e,t.height=t.height*e,this.full&&(t.width=t.width/this.scale,t.height=t.height/this.scale)}return t.width=t.width.toFixed(0),t.height=t.height.toFixed(0),t},isIE:function(){navigator.userAgent;var t=!!window.ActiveXObject||"ActiveXObject"in window;return t},passive:function(){return this.isIE?null:{passive:!1}}},watch:{img:function(){this.checkedImg()},imgs:function(t){""!==t&&this.reload()},cropW:function(){this.showPreview()},cropH:function(){this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(t,e){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},autoCrop:function(t){t&&this.goAutoCrop()},autoCropWidth:function(){this.autoCrop&&this.goAutoCrop()},autoCropHeight:function(){this.autoCrop&&this.goAutoCrop()},mode:function(){this.checkedImg()},rotate:function(){this.showPreview(),this.autoCrop?this.goAutoCrop(this.cropW,this.cropH):(this.cropW>0||this.cropH>0)&&this.goAutoCrop(this.cropW,this.cropH)}},methods:{getVersion:function(t){for(var e=navigator.userAgent.split(" "),o="",n=new RegExp(t,"i"),r=0;r<e.length;r++)n.test(e[r])&&(o=e[r]);return o?o.split("/")[1].split("."):["0","0","0"]},checkOrientationImage:function(t,e,o,n){var r=this;if(this.getVersion("chrome")[0]>=81)e=-1;else if(this.getVersion("safari")[0]>=605){var i=this.getVersion("version");i[0]>13&&i[1]>1&&(e=-1)}else{var s=navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);if(s){var a=s[1];((a=a.split("_"))[0]>13||a[0]>=13&&a[1]>=4)&&(e=-1)}}var c=document.createElement("canvas"),h=c.getContext("2d");switch(h.save(),e){case 2:c.width=o,c.height=n,h.translate(o,0),h.scale(-1,1);break;case 3:c.width=o,c.height=n,h.translate(o/2,n/2),h.rotate(180*Math.PI/180),h.translate(-o/2,-n/2);break;case 4:c.width=o,c.height=n,h.translate(0,n),h.scale(1,-1);break;case 5:c.height=o,c.width=n,h.rotate(.5*Math.PI),h.scale(1,-1);break;case 6:c.width=n,c.height=o,h.translate(n/2,o/2),h.rotate(90*Math.PI/180),h.translate(-o/2,-n/2);break;case 7:c.height=o,c.width=n,h.rotate(.5*Math.PI),h.translate(o,-n),h.scale(-1,1);break;case 8:c.height=o,c.width=n,h.translate(n/2,o/2),h.rotate(-90*Math.PI/180),h.translate(-o/2,-n/2);break;default:c.width=o,c.height=n}h.drawImage(t,0,0,o,n),h.restore(),c.toBlob(function(t){var e=URL.createObjectURL(t);URL.revokeObjectURL(r.imgs),r.imgs=e},"image/"+this.outputType,1)},checkedImg:function(){var t=this;if(null===this.img||""===this.img)return this.imgs="",void this.clearCrop();this.loading=!0,this.scale=1,this.rotate=0,this.clearCrop();var e=new Image;if(e.onload=function(){if(""===t.img)return t.$emit("imgLoad","error"),t.$emit("img-load","error"),!1;var o=e.width,n=e.height;i.getData(e).then(function(r){t.orientation=r.orientation||1;var i=Number(t.maxImgSize);!t.orientation&&o<i&n<i?t.imgs=t.img:(o>i&&(n=n/o*i,o=i),n>i&&(o=o/n*i,n=i),t.checkOrientationImage(e,t.orientation,o,n))})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},"data"!==this.img.substr(0,4)&&(e.crossOrigin=""),this.isIE){var o=new XMLHttpRequest;o.onload=function(){var t=URL.createObjectURL(this.response);e.src=t},o.open("GET",this.img,!0),o.responseType="blob",o.send()}else e.src=this.img},startMove:function(t){if(t.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=("clientX"in t?t.clientX:t.touches[0].clientX)-this.x,this.moveY=("clientY"in t?t.clientY:t.touches[0].clientY)-this.y,t.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==t.touches.length&&(this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg)),this.$emit("imgMoving",{moving:!0,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!0,axis:this.getImgAxis()})}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=t.offsetX?t.offsetX:t.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=t.offsetY?t.offsetY:t.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(t){var e=this;t.preventDefault();var o=this.scale,n=this.touches[0].clientX,r=this.touches[0].clientY,i=t.touches[0].clientX,s=t.touches[0].clientY,a=this.touches[1].clientX,c=this.touches[1].clientY,h=t.touches[1].clientX,p=t.touches[1].clientY,u=Math.sqrt(Math.pow(n-a,2)+Math.pow(r-c,2)),l=Math.sqrt(Math.pow(i-h,2)+Math.pow(s-p,2))-u,d=1,f=(d=(d=d/this.trueWidth>d/this.trueHeight?d/this.trueHeight:d/this.trueWidth)>.1?.1:d)*l;if(!this.touchNow){if(this.touchNow=!0,l>0?o+=Math.abs(f):l<0&&o>Math.abs(f)&&(o-=Math.abs(f)),this.touches=t.touches,setTimeout(function(){e.touchNow=!1},8),!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o}},cancelTouchScale:function(t){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(t){var e=this;if(t.preventDefault(),t.touches&&2===t.touches.length)return this.touches=t.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancelTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var o,n,r="clientX"in t?t.clientX:t.touches[0].clientX,i="clientY"in t?t.clientY:t.touches[0].clientY;o=r-this.moveX,n=i-this.moveY,this.$nextTick(function(){if(e.centerBox){var t,r,i,s,a=e.getImgAxis(o,n,e.scale),c=e.getCropAxis(),h=e.trueHeight*e.scale,p=e.trueWidth*e.scale;switch(e.rotate){case 1:case-1:case 3:case-3:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2+(h-p)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2+(p-h)/2,i=t-h+e.cropW,s=r-p+e.cropH;break;default:t=e.cropOffsertX-e.trueWidth*(1-e.scale)/2,r=e.cropOffsertY-e.trueHeight*(1-e.scale)/2,i=t-p+e.cropW,s=r-h+e.cropH}a.x1>=c.x1&&(o=t),a.y1>=c.y1&&(n=r),a.x2<=c.x2&&(o=i),a.y2<=c.y2&&(n=s)}e.x=o,e.y=n,e.$emit("imgMoving",{moving:!0,axis:e.getImgAxis()}),e.$emit("img-moving",{moving:!0,axis:e.getImgAxis()})})},leaveImg:function(t){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg),this.$emit("imgMoving",{moving:!1,axis:this.getImgAxis()}),this.$emit("img-moving",{moving:!1,axis:this.getImgAxis()})},scaleImg:function(){this.canScale&&window.addEventListener(this.support,this.changeSize,this.passive)},cancelScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(t){var e=this;t.preventDefault();var o=this.scale,n=t.deltaY||t.wheelDelta;n=navigator.userAgent.indexOf("Firefox")>0?30*n:n,this.isIE&&(n=-n);var r=this.coe,i=(r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth)*n;i<0?o+=Math.abs(i):o>Math.abs(i)&&(o-=Math.abs(i));var s=i<0?"add":"reduce";if(s!==this.coeStatus&&(this.coeStatus=s,this.coe=.2),this.scaling||(this.scalingSet=setTimeout(function(){e.scaling=!1,e.coe=e.coe+=.01},50)),this.scaling=!0,!this.checkoutImgAxis(this.x,this.y,o))return!1;this.scale=o},changeScale:function(t){var e=this.scale;t=t||1;var o=20;if((t*=o=o/this.trueWidth>o/this.trueHeight?o/this.trueHeight:o/this.trueWidth)>0?e+=Math.abs(t):e>Math.abs(t)&&(e-=Math.abs(t)),!this.checkoutImgAxis(this.x,this.y,e))return!1;this.scale=e},createCrop:function(t){var e=this;t.preventDefault();var o="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,n="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0;this.$nextTick(function(){var t=o-e.cropX,r=n-e.cropY;if(t>0?(e.cropW=t+e.cropChangeX>e.w?e.w-e.cropChangeX:t,e.cropOffsertX=e.cropChangeX):(e.cropW=e.w-e.cropChangeX+Math.abs(t)>e.w?e.cropChangeX:Math.abs(t),e.cropOffsertX=e.cropChangeX+t>0?e.cropChangeX+t:0),e.fixed){var i=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];i+e.cropOffsertY>e.h?(e.cropH=e.h-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0],e.cropOffsertX=t>0?e.cropChangeX:e.cropChangeX-e.cropW):e.cropH=i,e.cropOffsertY=e.cropOffsertY}else r>0?(e.cropH=r+e.cropChangeY>e.h?e.h-e.cropChangeY:r,e.cropOffsertY=e.cropChangeY):(e.cropH=e.h-e.cropChangeY+Math.abs(r)>e.h?e.cropChangeY:Math.abs(r),e.cropOffsertY=e.cropChangeY+r>0?e.cropChangeY+r:0)})},changeCropSize:function(t,e,o,n,r){t.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=e,this.canChangeY=o,this.changeCropTypeX=n,this.changeCropTypeY=r,this.cropX="clientX"in t?t.clientX:t.touches[0].clientX,this.cropY="clientY"in t?t.clientY:t.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0),this.$emit("change-crop-size",{width:this.cropW,height:this.cropH})},changeCropNow:function(t){var e=this;t.preventDefault();var o="clientX"in t?t.clientX:t.touches?t.touches[0].clientX:0,n="clientY"in t?t.clientY:t.touches?t.touches[0].clientY:0,r=this.w,i=this.h,s=0,a=0;if(this.centerBox){var c=this.getImgAxis(),h=c.x2,p=c.y2;s=c.x1>0?c.x1:0,a=c.y1>0?c.y1:0,r>h&&(r=h),i>p&&(i=p)}this.$nextTick(function(){var t=o-e.cropX,c=n-e.cropY;if(e.canChangeX&&(1===e.changeCropTypeX?e.cropOldW-t>0?(e.cropW=r-e.cropChangeX-t<=r-s?e.cropOldW-t:e.cropOldW+e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX-t<=r-s?e.cropChangeX+t:s):(e.cropW=Math.abs(t)+e.cropChangeX<=r?Math.abs(t)-e.cropOldW:r-e.cropOldW-e.cropChangeX,e.cropOffsertX=e.cropChangeX+e.cropOldW):2===e.changeCropTypeX&&(e.cropOldW+t>0?(e.cropW=e.cropOldW+t+e.cropOffsertX<=r?e.cropOldW+t:r-e.cropOffsertX,e.cropOffsertX=e.cropChangeX):(e.cropW=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?Math.abs(t+e.cropOldW):e.cropChangeX-s,e.cropOffsertX=r-e.cropChangeX+Math.abs(t+e.cropOldW)<=r-s?e.cropChangeX-Math.abs(t+e.cropOldW):s))),e.canChangeY&&(1===e.changeCropTypeY?e.cropOldH-c>0?(e.cropH=i-e.cropChangeY-c<=i-a?e.cropOldH-c:e.cropOldH+e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY-c<=i-a?e.cropChangeY+c:a):(e.cropH=Math.abs(c)+e.cropChangeY<=i?Math.abs(c)-e.cropOldH:i-e.cropOldH-e.cropChangeY,e.cropOffsertY=e.cropChangeY+e.cropOldH):2===e.changeCropTypeY&&(e.cropOldH+c>0?(e.cropH=e.cropOldH+c+e.cropOffsertY<=i?e.cropOldH+c:i-e.cropOffsertY,e.cropOffsertY=e.cropChangeY):(e.cropH=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?Math.abs(c+e.cropOldH):e.cropChangeY-a,e.cropOffsertY=i-e.cropChangeY+Math.abs(c+e.cropOldH)<=i-a?e.cropChangeY-Math.abs(c+e.cropOldH):a))),e.canChangeX&&e.fixed){var h=e.cropW/e.fixedNumber[0]*e.fixedNumber[1];h+e.cropOffsertY>i?(e.cropH=i-e.cropOffsertY,e.cropW=e.cropH/e.fixedNumber[1]*e.fixedNumber[0]):e.cropH=h}if(e.canChangeY&&e.fixed){var p=e.cropH/e.fixedNumber[1]*e.fixedNumber[0];p+e.cropOffsertX>r?(e.cropW=r-e.cropOffsertX,e.cropH=e.cropW/e.fixedNumber[0]*e.fixedNumber[1]):e.cropW=p}e.$emit("crop-sizing",{cropW:e.cropW,cropH:e.cropH})})},checkCropLimitSize:function(){this.cropW,this.cropH;var t=this.limitMinSize,e=new Array;return e=Array.isArray[t]?t:[t,t],[parseFloat(e[0]),parseFloat(e[1])]},changeCropEnd:function(t){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(t){if(t.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(t),!1;if(t.touches&&2===t.touches.length)return this.crop=!1,this.startMove(t),this.leaveCrop(),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop);var e,o,n="clientX"in t?t.clientX:t.touches[0].clientX,r="clientY"in t?t.clientY:t.touches[0].clientY;e=n-this.cropOffsertX,o=r-this.cropOffsertY,this.cropX=e,this.cropY=o,this.$emit("cropMoving",{moving:!0,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!0,axis:this.getCropAxis()})},moveCrop:function(t,e){var o=this,n=0,r=0;t&&(t.preventDefault(),n="clientX"in t?t.clientX:t.touches[0].clientX,r="clientY"in t?t.clientY:t.touches[0].clientY),this.$nextTick(function(){var t,i,s=n-o.cropX,a=r-o.cropY;if(e&&(s=o.cropOffsertX,a=o.cropOffsertY),t=s<=0?0:s+o.cropW>o.w?o.w-o.cropW:s,i=a<=0?0:a+o.cropH>o.h?o.h-o.cropH:a,o.centerBox){var c=o.getImgAxis();t<=c.x1&&(t=c.x1),t+o.cropW>c.x2&&(t=c.x2-o.cropW),i<=c.y1&&(i=c.y1),i+o.cropH>c.y2&&(i=c.y2-o.cropH)}o.cropOffsertX=t,o.cropOffsertY=i,o.$emit("cropMoving",{moving:!0,axis:o.getCropAxis()}),o.$emit("crop-moving",{moving:!0,axis:o.getCropAxis()})})},getImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n={x1:0,x2:0,y1:0,y2:0},r=this.trueWidth*o,i=this.trueHeight*o;switch(this.rotate){case 0:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o;break;case 1:case-1:case 3:case-3:n.x1=t+this.trueWidth*(1-o)/2+(r-i)/2,n.x2=n.x1+this.trueHeight*o,n.y1=e+this.trueHeight*(1-o)/2+(i-r)/2,n.y2=n.y1+this.trueWidth*o;break;default:n.x1=t+this.trueWidth*(1-o)/2,n.x2=n.x1+this.trueWidth*o,n.y1=e+this.trueHeight*(1-o)/2,n.y2=n.y1+this.trueHeight*o}return n},getCropAxis:function(){var t={x1:0,x2:0,y1:0,y2:0};return t.x1=this.cropOffsertX,t.x2=t.x1+this.cropW,t.y1=this.cropOffsertY,t.y2=t.y1+this.cropH,t},leaveCrop:function(t){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.$emit("cropMoving",{moving:!1,axis:this.getCropAxis()}),this.$emit("crop-moving",{moving:!1,axis:this.getCropAxis()})},getCropChecked:function(t){var e=this,o=document.createElement("canvas"),n=new Image,r=this.rotate,i=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;function h(t,e){o.width=Math.round(t),o.height=Math.round(e)}n.onload=function(){if(0!==e.cropW){var p=o.getContext("2d"),u=1;e.high&!e.full&&(u=window.devicePixelRatio),1!==e.enlarge&!e.full&&(u=Math.abs(Number(e.enlarge)));var l=e.cropW*u,d=e.cropH*u,f=i*e.scale*u,g=s*e.scale*u,v=(e.x-a+e.trueWidth*(1-e.scale)/2)*u,m=(e.y-c+e.trueHeight*(1-e.scale)/2)*u;switch(h(l,d),p.save(),r){case 0:e.full?(h(l/e.scale,d/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g);break;case 1:case-3:e.full?(h(l/e.scale,d/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g/e.scale,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,m,-v-g,f,g));break;case 2:case-2:e.full?(h(l/e.scale,d/e.scale),p.rotate(90*r*Math.PI/180),v/=e.scale,m/=e.scale,p.drawImage(n,-v-f/e.scale,-m-g/e.scale,f/e.scale,g/e.scale)):(p.rotate(90*r*Math.PI/180),p.drawImage(n,-v-f,-m-g,f,g));break;case 3:case-1:e.full?(h(l/e.scale,d/e.scale),v=v/e.scale+(f/e.scale-g/e.scale)/2,m=m/e.scale+(g/e.scale-f/e.scale)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f/e.scale,v,f/e.scale,g/e.scale)):(v+=(f-g)/2,m+=(g-f)/2,p.rotate(90*r*Math.PI/180),p.drawImage(n,-m-f,v,f,g));break;default:e.full?(h(l/e.scale,d/e.scale),p.drawImage(n,v/e.scale,m/e.scale,f/e.scale,g/e.scale)):p.drawImage(n,v,m,f,g)}p.restore()}else{var w=i*e.scale,x=s*e.scale,C=o.getContext("2d");switch(C.save(),r){case 0:h(w,x),C.drawImage(n,0,0,w,x);break;case 1:case-3:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,0,-x,w,x);break;case 2:case-2:h(w,x),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,-x,w,x);break;case 3:case-1:h(x,w),C.rotate(90*r*Math.PI/180),C.drawImage(n,-w,0,w,x);break;default:h(w,x),C.drawImage(n,0,0,w,x)}C.restore()}t(o)},"data"!==this.img.substr(0,4)&&(n.crossOrigin="Anonymous"),n.src=this.imgs},getCropData:function(t){var e=this;this.getCropChecked(function(o){t(o.toDataURL("image/"+e.outputType,e.outputSize))})},getCropBlob:function(t){var e=this;this.getCropChecked(function(o){o.toBlob(function(e){return t(e)},"image/"+e.outputType,e.outputSize)})},showPreview:function(){var t=this;if(!this.isCanShow)return!1;this.isCanShow=!1,setTimeout(function(){t.isCanShow=!0},16);var e=this.cropW,o=this.cropH,n=this.scale,r={};r.div={width:"".concat(e,"px"),height:"".concat(o,"px")};var i=(this.x-this.cropOffsertX)/n,s=(this.y-this.cropOffsertY)/n;r.w=e,r.h=o,r.url=this.imgs,r.img={width:"".concat(this.trueWidth,"px"),height:"".concat(this.trueHeight,"px"),transform:"scale(".concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,"deg)")},r.html='\n <div class="show-preview" style="width: '.concat(r.w,"px; height: ").concat(r.h,'px,; overflow: hidden">\n <div style="width: ').concat(e,"px; height: ").concat(o,'px">\n <img src=').concat(r.url,' style="width: ').concat(this.trueWidth,"px; height: ").concat(this.trueHeight,"px; transform:\n scale(").concat(n,")translate3d(").concat(i,"px, ").concat(s,"px, ").concat(0,"px)rotateZ(").concat(90*this.rotate,'deg)">\n </div>\n </div>'),this.$emit("realTime",r),this.$emit("real-time",r)},reload:function(){var t=this,e=new Image;e.onload=function(){t.w=parseFloat(window.getComputedStyle(t.$refs.cropper).width),t.h=parseFloat(window.getComputedStyle(t.$refs.cropper).height),t.trueWidth=e.width,t.trueHeight=e.height,t.original?t.scale=1:t.scale=t.checkedMode(),t.$nextTick(function(){t.x=-(t.trueWidth-t.trueWidth*t.scale)/2+(t.w-t.trueWidth*t.scale)/2,t.y=-(t.trueHeight-t.trueHeight*t.scale)/2+(t.h-t.trueHeight*t.scale)/2,t.loading=!1,t.autoCrop&&t.goAutoCrop(),t.$emit("img-load","success"),t.$emit("imgLoad","success"),setTimeout(function(){t.showPreview()},20)})},e.onerror=function(){t.$emit("imgLoad","error"),t.$emit("img-load","error")},e.src=this.imgs},checkedMode:function(){var t=1,e=(this.trueWidth,this.trueHeight),o=this.mode.split(" ");switch(o[0]){case"contain":this.trueWidth>this.w&&(t=this.w/this.trueWidth),this.trueHeight*t>this.h&&(t=this.h/this.trueHeight);break;case"cover":(e*=t=this.w/this.trueWidth)<this.h&&(t=(e=this.h)/this.trueHeight);break;default:try{var n=o[0];if(-1!==n.search("px")){n=n.replace("px","");var r=parseFloat(n)/this.trueWidth,i=1,s=o[1];-1!==s.search("px")&&(s=s.replace("px",""),i=(e=parseFloat(s))/this.trueHeight),t=Math.min(r,i)}if(-1!==n.search("%")&&(n=n.replace("%",""),t=parseFloat(n)/100*this.w/this.trueWidth),2===o.length&&"auto"===n){var a=o[1];-1!==a.search("px")&&(a=a.replace("px",""),t=(e=parseFloat(a))/this.trueHeight),-1!==a.search("%")&&(a=a.replace("%",""),t=(e=parseFloat(a)/100*this.h)/this.trueHeight)}}catch(e){t=1}}return t},goAutoCrop:function(t,e){if(""!==this.imgs&&null!==this.imgs){this.clearCrop(),this.cropping=!0;var o=this.w,n=this.h;if(this.centerBox){var r=Math.abs(this.rotate)%2>0,i=(r?this.trueHeight:this.trueWidth)*this.scale,s=(r?this.trueWidth:this.trueHeight)*this.scale;o=i<o?i:o,n=s<n?s:n}var a=t||parseFloat(this.autoCropWidth),c=e||parseFloat(this.autoCropHeight);0!==a&&0!==c||(a=.8*o,c=.8*n),a=a>o?o:a,c=c>n?n:c,this.fixed&&(c=a/this.fixedNumber[0]*this.fixedNumber[1]),c>this.h&&(a=(c=this.h)/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(a,c)}},changeCrop:function(t,e){var o=this;if(this.centerBox){var n=this.getImgAxis();t>n.x2-n.x1&&(e=(t=n.x2-n.x1)/this.fixedNumber[0]*this.fixedNumber[1]),e>n.y2-n.y1&&(t=(e=n.y2-n.y1)/this.fixedNumber[1]*this.fixedNumber[0])}this.cropW=t,this.cropH=e,this.checkCropLimitSize(),this.$nextTick(function(){o.cropOffsertX=(o.w-o.cropW)/2,o.cropOffsertY=(o.h-o.cropH)/2,o.centerBox&&o.moveCrop(null,!0)})},refresh:function(){var t=this;this.img;this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop(),this.$nextTick(function(){t.checkedImg()})},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0},checkoutImgAxis:function(t,e,o){t=t||this.x,e=e||this.y,o=o||this.scale;var n=!0;if(this.centerBox){var r=this.getImgAxis(t,e,o),i=this.getCropAxis();r.x1>=i.x1&&(n=!1),r.x2<=i.x2&&(n=!1),r.y1>=i.y1&&(n=!1),r.y2<=i.y2&&(n=!1)}return n}},mounted:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll";var t=this,e=navigator.userAgent;this.isIOS=!!e.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,o,n){for(var r=atob(this.toDataURL(o,n).split(",")[1]),i=r.length,s=new Uint8Array(i),a=0;a<i;a++)s[a]=r.charCodeAt(a);e(new Blob([s],{type:t.type||"image/png"}))}}),this.showPreview(),this.checkedImg()},destroyed:function(){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop),this.cancelScale()}};o(1);var a=function(t,e,o,n,r,i,s,a){var c,h="function"==typeof t?t.options:t;if(e&&(h.render=e,h.staticRenderFns=o,h._compiled=!0),n&&(h.functional=!0),i&&(h._scopeId="data-v-"+i),s?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},h._ssrRegister=c):r&&(c=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),c)if(h.functional){h._injectStyles=c;var p=h.render;h.render=function(t,e){return c.call(e),p(t,e)}}else{var u=h.beforeCreate;h.beforeCreate=u?[].concat(u,c):[c]}return{exports:t,options:h}}(s,n,[],!1,null,"6dae58fd",null);a.options.__file="src/vue-cropper.vue";var c=a.exports;o.d(e,"VueCropper",function(){return c});var h=function(t){t.component("VueCropper",c)};"undefined"!=typeof window&&window.Vue&&h(window.Vue);e.default={version:"0.5.8",install:h,VueCropper:c,vueCropper:c}}])});
|
|
55489
55593
|
//# sourceMappingURL=index.js.map
|
|
55490
55594
|
|
|
55491
55595
|
/***/ }),
|
|
@@ -63240,7 +63344,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
63240
63344
|
"use strict";
|
|
63241
63345
|
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicViewerFile_vue__ = __webpack_require__(272);
|
|
63242
63346
|
/* unused harmony namespace reexport */
|
|
63243
|
-
/* harmony import */ var
|
|
63347
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f341ff0_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicViewerFile_vue__ = __webpack_require__(721);
|
|
63244
63348
|
function injectStyle (ssrContext) {
|
|
63245
63349
|
__webpack_require__(713)
|
|
63246
63350
|
}
|
|
@@ -63260,7 +63364,7 @@ var __vue_scopeId__ = null
|
|
|
63260
63364
|
var __vue_module_identifier__ = null
|
|
63261
63365
|
var Component = normalizeComponent(
|
|
63262
63366
|
__WEBPACK_IMPORTED_MODULE_0__babel_loader_node_modules_vue_loader_lib_selector_type_script_index_0_dynamicViewerFile_vue__["a" /* default */],
|
|
63263
|
-
|
|
63367
|
+
__WEBPACK_IMPORTED_MODULE_1__node_modules_vue_loader_lib_template_compiler_index_id_data_v_5f341ff0_hasScoped_false_buble_transforms_node_modules_vue_loader_lib_selector_type_template_index_0_dynamicViewerFile_vue__["a" /* default */],
|
|
63264
63368
|
__vue_template_functional__,
|
|
63265
63369
|
__vue_styles__,
|
|
63266
63370
|
__vue_scopeId__,
|
|
@@ -63281,7 +63385,7 @@ var content = __webpack_require__(714);
|
|
|
63281
63385
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
63282
63386
|
if(content.locals) module.exports = content.locals;
|
|
63283
63387
|
// add the styles to the DOM
|
|
63284
|
-
var update = __webpack_require__(2)("
|
|
63388
|
+
var update = __webpack_require__(2)("9c2ae106", content, true, {});
|
|
63285
63389
|
|
|
63286
63390
|
/***/ }),
|
|
63287
63391
|
/* 714 */
|
|
@@ -63431,7 +63535,7 @@ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._sel
|
|
|
63431
63535
|
width: _vm.displayAreaWidth + 'px',
|
|
63432
63536
|
bottom: _vm.displayAreabtm + 10 + 'px',
|
|
63433
63537
|
})},[_c('div',{staticClass:"magnify-toolbar",style:({ 'margin-left': _vm.displayArealeft + 'px' })},[_c('a',{staticClass:"magnify-btn el-icon-back",attrs:{"href":"javascript:void(0)","title":"上一个"},on:{"click":function($event){_vm.jump(-1)}}}),_c('a',{staticClass:"magnify-btn el-icon-right",attrs:{"href":"javascript:void(0)","title":"下一个"},on:{"click":function($event){_vm.jump(1)}}}),_vm._v(" "),(_vm.itemFile.mediaTypeID == '2'||(_vm.itemFile.mediaTypeID+'').toLowerCase()=='photo')?[_c('a',{staticClass:"magnify-btn el-icon-refresh-left",attrs:{"href":"javascript:void(0)","title":"左旋转"},on:{"click":function($event){_vm.rotateImg('L')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh-right",attrs:{"href":"javascript:void(0)","title":"右旋转"},on:{"click":function($event){_vm.rotateImg('R')}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-in",attrs:{"href":"javascript:void(0)","title":"放大"},on:{"click":function($event){_vm.zoom(0.2)}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-refresh",attrs:{"href":"javascript:void(0)","title":"实际尺寸"},on:{"click":function($event){_vm.actualSize()}}}),_vm._v(" "),_c('a',{staticClass:"magnify-btn el-icon-zoom-out",attrs:{"href":"javascript:void(0)","title":"缩小"},on:{"click":function($event){_vm.zoom(-0.2)}}})]:_vm._e(),_vm._v(" "),(_vm.itemFile.rightDownload&&(_vm.itemFile.mediaTypeID !='1'
|
|
63434
|
-
&&(_vm.itemFile.mediaTypeID+'').toLowerCase()!='vr'))?_c('a',{staticClass:"magnify-btn el-icon-download",attrs:{"href":"javascript:void(0)","title":"下载"},on:{"click":function($event){_vm.handDownload(_vm.resultObject)}}}):_vm._e()],2)])]:_vm._e()],2):_vm._e()])],1),_vm._v(" "),_c('iframe',{staticStyle:{"height":"0px","width":"0px","border-width":"0px","display":"none"},attrs:{"src":_vm.downloadUrl}})],1)}
|
|
63538
|
+
&&(_vm.itemFile.mediaTypeID+'').toLowerCase()!='vr'))?_c('a',{staticClass:"magnify-btn el-icon-download",attrs:{"href":"javascript:void(0)","title":"下载"},on:{"click":function($event){_vm.handDownload(_vm.resultObject,_vm.itemFile)}}}):_vm._e()],2)])]:_vm._e()],2):_vm._e()])],1),_vm._v(" "),_c('iframe',{staticStyle:{"height":"0px","width":"0px","border-width":"0px","display":"none"},attrs:{"src":_vm.downloadUrl}})],1)}
|
|
63435
63539
|
var staticRenderFns = []
|
|
63436
63540
|
var esExports = { render: render, staticRenderFns: staticRenderFns }
|
|
63437
63541
|
/* harmony default export */ __webpack_exports__["a"] = (esExports);
|