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