@gct-paas/word 0.1.43 → 0.1.45
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/base/utils/asset-helper-util.d.ts +1 -0
- package/dist/index.es.js +135 -21
- package/dist/runtime/renderer/dialogs/dialog-container.vue.d.ts +1 -0
- package/dist/runtime/renderer/dialogs/upload-file/base-upload-file.vue.d.ts +6 -1
- package/dist/runtime/renderer/dialogs/upload-file/upload-file-dialog.vue.d.ts +39 -2
- package/dist/runtime/renderer/dialogs/upload-image/base-upload-image.vue.d.ts +6 -1
- package/dist/runtime/renderer/dialogs/upload-image/upload-image-dialog.vue.d.ts +39 -2
- package/dist/word.css +75 -75
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -115,13 +115,22 @@ class AssetHelper {
|
|
|
115
115
|
static init(opts) {
|
|
116
116
|
this.transfer = opts.transfer;
|
|
117
117
|
}
|
|
118
|
+
static normalizeUploadedPath(path2) {
|
|
119
|
+
if (!path2) return path2;
|
|
120
|
+
if (/^https?:\/\//.test(path2)) return path2;
|
|
121
|
+
return path2.startsWith("/") ? path2 : `/${path2}`;
|
|
122
|
+
}
|
|
118
123
|
/** 上传(基础版) */
|
|
119
124
|
static async upload(file, opts) {
|
|
120
|
-
|
|
125
|
+
const res = await serviceUtil.uploadFile(file, {
|
|
121
126
|
modelKey: opts?.modelKey,
|
|
122
127
|
signal: opts?.signal,
|
|
123
128
|
onProgress: opts?.onProgress
|
|
124
129
|
});
|
|
130
|
+
if (res?.data && typeof res.data === "string") {
|
|
131
|
+
res.data = this.normalizeUploadedPath(res.data);
|
|
132
|
+
}
|
|
133
|
+
return res;
|
|
125
134
|
}
|
|
126
135
|
/** 上传(带进度) */
|
|
127
136
|
static async uploadWithProgress(file, opts = {}) {
|
|
@@ -34528,13 +34537,14 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
34528
34537
|
}
|
|
34529
34538
|
await confirmFn(modalInstance);
|
|
34530
34539
|
};
|
|
34531
|
-
const
|
|
34540
|
+
const handleDismiss = async () => {
|
|
34532
34541
|
if (props.onCancel) {
|
|
34533
34542
|
await props.onCancel(modalInstance);
|
|
34534
34543
|
} else {
|
|
34535
34544
|
close();
|
|
34536
34545
|
}
|
|
34537
34546
|
};
|
|
34547
|
+
const handleCancelClick = handleDismiss;
|
|
34538
34548
|
onMounted(() => {
|
|
34539
34549
|
visible.value = true;
|
|
34540
34550
|
props.__onRegisterIns(modalInstance);
|
|
@@ -34572,7 +34582,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
34572
34582
|
__props.closable ? (openBlock(), createElementBlock("button", {
|
|
34573
34583
|
key: 0,
|
|
34574
34584
|
class: "header-close-button",
|
|
34575
|
-
onClick:
|
|
34585
|
+
onClick: handleDismiss
|
|
34576
34586
|
}, " × ")) : createCommentVNode("", true)
|
|
34577
34587
|
]),
|
|
34578
34588
|
createElementVNode("section", {
|
|
@@ -34589,13 +34599,13 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
34589
34599
|
__props.showCancel ? (openBlock(), createBlock(unref(GctButton), {
|
|
34590
34600
|
key: 0,
|
|
34591
34601
|
disabled: loading.value,
|
|
34592
|
-
onClick: handleCancelClick
|
|
34602
|
+
onClick: unref(handleCancelClick)
|
|
34593
34603
|
}, {
|
|
34594
34604
|
default: withCtx(() => [
|
|
34595
34605
|
createTextVNode(toDisplayString(__props.cancelText), 1)
|
|
34596
34606
|
]),
|
|
34597
34607
|
_: 1
|
|
34598
|
-
}, 8, ["disabled"])) : createCommentVNode("", true),
|
|
34608
|
+
}, 8, ["disabled", "onClick"])) : createCommentVNode("", true),
|
|
34599
34609
|
props.showConfirmContinue ? (openBlock(), createBlock(unref(GctButton), {
|
|
34600
34610
|
key: 1,
|
|
34601
34611
|
type: "primary",
|
|
@@ -34629,7 +34639,7 @@ const _sfc_main$3b = /* @__PURE__ */ defineComponent({
|
|
|
34629
34639
|
};
|
|
34630
34640
|
}
|
|
34631
34641
|
});
|
|
34632
|
-
const ModalRoot = /* @__PURE__ */ _export_sfc(_sfc_main$3b, [["__scopeId", "data-v-
|
|
34642
|
+
const ModalRoot = /* @__PURE__ */ _export_sfc(_sfc_main$3b, [["__scopeId", "data-v-aba80473"]]);
|
|
34633
34643
|
const BASE_Z_INDEX = 1999;
|
|
34634
34644
|
let offset = 0;
|
|
34635
34645
|
const GctModal = {
|
|
@@ -51883,8 +51893,33 @@ function resolveSubmitCrossKeys(formData, subTableInfoList) {
|
|
|
51883
51893
|
}
|
|
51884
51894
|
return Object.keys(formData).filter((k) => k.includes(":"));
|
|
51885
51895
|
}
|
|
51896
|
+
const handleSyncCheckValue = (row) => {
|
|
51897
|
+
const { type_, value_ } = row;
|
|
51898
|
+
if (type_ === "boolean") {
|
|
51899
|
+
row.bool_value_ = value_;
|
|
51900
|
+
} else if (type_ === "string") {
|
|
51901
|
+
row.text_value_ = value_;
|
|
51902
|
+
} else if (type_ === "integer") {
|
|
51903
|
+
row.int_value_ = value_;
|
|
51904
|
+
} else if (type_ === "decimal") {
|
|
51905
|
+
row.double_value_ = value_;
|
|
51906
|
+
} else if (type_ === "user") {
|
|
51907
|
+
row.user_value_ = value_;
|
|
51908
|
+
} else if (type_ === "org") {
|
|
51909
|
+
row.org_value_ = value_;
|
|
51910
|
+
} else if (type_ === "date") {
|
|
51911
|
+
row.date_value_ = value_;
|
|
51912
|
+
} else if (type_ === "date_time") {
|
|
51913
|
+
row.date_time_value_ = value_;
|
|
51914
|
+
} else if (type_ === "image") {
|
|
51915
|
+
row.image_value_ = value_;
|
|
51916
|
+
} else if (type_ === "attachment") {
|
|
51917
|
+
row.attachment_value_ = value_;
|
|
51918
|
+
}
|
|
51919
|
+
};
|
|
51886
51920
|
function getSubmitFormData(formData, subTableInfoList) {
|
|
51887
51921
|
const _formData = { ...formData };
|
|
51922
|
+
const checkTableFieldList = (subTableInfoList || []).filter((o) => o.subType === "check-table-2d").map((o) => o.field);
|
|
51888
51923
|
resolveSubmitCrossKeys(_formData, subTableInfoList).forEach((crossKey) => {
|
|
51889
51924
|
const [subKey, linkKey] = crossKey.split(":");
|
|
51890
51925
|
const subData = _formData[subKey] || [];
|
|
@@ -51906,6 +51941,7 @@ function getSubmitFormData(formData, subTableInfoList) {
|
|
|
51906
51941
|
delete _formData[crossKey];
|
|
51907
51942
|
});
|
|
51908
51943
|
const realFormData = Object.keys(_formData).reduce((reducedData, fieldKey) => {
|
|
51944
|
+
const isCheckTable = checkTableFieldList.includes(fieldKey);
|
|
51909
51945
|
const fieldValue = _formData[fieldKey];
|
|
51910
51946
|
if (Array.isArray(fieldValue)) {
|
|
51911
51947
|
fieldValue.forEach((row) => {
|
|
@@ -51913,6 +51949,9 @@ function getSubmitFormData(formData, subTableInfoList) {
|
|
|
51913
51949
|
if (__gw_x_uid) {
|
|
51914
51950
|
row.group_ = __gw_x_uid;
|
|
51915
51951
|
}
|
|
51952
|
+
if (isCheckTable) {
|
|
51953
|
+
handleSyncCheckValue(row);
|
|
51954
|
+
}
|
|
51916
51955
|
});
|
|
51917
51956
|
reducedData[fieldKey] = _formData[fieldKey].map(
|
|
51918
51957
|
(row) => Object.fromEntries(
|
|
@@ -100048,9 +100087,7 @@ async function addSubModelsToFieldScope(modelKey, ctx) {
|
|
|
100048
100087
|
try {
|
|
100049
100088
|
const res = await api.apaas.modelMeta.getListSlaveModel({ modelKey });
|
|
100050
100089
|
const subModelKeys = Array.isArray(res) ? res.map((item) => item?.key || "").filter(Boolean) : [];
|
|
100051
|
-
subModelKeys.
|
|
100052
|
-
ctx.runtime.fieldScope.addModel(subKey);
|
|
100053
|
-
});
|
|
100090
|
+
await Promise.all(subModelKeys.map((subKey) => ctx.runtime.fieldScope.addModel(subKey)));
|
|
100054
100091
|
} catch (error) {
|
|
100055
100092
|
console.error("拉取子模型key失败", { modelKey, error });
|
|
100056
100093
|
return;
|
|
@@ -101491,8 +101528,12 @@ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
|
|
|
101491
101528
|
const save = async () => {
|
|
101492
101529
|
return await dialogRef.value?.save();
|
|
101493
101530
|
};
|
|
101531
|
+
const cancelUploading = () => {
|
|
101532
|
+
dialogRef.value?.cancelUploading?.();
|
|
101533
|
+
};
|
|
101494
101534
|
__expose({
|
|
101495
|
-
onSave: save
|
|
101535
|
+
onSave: save,
|
|
101536
|
+
cancelUploading
|
|
101496
101537
|
});
|
|
101497
101538
|
return (_ctx, _cache) => {
|
|
101498
101539
|
return openBlock(), createElementBlock("div", _hoisted_1$1T, [
|
|
@@ -101508,7 +101549,7 @@ const _sfc_main$2R = /* @__PURE__ */ defineComponent({
|
|
|
101508
101549
|
};
|
|
101509
101550
|
}
|
|
101510
101551
|
});
|
|
101511
|
-
const DialogContainer = /* @__PURE__ */ _export_sfc(_sfc_main$2R, [["__scopeId", "data-v-
|
|
101552
|
+
const DialogContainer = /* @__PURE__ */ _export_sfc(_sfc_main$2R, [["__scopeId", "data-v-0c78d10e"]]);
|
|
101512
101553
|
const buildError = (validatorInfo, message) => JSON.stringify({ ...validatorInfo, message });
|
|
101513
101554
|
const createRule = (validator2, message) => ({
|
|
101514
101555
|
required: true,
|
|
@@ -103031,6 +103072,7 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
|
|
|
103031
103072
|
}
|
|
103032
103073
|
function openDialog() {
|
|
103033
103074
|
if (!isDialog.value || showReadonly.value || showDisabled.value) return;
|
|
103075
|
+
const isUploadWidget = widgetType.value === "fw:image" || widgetType.value === "fw:file";
|
|
103034
103076
|
GctModal.open({
|
|
103035
103077
|
title: "操作",
|
|
103036
103078
|
body: DialogContainer,
|
|
@@ -103040,9 +103082,16 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
|
|
|
103040
103082
|
modelValue: modelValue.value,
|
|
103041
103083
|
modelKey: fieldInfo.value?.modelKey
|
|
103042
103084
|
},
|
|
103085
|
+
...isUploadWidget ? {
|
|
103086
|
+
onCancel: ({ bodyRef, close }) => {
|
|
103087
|
+
bodyRef?.value?.cancelUploading?.();
|
|
103088
|
+
close();
|
|
103089
|
+
}
|
|
103090
|
+
} : {},
|
|
103043
103091
|
onConfirm: async ({ bodyRef, close }) => {
|
|
103044
103092
|
try {
|
|
103045
103093
|
const savedValue = await bodyRef?.value?.onSave?.();
|
|
103094
|
+
if (!savedValue) return;
|
|
103046
103095
|
props.doc.dataManager.setMultiple(savedValue);
|
|
103047
103096
|
triggerValidate("change");
|
|
103048
103097
|
close();
|
|
@@ -103121,7 +103170,7 @@ const _sfc_main$2Q = /* @__PURE__ */ defineComponent({
|
|
|
103121
103170
|
};
|
|
103122
103171
|
}
|
|
103123
103172
|
});
|
|
103124
|
-
const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$2Q, [["__scopeId", "data-v-
|
|
103173
|
+
const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$2Q, [["__scopeId", "data-v-327990bf"]]);
|
|
103125
103174
|
let activeHoverId = 0;
|
|
103126
103175
|
function useHoverDelay(callback, delay = 120) {
|
|
103127
103176
|
let timer = null;
|
|
@@ -113674,7 +113723,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
113674
113723
|
setup(__props) {
|
|
113675
113724
|
const props = __props;
|
|
113676
113725
|
const interCtx = useInteractionContext();
|
|
113677
|
-
const { showDisabled, runtimeValuePath } = useWidgetStaticAttrs(props.widget);
|
|
113726
|
+
const { docInst, showDisabled, runtimeValuePath } = useWidgetStaticAttrs(props.widget);
|
|
113678
113727
|
const isActive = computed(
|
|
113679
113728
|
() => props.modelId === interCtx.panelData?.modelId || props.modelId === interCtx.hoverModelId
|
|
113680
113729
|
);
|
|
@@ -113689,6 +113738,13 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
113689
113738
|
bg: "#fff2f2"
|
|
113690
113739
|
};
|
|
113691
113740
|
}
|
|
113741
|
+
if (docInst.value.isInPrintMode()) {
|
|
113742
|
+
return {
|
|
113743
|
+
text: props.widget.color,
|
|
113744
|
+
line: "#999999",
|
|
113745
|
+
bg: "transparent"
|
|
113746
|
+
};
|
|
113747
|
+
}
|
|
113692
113748
|
if (showDisabled.value) {
|
|
113693
113749
|
return {
|
|
113694
113750
|
text: "#c9c9c9",
|
|
@@ -126130,7 +126186,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
126130
126186
|
modelKey: {}
|
|
126131
126187
|
},
|
|
126132
126188
|
emits: ["update:modelValue"],
|
|
126133
|
-
setup(__props, { emit: __emit }) {
|
|
126189
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
126134
126190
|
const svg = {
|
|
126135
126191
|
img: ImgSvg,
|
|
126136
126192
|
doc: DocSvg,
|
|
@@ -126294,6 +126350,21 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
126294
126350
|
const urls = fileList.value.filter((i) => i.status === "done" && i.url).map((i) => i.url);
|
|
126295
126351
|
emit("update:modelValue", urls.length ? urls.join(",") : void 0);
|
|
126296
126352
|
}
|
|
126353
|
+
function hasUploading() {
|
|
126354
|
+
return fileList.value.some((i) => i.status === "uploading");
|
|
126355
|
+
}
|
|
126356
|
+
function cancelUploading() {
|
|
126357
|
+
fileList.value.forEach((item) => {
|
|
126358
|
+
if (item.status === "uploading" && item.controller) {
|
|
126359
|
+
item.controller.abort();
|
|
126360
|
+
item.controller = void 0;
|
|
126361
|
+
}
|
|
126362
|
+
});
|
|
126363
|
+
}
|
|
126364
|
+
__expose({
|
|
126365
|
+
hasUploading,
|
|
126366
|
+
cancelUploading
|
|
126367
|
+
});
|
|
126297
126368
|
return (_ctx, _cache) => {
|
|
126298
126369
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
126299
126370
|
createElementVNode("div", _hoisted_2$2, [
|
|
@@ -126374,7 +126445,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
126374
126445
|
};
|
|
126375
126446
|
}
|
|
126376
126447
|
});
|
|
126377
|
-
const BaseUploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
126448
|
+
const BaseUploadFile = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-7f2e8268"]]);
|
|
126378
126449
|
const _hoisted_1$3 = { class: "word-upload-file-dialog" };
|
|
126379
126450
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
126380
126451
|
__name: "upload-file-dialog",
|
|
@@ -126387,6 +126458,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
126387
126458
|
setup(__props, { expose: __expose }) {
|
|
126388
126459
|
const props = __props;
|
|
126389
126460
|
const innerValue = ref(props.modelValue);
|
|
126461
|
+
const uploadRef = ref();
|
|
126390
126462
|
const { runtimeValuePath, widgetProps } = useWidgetMeta(props.widget);
|
|
126391
126463
|
const uploadConfig = computed(() => {
|
|
126392
126464
|
const item = widgetProps.value;
|
|
@@ -126401,14 +126473,27 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
126401
126473
|
};
|
|
126402
126474
|
});
|
|
126403
126475
|
function onSave() {
|
|
126476
|
+
if (uploadRef.value?.hasUploading?.()) {
|
|
126477
|
+
GctMessage.warning("请等待附件上传完成后再点击确定");
|
|
126478
|
+
return;
|
|
126479
|
+
}
|
|
126404
126480
|
return setValue(innerValue.value, runtimeValuePath.value);
|
|
126405
126481
|
}
|
|
126482
|
+
function cancelUploading() {
|
|
126483
|
+
uploadRef.value?.cancelUploading?.();
|
|
126484
|
+
}
|
|
126485
|
+
onBeforeUnmount(() => {
|
|
126486
|
+
cancelUploading();
|
|
126487
|
+
});
|
|
126406
126488
|
__expose({
|
|
126407
|
-
save: onSave
|
|
126489
|
+
save: onSave,
|
|
126490
|
+
cancelUploading
|
|
126408
126491
|
});
|
|
126409
126492
|
return (_ctx, _cache) => {
|
|
126410
126493
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
126411
126494
|
createVNode(BaseUploadFile, mergeProps({
|
|
126495
|
+
ref_key: "uploadRef",
|
|
126496
|
+
ref: uploadRef,
|
|
126412
126497
|
"model-value": innerValue.value,
|
|
126413
126498
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
|
|
126414
126499
|
}, uploadConfig.value), null, 16, ["model-value"])
|
|
@@ -126416,7 +126501,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
126416
126501
|
};
|
|
126417
126502
|
}
|
|
126418
126503
|
});
|
|
126419
|
-
const uploadFileDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-
|
|
126504
|
+
const uploadFileDialog = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-cea10c2d"]]);
|
|
126420
126505
|
const uploadFileDialog$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
126421
126506
|
__proto__: null,
|
|
126422
126507
|
default: uploadFileDialog
|
|
@@ -126447,7 +126532,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
126447
126532
|
modelKey: {}
|
|
126448
126533
|
},
|
|
126449
126534
|
emits: ["update:modelValue"],
|
|
126450
|
-
setup(__props, { emit: __emit }) {
|
|
126535
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
126451
126536
|
const props = __props;
|
|
126452
126537
|
const emit = __emit;
|
|
126453
126538
|
const inputRef = ref();
|
|
@@ -126593,6 +126678,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
126593
126678
|
function preview(item) {
|
|
126594
126679
|
previewUrl.value = AssetHelper.resolveUrl(item.url) || item.preview || "";
|
|
126595
126680
|
}
|
|
126681
|
+
function hasUploading() {
|
|
126682
|
+
return fileList.value.some((i) => i.status === "uploading");
|
|
126683
|
+
}
|
|
126684
|
+
function cancelUploading() {
|
|
126685
|
+
fileList.value.forEach((item) => {
|
|
126686
|
+
if (item.status === "uploading" && item.controller) {
|
|
126687
|
+
item.controller.abort();
|
|
126688
|
+
item.controller = void 0;
|
|
126689
|
+
}
|
|
126690
|
+
});
|
|
126691
|
+
}
|
|
126692
|
+
__expose({
|
|
126693
|
+
hasUploading,
|
|
126694
|
+
cancelUploading
|
|
126695
|
+
});
|
|
126596
126696
|
return (_ctx, _cache) => {
|
|
126597
126697
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
126598
126698
|
createElementVNode("div", _hoisted_2$1, [
|
|
@@ -126671,7 +126771,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
126671
126771
|
};
|
|
126672
126772
|
}
|
|
126673
126773
|
});
|
|
126674
|
-
const BaseUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
|
126774
|
+
const BaseUploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-815ffe19"]]);
|
|
126675
126775
|
const _hoisted_1$1 = { class: "word-upload-image-dialog" };
|
|
126676
126776
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
126677
126777
|
__name: "upload-image-dialog",
|
|
@@ -126685,6 +126785,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
126685
126785
|
const defaultImageAccept = ["jpg", "jpeg", "png", "bmp"];
|
|
126686
126786
|
const props = __props;
|
|
126687
126787
|
const innerValue = ref(props.modelValue);
|
|
126788
|
+
const uploadRef = ref();
|
|
126688
126789
|
const { runtimeValuePath, widgetProps } = useWidgetMeta(props.widget);
|
|
126689
126790
|
const uploadConfig = computed(() => {
|
|
126690
126791
|
const item = widgetProps.value;
|
|
@@ -126700,14 +126801,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
126700
126801
|
};
|
|
126701
126802
|
});
|
|
126702
126803
|
function onSave() {
|
|
126804
|
+
if (uploadRef.value?.hasUploading?.()) {
|
|
126805
|
+
GctMessage.warning("请等待图片上传完成后再点击确定");
|
|
126806
|
+
return;
|
|
126807
|
+
}
|
|
126703
126808
|
return setValue(innerValue.value, runtimeValuePath.value);
|
|
126704
126809
|
}
|
|
126810
|
+
function cancelUploading() {
|
|
126811
|
+
uploadRef.value?.cancelUploading?.();
|
|
126812
|
+
}
|
|
126813
|
+
onBeforeUnmount(() => {
|
|
126814
|
+
cancelUploading();
|
|
126815
|
+
});
|
|
126705
126816
|
__expose({
|
|
126706
|
-
save: onSave
|
|
126817
|
+
save: onSave,
|
|
126818
|
+
cancelUploading
|
|
126707
126819
|
});
|
|
126708
126820
|
return (_ctx, _cache) => {
|
|
126709
126821
|
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
126710
126822
|
createVNode(BaseUploadImage, mergeProps({
|
|
126823
|
+
ref_key: "uploadRef",
|
|
126824
|
+
ref: uploadRef,
|
|
126711
126825
|
"model-value": innerValue.value,
|
|
126712
126826
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => innerValue.value = $event)
|
|
126713
126827
|
}, uploadConfig.value), null, 16, ["model-value"])
|
|
@@ -126715,7 +126829,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
126715
126829
|
};
|
|
126716
126830
|
}
|
|
126717
126831
|
});
|
|
126718
|
-
const uploadImageDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
126832
|
+
const uploadImageDialog = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-dc7fc462"]]);
|
|
126719
126833
|
const uploadImageDialog$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
126720
126834
|
__proto__: null,
|
|
126721
126835
|
default: uploadImageDialog
|
|
@@ -11,6 +11,7 @@ type __VLS_Props = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
13
13
|
onSave: () => Promise<any>;
|
|
14
|
+
cancelUploading: () => void;
|
|
14
15
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
15
16
|
dialogRef: unknown;
|
|
16
17
|
}, HTMLDivElement>;
|
|
@@ -5,7 +5,12 @@ type __VLS_Props = {
|
|
|
5
5
|
accept?: string[];
|
|
6
6
|
modelKey: string;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
8
|
+
declare function hasUploading(): boolean;
|
|
9
|
+
declare function cancelUploading(): void;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
+
hasUploading: typeof hasUploading;
|
|
12
|
+
cancelUploading: typeof cancelUploading;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
14
|
"update:modelValue": (...args: any[]) => void;
|
|
10
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
16
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -10,8 +10,45 @@ type __VLS_Props = {
|
|
|
10
10
|
};
|
|
11
11
|
declare function onSave(): {
|
|
12
12
|
[x: string]: any;
|
|
13
|
-
};
|
|
13
|
+
} | undefined;
|
|
14
|
+
declare function cancelUploading(): void;
|
|
14
15
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
15
16
|
save: typeof onSave;
|
|
16
|
-
|
|
17
|
+
cancelUploading: typeof cancelUploading;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
20
|
+
modelValue?: string;
|
|
21
|
+
maxCount?: number;
|
|
22
|
+
maxSize?: number;
|
|
23
|
+
accept?: string[];
|
|
24
|
+
modelKey: string;
|
|
25
|
+
}> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
hasUploading: () => boolean;
|
|
29
|
+
cancelUploading: () => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (...args: any[]) => void;
|
|
32
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
33
|
+
inputRef: HTMLInputElement;
|
|
34
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<{
|
|
42
|
+
modelValue?: string;
|
|
43
|
+
maxCount?: number;
|
|
44
|
+
maxSize?: number;
|
|
45
|
+
accept?: string[];
|
|
46
|
+
modelKey: string;
|
|
47
|
+
}> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
hasUploading: () => boolean;
|
|
51
|
+
cancelUploading: () => void;
|
|
52
|
+
}, {}, {}, {}, {}> | null;
|
|
53
|
+
}, HTMLDivElement>;
|
|
17
54
|
export default _default;
|
|
@@ -5,7 +5,12 @@ type __VLS_Props = {
|
|
|
5
5
|
accept?: string[];
|
|
6
6
|
modelKey: string;
|
|
7
7
|
};
|
|
8
|
-
declare
|
|
8
|
+
declare function hasUploading(): boolean;
|
|
9
|
+
declare function cancelUploading(): void;
|
|
10
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
11
|
+
hasUploading: typeof hasUploading;
|
|
12
|
+
cancelUploading: typeof cancelUploading;
|
|
13
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
14
|
"update:modelValue": (...args: any[]) => void;
|
|
10
15
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
16
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
@@ -10,8 +10,45 @@ type __VLS_Props = {
|
|
|
10
10
|
};
|
|
11
11
|
declare function onSave(): {
|
|
12
12
|
[x: string]: any;
|
|
13
|
-
};
|
|
13
|
+
} | undefined;
|
|
14
|
+
declare function cancelUploading(): void;
|
|
14
15
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
15
16
|
save: typeof onSave;
|
|
16
|
-
|
|
17
|
+
cancelUploading: typeof cancelUploading;
|
|
18
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
19
|
+
uploadRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
20
|
+
modelValue?: string;
|
|
21
|
+
maxCount?: number;
|
|
22
|
+
maxSize?: number;
|
|
23
|
+
accept?: string[];
|
|
24
|
+
modelKey: string;
|
|
25
|
+
}> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
hasUploading: () => boolean;
|
|
29
|
+
cancelUploading: () => void;
|
|
30
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
|
+
"update:modelValue": (...args: any[]) => void;
|
|
32
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
33
|
+
inputRef: HTMLInputElement;
|
|
34
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<{
|
|
42
|
+
modelValue?: string;
|
|
43
|
+
maxCount?: number;
|
|
44
|
+
maxSize?: number;
|
|
45
|
+
accept?: string[];
|
|
46
|
+
modelKey: string;
|
|
47
|
+
}> & Readonly<{
|
|
48
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
hasUploading: () => boolean;
|
|
51
|
+
cancelUploading: () => void;
|
|
52
|
+
}, {}, {}, {}, {}> | null;
|
|
53
|
+
}, HTMLDivElement>;
|
|
17
54
|
export default _default;
|
package/dist/word.css
CHANGED
|
@@ -6710,19 +6710,19 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
6710
6710
|
.message-move[data-v-284e47b1] {
|
|
6711
6711
|
transition: transform 0.25s ease;
|
|
6712
6712
|
}
|
|
6713
|
-
.gct-modal-mask[data-v-
|
|
6713
|
+
.gct-modal-mask[data-v-aba80473] {
|
|
6714
6714
|
position: fixed;
|
|
6715
6715
|
inset: 0;
|
|
6716
6716
|
background: rgba(0, 0, 0, 0.15);
|
|
6717
6717
|
}
|
|
6718
|
-
.gct-modal-wrapper[data-v-
|
|
6718
|
+
.gct-modal-wrapper[data-v-aba80473] {
|
|
6719
6719
|
position: fixed;
|
|
6720
6720
|
inset: 0;
|
|
6721
6721
|
display: flex;
|
|
6722
6722
|
align-items: center;
|
|
6723
6723
|
justify-content: center;
|
|
6724
6724
|
}
|
|
6725
|
-
.gct-modal-wrapper .gct-modal[data-v-
|
|
6725
|
+
.gct-modal-wrapper .gct-modal[data-v-aba80473] {
|
|
6726
6726
|
background: #fff;
|
|
6727
6727
|
border-radius: 8px;
|
|
6728
6728
|
display: flex;
|
|
@@ -6730,21 +6730,21 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
6730
6730
|
max-height: 80vh;
|
|
6731
6731
|
overflow: hidden;
|
|
6732
6732
|
}
|
|
6733
|
-
.gct-modal-wrapper .gct-modal .modal-header[data-v-
|
|
6734
|
-
.gct-modal-wrapper .gct-modal .modal-footer[data-v-
|
|
6733
|
+
.gct-modal-wrapper .gct-modal .modal-header[data-v-aba80473],
|
|
6734
|
+
.gct-modal-wrapper .gct-modal .modal-footer[data-v-aba80473] {
|
|
6735
6735
|
display: flex;
|
|
6736
6736
|
align-items: center;
|
|
6737
6737
|
padding: 12px 16px;
|
|
6738
6738
|
flex-shrink: 0;
|
|
6739
6739
|
}
|
|
6740
|
-
.gct-modal-wrapper .gct-modal .modal-header[data-v-
|
|
6740
|
+
.gct-modal-wrapper .gct-modal .modal-header[data-v-aba80473] {
|
|
6741
6741
|
border-bottom: 1px solid #eee;
|
|
6742
6742
|
justify-content: space-between;
|
|
6743
6743
|
}
|
|
6744
|
-
.gct-modal-wrapper .gct-modal .modal-header .header-title[data-v-
|
|
6744
|
+
.gct-modal-wrapper .gct-modal .modal-header .header-title[data-v-aba80473] {
|
|
6745
6745
|
font-weight: 500;
|
|
6746
6746
|
}
|
|
6747
|
-
.gct-modal-wrapper .gct-modal .modal-header .header-close-button[data-v-
|
|
6747
|
+
.gct-modal-wrapper .gct-modal .modal-header .header-close-button[data-v-aba80473] {
|
|
6748
6748
|
width: 28px;
|
|
6749
6749
|
height: 28px;
|
|
6750
6750
|
border: none;
|
|
@@ -6755,36 +6755,36 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
6755
6755
|
border-radius: 2px;
|
|
6756
6756
|
color: #999;
|
|
6757
6757
|
}
|
|
6758
|
-
.gct-modal-wrapper .gct-modal .modal-header .header-close-button[data-v-
|
|
6758
|
+
.gct-modal-wrapper .gct-modal .modal-header .header-close-button[data-v-aba80473]:hover {
|
|
6759
6759
|
background-color: #efefef;
|
|
6760
6760
|
}
|
|
6761
|
-
.gct-modal-wrapper .gct-modal .modal-body[data-v-
|
|
6761
|
+
.gct-modal-wrapper .gct-modal .modal-body[data-v-aba80473] {
|
|
6762
6762
|
padding: 16px;
|
|
6763
6763
|
overflow: auto;
|
|
6764
6764
|
flex: 1;
|
|
6765
6765
|
}
|
|
6766
|
-
.gct-modal-wrapper .gct-modal .modal-footer[data-v-
|
|
6766
|
+
.gct-modal-wrapper .gct-modal .modal-footer[data-v-aba80473] {
|
|
6767
6767
|
border-top: 1px solid #eee;
|
|
6768
6768
|
justify-content: flex-end;
|
|
6769
6769
|
}
|
|
6770
|
-
.gct-modal-wrapper .gct-modal .modal-footer .gct-button ~ .gct-button[data-v-
|
|
6770
|
+
.gct-modal-wrapper .gct-modal .modal-footer .gct-button ~ .gct-button[data-v-aba80473] {
|
|
6771
6771
|
margin-left: 10px;
|
|
6772
6772
|
}
|
|
6773
6773
|
/* animations */
|
|
6774
|
-
.gct-modal-mask-enter-active[data-v-
|
|
6775
|
-
.gct-modal-mask-leave-active[data-v-
|
|
6774
|
+
.gct-modal-mask-enter-active[data-v-aba80473],
|
|
6775
|
+
.gct-modal-mask-leave-active[data-v-aba80473] {
|
|
6776
6776
|
transition: opacity 0.2s;
|
|
6777
6777
|
}
|
|
6778
|
-
.gct-modal-mask-enter-from[data-v-
|
|
6779
|
-
.gct-modal-mask-leave-to[data-v-
|
|
6778
|
+
.gct-modal-mask-enter-from[data-v-aba80473],
|
|
6779
|
+
.gct-modal-mask-leave-to[data-v-aba80473] {
|
|
6780
6780
|
opacity: 0;
|
|
6781
6781
|
}
|
|
6782
|
-
.gct-modal-wrapper-enter-active[data-v-
|
|
6783
|
-
.gct-modal-wrapper-leave-active[data-v-
|
|
6782
|
+
.gct-modal-wrapper-enter-active[data-v-aba80473],
|
|
6783
|
+
.gct-modal-wrapper-leave-active[data-v-aba80473] {
|
|
6784
6784
|
transition: all 0.2s ease;
|
|
6785
6785
|
}
|
|
6786
|
-
.gct-modal-wrapper-enter-from[data-v-
|
|
6787
|
-
.gct-modal-wrapper-leave-to[data-v-
|
|
6786
|
+
.gct-modal-wrapper-enter-from[data-v-aba80473],
|
|
6787
|
+
.gct-modal-wrapper-leave-to[data-v-aba80473] {
|
|
6788
6788
|
opacity: 0;
|
|
6789
6789
|
transform: scale(0.95);
|
|
6790
6790
|
}
|
|
@@ -7680,13 +7680,13 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
7680
7680
|
padding: 16px;
|
|
7681
7681
|
min-height: 100px;
|
|
7682
7682
|
}
|
|
7683
|
-
.dialog-container[data-v-
|
|
7683
|
+
.dialog-container[data-v-0c78d10e] {
|
|
7684
7684
|
background-color: #fff;
|
|
7685
7685
|
overflow: hidden;
|
|
7686
7686
|
width: 100%;
|
|
7687
7687
|
height: 100%;
|
|
7688
7688
|
}
|
|
7689
|
-
.widget-container-action[data-v-
|
|
7689
|
+
.widget-container-action[data-v-327990bf] {
|
|
7690
7690
|
position: absolute;
|
|
7691
7691
|
inset: 0;
|
|
7692
7692
|
z-index: 999;
|
|
@@ -7694,7 +7694,7 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
7694
7694
|
height: 0;
|
|
7695
7695
|
pointer-events: all;
|
|
7696
7696
|
}
|
|
7697
|
-
.picker-trigger[data-v-
|
|
7697
|
+
.picker-trigger[data-v-327990bf] {
|
|
7698
7698
|
width: 100%;
|
|
7699
7699
|
height: 100%;
|
|
7700
7700
|
display: flex;
|
|
@@ -7705,14 +7705,14 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
7705
7705
|
box-sizing: border-box;
|
|
7706
7706
|
border-radius: 2px;
|
|
7707
7707
|
}
|
|
7708
|
-
.picker-trigger.disabled[data-v-
|
|
7708
|
+
.picker-trigger.disabled[data-v-327990bf] {
|
|
7709
7709
|
cursor: not-allowed;
|
|
7710
7710
|
border: 1px solid rgba(13, 13, 13, 0.12);
|
|
7711
7711
|
}
|
|
7712
|
-
.picker-trigger.disabled .gct-icon[data-v-
|
|
7712
|
+
.picker-trigger.disabled .gct-icon[data-v-327990bf] {
|
|
7713
7713
|
color: rgba(0, 0, 0, 0.25);
|
|
7714
7714
|
}
|
|
7715
|
-
.picker-trigger.readonly[data-v-
|
|
7715
|
+
.picker-trigger.readonly[data-v-327990bf] {
|
|
7716
7716
|
cursor: default;
|
|
7717
7717
|
}
|
|
7718
7718
|
.resize-box[data-v-788ab62c] {
|
|
@@ -11937,14 +11937,14 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11937
11937
|
gap: 12px;
|
|
11938
11938
|
padding-bottom: 12px;
|
|
11939
11939
|
}
|
|
11940
|
-
.word-base-upload-modal[data-v-
|
|
11940
|
+
.word-base-upload-modal[data-v-7f2e8268] {
|
|
11941
11941
|
position: relative;
|
|
11942
11942
|
width: 100%;
|
|
11943
11943
|
}
|
|
11944
|
-
.word-base-upload-modal .upload-dragger[data-v-
|
|
11944
|
+
.word-base-upload-modal .upload-dragger[data-v-7f2e8268] {
|
|
11945
11945
|
position: relative;
|
|
11946
11946
|
}
|
|
11947
|
-
.word-base-upload-modal .upload-dragger .upload[data-v-
|
|
11947
|
+
.word-base-upload-modal .upload-dragger .upload[data-v-7f2e8268] {
|
|
11948
11948
|
border: 1px dashed #d9d9d9;
|
|
11949
11949
|
background: #f7f8fa;
|
|
11950
11950
|
border-radius: 2px;
|
|
@@ -11954,53 +11954,53 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
11954
11954
|
text-align: center;
|
|
11955
11955
|
transition: border-color 0.3s;
|
|
11956
11956
|
}
|
|
11957
|
-
.word-base-upload-modal .upload-dragger .upload[data-v-
|
|
11957
|
+
.word-base-upload-modal .upload-dragger .upload[data-v-7f2e8268]:hover {
|
|
11958
11958
|
border-color: #026ac8;
|
|
11959
11959
|
}
|
|
11960
|
-
.word-base-upload-modal .upload-dragger .upload.dragover[data-v-
|
|
11960
|
+
.word-base-upload-modal .upload-dragger .upload.dragover[data-v-7f2e8268] {
|
|
11961
11961
|
border-color: #026ac8;
|
|
11962
11962
|
background: #eef6ff;
|
|
11963
11963
|
}
|
|
11964
|
-
.word-base-upload-modal .upload-dragger .upload .input[data-v-
|
|
11964
|
+
.word-base-upload-modal .upload-dragger .upload .input[data-v-7f2e8268] {
|
|
11965
11965
|
display: none;
|
|
11966
11966
|
}
|
|
11967
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content[data-v-
|
|
11967
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content[data-v-7f2e8268] {
|
|
11968
11968
|
position: relative;
|
|
11969
11969
|
padding: 24px;
|
|
11970
11970
|
}
|
|
11971
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content .icon[data-v-
|
|
11971
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content .icon[data-v-7f2e8268] {
|
|
11972
11972
|
display: flex;
|
|
11973
11973
|
justify-content: center;
|
|
11974
11974
|
align-items: center;
|
|
11975
11975
|
}
|
|
11976
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content .text[data-v-
|
|
11976
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content .text[data-v-7f2e8268] {
|
|
11977
11977
|
margin-top: 4px;
|
|
11978
11978
|
font-size: 14px;
|
|
11979
11979
|
line-height: 24px;
|
|
11980
11980
|
}
|
|
11981
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-
|
|
11981
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-7f2e8268] {
|
|
11982
11982
|
cursor: not-allowed;
|
|
11983
11983
|
background: #fafafa;
|
|
11984
11984
|
border-color: #e5e6eb;
|
|
11985
11985
|
}
|
|
11986
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-
|
|
11986
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-7f2e8268]:hover {
|
|
11987
11987
|
border-color: #e5e6eb;
|
|
11988
11988
|
}
|
|
11989
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled .upload-content[data-v-
|
|
11989
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled .upload-content[data-v-7f2e8268] {
|
|
11990
11990
|
opacity: 0.4;
|
|
11991
11991
|
}
|
|
11992
|
-
.word-base-upload-modal .upload-dragger .scrollbar[data-v-
|
|
11992
|
+
.word-base-upload-modal .upload-dragger .scrollbar[data-v-7f2e8268] {
|
|
11993
11993
|
position: relative;
|
|
11994
11994
|
margin-top: 8px;
|
|
11995
11995
|
}
|
|
11996
|
-
.word-base-upload-modal .upload-dragger .file-box[data-v-
|
|
11996
|
+
.word-base-upload-modal .upload-dragger .file-box[data-v-7f2e8268] {
|
|
11997
11997
|
display: flex;
|
|
11998
11998
|
flex-direction: column;
|
|
11999
11999
|
gap: 8px;
|
|
12000
12000
|
padding: 8px 0;
|
|
12001
12001
|
max-height: 200px;
|
|
12002
12002
|
}
|
|
12003
|
-
.word-base-upload-modal .upload-dragger .file-item[data-v-
|
|
12003
|
+
.word-base-upload-modal .upload-dragger .file-item[data-v-7f2e8268] {
|
|
12004
12004
|
position: relative;
|
|
12005
12005
|
padding: 8px 12px 8px 4px;
|
|
12006
12006
|
border: 1px solid #e5e6eb;
|
|
@@ -12009,23 +12009,23 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12009
12009
|
display: flex;
|
|
12010
12010
|
flex-direction: column;
|
|
12011
12011
|
}
|
|
12012
|
-
.word-base-upload-modal .upload-dragger .file-info[data-v-
|
|
12012
|
+
.word-base-upload-modal .upload-dragger .file-info[data-v-7f2e8268] {
|
|
12013
12013
|
display: flex;
|
|
12014
12014
|
align-items: center;
|
|
12015
12015
|
}
|
|
12016
|
-
.word-base-upload-modal .upload-dragger .svg-icon[data-v-
|
|
12016
|
+
.word-base-upload-modal .upload-dragger .svg-icon[data-v-7f2e8268] {
|
|
12017
12017
|
width: 42px;
|
|
12018
12018
|
height: 42px;
|
|
12019
12019
|
object-fit: cover;
|
|
12020
12020
|
margin-right: 4px;
|
|
12021
12021
|
}
|
|
12022
|
-
.word-base-upload-modal .upload-dragger .meta[data-v-
|
|
12022
|
+
.word-base-upload-modal .upload-dragger .meta[data-v-7f2e8268] {
|
|
12023
12023
|
display: flex;
|
|
12024
12024
|
flex-direction: column;
|
|
12025
12025
|
overflow: hidden;
|
|
12026
12026
|
padding-right: 24px;
|
|
12027
12027
|
}
|
|
12028
|
-
.word-base-upload-modal .upload-dragger .file-name[data-v-
|
|
12028
|
+
.word-base-upload-modal .upload-dragger .file-name[data-v-7f2e8268] {
|
|
12029
12029
|
font-size: 14px;
|
|
12030
12030
|
color: #333;
|
|
12031
12031
|
line-height: 22px;
|
|
@@ -12033,38 +12033,38 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12033
12033
|
text-overflow: ellipsis;
|
|
12034
12034
|
white-space: nowrap;
|
|
12035
12035
|
}
|
|
12036
|
-
.word-base-upload-modal .upload-dragger .file-name.clickable[data-v-
|
|
12036
|
+
.word-base-upload-modal .upload-dragger .file-name.clickable[data-v-7f2e8268] {
|
|
12037
12037
|
cursor: pointer;
|
|
12038
12038
|
}
|
|
12039
|
-
.word-base-upload-modal .upload-dragger .file-name.clickable[data-v-
|
|
12039
|
+
.word-base-upload-modal .upload-dragger .file-name.clickable[data-v-7f2e8268]:hover {
|
|
12040
12040
|
color: #1677ff;
|
|
12041
12041
|
text-decoration: underline;
|
|
12042
12042
|
}
|
|
12043
|
-
.word-base-upload-modal .upload-dragger .file-size[data-v-
|
|
12043
|
+
.word-base-upload-modal .upload-dragger .file-size[data-v-7f2e8268] {
|
|
12044
12044
|
font-size: 12px;
|
|
12045
12045
|
color: #86909c;
|
|
12046
12046
|
margin-top: 2px;
|
|
12047
12047
|
line-height: 20px;
|
|
12048
12048
|
}
|
|
12049
|
-
.word-base-upload-modal .upload-dragger .status[data-v-
|
|
12049
|
+
.word-base-upload-modal .upload-dragger .status[data-v-7f2e8268] {
|
|
12050
12050
|
font-size: 12px;
|
|
12051
12051
|
color: #f53f3f;
|
|
12052
12052
|
line-height: 20px;
|
|
12053
12053
|
margin-top: 4px;
|
|
12054
12054
|
}
|
|
12055
|
-
.word-base-upload-modal .upload-dragger .progress[data-v-
|
|
12055
|
+
.word-base-upload-modal .upload-dragger .progress[data-v-7f2e8268] {
|
|
12056
12056
|
margin-top: 6px;
|
|
12057
12057
|
width: 100%;
|
|
12058
12058
|
height: 4px;
|
|
12059
12059
|
background: rgba(0, 0, 0, 0.06);
|
|
12060
12060
|
}
|
|
12061
|
-
.word-base-upload-modal .upload-dragger .progress-inner[data-v-
|
|
12061
|
+
.word-base-upload-modal .upload-dragger .progress-inner[data-v-7f2e8268] {
|
|
12062
12062
|
height: 100%;
|
|
12063
12063
|
background: #026ac8;
|
|
12064
12064
|
border-radius: 100px;
|
|
12065
12065
|
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
|
12066
12066
|
}
|
|
12067
|
-
.word-base-upload-modal .upload-dragger .delete[data-v-
|
|
12067
|
+
.word-base-upload-modal .upload-dragger .delete[data-v-7f2e8268] {
|
|
12068
12068
|
position: absolute;
|
|
12069
12069
|
top: 9px;
|
|
12070
12070
|
right: 8px;
|
|
@@ -12077,20 +12077,20 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12077
12077
|
justify-content: center;
|
|
12078
12078
|
cursor: pointer;
|
|
12079
12079
|
}
|
|
12080
|
-
.word-upload-file-dialog[data-v-
|
|
12080
|
+
.word-upload-file-dialog[data-v-cea10c2d] {
|
|
12081
12081
|
position: relative;
|
|
12082
12082
|
overflow: hidden;
|
|
12083
12083
|
width: 100%;
|
|
12084
12084
|
height: 100%;
|
|
12085
12085
|
}
|
|
12086
|
-
.word-base-upload-modal[data-v-
|
|
12086
|
+
.word-base-upload-modal[data-v-815ffe19] {
|
|
12087
12087
|
position: relative;
|
|
12088
12088
|
width: 100%;
|
|
12089
12089
|
}
|
|
12090
|
-
.word-base-upload-modal .upload-dragger[data-v-
|
|
12090
|
+
.word-base-upload-modal .upload-dragger[data-v-815ffe19] {
|
|
12091
12091
|
position: relative;
|
|
12092
12092
|
}
|
|
12093
|
-
.word-base-upload-modal .upload-dragger .upload[data-v-
|
|
12093
|
+
.word-base-upload-modal .upload-dragger .upload[data-v-815ffe19] {
|
|
12094
12094
|
border: 1px dashed #d9d9d9;
|
|
12095
12095
|
background: #f7f8fa;
|
|
12096
12096
|
border-radius: 2px;
|
|
@@ -12100,42 +12100,42 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12100
12100
|
text-align: center;
|
|
12101
12101
|
transition: border-color 0.3s;
|
|
12102
12102
|
}
|
|
12103
|
-
.word-base-upload-modal .upload-dragger .upload[data-v-
|
|
12103
|
+
.word-base-upload-modal .upload-dragger .upload[data-v-815ffe19]:hover {
|
|
12104
12104
|
border-color: #026ac8;
|
|
12105
12105
|
}
|
|
12106
|
-
.word-base-upload-modal .upload-dragger .upload.dragover[data-v-
|
|
12106
|
+
.word-base-upload-modal .upload-dragger .upload.dragover[data-v-815ffe19] {
|
|
12107
12107
|
border-color: #026ac8;
|
|
12108
12108
|
background: #eef6ff;
|
|
12109
12109
|
}
|
|
12110
|
-
.word-base-upload-modal .upload-dragger .upload .input[data-v-
|
|
12110
|
+
.word-base-upload-modal .upload-dragger .upload .input[data-v-815ffe19] {
|
|
12111
12111
|
display: none;
|
|
12112
12112
|
}
|
|
12113
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content[data-v-
|
|
12113
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content[data-v-815ffe19] {
|
|
12114
12114
|
position: relative;
|
|
12115
12115
|
padding: 24px;
|
|
12116
12116
|
}
|
|
12117
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content .icon[data-v-
|
|
12117
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content .icon[data-v-815ffe19] {
|
|
12118
12118
|
display: flex;
|
|
12119
12119
|
justify-content: center;
|
|
12120
12120
|
align-items: center;
|
|
12121
12121
|
}
|
|
12122
|
-
.word-base-upload-modal .upload-dragger .upload .upload-content .text[data-v-
|
|
12122
|
+
.word-base-upload-modal .upload-dragger .upload .upload-content .text[data-v-815ffe19] {
|
|
12123
12123
|
margin-top: 4px;
|
|
12124
12124
|
font-size: 14px;
|
|
12125
12125
|
line-height: 24px;
|
|
12126
12126
|
}
|
|
12127
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-
|
|
12127
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-815ffe19] {
|
|
12128
12128
|
cursor: not-allowed;
|
|
12129
12129
|
background: #fafafa;
|
|
12130
12130
|
border-color: #e5e6eb;
|
|
12131
12131
|
}
|
|
12132
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-
|
|
12132
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled[data-v-815ffe19]:hover {
|
|
12133
12133
|
border-color: #e5e6eb;
|
|
12134
12134
|
}
|
|
12135
|
-
.word-base-upload-modal .upload-dragger .upload.is-disabled .upload-content[data-v-
|
|
12135
|
+
.word-base-upload-modal .upload-dragger .upload.is-disabled .upload-content[data-v-815ffe19] {
|
|
12136
12136
|
opacity: 0.4;
|
|
12137
12137
|
}
|
|
12138
|
-
.word-base-upload-modal .upload-dragger .img-box[data-v-
|
|
12138
|
+
.word-base-upload-modal .upload-dragger .img-box[data-v-815ffe19] {
|
|
12139
12139
|
display: flex;
|
|
12140
12140
|
gap: 12px;
|
|
12141
12141
|
flex-wrap: wrap;
|
|
@@ -12143,16 +12143,16 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12143
12143
|
padding-top: 8px;
|
|
12144
12144
|
padding-bottom: 8px;
|
|
12145
12145
|
}
|
|
12146
|
-
.word-base-upload-modal .upload-dragger .scrollbar[data-v-
|
|
12146
|
+
.word-base-upload-modal .upload-dragger .scrollbar[data-v-815ffe19] {
|
|
12147
12147
|
position: relative;
|
|
12148
12148
|
margin-top: 8px;
|
|
12149
12149
|
}
|
|
12150
|
-
.word-base-upload-modal .upload-dragger .img-item[data-v-
|
|
12150
|
+
.word-base-upload-modal .upload-dragger .img-item[data-v-815ffe19] {
|
|
12151
12151
|
width: 80px;
|
|
12152
12152
|
height: 80px;
|
|
12153
12153
|
position: relative;
|
|
12154
12154
|
}
|
|
12155
|
-
.word-base-upload-modal .upload-dragger .img[data-v-
|
|
12155
|
+
.word-base-upload-modal .upload-dragger .img[data-v-815ffe19] {
|
|
12156
12156
|
display: block;
|
|
12157
12157
|
width: 100%;
|
|
12158
12158
|
height: 100%;
|
|
@@ -12161,7 +12161,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12161
12161
|
cursor: pointer;
|
|
12162
12162
|
background-color: #f7f8fa;
|
|
12163
12163
|
}
|
|
12164
|
-
.word-base-upload-modal .upload-dragger .delete[data-v-
|
|
12164
|
+
.word-base-upload-modal .upload-dragger .delete[data-v-815ffe19] {
|
|
12165
12165
|
position: absolute;
|
|
12166
12166
|
top: -6px;
|
|
12167
12167
|
right: -6px;
|
|
@@ -12174,7 +12174,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12174
12174
|
justify-content: center;
|
|
12175
12175
|
cursor: pointer;
|
|
12176
12176
|
}
|
|
12177
|
-
.word-base-upload-modal .upload-dragger .progress[data-v-
|
|
12177
|
+
.word-base-upload-modal .upload-dragger .progress[data-v-815ffe19] {
|
|
12178
12178
|
position: absolute;
|
|
12179
12179
|
bottom: 0;
|
|
12180
12180
|
left: 0;
|
|
@@ -12182,14 +12182,14 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12182
12182
|
height: 2px;
|
|
12183
12183
|
background: rgba(0, 0, 0, 0.06);
|
|
12184
12184
|
}
|
|
12185
|
-
.word-base-upload-modal .upload-dragger .progress-inner[data-v-
|
|
12185
|
+
.word-base-upload-modal .upload-dragger .progress-inner[data-v-815ffe19] {
|
|
12186
12186
|
height: 100%;
|
|
12187
12187
|
background: #026ac8;
|
|
12188
12188
|
position: relative;
|
|
12189
12189
|
border-radius: 100px;
|
|
12190
12190
|
transition: all 0.3s cubic-bezier(0.78, 0.14, 0.15, 0.86);
|
|
12191
12191
|
}
|
|
12192
|
-
.word-base-upload-modal .upload-dragger .preview-mask[data-v-
|
|
12192
|
+
.word-base-upload-modal .upload-dragger .preview-mask[data-v-815ffe19] {
|
|
12193
12193
|
position: fixed;
|
|
12194
12194
|
inset: 0;
|
|
12195
12195
|
background: rgba(0, 0, 0, 0.4);
|
|
@@ -12198,11 +12198,11 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
12198
12198
|
justify-content: center;
|
|
12199
12199
|
z-index: 9999;
|
|
12200
12200
|
}
|
|
12201
|
-
.word-base-upload-modal .upload-dragger .preview-mask img[data-v-
|
|
12201
|
+
.word-base-upload-modal .upload-dragger .preview-mask img[data-v-815ffe19] {
|
|
12202
12202
|
max-width: 80%;
|
|
12203
12203
|
max-height: 80%;
|
|
12204
12204
|
}
|
|
12205
|
-
.word-upload-image-dialog[data-v-
|
|
12205
|
+
.word-upload-image-dialog[data-v-dc7fc462] {
|
|
12206
12206
|
position: relative;
|
|
12207
12207
|
overflow: hidden;
|
|
12208
12208
|
width: 100%;
|