@newview/file-ui 1.1.32 → 1.1.33
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/README.md +23 -11
- package/dist/file-ui.js +154 -138
- package/dist/file-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/file-ui.js
CHANGED
|
@@ -291,7 +291,7 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
|
|
|
291
291
|
__publicField(this, "uploading", ref(false));
|
|
292
292
|
__publicField(this, "uploadFilePos", reactive({}));
|
|
293
293
|
// 文件上传参数
|
|
294
|
-
__publicField(this, "action", ref("
|
|
294
|
+
__publicField(this, "action", ref(""));
|
|
295
295
|
// 请求 Url
|
|
296
296
|
__publicField(this, "headers", ref({
|
|
297
297
|
Authorization: ""
|
|
@@ -575,6 +575,13 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
|
|
|
575
575
|
this.setCurrentToken();
|
|
576
576
|
this.setUploadFilePos();
|
|
577
577
|
this.headers.value.Authorization = `Bearer ${this.storageInfo.getToken()}`;
|
|
578
|
+
if (window.frames.length !== parent.frames.length) {
|
|
579
|
+
let dom = document.getElementsByTagName("iframe");
|
|
580
|
+
let baseUrl = dom[0].baseURI.split("#").slice(0, -1);
|
|
581
|
+
this.action.value = baseUrl + this.uploadApi.getUploadFileUrl();
|
|
582
|
+
} else {
|
|
583
|
+
this.action.value = this.uploadApi.getUploadFileUrl();
|
|
584
|
+
}
|
|
578
585
|
console.log("上传地址", this.action.value);
|
|
579
586
|
}
|
|
580
587
|
/**
|
|
@@ -631,8 +638,8 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
|
|
|
631
638
|
}
|
|
632
639
|
//#endregion 业务逻辑 文件预览 END
|
|
633
640
|
};
|
|
634
|
-
const
|
|
635
|
-
const _withScopeId$1 = (n) => (pushScopeId("data-v-
|
|
641
|
+
const UploadFile_vue_vue_type_style_index_0_scoped_fa1f4ac1_lang = "";
|
|
642
|
+
const _withScopeId$1 = (n) => (pushScopeId("data-v-fa1f4ac1"), n = n(), popScopeId(), n);
|
|
636
643
|
const _hoisted_1$3 = { class: "uploadFile uploadPage" };
|
|
637
644
|
const _hoisted_2$3 = ["onClick", "title"];
|
|
638
645
|
const _hoisted_3$3 = { class: "file-upload-list-cover" };
|
|
@@ -847,7 +854,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
847
854
|
}, null, 8, ["modelValue", "preview-list", "preview-index", "file-info"])
|
|
848
855
|
]);
|
|
849
856
|
}
|
|
850
|
-
const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
|
857
|
+
const UploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-fa1f4ac1"]]);
|
|
851
858
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
852
859
|
function getDefaultExportFromCjs(x) {
|
|
853
860
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
@@ -1551,11 +1558,11 @@ var quill = { exports: {} };
|
|
|
1551
1558
|
object = Function.prototype;
|
|
1552
1559
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
1553
1560
|
if (desc === void 0) {
|
|
1554
|
-
var
|
|
1555
|
-
if (
|
|
1561
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
1562
|
+
if (parent2 === null) {
|
|
1556
1563
|
return void 0;
|
|
1557
1564
|
} else {
|
|
1558
|
-
return get(
|
|
1565
|
+
return get(parent2, property, receiver);
|
|
1559
1566
|
}
|
|
1560
1567
|
} else if ("value" in desc) {
|
|
1561
1568
|
return desc.value;
|
|
@@ -2524,11 +2531,11 @@ var quill = { exports: {} };
|
|
|
2524
2531
|
object = Function.prototype;
|
|
2525
2532
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
2526
2533
|
if (desc === void 0) {
|
|
2527
|
-
var
|
|
2528
|
-
if (
|
|
2534
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
2535
|
+
if (parent2 === null) {
|
|
2529
2536
|
return void 0;
|
|
2530
2537
|
} else {
|
|
2531
|
-
return get(
|
|
2538
|
+
return get(parent2, property, receiver);
|
|
2532
2539
|
}
|
|
2533
2540
|
} else if ("value" in desc) {
|
|
2534
2541
|
return desc.value;
|
|
@@ -2589,9 +2596,9 @@ var quill = { exports: {} };
|
|
|
2589
2596
|
value: function optimize(context) {
|
|
2590
2597
|
_get(Inline2.prototype.__proto__ || Object.getPrototypeOf(Inline2.prototype), "optimize", this).call(this, context);
|
|
2591
2598
|
if (this.parent instanceof Inline2 && Inline2.compare(this.statics.blotName, this.parent.statics.blotName) > 0) {
|
|
2592
|
-
var
|
|
2593
|
-
this.moveChildren(
|
|
2594
|
-
|
|
2599
|
+
var parent2 = this.parent.isolate(this.offset(), this.length());
|
|
2600
|
+
this.moveChildren(parent2);
|
|
2601
|
+
parent2.wrap(this);
|
|
2595
2602
|
}
|
|
2596
2603
|
}
|
|
2597
2604
|
}], [{
|
|
@@ -2698,11 +2705,11 @@ var quill = { exports: {} };
|
|
|
2698
2705
|
object = Function.prototype;
|
|
2699
2706
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
2700
2707
|
if (desc === void 0) {
|
|
2701
|
-
var
|
|
2702
|
-
if (
|
|
2708
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
2709
|
+
if (parent2 === null) {
|
|
2703
2710
|
return void 0;
|
|
2704
2711
|
} else {
|
|
2705
|
-
return get(
|
|
2712
|
+
return get(parent2, property, receiver);
|
|
2706
2713
|
}
|
|
2707
2714
|
} else if ("value" in desc) {
|
|
2708
2715
|
return desc.value;
|
|
@@ -3064,11 +3071,11 @@ var quill = { exports: {} };
|
|
|
3064
3071
|
object = Function.prototype;
|
|
3065
3072
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
3066
3073
|
if (desc === void 0) {
|
|
3067
|
-
var
|
|
3068
|
-
if (
|
|
3074
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
3075
|
+
if (parent2 === null) {
|
|
3069
3076
|
return void 0;
|
|
3070
3077
|
} else {
|
|
3071
|
-
return get(
|
|
3078
|
+
return get(parent2, property, receiver);
|
|
3072
3079
|
}
|
|
3073
3080
|
} else if ("value" in desc) {
|
|
3074
3081
|
return desc.value;
|
|
@@ -4104,7 +4111,7 @@ var quill = { exports: {} };
|
|
|
4104
4111
|
}]);
|
|
4105
4112
|
return Selection2;
|
|
4106
4113
|
}();
|
|
4107
|
-
function contains(
|
|
4114
|
+
function contains(parent2, descendant) {
|
|
4108
4115
|
try {
|
|
4109
4116
|
descendant.parentNode;
|
|
4110
4117
|
} catch (e) {
|
|
@@ -4113,7 +4120,7 @@ var quill = { exports: {} };
|
|
|
4113
4120
|
if (descendant instanceof Text) {
|
|
4114
4121
|
descendant = descendant.parentNode;
|
|
4115
4122
|
}
|
|
4116
|
-
return
|
|
4123
|
+
return parent2.contains(descendant);
|
|
4117
4124
|
}
|
|
4118
4125
|
exports2.Range = Range;
|
|
4119
4126
|
exports2.default = Selection;
|
|
@@ -4148,11 +4155,11 @@ var quill = { exports: {} };
|
|
|
4148
4155
|
object = Function.prototype;
|
|
4149
4156
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
4150
4157
|
if (desc === void 0) {
|
|
4151
|
-
var
|
|
4152
|
-
if (
|
|
4158
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
4159
|
+
if (parent2 === null) {
|
|
4153
4160
|
return void 0;
|
|
4154
4161
|
} else {
|
|
4155
|
-
return get(
|
|
4162
|
+
return get(parent2, property, receiver);
|
|
4156
4163
|
}
|
|
4157
4164
|
} else if ("value" in desc) {
|
|
4158
4165
|
return desc.value;
|
|
@@ -4196,9 +4203,9 @@ var quill = { exports: {} };
|
|
|
4196
4203
|
}
|
|
4197
4204
|
_createClass(Break2, [{
|
|
4198
4205
|
key: "insertInto",
|
|
4199
|
-
value: function insertInto(
|
|
4200
|
-
if (
|
|
4201
|
-
_get(Break2.prototype.__proto__ || Object.getPrototypeOf(Break2.prototype), "insertInto", this).call(this,
|
|
4206
|
+
value: function insertInto(parent2, ref2) {
|
|
4207
|
+
if (parent2.children.length === 0) {
|
|
4208
|
+
_get(Break2.prototype.__proto__ || Object.getPrototypeOf(Break2.prototype), "insertInto", this).call(this, parent2, ref2);
|
|
4202
4209
|
} else {
|
|
4203
4210
|
this.remove();
|
|
4204
4211
|
}
|
|
@@ -4798,7 +4805,7 @@ var quill = { exports: {} };
|
|
|
4798
4805
|
nativePromise = function() {
|
|
4799
4806
|
};
|
|
4800
4807
|
}
|
|
4801
|
-
function clone2(
|
|
4808
|
+
function clone2(parent2, circular, depth, prototype, includeNonEnumerable) {
|
|
4802
4809
|
if (typeof circular === "object") {
|
|
4803
4810
|
depth = circular.depth;
|
|
4804
4811
|
prototype = circular.prototype;
|
|
@@ -4812,49 +4819,49 @@ var quill = { exports: {} };
|
|
|
4812
4819
|
circular = true;
|
|
4813
4820
|
if (typeof depth == "undefined")
|
|
4814
4821
|
depth = Infinity;
|
|
4815
|
-
function _clone(
|
|
4816
|
-
if (
|
|
4822
|
+
function _clone(parent3, depth2) {
|
|
4823
|
+
if (parent3 === null)
|
|
4817
4824
|
return null;
|
|
4818
4825
|
if (depth2 === 0)
|
|
4819
|
-
return
|
|
4826
|
+
return parent3;
|
|
4820
4827
|
var child;
|
|
4821
4828
|
var proto;
|
|
4822
|
-
if (typeof
|
|
4823
|
-
return
|
|
4829
|
+
if (typeof parent3 != "object") {
|
|
4830
|
+
return parent3;
|
|
4824
4831
|
}
|
|
4825
|
-
if (_instanceof(
|
|
4832
|
+
if (_instanceof(parent3, nativeMap)) {
|
|
4826
4833
|
child = new nativeMap();
|
|
4827
|
-
} else if (_instanceof(
|
|
4834
|
+
} else if (_instanceof(parent3, nativeSet)) {
|
|
4828
4835
|
child = new nativeSet();
|
|
4829
|
-
} else if (_instanceof(
|
|
4836
|
+
} else if (_instanceof(parent3, nativePromise)) {
|
|
4830
4837
|
child = new nativePromise(function(resolve, reject) {
|
|
4831
|
-
|
|
4838
|
+
parent3.then(function(value) {
|
|
4832
4839
|
resolve(_clone(value, depth2 - 1));
|
|
4833
4840
|
}, function(err) {
|
|
4834
4841
|
reject(_clone(err, depth2 - 1));
|
|
4835
4842
|
});
|
|
4836
4843
|
});
|
|
4837
|
-
} else if (clone2.__isArray(
|
|
4844
|
+
} else if (clone2.__isArray(parent3)) {
|
|
4838
4845
|
child = [];
|
|
4839
|
-
} else if (clone2.__isRegExp(
|
|
4840
|
-
child = new RegExp(
|
|
4841
|
-
if (
|
|
4842
|
-
child.lastIndex =
|
|
4843
|
-
} else if (clone2.__isDate(
|
|
4844
|
-
child = new Date(
|
|
4845
|
-
} else if (useBuffer && Buffer.isBuffer(
|
|
4846
|
+
} else if (clone2.__isRegExp(parent3)) {
|
|
4847
|
+
child = new RegExp(parent3.source, __getRegExpFlags(parent3));
|
|
4848
|
+
if (parent3.lastIndex)
|
|
4849
|
+
child.lastIndex = parent3.lastIndex;
|
|
4850
|
+
} else if (clone2.__isDate(parent3)) {
|
|
4851
|
+
child = new Date(parent3.getTime());
|
|
4852
|
+
} else if (useBuffer && Buffer.isBuffer(parent3)) {
|
|
4846
4853
|
if (Buffer.allocUnsafe) {
|
|
4847
|
-
child = Buffer.allocUnsafe(
|
|
4854
|
+
child = Buffer.allocUnsafe(parent3.length);
|
|
4848
4855
|
} else {
|
|
4849
|
-
child = new Buffer(
|
|
4856
|
+
child = new Buffer(parent3.length);
|
|
4850
4857
|
}
|
|
4851
|
-
|
|
4858
|
+
parent3.copy(child);
|
|
4852
4859
|
return child;
|
|
4853
|
-
} else if (_instanceof(
|
|
4854
|
-
child = Object.create(
|
|
4860
|
+
} else if (_instanceof(parent3, Error)) {
|
|
4861
|
+
child = Object.create(parent3);
|
|
4855
4862
|
} else {
|
|
4856
4863
|
if (typeof prototype == "undefined") {
|
|
4857
|
-
proto = Object.getPrototypeOf(
|
|
4864
|
+
proto = Object.getPrototypeOf(parent3);
|
|
4858
4865
|
child = Object.create(proto);
|
|
4859
4866
|
} else {
|
|
4860
4867
|
child = Object.create(prototype);
|
|
@@ -4862,27 +4869,27 @@ var quill = { exports: {} };
|
|
|
4862
4869
|
}
|
|
4863
4870
|
}
|
|
4864
4871
|
if (circular) {
|
|
4865
|
-
var index = allParents.indexOf(
|
|
4872
|
+
var index = allParents.indexOf(parent3);
|
|
4866
4873
|
if (index != -1) {
|
|
4867
4874
|
return allChildren[index];
|
|
4868
4875
|
}
|
|
4869
|
-
allParents.push(
|
|
4876
|
+
allParents.push(parent3);
|
|
4870
4877
|
allChildren.push(child);
|
|
4871
4878
|
}
|
|
4872
|
-
if (_instanceof(
|
|
4873
|
-
|
|
4879
|
+
if (_instanceof(parent3, nativeMap)) {
|
|
4880
|
+
parent3.forEach(function(value, key) {
|
|
4874
4881
|
var keyChild = _clone(key, depth2 - 1);
|
|
4875
4882
|
var valueChild = _clone(value, depth2 - 1);
|
|
4876
4883
|
child.set(keyChild, valueChild);
|
|
4877
4884
|
});
|
|
4878
4885
|
}
|
|
4879
|
-
if (_instanceof(
|
|
4880
|
-
|
|
4886
|
+
if (_instanceof(parent3, nativeSet)) {
|
|
4887
|
+
parent3.forEach(function(value) {
|
|
4881
4888
|
var entryChild = _clone(value, depth2 - 1);
|
|
4882
4889
|
child.add(entryChild);
|
|
4883
4890
|
});
|
|
4884
4891
|
}
|
|
4885
|
-
for (var i in
|
|
4892
|
+
for (var i in parent3) {
|
|
4886
4893
|
var attrs;
|
|
4887
4894
|
if (proto) {
|
|
4888
4895
|
attrs = Object.getOwnPropertyDescriptor(proto, i);
|
|
@@ -4890,17 +4897,17 @@ var quill = { exports: {} };
|
|
|
4890
4897
|
if (attrs && attrs.set == null) {
|
|
4891
4898
|
continue;
|
|
4892
4899
|
}
|
|
4893
|
-
child[i] = _clone(
|
|
4900
|
+
child[i] = _clone(parent3[i], depth2 - 1);
|
|
4894
4901
|
}
|
|
4895
4902
|
if (Object.getOwnPropertySymbols) {
|
|
4896
|
-
var symbols = Object.getOwnPropertySymbols(
|
|
4903
|
+
var symbols = Object.getOwnPropertySymbols(parent3);
|
|
4897
4904
|
for (var i = 0; i < symbols.length; i++) {
|
|
4898
4905
|
var symbol = symbols[i];
|
|
4899
|
-
var descriptor = Object.getOwnPropertyDescriptor(
|
|
4906
|
+
var descriptor = Object.getOwnPropertyDescriptor(parent3, symbol);
|
|
4900
4907
|
if (descriptor && !descriptor.enumerable && !includeNonEnumerable) {
|
|
4901
4908
|
continue;
|
|
4902
4909
|
}
|
|
4903
|
-
child[symbol] = _clone(
|
|
4910
|
+
child[symbol] = _clone(parent3[symbol], depth2 - 1);
|
|
4904
4911
|
if (!descriptor.enumerable) {
|
|
4905
4912
|
Object.defineProperty(child, symbol, {
|
|
4906
4913
|
enumerable: false
|
|
@@ -4909,14 +4916,14 @@ var quill = { exports: {} };
|
|
|
4909
4916
|
}
|
|
4910
4917
|
}
|
|
4911
4918
|
if (includeNonEnumerable) {
|
|
4912
|
-
var allPropertyNames = Object.getOwnPropertyNames(
|
|
4919
|
+
var allPropertyNames = Object.getOwnPropertyNames(parent3);
|
|
4913
4920
|
for (var i = 0; i < allPropertyNames.length; i++) {
|
|
4914
4921
|
var propertyName = allPropertyNames[i];
|
|
4915
|
-
var descriptor = Object.getOwnPropertyDescriptor(
|
|
4922
|
+
var descriptor = Object.getOwnPropertyDescriptor(parent3, propertyName);
|
|
4916
4923
|
if (descriptor && descriptor.enumerable) {
|
|
4917
4924
|
continue;
|
|
4918
4925
|
}
|
|
4919
|
-
child[propertyName] = _clone(
|
|
4926
|
+
child[propertyName] = _clone(parent3[propertyName], depth2 - 1);
|
|
4920
4927
|
Object.defineProperty(child, propertyName, {
|
|
4921
4928
|
enumerable: false
|
|
4922
4929
|
});
|
|
@@ -4924,14 +4931,14 @@ var quill = { exports: {} };
|
|
|
4924
4931
|
}
|
|
4925
4932
|
return child;
|
|
4926
4933
|
}
|
|
4927
|
-
return _clone(
|
|
4934
|
+
return _clone(parent2, depth);
|
|
4928
4935
|
}
|
|
4929
|
-
clone2.clonePrototype = function clonePrototype(
|
|
4930
|
-
if (
|
|
4936
|
+
clone2.clonePrototype = function clonePrototype(parent2) {
|
|
4937
|
+
if (parent2 === null)
|
|
4931
4938
|
return null;
|
|
4932
4939
|
var c = function() {
|
|
4933
4940
|
};
|
|
4934
|
-
c.prototype =
|
|
4941
|
+
c.prototype = parent2;
|
|
4935
4942
|
return new c();
|
|
4936
4943
|
};
|
|
4937
4944
|
function __objToStr(o) {
|
|
@@ -5033,11 +5040,11 @@ var quill = { exports: {} };
|
|
|
5033
5040
|
object = Function.prototype;
|
|
5034
5041
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
5035
5042
|
if (desc === void 0) {
|
|
5036
|
-
var
|
|
5037
|
-
if (
|
|
5043
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
5044
|
+
if (parent2 === null) {
|
|
5038
5045
|
return void 0;
|
|
5039
5046
|
} else {
|
|
5040
|
-
return get(
|
|
5047
|
+
return get(parent2, property, receiver);
|
|
5041
5048
|
}
|
|
5042
5049
|
} else if ("value" in desc) {
|
|
5043
5050
|
return desc.value;
|
|
@@ -5914,11 +5921,11 @@ var quill = { exports: {} };
|
|
|
5914
5921
|
object = Function.prototype;
|
|
5915
5922
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
5916
5923
|
if (desc === void 0) {
|
|
5917
|
-
var
|
|
5918
|
-
if (
|
|
5924
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
5925
|
+
if (parent2 === null) {
|
|
5919
5926
|
return void 0;
|
|
5920
5927
|
} else {
|
|
5921
|
-
return get(
|
|
5928
|
+
return get(parent2, property, receiver);
|
|
5922
5929
|
}
|
|
5923
5930
|
} else if ("value" in desc) {
|
|
5924
5931
|
return desc.value;
|
|
@@ -6185,11 +6192,11 @@ var quill = { exports: {} };
|
|
|
6185
6192
|
object = Function.prototype;
|
|
6186
6193
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
6187
6194
|
if (desc === void 0) {
|
|
6188
|
-
var
|
|
6189
|
-
if (
|
|
6195
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
6196
|
+
if (parent2 === null) {
|
|
6190
6197
|
return void 0;
|
|
6191
6198
|
} else {
|
|
6192
|
-
return get(
|
|
6199
|
+
return get(parent2, property, receiver);
|
|
6193
6200
|
}
|
|
6194
6201
|
} else if ("value" in desc) {
|
|
6195
6202
|
return desc.value;
|
|
@@ -6286,11 +6293,11 @@ var quill = { exports: {} };
|
|
|
6286
6293
|
object = Function.prototype;
|
|
6287
6294
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
6288
6295
|
if (desc === void 0) {
|
|
6289
|
-
var
|
|
6290
|
-
if (
|
|
6296
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
6297
|
+
if (parent2 === null) {
|
|
6291
6298
|
return void 0;
|
|
6292
6299
|
} else {
|
|
6293
|
-
return get(
|
|
6300
|
+
return get(parent2, property, receiver);
|
|
6294
6301
|
}
|
|
6295
6302
|
} else if ("value" in desc) {
|
|
6296
6303
|
return desc.value;
|
|
@@ -6721,9 +6728,9 @@ var quill = { exports: {} };
|
|
|
6721
6728
|
if (Registry.query(name, Registry.Scope.BLOT) != null && value) {
|
|
6722
6729
|
blot.wrap(name, value);
|
|
6723
6730
|
} else if (Registry.query(name, Registry.Scope.ATTRIBUTE) != null) {
|
|
6724
|
-
var
|
|
6725
|
-
blot.wrap(
|
|
6726
|
-
|
|
6731
|
+
var parent2 = Registry.create(this.statics.scope);
|
|
6732
|
+
blot.wrap(parent2);
|
|
6733
|
+
parent2.format(name, value);
|
|
6727
6734
|
}
|
|
6728
6735
|
};
|
|
6729
6736
|
ShadowBlot2.prototype.insertAt = function(index, value, def) {
|
|
@@ -7098,11 +7105,11 @@ var quill = { exports: {} };
|
|
|
7098
7105
|
object = Function.prototype;
|
|
7099
7106
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
7100
7107
|
if (desc === void 0) {
|
|
7101
|
-
var
|
|
7102
|
-
if (
|
|
7108
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
7109
|
+
if (parent2 === null) {
|
|
7103
7110
|
return void 0;
|
|
7104
7111
|
} else {
|
|
7105
|
-
return get(
|
|
7112
|
+
return get(parent2, property, receiver);
|
|
7106
7113
|
}
|
|
7107
7114
|
} else if ("value" in desc) {
|
|
7108
7115
|
return desc.value;
|
|
@@ -7323,11 +7330,11 @@ var quill = { exports: {} };
|
|
|
7323
7330
|
object = Function.prototype;
|
|
7324
7331
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
7325
7332
|
if (desc === void 0) {
|
|
7326
|
-
var
|
|
7327
|
-
if (
|
|
7333
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
7334
|
+
if (parent2 === null) {
|
|
7328
7335
|
return void 0;
|
|
7329
7336
|
} else {
|
|
7330
|
-
return get(
|
|
7337
|
+
return get(parent2, property, receiver);
|
|
7331
7338
|
}
|
|
7332
7339
|
} else if ("value" in desc) {
|
|
7333
7340
|
return desc.value;
|
|
@@ -7676,11 +7683,11 @@ var quill = { exports: {} };
|
|
|
7676
7683
|
object = Function.prototype;
|
|
7677
7684
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
7678
7685
|
if (desc === void 0) {
|
|
7679
|
-
var
|
|
7680
|
-
if (
|
|
7686
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
7687
|
+
if (parent2 === null) {
|
|
7681
7688
|
return void 0;
|
|
7682
7689
|
} else {
|
|
7683
|
-
return get(
|
|
7690
|
+
return get(parent2, property, receiver);
|
|
7684
7691
|
}
|
|
7685
7692
|
} else if ("value" in desc) {
|
|
7686
7693
|
return desc.value;
|
|
@@ -9721,12 +9728,12 @@ var quill = { exports: {} };
|
|
|
9721
9728
|
if (match == null || match.blotName !== "list-item" || !deltaEndsWith(delta, "\n")) {
|
|
9722
9729
|
return delta;
|
|
9723
9730
|
}
|
|
9724
|
-
var indent = -1,
|
|
9725
|
-
while (!
|
|
9726
|
-
if ((_parchment2.default.query(
|
|
9731
|
+
var indent = -1, parent2 = node.parentNode;
|
|
9732
|
+
while (!parent2.classList.contains("ql-clipboard")) {
|
|
9733
|
+
if ((_parchment2.default.query(parent2) || {}).blotName === "list") {
|
|
9727
9734
|
indent += 1;
|
|
9728
9735
|
}
|
|
9729
|
-
|
|
9736
|
+
parent2 = parent2.parentNode;
|
|
9730
9737
|
}
|
|
9731
9738
|
if (indent <= 0)
|
|
9732
9739
|
return delta;
|
|
@@ -9827,11 +9834,11 @@ var quill = { exports: {} };
|
|
|
9827
9834
|
object = Function.prototype;
|
|
9828
9835
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
9829
9836
|
if (desc === void 0) {
|
|
9830
|
-
var
|
|
9831
|
-
if (
|
|
9837
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
9838
|
+
if (parent2 === null) {
|
|
9832
9839
|
return void 0;
|
|
9833
9840
|
} else {
|
|
9834
|
-
return get(
|
|
9841
|
+
return get(parent2, property, receiver);
|
|
9835
9842
|
}
|
|
9836
9843
|
} else if ("value" in desc) {
|
|
9837
9844
|
return desc.value;
|
|
@@ -10289,11 +10296,11 @@ var quill = { exports: {} };
|
|
|
10289
10296
|
object = Function.prototype;
|
|
10290
10297
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
10291
10298
|
if (desc === void 0) {
|
|
10292
|
-
var
|
|
10293
|
-
if (
|
|
10299
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
10300
|
+
if (parent2 === null) {
|
|
10294
10301
|
return void 0;
|
|
10295
10302
|
} else {
|
|
10296
|
-
return get(
|
|
10303
|
+
return get(parent2, property, receiver);
|
|
10297
10304
|
}
|
|
10298
10305
|
} else if ("value" in desc) {
|
|
10299
10306
|
return desc.value;
|
|
@@ -10397,11 +10404,11 @@ var quill = { exports: {} };
|
|
|
10397
10404
|
object = Function.prototype;
|
|
10398
10405
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
10399
10406
|
if (desc === void 0) {
|
|
10400
|
-
var
|
|
10401
|
-
if (
|
|
10407
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
10408
|
+
if (parent2 === null) {
|
|
10402
10409
|
return void 0;
|
|
10403
10410
|
} else {
|
|
10404
|
-
return get(
|
|
10411
|
+
return get(parent2, property, receiver);
|
|
10405
10412
|
}
|
|
10406
10413
|
} else if ("value" in desc) {
|
|
10407
10414
|
return desc.value;
|
|
@@ -10597,11 +10604,11 @@ var quill = { exports: {} };
|
|
|
10597
10604
|
object = Function.prototype;
|
|
10598
10605
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
10599
10606
|
if (desc === void 0) {
|
|
10600
|
-
var
|
|
10601
|
-
if (
|
|
10607
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
10608
|
+
if (parent2 === null) {
|
|
10602
10609
|
return void 0;
|
|
10603
10610
|
} else {
|
|
10604
|
-
return get(
|
|
10611
|
+
return get(parent2, property, receiver);
|
|
10605
10612
|
}
|
|
10606
10613
|
} else if ("value" in desc) {
|
|
10607
10614
|
return desc.value;
|
|
@@ -10922,11 +10929,11 @@ var quill = { exports: {} };
|
|
|
10922
10929
|
object = Function.prototype;
|
|
10923
10930
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
10924
10931
|
if (desc === void 0) {
|
|
10925
|
-
var
|
|
10926
|
-
if (
|
|
10932
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
10933
|
+
if (parent2 === null) {
|
|
10927
10934
|
return void 0;
|
|
10928
10935
|
} else {
|
|
10929
|
-
return get(
|
|
10936
|
+
return get(parent2, property, receiver);
|
|
10930
10937
|
}
|
|
10931
10938
|
} else if ("value" in desc) {
|
|
10932
10939
|
return desc.value;
|
|
@@ -11141,11 +11148,11 @@ var quill = { exports: {} };
|
|
|
11141
11148
|
object = Function.prototype;
|
|
11142
11149
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11143
11150
|
if (desc === void 0) {
|
|
11144
|
-
var
|
|
11145
|
-
if (
|
|
11151
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11152
|
+
if (parent2 === null) {
|
|
11146
11153
|
return void 0;
|
|
11147
11154
|
} else {
|
|
11148
|
-
return get(
|
|
11155
|
+
return get(parent2, property, receiver);
|
|
11149
11156
|
}
|
|
11150
11157
|
} else if ("value" in desc) {
|
|
11151
11158
|
return desc.value;
|
|
@@ -11410,11 +11417,11 @@ var quill = { exports: {} };
|
|
|
11410
11417
|
object = Function.prototype;
|
|
11411
11418
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11412
11419
|
if (desc === void 0) {
|
|
11413
|
-
var
|
|
11414
|
-
if (
|
|
11420
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11421
|
+
if (parent2 === null) {
|
|
11415
11422
|
return void 0;
|
|
11416
11423
|
} else {
|
|
11417
|
-
return get(
|
|
11424
|
+
return get(parent2, property, receiver);
|
|
11418
11425
|
}
|
|
11419
11426
|
} else if ("value" in desc) {
|
|
11420
11427
|
return desc.value;
|
|
@@ -11597,11 +11604,11 @@ var quill = { exports: {} };
|
|
|
11597
11604
|
object = Function.prototype;
|
|
11598
11605
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11599
11606
|
if (desc === void 0) {
|
|
11600
|
-
var
|
|
11601
|
-
if (
|
|
11607
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11608
|
+
if (parent2 === null) {
|
|
11602
11609
|
return void 0;
|
|
11603
11610
|
} else {
|
|
11604
|
-
return get(
|
|
11611
|
+
return get(parent2, property, receiver);
|
|
11605
11612
|
}
|
|
11606
11613
|
} else if ("value" in desc) {
|
|
11607
11614
|
return desc.value;
|
|
@@ -11729,11 +11736,11 @@ var quill = { exports: {} };
|
|
|
11729
11736
|
object = Function.prototype;
|
|
11730
11737
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11731
11738
|
if (desc === void 0) {
|
|
11732
|
-
var
|
|
11733
|
-
if (
|
|
11739
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11740
|
+
if (parent2 === null) {
|
|
11734
11741
|
return void 0;
|
|
11735
11742
|
} else {
|
|
11736
|
-
return get(
|
|
11743
|
+
return get(parent2, property, receiver);
|
|
11737
11744
|
}
|
|
11738
11745
|
} else if ("value" in desc) {
|
|
11739
11746
|
return desc.value;
|
|
@@ -11858,11 +11865,11 @@ var quill = { exports: {} };
|
|
|
11858
11865
|
object = Function.prototype;
|
|
11859
11866
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11860
11867
|
if (desc === void 0) {
|
|
11861
|
-
var
|
|
11862
|
-
if (
|
|
11868
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11869
|
+
if (parent2 === null) {
|
|
11863
11870
|
return void 0;
|
|
11864
11871
|
} else {
|
|
11865
|
-
return get(
|
|
11872
|
+
return get(parent2, property, receiver);
|
|
11866
11873
|
}
|
|
11867
11874
|
} else if ("value" in desc) {
|
|
11868
11875
|
return desc.value;
|
|
@@ -11984,11 +11991,11 @@ var quill = { exports: {} };
|
|
|
11984
11991
|
object = Function.prototype;
|
|
11985
11992
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
11986
11993
|
if (desc === void 0) {
|
|
11987
|
-
var
|
|
11988
|
-
if (
|
|
11994
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
11995
|
+
if (parent2 === null) {
|
|
11989
11996
|
return void 0;
|
|
11990
11997
|
} else {
|
|
11991
|
-
return get(
|
|
11998
|
+
return get(parent2, property, receiver);
|
|
11992
11999
|
}
|
|
11993
12000
|
} else if ("value" in desc) {
|
|
11994
12001
|
return desc.value;
|
|
@@ -12295,11 +12302,11 @@ var quill = { exports: {} };
|
|
|
12295
12302
|
object = Function.prototype;
|
|
12296
12303
|
var desc = Object.getOwnPropertyDescriptor(object, property);
|
|
12297
12304
|
if (desc === void 0) {
|
|
12298
|
-
var
|
|
12299
|
-
if (
|
|
12305
|
+
var parent2 = Object.getPrototypeOf(object);
|
|
12306
|
+
if (parent2 === null) {
|
|
12300
12307
|
return void 0;
|
|
12301
12308
|
} else {
|
|
12302
|
-
return get(
|
|
12309
|
+
return get(parent2, property, receiver);
|
|
12303
12310
|
}
|
|
12304
12311
|
} else if ("value" in desc) {
|
|
12305
12312
|
return desc.value;
|
|
@@ -17619,11 +17626,11 @@ Enumerable.prototype.trace = function(message, selector) {
|
|
|
17619
17626
|
}
|
|
17620
17627
|
});
|
|
17621
17628
|
};
|
|
17622
|
-
var OrderedEnumerable = function(source, keySelector, comparer, descending,
|
|
17629
|
+
var OrderedEnumerable = function(source, keySelector, comparer, descending, parent2) {
|
|
17623
17630
|
this.source = source;
|
|
17624
17631
|
this.keySelector = Utils.createLambda(keySelector);
|
|
17625
17632
|
this.descending = descending;
|
|
17626
|
-
this.parent =
|
|
17633
|
+
this.parent = parent2;
|
|
17627
17634
|
if (comparer)
|
|
17628
17635
|
this.comparer = Utils.createLambda(comparer);
|
|
17629
17636
|
};
|
|
@@ -19230,7 +19237,7 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
19230
19237
|
__publicField(this, "uploading", ref(false));
|
|
19231
19238
|
__publicField(this, "uploadFilePos", reactive({}));
|
|
19232
19239
|
// 文件上传参数
|
|
19233
|
-
__publicField(this, "action", ref("
|
|
19240
|
+
__publicField(this, "action", ref(""));
|
|
19234
19241
|
// 请求 Url
|
|
19235
19242
|
__publicField(this, "headers", ref({
|
|
19236
19243
|
Authorization: ""
|
|
@@ -19509,6 +19516,13 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
19509
19516
|
this.setCurrentToken();
|
|
19510
19517
|
this.setUploadFilePos();
|
|
19511
19518
|
this.headers.value.Authorization = `Bearer ${this.storageInfo.getToken()}`;
|
|
19519
|
+
if (window.frames.length !== parent.frames.length) {
|
|
19520
|
+
let dom = document.getElementsByTagName("iframe");
|
|
19521
|
+
let baseUrl = dom[0].baseURI.split("#").slice(0, -1);
|
|
19522
|
+
this.action.value = baseUrl + this.uploadApi.getUploadFileUrl();
|
|
19523
|
+
} else {
|
|
19524
|
+
this.action.value = this.uploadApi.getUploadFileUrl();
|
|
19525
|
+
}
|
|
19512
19526
|
console.log("上传地址", this.action.value);
|
|
19513
19527
|
}
|
|
19514
19528
|
/**
|
|
@@ -19793,8 +19807,10 @@ class ComFormInstance extends BaseInstance {
|
|
|
19793
19807
|
* @param item
|
|
19794
19808
|
* @param data
|
|
19795
19809
|
*/
|
|
19796
|
-
__publicField(this, "signOnSuccess", (item,
|
|
19797
|
-
|
|
19810
|
+
__publicField(this, "signOnSuccess", (item, { result, img }) => {
|
|
19811
|
+
var _a;
|
|
19812
|
+
this.props.formModel[item.model] = result;
|
|
19813
|
+
(_a = item.signProp) == null ? void 0 : _a.onSignSuccess({ result, img });
|
|
19798
19814
|
});
|
|
19799
19815
|
this.props = props;
|
|
19800
19816
|
this.ctx = ctx;
|