@gct-paas/word 0.1.30 → 0.1.32
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/command/types.d.ts +0 -2
- package/dist/core/data/DataManager.d.ts +14 -0
- package/dist/core/interaction/useInteraction.d.ts +1 -0
- package/dist/core/layout/handlers/TextHandler.d.ts +0 -1
- package/dist/core/layout/handlers/fields/FieldBaseHandler.d.ts +0 -1
- package/dist/core/utils/index.d.ts +0 -4
- package/dist/core/view/TableCell.d.ts +4 -2
- package/dist/core/view/base/LayoutNode.d.ts +0 -1
- package/dist/domain/active/active-types.d.ts +1 -0
- package/dist/index.es.js +302 -219
- package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +1 -0
- package/dist/runtime/interface/computed.d.ts +6 -1
- package/dist/runtime/interface/render.d.ts +15 -3
- package/dist/sdk/vue/layouts/doc-design-layout.vue.d.ts +0 -1
- package/dist/word.css +34 -34
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ export declare function useActivePanel(): {
|
|
|
5
5
|
readonly context: {
|
|
6
6
|
readonly mainModelKey?: string | undefined;
|
|
7
7
|
readonly subFieldKey?: string | undefined;
|
|
8
|
+
readonly isDataGroup2DClicked?: boolean | undefined;
|
|
8
9
|
readonly regionId?: string | undefined;
|
|
9
10
|
readonly secRefId?: string | undefined;
|
|
10
11
|
};
|
|
@@ -17,6 +17,7 @@ export declare function useTableSelection(): {
|
|
|
17
17
|
readonly context: {
|
|
18
18
|
readonly mainModelKey?: string | undefined;
|
|
19
19
|
readonly subFieldKey?: string | undefined;
|
|
20
|
+
readonly isDataGroup2DClicked?: boolean | undefined;
|
|
20
21
|
readonly regionId?: string | undefined;
|
|
21
22
|
readonly secRefId?: string | undefined;
|
|
22
23
|
};
|
|
@@ -11,7 +11,10 @@ export declare function applyDefaultValue(props: any, payload: {
|
|
|
11
11
|
valuePath: string;
|
|
12
12
|
}): Record<string, any> | undefined;
|
|
13
13
|
/** 获取填充 API 类型的默认值 */
|
|
14
|
-
export declare function enrichApiDefaultValues(defaults: Record<string, any> | undefined, rule: ComputedRule, valuePath: string, fieldMeta: FieldDataBindingMeta, context: any, loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined
|
|
14
|
+
export declare function enrichApiDefaultValues(defaults: Record<string, any> | undefined, rule: ComputedRule, valuePath: string, fieldMeta: FieldDataBindingMeta, context: any, loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>, options?: {
|
|
15
|
+
/** 是否允许子模型字段请求 */
|
|
16
|
+
allowSubModelRequest?: boolean;
|
|
17
|
+
}): Promise<Record<string, any> | undefined>;
|
|
15
18
|
export declare function computeFieldDefaultValue(params: {
|
|
16
19
|
/** 字段类型 */
|
|
17
20
|
fieldType: FIELD_TYPE;
|
|
@@ -27,6 +30,8 @@ export declare function computeFieldDefaultValue(params: {
|
|
|
27
30
|
getFieldManifest: (type: FIELD_TYPE) => FieldManifest | undefined;
|
|
28
31
|
/** enrich 依赖 */
|
|
29
32
|
loadFieldByKey: (modelKey: string, key: string) => Promise<FieldMeta | undefined>;
|
|
33
|
+
/** 是否允许子模型字段请求 */
|
|
34
|
+
allowSubModelRequest?: boolean;
|
|
30
35
|
}): Promise<Record<string, any>>;
|
|
31
36
|
/** 默认值-数据填充 */
|
|
32
37
|
export declare function loadDefaultValueByAutofillRules(ctx: DesignSuiteContext, instances: any[], autofillRules: any[], field: FieldDataBindingMeta, masterSlaveList: FieldMeta[],
|
|
@@ -25,7 +25,9 @@ export declare function getDefaultQueryIdsByFieldType(payload: {
|
|
|
25
25
|
/** 获取默认值集合 */
|
|
26
26
|
export declare function loadDefaultValuesByFields(instances: any[], ctx: DesignSuiteContext, context: any, masterSlaveList: FieldMeta[]): Promise<Record<string, any>>;
|
|
27
27
|
/** 获取数据初始化数据 */
|
|
28
|
-
export declare const loadDataInitValues: (
|
|
28
|
+
export declare const loadDataInitValues: (
|
|
29
|
+
/** 数据初始化配置 */
|
|
30
|
+
dataInitConfig: any,
|
|
29
31
|
/** 参数配置 */
|
|
30
32
|
paramsConfig: any,
|
|
31
33
|
/** 子表信息 */
|
|
@@ -33,8 +35,18 @@ subTableInfo: any[],
|
|
|
33
35
|
/** 字段权限 */
|
|
34
36
|
fieldPermission: any[],
|
|
35
37
|
/** 实例 ID */
|
|
36
|
-
instanceId: string
|
|
37
|
-
|
|
38
|
+
instanceId: string,
|
|
39
|
+
/** 组件实例列表(用于查找 widget 的 fieldMeta/props,供 label 派生) */
|
|
40
|
+
instances: any[],
|
|
41
|
+
/** 设计套件上下文(用于 getFieldManifest 和 loadFieldByKey) */
|
|
42
|
+
ctx: DesignSuiteContext) => Promise<{
|
|
43
|
+
paramMap: {};
|
|
44
|
+
dsRawData: {};
|
|
45
|
+
dsMap?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
paramMap: Record<string, any>;
|
|
48
|
+
dsMap: Record<string, any>;
|
|
49
|
+
dsRawData?: undefined;
|
|
38
50
|
}>;
|
|
39
51
|
/** 收集模型关联字段(主表 + 子表) */
|
|
40
52
|
export declare const collectLinkedModelFields: (instances: any[]) => {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DocDesignLayoutProps } from './doc-design-layout';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<DocDesignLayoutProps, {
|
|
3
3
|
onImportTemplate: () => void;
|
|
4
|
-
onImportData: (mainData: any) => void;
|
|
5
4
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<DocDesignLayoutProps> & Readonly<{}>, {
|
|
6
5
|
IOTPermission: boolean;
|
|
7
6
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
package/dist/word.css
CHANGED
|
@@ -8658,17 +8658,17 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
8658
8658
|
.toolkit-item .area.active[data-v-2b1ef693] {
|
|
8659
8659
|
background-color: #d4d9e2;
|
|
8660
8660
|
}
|
|
8661
|
-
.content-fields-wrapper[data-v-
|
|
8661
|
+
.content-fields-wrapper[data-v-3fbe453b] {
|
|
8662
8662
|
overflow: hidden;
|
|
8663
8663
|
position: relative;
|
|
8664
8664
|
display: flex;
|
|
8665
8665
|
flex-direction: column;
|
|
8666
8666
|
height: 480px;
|
|
8667
8667
|
}
|
|
8668
|
-
.content-fields-wrapper .search[data-v-
|
|
8668
|
+
.content-fields-wrapper .search[data-v-3fbe453b] {
|
|
8669
8669
|
padding: 12px 8px 6px;
|
|
8670
8670
|
}
|
|
8671
|
-
.content-fields-wrapper .container[data-v-
|
|
8671
|
+
.content-fields-wrapper .container[data-v-3fbe453b] {
|
|
8672
8672
|
position: relative;
|
|
8673
8673
|
display: flex;
|
|
8674
8674
|
flex-direction: column;
|
|
@@ -8676,7 +8676,7 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
8676
8676
|
flex: 1;
|
|
8677
8677
|
overflow: hidden;
|
|
8678
8678
|
}
|
|
8679
|
-
.content-fields-wrapper .container .field-list-wrap[data-v-
|
|
8679
|
+
.content-fields-wrapper .container .field-list-wrap[data-v-3fbe453b] {
|
|
8680
8680
|
-webkit-box-flex: 1;
|
|
8681
8681
|
-ms-flex: 1 1 0%;
|
|
8682
8682
|
-webkit-flex: 1 1 0%;
|
|
@@ -8684,10 +8684,10 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
8684
8684
|
overflow: hidden;
|
|
8685
8685
|
height: 100%;
|
|
8686
8686
|
}
|
|
8687
|
-
.content-fields-wrapper .container .field-list[data-v-
|
|
8687
|
+
.content-fields-wrapper .container .field-list[data-v-3fbe453b] {
|
|
8688
8688
|
padding: 4px 6px;
|
|
8689
8689
|
}
|
|
8690
|
-
.content-fields-wrapper .container .item[data-v-
|
|
8690
|
+
.content-fields-wrapper .container .item[data-v-3fbe453b] {
|
|
8691
8691
|
display: flex;
|
|
8692
8692
|
align-items: center;
|
|
8693
8693
|
padding: 5px 8px;
|
|
@@ -8699,35 +8699,35 @@ textarea[data-v-57fe54a3]::placeholder {
|
|
|
8699
8699
|
user-select: none;
|
|
8700
8700
|
flex-shrink: 0;
|
|
8701
8701
|
}
|
|
8702
|
-
.content-fields-wrapper .container .main[data-v-
|
|
8702
|
+
.content-fields-wrapper .container .main[data-v-3fbe453b] {
|
|
8703
8703
|
color: #c3c3c3;
|
|
8704
8704
|
padding: 4px 10px;
|
|
8705
8705
|
}
|
|
8706
|
-
.content-fields-wrapper .container .field[data-v-
|
|
8706
|
+
.content-fields-wrapper .container .field[data-v-3fbe453b] {
|
|
8707
8707
|
color: #212528;
|
|
8708
8708
|
border-radius: 4px;
|
|
8709
8709
|
cursor: pointer;
|
|
8710
8710
|
transition: all 0.3s ease;
|
|
8711
8711
|
}
|
|
8712
|
-
.content-fields-wrapper .container .field[data-v-
|
|
8712
|
+
.content-fields-wrapper .container .field[data-v-3fbe453b]:hover {
|
|
8713
8713
|
background: #f5f5f5;
|
|
8714
8714
|
}
|
|
8715
|
-
.content-fields-wrapper .container .field .field-icon[data-v-
|
|
8715
|
+
.content-fields-wrapper .container .field .field-icon[data-v-3fbe453b] {
|
|
8716
8716
|
display: flex;
|
|
8717
8717
|
align-items: center;
|
|
8718
8718
|
justify-content: center;
|
|
8719
8719
|
margin-right: 6px;
|
|
8720
8720
|
}
|
|
8721
|
-
.content-fields-wrapper .container .field .field-title[data-v-
|
|
8721
|
+
.content-fields-wrapper .container .field .field-title[data-v-3fbe453b] {
|
|
8722
8722
|
overflow: hidden;
|
|
8723
8723
|
font-size: 12px;
|
|
8724
8724
|
text-overflow: ellipsis;
|
|
8725
8725
|
white-space: nowrap;
|
|
8726
8726
|
}
|
|
8727
|
-
.content-fields-wrapper .container .field + .field[data-v-
|
|
8727
|
+
.content-fields-wrapper .container .field + .field[data-v-3fbe453b] {
|
|
8728
8728
|
margin-top: 2px;
|
|
8729
8729
|
}
|
|
8730
|
-
.content-fields-wrapper .container .empty[data-v-
|
|
8730
|
+
.content-fields-wrapper .container .empty[data-v-3fbe453b] {
|
|
8731
8731
|
position: absolute;
|
|
8732
8732
|
left: 0;
|
|
8733
8733
|
top: 0;
|
|
@@ -8768,7 +8768,7 @@ ul li[data-v-1e28101c] {
|
|
|
8768
8768
|
ul li .widget-icon[data-v-1e28101c] {
|
|
8769
8769
|
margin-right: 6px;
|
|
8770
8770
|
}
|
|
8771
|
-
.designer_toolkit-wrapper[data-v-
|
|
8771
|
+
.designer_toolkit-wrapper[data-v-7ebf8ab6] {
|
|
8772
8772
|
position: relative;
|
|
8773
8773
|
background: #f2f4f7;
|
|
8774
8774
|
width: 48px;
|
|
@@ -8777,7 +8777,7 @@ ul li .widget-icon[data-v-1e28101c] {
|
|
|
8777
8777
|
flex-direction: column;
|
|
8778
8778
|
overflow: hidden;
|
|
8779
8779
|
}
|
|
8780
|
-
.designer_toolkit-wrapper[data-v-
|
|
8780
|
+
.designer_toolkit-wrapper[data-v-7ebf8ab6]::after {
|
|
8781
8781
|
content: '';
|
|
8782
8782
|
position: absolute;
|
|
8783
8783
|
width: 1px;
|
|
@@ -9131,7 +9131,7 @@ ul li .widget-icon[data-v-1e28101c] {
|
|
|
9131
9131
|
width: fit-content;
|
|
9132
9132
|
pointer-events: none;
|
|
9133
9133
|
}
|
|
9134
|
-
.render-container[data-v-
|
|
9134
|
+
.render-container[data-v-85f53514] {
|
|
9135
9135
|
overflow-y: auto;
|
|
9136
9136
|
overflow-x: auto;
|
|
9137
9137
|
white-space: normal;
|
|
@@ -9140,40 +9140,40 @@ ul li .widget-icon[data-v-1e28101c] {
|
|
|
9140
9140
|
position: relative;
|
|
9141
9141
|
background-color: #f0f0f0;
|
|
9142
9142
|
}
|
|
9143
|
-
.doc-design-layout[data-v-
|
|
9143
|
+
.doc-design-layout[data-v-744401de] {
|
|
9144
9144
|
display: flex;
|
|
9145
9145
|
flex-direction: column;
|
|
9146
9146
|
width: 100%;
|
|
9147
9147
|
height: 100%;
|
|
9148
9148
|
}
|
|
9149
|
-
.doc-design-layout.preview[data-v-
|
|
9149
|
+
.doc-design-layout.preview[data-v-744401de] {
|
|
9150
9150
|
pointer-events: none;
|
|
9151
9151
|
}
|
|
9152
|
-
.doc-design-layout .design-body[data-v-
|
|
9152
|
+
.doc-design-layout .design-body[data-v-744401de] {
|
|
9153
9153
|
flex: 1;
|
|
9154
9154
|
display: flex;
|
|
9155
9155
|
min-height: 0;
|
|
9156
9156
|
}
|
|
9157
|
-
.doc-design-layout .design-body .design-sidebar[data-v-
|
|
9157
|
+
.doc-design-layout .design-body .design-sidebar[data-v-744401de] {
|
|
9158
9158
|
position: relative;
|
|
9159
9159
|
overflow: hidden;
|
|
9160
9160
|
background: #fff;
|
|
9161
9161
|
flex-shrink: 0;
|
|
9162
9162
|
}
|
|
9163
|
-
.doc-design-layout .design-body .design-sidebar.left[data-v-
|
|
9163
|
+
.doc-design-layout .design-body .design-sidebar.left[data-v-744401de] {
|
|
9164
9164
|
border-right: 1px solid #e0e0e0;
|
|
9165
9165
|
}
|
|
9166
|
-
.doc-design-layout .design-body .design-sidebar.right[data-v-
|
|
9166
|
+
.doc-design-layout .design-body .design-sidebar.right[data-v-744401de] {
|
|
9167
9167
|
border-left: 1px solid #e0e0e0;
|
|
9168
9168
|
}
|
|
9169
|
-
.doc-design-layout .design-body .design-sidebar .right-container[data-v-
|
|
9169
|
+
.doc-design-layout .design-body .design-sidebar .right-container[data-v-744401de] {
|
|
9170
9170
|
position: relative;
|
|
9171
9171
|
display: flex;
|
|
9172
9172
|
width: 100%;
|
|
9173
9173
|
height: 100%;
|
|
9174
9174
|
overflow: hidden;
|
|
9175
9175
|
}
|
|
9176
|
-
.doc-design-layout .design-body .design-sidebar .right-container .divider[data-v-
|
|
9176
|
+
.doc-design-layout .design-body .design-sidebar .right-container .divider[data-v-744401de] {
|
|
9177
9177
|
position: absolute;
|
|
9178
9178
|
left: 0;
|
|
9179
9179
|
top: 0;
|
|
@@ -9184,13 +9184,13 @@ ul li .widget-icon[data-v-1e28101c] {
|
|
|
9184
9184
|
left: 46px;
|
|
9185
9185
|
transform: translateX(-50%);
|
|
9186
9186
|
}
|
|
9187
|
-
.doc-design-layout .design-body .design-main[data-v-
|
|
9187
|
+
.doc-design-layout .design-body .design-main[data-v-744401de] {
|
|
9188
9188
|
position: relative;
|
|
9189
9189
|
flex: 1;
|
|
9190
9190
|
min-height: 0;
|
|
9191
9191
|
overflow: hidden;
|
|
9192
9192
|
}
|
|
9193
|
-
.doc-design-layout .design-body .design-main .empty-container[data-v-
|
|
9193
|
+
.doc-design-layout .design-body .design-main .empty-container[data-v-744401de] {
|
|
9194
9194
|
position: absolute;
|
|
9195
9195
|
top: 0;
|
|
9196
9196
|
left: 50%;
|
|
@@ -9204,7 +9204,7 @@ ul li .widget-icon[data-v-1e28101c] {
|
|
|
9204
9204
|
pointer-events: all;
|
|
9205
9205
|
transform: translateX(-50%);
|
|
9206
9206
|
}
|
|
9207
|
-
.doc-design-layout .design-footer[data-v-
|
|
9207
|
+
.doc-design-layout .design-footer[data-v-744401de] {
|
|
9208
9208
|
flex-shrink: 0;
|
|
9209
9209
|
display: flex;
|
|
9210
9210
|
align-items: center;
|
|
@@ -9733,13 +9733,13 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
9733
9733
|
.panel-data-group .line-content .delete-title[data-v-4572267c]:hover {
|
|
9734
9734
|
opacity: 0.7;
|
|
9735
9735
|
}
|
|
9736
|
-
.panel-data-group-2d[data-v-
|
|
9736
|
+
.panel-data-group-2d[data-v-6a36dc19] {
|
|
9737
9737
|
position: relative;
|
|
9738
9738
|
}
|
|
9739
|
-
.panel-data-group-2d .container[data-v-
|
|
9739
|
+
.panel-data-group-2d .container[data-v-6a36dc19] {
|
|
9740
9740
|
padding: 16px;
|
|
9741
9741
|
}
|
|
9742
|
-
.panel-data-group-2d .content[data-v-
|
|
9742
|
+
.panel-data-group-2d .content[data-v-6a36dc19] {
|
|
9743
9743
|
width: 100%;
|
|
9744
9744
|
display: flex;
|
|
9745
9745
|
line-height: 22px;
|
|
@@ -9747,18 +9747,18 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
9747
9747
|
align-items: center;
|
|
9748
9748
|
justify-content: flex-end;
|
|
9749
9749
|
}
|
|
9750
|
-
.panel-data-group-2d .line-content[data-v-
|
|
9750
|
+
.panel-data-group-2d .line-content[data-v-6a36dc19] {
|
|
9751
9751
|
position: relative;
|
|
9752
9752
|
display: flex;
|
|
9753
9753
|
margin-top: 12px;
|
|
9754
9754
|
margin-bottom: 12px;
|
|
9755
9755
|
gap: 16px;
|
|
9756
9756
|
}
|
|
9757
|
-
.panel-data-group-2d .line-content .form-item[data-v-
|
|
9757
|
+
.panel-data-group-2d .line-content .form-item[data-v-6a36dc19] {
|
|
9758
9758
|
margin-top: 0;
|
|
9759
9759
|
gap: 8px;
|
|
9760
9760
|
}
|
|
9761
|
-
.panel-data-group-2d .line-content .delete-title[data-v-
|
|
9761
|
+
.panel-data-group-2d .line-content .delete-title[data-v-6a36dc19] {
|
|
9762
9762
|
color: #f54547;
|
|
9763
9763
|
cursor: pointer;
|
|
9764
9764
|
transition: all 0.3s;
|
|
@@ -9768,7 +9768,7 @@ svg.portrait-icon[data-v-8bdb451e] {
|
|
|
9768
9768
|
right: 0;
|
|
9769
9769
|
line-height: 22px;
|
|
9770
9770
|
}
|
|
9771
|
-
.panel-data-group-2d .line-content .delete-title[data-v-
|
|
9771
|
+
.panel-data-group-2d .line-content .delete-title[data-v-6a36dc19]:hover {
|
|
9772
9772
|
opacity: 0.7;
|
|
9773
9773
|
}
|
|
9774
9774
|
.data-init-add-button[data-v-f7e62c9d] {
|