@xatlas/rainbow-core 1.4.4 → 1.4.8
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/core.common.js +135 -22
- package/dist/core.common.js.map +1 -1
- package/dist/core.umd.js +135 -22
- package/dist/core.umd.js.map +1 -1
- package/dist/core.umd.min.js +3 -3
- package/dist/core.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/core.common.js
CHANGED
|
@@ -1629,7 +1629,7 @@ function list_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
1629
1629
|
this.inlineActions && this.inlineActions.length && !this.actionRowEditing && columns.push({
|
|
1630
1630
|
title: '操作',
|
|
1631
1631
|
key: '_action',
|
|
1632
|
-
fixed: 'right',
|
|
1632
|
+
fixed: this.configs['list.scrollX'] ? 'right' : null,
|
|
1633
1633
|
customRender: function customRender(text, record) {
|
|
1634
1634
|
var children = null;
|
|
1635
1635
|
|
|
@@ -2788,6 +2788,15 @@ function base_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
2788
2788
|
});
|
|
2789
2789
|
|
|
2790
2790
|
case 2:
|
|
2791
|
+
if (action.params && action.params.commit && action.params.commit.type === 'remove') {
|
|
2792
|
+
if (_this5.id) {
|
|
2793
|
+
_this5.handleBack();
|
|
2794
|
+
} else if (!_this5.findAll.length) {
|
|
2795
|
+
_this5.load && _this5.load();
|
|
2796
|
+
}
|
|
2797
|
+
}
|
|
2798
|
+
|
|
2799
|
+
case 3:
|
|
2791
2800
|
case "end":
|
|
2792
2801
|
return _context6.stop();
|
|
2793
2802
|
}
|
|
@@ -2819,13 +2828,14 @@ function base_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
2819
2828
|
while (1) {
|
|
2820
2829
|
switch (_context8.prev = _context8.next) {
|
|
2821
2830
|
case 0:
|
|
2822
|
-
|
|
2831
|
+
_context8.next = 2;
|
|
2832
|
+
return _this6.executeData({
|
|
2823
2833
|
key: action.key,
|
|
2824
2834
|
data: {},
|
|
2825
2835
|
query: _this6.query ? _this6.query : {}
|
|
2826
2836
|
});
|
|
2827
2837
|
|
|
2828
|
-
case
|
|
2838
|
+
case 2:
|
|
2829
2839
|
case "end":
|
|
2830
2840
|
return _context8.stop();
|
|
2831
2841
|
}
|
|
@@ -3489,6 +3499,10 @@ var ACTION_ACCESS = {
|
|
|
3489
3499
|
if (redirectProfile) {
|
|
3490
3500
|
_this3.handleModelProfile && _this3.handleModelProfile(result);
|
|
3491
3501
|
}
|
|
3502
|
+
|
|
3503
|
+
if (_this3.id && type && type === 'remove') {
|
|
3504
|
+
_this3.handleBack();
|
|
3505
|
+
}
|
|
3492
3506
|
}
|
|
3493
3507
|
|
|
3494
3508
|
case 15:
|
|
@@ -4922,12 +4936,12 @@ function item_defineProperty(obj, key, value) { if (key in obj) { Object.defineP
|
|
|
4922
4936
|
}
|
|
4923
4937
|
}
|
|
4924
4938
|
});
|
|
4925
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f9fe196-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=
|
|
4926
|
-
var
|
|
4927
|
-
var
|
|
4939
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f9fe196-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=dc7f2fae&
|
|
4940
|
+
var Indexvue_type_template_id_dc7f2fae_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"form-quill-editor"},[_c('quill-editor',{ref:"quillEditor",attrs:{"options":_vm.editorOption},on:{"change":function($event){return _vm.onEditorChange($event)},"ready":function($event){return _vm.onEditorReady($event)}}}),_c('a-input',{staticStyle:{"display":"none"},attrs:{"type":"file","multiple":""},on:{"change":_vm.handleUploadChange}})],1)}
|
|
4941
|
+
var Indexvue_type_template_id_dc7f2fae_staticRenderFns = []
|
|
4928
4942
|
|
|
4929
4943
|
|
|
4930
|
-
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=
|
|
4944
|
+
// CONCATENATED MODULE: ../src/web/components/cell/QuillEditor/Index.vue?vue&type=template&id=dc7f2fae&
|
|
4931
4945
|
|
|
4932
4946
|
// EXTERNAL MODULE: ../node_modules/quill/dist/quill.core.css
|
|
4933
4947
|
var quill_core = __webpack_require__("690b");
|
|
@@ -4942,6 +4956,33 @@ var quill_bubble = __webpack_require__("55ab");
|
|
|
4942
4956
|
var vue_quill_editor = __webpack_require__("37eb");
|
|
4943
4957
|
|
|
4944
4958
|
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/cell/QuillEditor/Index.vue?vue&type=script&lang=js&
|
|
4959
|
+
|
|
4960
|
+
|
|
4961
|
+
function Indexvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
|
4962
|
+
|
|
4963
|
+
function Indexvue_type_script_lang_js_asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { Indexvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { Indexvue_type_script_lang_js_asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
|
4964
|
+
|
|
4965
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = Indexvue_type_script_lang_js_unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
4966
|
+
|
|
4967
|
+
function Indexvue_type_script_lang_js_unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return Indexvue_type_script_lang_js_arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return Indexvue_type_script_lang_js_arrayLikeToArray(o, minLen); }
|
|
4968
|
+
|
|
4969
|
+
function Indexvue_type_script_lang_js_arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
4970
|
+
|
|
4971
|
+
//
|
|
4972
|
+
//
|
|
4973
|
+
//
|
|
4974
|
+
//
|
|
4975
|
+
//
|
|
4976
|
+
//
|
|
4977
|
+
//
|
|
4978
|
+
//
|
|
4979
|
+
//
|
|
4980
|
+
//
|
|
4981
|
+
//
|
|
4982
|
+
//
|
|
4983
|
+
//
|
|
4984
|
+
//
|
|
4985
|
+
//
|
|
4945
4986
|
//
|
|
4946
4987
|
//
|
|
4947
4988
|
//
|
|
@@ -4981,12 +5022,17 @@ var vue_quill_editor = __webpack_require__("37eb");
|
|
|
4981
5022
|
content: this.value,
|
|
4982
5023
|
editorOption: {
|
|
4983
5024
|
placeholder: this.disabled ? '当前为不可编辑状态' : this.placeholder
|
|
4984
|
-
}
|
|
5025
|
+
},
|
|
5026
|
+
baseUrl: window.location.origin,
|
|
5027
|
+
quill: null,
|
|
5028
|
+
pos: 0
|
|
4985
5029
|
};
|
|
4986
5030
|
},
|
|
4987
5031
|
mounted: function mounted() {
|
|
4988
5032
|
// console.log(this.$refs.quillEditor.quill.getModule('toolbar'))
|
|
4989
|
-
|
|
5033
|
+
this.$refs.quillEditor.quill.getModule('toolbar').addHandler('image', this.handleImage);
|
|
5034
|
+
this.quill = this.$refs.quillEditor.quill;
|
|
5035
|
+
|
|
4990
5036
|
if (this.disabled) {
|
|
4991
5037
|
this.$refs.quillEditor.quill.enable(false);
|
|
4992
5038
|
}
|
|
@@ -5001,11 +5047,77 @@ var vue_quill_editor = __webpack_require__("37eb");
|
|
|
5001
5047
|
onEditorReady: function onEditorReady(quill) {
|
|
5002
5048
|
quill.container.querySelector('.ql-blank').innerHTML = this.content;
|
|
5003
5049
|
},
|
|
5004
|
-
|
|
5005
|
-
|
|
5050
|
+
handleImage: function handleImage() {
|
|
5051
|
+
// const uploaderInput = document.querySelector('.form-quill-editor .avatar-uploader input') || null
|
|
5052
|
+
var uploaderInput = document.querySelector('.form-quill-editor input[type="file"]') || null;
|
|
5053
|
+
uploaderInput && uploaderInput.click();
|
|
5054
|
+
},
|
|
5055
|
+
// handleUploadChange (info) {
|
|
5056
|
+
// const status = info.file.status
|
|
5057
|
+
// // 获取光标位置
|
|
5058
|
+
// const pos = this.quill.getSelection().index
|
|
5059
|
+
// if (status === 'done') {
|
|
5060
|
+
// this.quill.insertEmbed(pos, 'image', `${this.baseUrl}${info.file.response[0]}`)
|
|
5061
|
+
// }
|
|
5062
|
+
// },
|
|
5063
|
+
handleUploadChange: function handleUploadChange(e) {
|
|
5064
|
+
var fd = new FormData();
|
|
5065
|
+
var files = e.target.files;
|
|
5066
|
+
|
|
5067
|
+
if (files && files.length) {
|
|
5068
|
+
var _iterator = _createForOfIteratorHelper(files),
|
|
5069
|
+
_step;
|
|
5070
|
+
|
|
5071
|
+
try {
|
|
5072
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
5073
|
+
var file = _step.value;
|
|
5074
|
+
fd.append(file.lastModified + file.size, file);
|
|
5075
|
+
}
|
|
5076
|
+
} catch (err) {
|
|
5077
|
+
_iterator.e(err);
|
|
5078
|
+
} finally {
|
|
5079
|
+
_iterator.f();
|
|
5080
|
+
}
|
|
5081
|
+
}
|
|
5082
|
+
|
|
5083
|
+
this.getfileurl(fd);
|
|
5084
|
+
},
|
|
5085
|
+
getfileurl: function getfileurl(files) {
|
|
5086
|
+
var _this = this;
|
|
5087
|
+
|
|
5088
|
+
return Indexvue_type_script_lang_js_asyncToGenerator( /*#__PURE__*/regenerator_default.a.mark(function _callee() {
|
|
5089
|
+
var _yield$_this$$api$pos, data, status;
|
|
5090
|
+
|
|
5091
|
+
return regenerator_default.a.wrap(function _callee$(_context) {
|
|
5092
|
+
while (1) {
|
|
5093
|
+
switch (_context.prev = _context.next) {
|
|
5094
|
+
case 0:
|
|
5095
|
+
_context.next = 2;
|
|
5096
|
+
return _this.$api.post("".concat(_this.baseUrl, "/file/getfileurl"), files);
|
|
5006
5097
|
|
|
5007
|
-
|
|
5008
|
-
|
|
5098
|
+
case 2:
|
|
5099
|
+
_yield$_this$$api$pos = _context.sent;
|
|
5100
|
+
data = _yield$_this$$api$pos.data;
|
|
5101
|
+
status = _yield$_this$$api$pos.status;
|
|
5102
|
+
|
|
5103
|
+
if (status === 200) {
|
|
5104
|
+
data.forEach(function (item) {
|
|
5105
|
+
_this.insertEmbedImage("".concat(_this.baseUrl).concat(item));
|
|
5106
|
+
});
|
|
5107
|
+
}
|
|
5108
|
+
|
|
5109
|
+
case 6:
|
|
5110
|
+
case "end":
|
|
5111
|
+
return _context.stop();
|
|
5112
|
+
}
|
|
5113
|
+
}
|
|
5114
|
+
}, _callee);
|
|
5115
|
+
}))();
|
|
5116
|
+
},
|
|
5117
|
+
insertEmbedImage: function insertEmbedImage(url) {
|
|
5118
|
+
this.pos = this.quill.getSelection().index;
|
|
5119
|
+
this.quill.insertEmbed(this.pos, 'image', url);
|
|
5120
|
+
this.quill.setSelection(this.pos + 1);
|
|
5009
5121
|
}
|
|
5010
5122
|
}
|
|
5011
5123
|
});
|
|
@@ -5025,8 +5137,8 @@ var Indexvue_type_style_index_0_lang_less_ = __webpack_require__("3780");
|
|
|
5025
5137
|
|
|
5026
5138
|
var Index_component = normalizeComponent(
|
|
5027
5139
|
QuillEditor_Indexvue_type_script_lang_js_,
|
|
5028
|
-
|
|
5029
|
-
|
|
5140
|
+
Indexvue_type_template_id_dc7f2fae_render,
|
|
5141
|
+
Indexvue_type_template_id_dc7f2fae_staticRenderFns,
|
|
5030
5142
|
false,
|
|
5031
5143
|
null,
|
|
5032
5144
|
null,
|
|
@@ -6339,12 +6451,12 @@ var Picker_component = normalizeComponent(
|
|
|
6339
6451
|
)
|
|
6340
6452
|
|
|
6341
6453
|
/* harmony default export */ var Picker = (Picker_component.exports);
|
|
6342
|
-
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f9fe196-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/embed/Popup.vue?vue&type=template&id=
|
|
6343
|
-
var
|
|
6344
|
-
var
|
|
6454
|
+
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5f9fe196-vue-loader-template"}!../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/embed/Popup.vue?vue&type=template&id=5cd9b580&
|
|
6455
|
+
var Popupvue_type_template_id_5cd9b580_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.options.component,_vm._g(_vm._b({tag:"component",scopedSlots:_vm._u([{key:"title",fn:function(){return [_vm._t("title",function(){return [_vm._v(_vm._s(_vm.title))]})]},proxy:true},(_vm.$slots.footer)?{key:"footer",fn:function(){return [_vm._t("footer")]},proxy:true}:null],null,true)},'component',Object.assign({}, _vm.options, _vm.$attrs),false),_vm.$listeners),[_vm._t("default")],2)}
|
|
6456
|
+
var Popupvue_type_template_id_5cd9b580_staticRenderFns = []
|
|
6345
6457
|
|
|
6346
6458
|
|
|
6347
|
-
// CONCATENATED MODULE: ../src/web/components/kits/embed/Popup.vue?vue&type=template&id=
|
|
6459
|
+
// CONCATENATED MODULE: ../src/web/components/kits/embed/Popup.vue?vue&type=template&id=5cd9b580&
|
|
6348
6460
|
|
|
6349
6461
|
// CONCATENATED MODULE: ../node_modules/cache-loader/dist/cjs.js??ref--13-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib??vue-loader-options!../src/web/components/kits/embed/Popup.vue?vue&type=script&lang=js&
|
|
6350
6462
|
//
|
|
@@ -6393,7 +6505,8 @@ var Popupvue_type_template_id_300fbff4_staticRenderFns = []
|
|
|
6393
6505
|
overflowY: 'auto'
|
|
6394
6506
|
},
|
|
6395
6507
|
centered: true,
|
|
6396
|
-
footer: this.footer
|
|
6508
|
+
footer: this.footer,
|
|
6509
|
+
maskClosable: false
|
|
6397
6510
|
},
|
|
6398
6511
|
fullscreenOptions: {
|
|
6399
6512
|
component: 'a-modal',
|
|
@@ -6438,8 +6551,8 @@ var Popupvue_type_template_id_300fbff4_staticRenderFns = []
|
|
|
6438
6551
|
|
|
6439
6552
|
var Popup_component = normalizeComponent(
|
|
6440
6553
|
embed_Popupvue_type_script_lang_js_,
|
|
6441
|
-
|
|
6442
|
-
|
|
6554
|
+
Popupvue_type_template_id_5cd9b580_render,
|
|
6555
|
+
Popupvue_type_template_id_5cd9b580_staticRenderFns,
|
|
6443
6556
|
false,
|
|
6444
6557
|
null,
|
|
6445
6558
|
null,
|