@v2coding/ui 1.1.9 → 1.1.10
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/v2coding-ui.esm.js +26 -29
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +34 -33
- package/package.json +3 -6
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -123,7 +123,9 @@ const DefaultSetting = {
|
|
|
123
123
|
version: '2.0',
|
|
124
124
|
key: process.env.VUE_APP_AMAP_KEY // eslint-disable-line
|
|
125
125
|
|
|
126
|
-
}
|
|
126
|
+
},
|
|
127
|
+
uploadType: 'oss',
|
|
128
|
+
uploadSignUrl: '/aliyun/oss'
|
|
127
129
|
};
|
|
128
130
|
var DefaultSetting$1 = DefaultSetting;
|
|
129
131
|
|
|
@@ -4723,12 +4725,7 @@ Font.whitelist = ['Arial', 'FangSong', 'HeiTi', 'Microsoft'];
|
|
|
4723
4725
|
Quill.register(Font, true);
|
|
4724
4726
|
const defaultConfig = {
|
|
4725
4727
|
upload: {
|
|
4726
|
-
url:
|
|
4727
|
-
let {
|
|
4728
|
-
type
|
|
4729
|
-
} = _ref;
|
|
4730
|
-
return type === 'oss' ? '/aliyun/oss' : '/api/oss/upload';
|
|
4731
|
-
},
|
|
4728
|
+
url: () => getSetting().uploadSignUrl,
|
|
4732
4729
|
// 必填参数 图片上传地址
|
|
4733
4730
|
accept: 'image/png, image/gif, image/jpeg, image/bmp, image/x-icon',
|
|
4734
4731
|
// 可选 可上传的图片格式
|
|
@@ -4803,10 +4800,10 @@ const RichField$1 = {
|
|
|
4803
4800
|
|
|
4804
4801
|
},
|
|
4805
4802
|
methods: {
|
|
4806
|
-
onChange(
|
|
4803
|
+
onChange(_ref) {
|
|
4807
4804
|
let {
|
|
4808
4805
|
html
|
|
4809
|
-
} =
|
|
4806
|
+
} = _ref;
|
|
4810
4807
|
this.emitChange(html);
|
|
4811
4808
|
}
|
|
4812
4809
|
|
|
@@ -4840,12 +4837,12 @@ var __vue_staticRenderFns__$p = [];
|
|
|
4840
4837
|
|
|
4841
4838
|
const __vue_inject_styles__$p = function (inject) {
|
|
4842
4839
|
if (!inject) return;
|
|
4843
|
-
inject("data-v-
|
|
4840
|
+
inject("data-v-0cd7b8c6_0", {
|
|
4844
4841
|
source: ".quill-editor .ql-font span[data-value=Arial]::before{content:\"Arial\"!important;font-family:Arial,serif}.quill-editor .ql-font span[data-value=FangSong]::before{content:\"仿宋\"!important;font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font span[data-value=HeiTi]::before{content:\"黑体\"!important;font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font span[data-value=Microsoft]::before{content:\"微软雅黑\"!important;font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}.quill-editor .ql-font-Arial{font-family:Arial,serif}.quill-editor .ql-font-FangSong{font-family:\"仿宋_GB2312\",FangSong_GB2312,\"宋体\",SimSun,STFangsong,STSong,serif}.quill-editor .ql-font-HeiTi{font-family:\"黑体\",SimHei,\"微软正黑体\",\"Microsoft JhengHei\",STHeiti,serif}.quill-editor .ql-font-Microsoft{font-family:\"微软雅黑\",\"Microsoft YaHei\",serif}",
|
|
4845
4842
|
map: undefined,
|
|
4846
4843
|
media: undefined
|
|
4847
|
-
}), inject("data-v-
|
|
4848
|
-
source: ".quill-editor[data-v-
|
|
4844
|
+
}), inject("data-v-0cd7b8c6_1", {
|
|
4845
|
+
source: ".quill-editor[data-v-0cd7b8c6]{width:100%;display:flex;align-items:initial!important;flex-direction:column}.quill-editor .ql-toolbar[data-v-0cd7b8c6]{flex:none}.quill-editor .ql-container[data-v-0cd7b8c6]{flex:auto;height:initial;display:flex;flex-direction:column}.quill-editor .ql-container .ql-editor[data-v-0cd7b8c6]{flex:auto}.quill-editor[data-v-0cd7b8c6] .ql-editor{min-height:200px}",
|
|
4849
4846
|
map: undefined,
|
|
4850
4847
|
media: undefined
|
|
4851
4848
|
});
|
|
@@ -4853,7 +4850,7 @@ const __vue_inject_styles__$p = function (inject) {
|
|
|
4853
4850
|
/* scoped */
|
|
4854
4851
|
|
|
4855
4852
|
|
|
4856
|
-
const __vue_scope_id__$p = "data-v-
|
|
4853
|
+
const __vue_scope_id__$p = "data-v-0cd7b8c6";
|
|
4857
4854
|
/* module identifier */
|
|
4858
4855
|
|
|
4859
4856
|
const __vue_module_identifier__$p = undefined;
|
|
@@ -4893,7 +4890,11 @@ var script$o = {
|
|
|
4893
4890
|
props: {
|
|
4894
4891
|
url: {
|
|
4895
4892
|
type: String,
|
|
4896
|
-
default:
|
|
4893
|
+
default: () => {
|
|
4894
|
+
var _getSetting;
|
|
4895
|
+
|
|
4896
|
+
return (_getSetting = getSetting()) === null || _getSetting === void 0 ? void 0 : _getSetting.uploadSignUrl;
|
|
4897
|
+
}
|
|
4897
4898
|
},
|
|
4898
4899
|
params: Object,
|
|
4899
4900
|
filename: {
|
|
@@ -4903,7 +4904,11 @@ var script$o = {
|
|
|
4903
4904
|
uploadType: {
|
|
4904
4905
|
type: String,
|
|
4905
4906
|
validator: val => ['oss', 'aws', 'default'].includes(val),
|
|
4906
|
-
default:
|
|
4907
|
+
default: () => {
|
|
4908
|
+
var _getSetting2;
|
|
4909
|
+
|
|
4910
|
+
return (_getSetting2 = getSetting()) === null || _getSetting2 === void 0 ? void 0 : _getSetting2.uploadType;
|
|
4911
|
+
}
|
|
4907
4912
|
},
|
|
4908
4913
|
limit: {
|
|
4909
4914
|
type: Number,
|
|
@@ -5151,8 +5156,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5151
5156
|
|
|
5152
5157
|
const __vue_inject_styles__$o = function (inject) {
|
|
5153
5158
|
if (!inject) return;
|
|
5154
|
-
inject("data-v-
|
|
5155
|
-
source: ".ui-file-upload-field[data-v-
|
|
5159
|
+
inject("data-v-4cd7ae62_0", {
|
|
5160
|
+
source: ".ui-file-upload-field[data-v-4cd7ae62]{width:100%}.ui-file-upload-field .uploader[data-v-4cd7ae62]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-4cd7ae62] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-4cd7ae62] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-4cd7ae62]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-4cd7ae62]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-4cd7ae62]{max-width:100%}.ui-file-upload-field .files .file[data-v-4cd7ae62]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;display:grid;grid-template-columns:14px auto 28px;align-items:center;max-width:100%}.ui-file-upload-field .files .file a[data-v-4cd7ae62]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-4cd7ae62]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-4cd7ae62]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-4cd7ae62]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-4cd7ae62]{color:#409eff;visibility:visible}",
|
|
5156
5161
|
map: undefined,
|
|
5157
5162
|
media: undefined
|
|
5158
5163
|
});
|
|
@@ -5160,7 +5165,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
5160
5165
|
/* scoped */
|
|
5161
5166
|
|
|
5162
5167
|
|
|
5163
|
-
const __vue_scope_id__$o = "data-v-
|
|
5168
|
+
const __vue_scope_id__$o = "data-v-4cd7ae62";
|
|
5164
5169
|
/* module identifier */
|
|
5165
5170
|
|
|
5166
5171
|
const __vue_module_identifier__$o = undefined;
|
|
@@ -5187,14 +5192,6 @@ var script$n = {
|
|
|
5187
5192
|
type: Boolean,
|
|
5188
5193
|
default: true
|
|
5189
5194
|
},
|
|
5190
|
-
url: {
|
|
5191
|
-
type: String,
|
|
5192
|
-
default: '/aliyun/oss'
|
|
5193
|
-
},
|
|
5194
|
-
uploadType: {
|
|
5195
|
-
type: String,
|
|
5196
|
-
default: 'oss'
|
|
5197
|
-
},
|
|
5198
5195
|
labelText: {
|
|
5199
5196
|
type: String,
|
|
5200
5197
|
default: '上传图片'
|
|
@@ -5268,8 +5265,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5268
5265
|
|
|
5269
5266
|
const __vue_inject_styles__$n = function (inject) {
|
|
5270
5267
|
if (!inject) return;
|
|
5271
|
-
inject("data-v-
|
|
5272
|
-
source: ".ui-image-upload-field[data-v-
|
|
5268
|
+
inject("data-v-4f959319_0", {
|
|
5269
|
+
source: ".ui-image-upload-field[data-v-4f959319]{width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.ui-image-upload-field .uploader.disabled[data-v-4f959319] .el-upload{cursor:not-allowed;pointer-events:none}.ui-image-upload-field .uploader.disabled[data-v-4f959319] .el-upload .upload-btn{background:#edeef0;color:#888c94}.ui-image-upload-field .item[data-v-4f959319]{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;width:140px;height:140px;margin-bottom:10px;margin-right:10px;border:1px dashed #d0d2d7;padding:8px;border-radius:2px;box-sizing:border-box}.ui-image-upload-field .item .remove[data-v-4f959319]{position:absolute;top:0;right:0;width:24px;height:24px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 22px;cursor:pointer}.ui-image-upload-field .item .remove .el-icon-close[data-v-4f959319]{position:absolute;top:4px;right:4px;color:#fff;font-size:14px}.ui-image-upload-field .item.upload-btn[data-v-4f959319]{background:#f7f8f9;display:flex;flex-direction:column;align-items:center;justify-content:center;border:none;color:#409eff}.ui-image-upload-field .item.upload-btn>.el-icon-plus[data-v-4f959319]{font-size:1.6em}.ui-image-upload-field .item.upload-btn>span[data-v-4f959319]{font-size:16px;line-height:1.2;margin-top:5px}.ui-image-upload-field .item:hover .modal[data-v-4f959319]{visibility:visible}.ui-image-upload-field[data-v-4f959319] .preview{display:inline-block;width:auto;max-width:60%;left:50%;transform:translateX(-50%)}",
|
|
5273
5270
|
map: undefined,
|
|
5274
5271
|
media: undefined
|
|
5275
5272
|
});
|
|
@@ -5277,7 +5274,7 @@ const __vue_inject_styles__$n = function (inject) {
|
|
|
5277
5274
|
/* scoped */
|
|
5278
5275
|
|
|
5279
5276
|
|
|
5280
|
-
const __vue_scope_id__$n = "data-v-
|
|
5277
|
+
const __vue_scope_id__$n = "data-v-4f959319";
|
|
5281
5278
|
/* module identifier */
|
|
5282
5279
|
|
|
5283
5280
|
const __vue_module_identifier__$n = undefined;
|