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