@gct-paas/word 0.1.8 → 0.1.9
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/index.es.js
CHANGED
|
@@ -22606,7 +22606,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
22606
22606
|
}, [
|
|
22607
22607
|
createElementVNode("div", {
|
|
22608
22608
|
class: "widget-container-action",
|
|
22609
|
-
style: normalizeStyle(
|
|
22609
|
+
style: normalizeStyle(__props.actionPos)
|
|
22610
22610
|
}, [
|
|
22611
22611
|
createVNode(OverlayLayer, {
|
|
22612
22612
|
modelId: __props.modelId,
|
|
@@ -22623,7 +22623,7 @@ const _sfc_main$1V = /* @__PURE__ */ defineComponent({
|
|
|
22623
22623
|
};
|
|
22624
22624
|
}
|
|
22625
22625
|
});
|
|
22626
|
-
const OverlayDesign = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["__scopeId", "data-v-
|
|
22626
|
+
const OverlayDesign = /* @__PURE__ */ _export_sfc(_sfc_main$1V, [["__scopeId", "data-v-37865c06"]]);
|
|
22627
22627
|
function _extends() {
|
|
22628
22628
|
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
22629
22629
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -43021,8 +43021,6 @@ const createValidatorContext = (ctx) => {
|
|
|
43021
43021
|
getCurrentFormData
|
|
43022
43022
|
};
|
|
43023
43023
|
};
|
|
43024
|
-
const COMMENT_HEIGHT = 60;
|
|
43025
|
-
const GAP = 12;
|
|
43026
43024
|
const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
43027
43025
|
__name: "overlay-render",
|
|
43028
43026
|
props: {
|
|
@@ -43061,24 +43059,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
43061
43059
|
});
|
|
43062
43060
|
onBeforeUnmount(() => {
|
|
43063
43061
|
});
|
|
43064
|
-
const fields = ref([
|
|
43065
|
-
{ id: "f1", left: 407, top: 447, width: 80, height: 30 },
|
|
43066
|
-
{ id: "f2", left: 526, top: 566, width: 80, height: 30 },
|
|
43067
|
-
{ id: "f3", left: 644, top: 566, width: 80, height: 30 },
|
|
43068
|
-
{ id: "f4", left: 817, top: 566, width: 80, height: 30 },
|
|
43069
|
-
{ id: "f5", left: 300, top: 600, width: 80, height: 30 },
|
|
43070
|
-
{ id: "f6", left: 321, top: 635, width: 80, height: 30 },
|
|
43071
|
-
{ id: "f7", left: 620, top: 635, width: 80, height: 30 }
|
|
43072
|
-
]);
|
|
43073
|
-
const comments = computed(() => {
|
|
43074
|
-
return fields.value.slice().sort((a, b2) => a.top - b2.top).map((field, index2) => ({
|
|
43075
|
-
id: field.id,
|
|
43076
|
-
fieldId: field.id,
|
|
43077
|
-
top: index2 * (COMMENT_HEIGHT + GAP)
|
|
43078
|
-
}));
|
|
43079
|
-
});
|
|
43080
43062
|
const showFormItem = computed(() => {
|
|
43081
|
-
console.log("comments", comments.value);
|
|
43082
43063
|
if (!props.isLastWidgetId) {
|
|
43083
43064
|
return false;
|
|
43084
43065
|
}
|
|
@@ -43114,9 +43095,9 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
43114
43095
|
validator2.validate(
|
|
43115
43096
|
formState,
|
|
43116
43097
|
{ first: false, formData: { aaa: 111, bbb: "222" } },
|
|
43117
|
-
(errors,
|
|
43098
|
+
(errors, fields) => {
|
|
43118
43099
|
console.log("errors", errors);
|
|
43119
|
-
console.log("fields",
|
|
43100
|
+
console.log("fields", fields);
|
|
43120
43101
|
if (errors?.length) {
|
|
43121
43102
|
const { message } = errors[0];
|
|
43122
43103
|
reject({
|
|
@@ -43189,7 +43170,7 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
43189
43170
|
}, [
|
|
43190
43171
|
createElementVNode("div", {
|
|
43191
43172
|
class: "widget-container-action",
|
|
43192
|
-
style: normalizeStyle(
|
|
43173
|
+
style: normalizeStyle(__props.actionPos)
|
|
43193
43174
|
}, [
|
|
43194
43175
|
unref(isDropdown) && __props.isLastWidgetId ? (openBlock(), createBlock(unref(_sfc_main$2f), {
|
|
43195
43176
|
key: 0,
|
|
@@ -43231,20 +43212,13 @@ const _sfc_main$1R = /* @__PURE__ */ defineComponent({
|
|
|
43231
43212
|
])
|
|
43232
43213
|
]),
|
|
43233
43214
|
_: 1
|
|
43234
|
-
}, 8, ["modelId", "isFirstWidgetId", "isLastWidgetId", "widgetType", "containerStyle"])
|
|
43235
|
-
|
|
43236
|
-
style: normalizeStyle({ left: __props.actionPos.ruleRight, position: "absolute" })
|
|
43237
|
-
}, "1111", 4)
|
|
43238
|
-
], 4),
|
|
43239
|
-
createElementVNode("div", {
|
|
43240
|
-
class: "comment",
|
|
43241
|
-
style: normalizeStyle({ left: __props.actionPos.ruleRight, position: "absolute" })
|
|
43242
|
-
}, " 批注 ", 4)
|
|
43215
|
+
}, 8, ["modelId", "isFirstWidgetId", "isLastWidgetId", "widgetType", "containerStyle"])
|
|
43216
|
+
], 4)
|
|
43243
43217
|
])) : createCommentVNode("", true);
|
|
43244
43218
|
};
|
|
43245
43219
|
}
|
|
43246
43220
|
});
|
|
43247
|
-
const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["__scopeId", "data-v-
|
|
43221
|
+
const OverlayRender = /* @__PURE__ */ _export_sfc(_sfc_main$1R, [["__scopeId", "data-v-90700338"]]);
|
|
43248
43222
|
let activeHoverId = 0;
|
|
43249
43223
|
function useHoverDelay(callback, delay = 120) {
|
|
43250
43224
|
let timer = null;
|
|
@@ -43335,8 +43309,7 @@ const _sfc_main$1Q = /* @__PURE__ */ defineComponent({
|
|
|
43335
43309
|
if (!base) return {};
|
|
43336
43310
|
return {
|
|
43337
43311
|
left: `${containerStyle.value.x + base.leftBase}px`,
|
|
43338
|
-
top: `${containerStyle.value.y + base.topBase}px
|
|
43339
|
-
ruleRight: `${props.doc.pageMaxWidth - base.leftBase - containerStyle.value.x - base.leftBase}px`
|
|
43312
|
+
top: `${containerStyle.value.y + base.topBase}px`
|
|
43340
43313
|
};
|
|
43341
43314
|
});
|
|
43342
43315
|
function onEnter() {
|
|
@@ -57418,7 +57391,6 @@ class SingleTemplateStrategy extends DocRequestStrategy {
|
|
|
57418
57391
|
requestInfo,
|
|
57419
57392
|
fillModeType: this.payload.renderModeType || DocModeTypeConst.Fill,
|
|
57420
57393
|
btnModelType: this.payload.renderModeType || DocModeTypeConst.Fill,
|
|
57421
|
-
paramsConfig: this.props.requestQuery ?? {},
|
|
57422
57394
|
query: this.props.requestQuery ?? {}
|
|
57423
57395
|
};
|
|
57424
57396
|
}
|
|
@@ -57524,7 +57496,6 @@ function useDocumentFactory(props, payload) {
|
|
|
57524
57496
|
console.log(`Document [${id}] selection changed`);
|
|
57525
57497
|
}
|
|
57526
57498
|
});
|
|
57527
|
-
docEngine.value.docInstance.dataManager.setDefaults(defaultDataMap);
|
|
57528
57499
|
docInfo.value = createDocInfo(docEngine.value?.docInstance);
|
|
57529
57500
|
selfInfo.value = requestInfo;
|
|
57530
57501
|
}
|
|
@@ -2,14 +2,13 @@ import { Doc } from '../../../../core';
|
|
|
2
2
|
import { WidgetNode } from '../../types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
modelId: string;
|
|
5
|
-
widget
|
|
5
|
+
widget?: WidgetNode;
|
|
6
6
|
isFirstWidgetId: boolean;
|
|
7
7
|
isLastWidgetId: boolean;
|
|
8
8
|
doc: Doc;
|
|
9
|
-
actionPos
|
|
9
|
+
actionPos?: {
|
|
10
10
|
left?: string;
|
|
11
11
|
top?: string;
|
|
12
|
-
ruleRight?: string;
|
|
13
12
|
};
|
|
14
13
|
containerStyle: {
|
|
15
14
|
x: number;
|
package/dist/word.css
CHANGED
|
@@ -2101,7 +2101,7 @@ input[data-v-2deda526]::placeholder {
|
|
|
2101
2101
|
justify-content: center;
|
|
2102
2102
|
cursor: pointer;
|
|
2103
2103
|
}
|
|
2104
|
-
.widget-container-action[data-v-
|
|
2104
|
+
.widget-container-action[data-v-37865c06] {
|
|
2105
2105
|
position: absolute;
|
|
2106
2106
|
inset: 0;
|
|
2107
2107
|
z-index: 999;
|
|
@@ -2126,7 +2126,7 @@ input[data-v-2deda526]::placeholder {
|
|
|
2126
2126
|
width: 100%;
|
|
2127
2127
|
height: 100%;
|
|
2128
2128
|
}
|
|
2129
|
-
.widget-container-action[data-v-
|
|
2129
|
+
.widget-container-action[data-v-90700338] {
|
|
2130
2130
|
position: absolute;
|
|
2131
2131
|
inset: 0;
|
|
2132
2132
|
z-index: 999;
|
|
@@ -2134,23 +2134,13 @@ input[data-v-2deda526]::placeholder {
|
|
|
2134
2134
|
height: 0;
|
|
2135
2135
|
pointer-events: all;
|
|
2136
2136
|
}
|
|
2137
|
-
.picker-trigger[data-v-
|
|
2137
|
+
.picker-trigger[data-v-90700338] {
|
|
2138
2138
|
width: 100%;
|
|
2139
2139
|
height: 100%;
|
|
2140
2140
|
display: flex;
|
|
2141
2141
|
align-items: center;
|
|
2142
2142
|
justify-content: center;
|
|
2143
2143
|
}
|
|
2144
|
-
.comment[data-v-b526ad9f] {
|
|
2145
|
-
position: absolute;
|
|
2146
|
-
width: 260px;
|
|
2147
|
-
height: 60px;
|
|
2148
|
-
background: #fff;
|
|
2149
|
-
border: 1px solid #ddd;
|
|
2150
|
-
border-radius: 6px;
|
|
2151
|
-
padding: 8px;
|
|
2152
|
-
box-sizing: border-box;
|
|
2153
|
-
}
|
|
2154
2144
|
.resize-box[data-v-ca712696] {
|
|
2155
2145
|
position: absolute;
|
|
2156
2146
|
border: 1px solid #4182d9;
|