@gct-paas/word 0.1.14 → 0.1.15
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/avatar/index.d.ts +1 -0
- package/dist/base/avatar/src/Avatar.vue.d.ts +9 -0
- package/dist/base/avatar/src/utils/useFile.d.ts +3 -0
- package/dist/base/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/dist/base/color-picker/index.d.ts +1 -0
- package/dist/base/color-picker/src/ColorPicker.vue.d.ts +88 -0
- package/dist/base/color-picker/src/constant/index.d.ts +6 -0
- package/dist/base/divider/index.d.ts +1 -0
- package/dist/base/divider/src/divider.d.ts +7 -0
- package/dist/base/divider/src/divider.vue.d.ts +19 -0
- package/dist/base/dropdown/src/dropdown-basic-select.vue.d.ts +2 -2
- package/dist/base/empty/index.d.ts +1 -0
- package/dist/base/empty/src/empty.d.ts +8 -0
- package/dist/base/empty/src/empty.vue.d.ts +9 -0
- package/dist/base/index.d.ts +5 -0
- package/dist/base/input/index.d.ts +1 -0
- package/dist/base/input/src/input-number.vue.d.ts +24 -2
- package/dist/base/input/src/input.vue.d.ts +7 -7
- package/dist/base/input/src/text-area.vue.d.ts +65 -0
- package/dist/base/modal/src/ModalRoot.vue.d.ts +1 -1
- package/dist/base/select/src/basic-select.vue.d.ts +2 -2
- package/dist/base/slider/index.d.ts +1 -0
- package/dist/base/slider/src/slider.vue.d.ts +22 -0
- package/dist/base/tree-select/src/tree-select.vue.d.ts +2 -2
- package/dist/base/utils/asset-helper-util.d.ts +23 -2
- package/dist/capabilities/panel/config/types.d.ts +2 -1
- package/dist/capabilities/paper-widget-manifest/types.d.ts +13 -2
- package/dist/core/command/base/SetStyleBase.d.ts +4 -0
- package/dist/core/command/commands/Delete2DTable.d.ts +12 -0
- package/dist/core/command/commands/DeleteCheckTable.d.ts +12 -0
- package/dist/core/command/commands/DeleteDataGroup2D.d.ts +12 -0
- package/dist/core/command/commands/DeleteTableHeader.d.ts +12 -0
- package/dist/core/command/commands/InsertFloatingOverlay.d.ts +9 -0
- package/dist/core/command/commands/InsertPaperWidget.d.ts +2 -42
- package/dist/core/command/commands/ResizeOverlayLayout.d.ts +7 -0
- package/dist/core/command/commands/Set2DTable.d.ts +7 -0
- package/dist/core/command/commands/SetCheckTable.d.ts +7 -0
- package/dist/core/command/commands/SetDataGroup2D.d.ts +25 -0
- package/dist/core/command/commands/SetHeaderFooterConfig.d.ts +11 -0
- package/dist/core/command/commands/SetSubTableHeader.d.ts +8 -0
- package/dist/core/command/commands/SetTableHeader.d.ts +7 -0
- package/dist/core/command/types.d.ts +67 -3
- package/dist/core/constants/index.d.ts +7 -0
- package/dist/core/cursor/CursorController.d.ts +15 -0
- package/dist/core/cursor/hit/OverlayLayoutHitHandler.d.ts +9 -0
- package/dist/core/cursor/hit/types.d.ts +17 -0
- package/dist/core/cursor/layout/baseMeta.d.ts +1 -1
- package/dist/core/data/DataManager.d.ts +5 -0
- package/dist/core/event/DocumentEventBridge.d.ts +5 -1
- package/dist/core/event/EventManager.d.ts +1 -1
- package/dist/core/event/handlers/InteractionHandler.d.ts +3 -0
- package/dist/core/event/handlers/KonvaHandler.d.ts +3 -0
- package/dist/core/index.d.ts +8 -4
- package/dist/core/interaction/InteractionController.d.ts +8 -1
- package/dist/core/interaction/InteractionPolicy.d.ts +2 -0
- package/dist/core/interaction/types.d.ts +8 -0
- package/dist/core/interaction/useInteraction.d.ts +7 -3
- package/dist/core/layout/LayoutContext.d.ts +13 -3
- package/dist/core/layout/LayoutManager.d.ts +14 -0
- package/dist/core/layout/LayoutMapper.d.ts +0 -2
- package/dist/core/layout/handlers/PageWidgetHandler.d.ts +5 -0
- package/dist/core/layout/handlers/TextHandler.d.ts +11 -0
- package/dist/core/layout/handlers/base/BaseHandler.d.ts +26 -0
- package/dist/core/layout/handlers/fields/{ImgHandler.d.ts → ImageHandler.d.ts} +1 -1
- package/dist/core/layout/handlers/fields/index.d.ts +1 -1
- package/dist/core/layout/handlers/index.d.ts +1 -0
- package/dist/core/layout/handlers/pageWidgets/BarcodeHandler.d.ts +11 -0
- package/dist/core/layout/handlers/pageWidgets/DefaultHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/DiagonalHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/ImageHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/LineHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/PaginationHandler.d.ts +7 -0
- package/dist/core/layout/handlers/pageWidgets/QrCodeHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/SerialNumberHandler.d.ts +4 -0
- package/dist/core/layout/handlers/pageWidgets/index.d.ts +8 -0
- package/dist/core/layout/logic/LayoutBuilder.d.ts +7 -3
- package/dist/core/layout/logic/ModelBuilder.d.ts +2 -1
- package/dist/core/layout/providers/TableInfoProvider.d.ts +8 -2
- package/dist/core/layout/types/index.d.ts +7 -0
- package/dist/core/model/DocModel.d.ts +20 -0
- package/dist/core/model/base/ModelNode.d.ts +4 -0
- package/dist/core/model/base/RefManager.d.ts +50 -0
- package/dist/core/model/base/index.d.ts +1 -0
- package/dist/core/model/document/Wdocument.d.ts +2 -0
- package/dist/core/model/document/Wp.d.ts +2 -1
- package/dist/core/model/document/WrPageWidget.d.ts +8 -0
- package/dist/core/model/document/WrText.d.ts +5 -2
- package/dist/core/model/document/WsecPr.d.ts +61 -1
- package/dist/core/model/document/Wtbl/Calculation.d.ts +12 -0
- package/dist/core/model/document/Wtbl/RegionManager.d.ts +13 -1
- package/dist/core/model/document/Wtbl/RowColumnOps.d.ts +6 -0
- package/dist/core/model/document/Wtbl.d.ts +14 -1
- package/dist/core/model/document/Wtc.d.ts +8 -0
- package/dist/core/model/document/index.d.ts +1 -0
- package/dist/core/model/footers/Wfooter.d.ts +40 -0
- package/dist/core/model/footers/Wfooters.d.ts +42 -0
- package/dist/core/model/headers/Wheader.d.ts +40 -0
- package/dist/core/model/headers/Wheaders.d.ts +45 -0
- package/dist/core/model/logic/CheckTableRegion.d.ts +44 -0
- package/dist/core/model/logic/DataGroup2DRegion.d.ts +12 -0
- package/dist/core/model/logic/SubTableHeaderRegion.d.ts +22 -0
- package/dist/core/model/logic/TableHeaderRegion.d.ts +16 -0
- package/dist/core/model/logic/_2DTableRegion.d.ts +44 -0
- package/dist/core/model/logic/index.d.ts +14 -1
- package/dist/core/model/overlays/Wlayout.d.ts +70 -0
- package/dist/core/model/overlays/Woverlay.d.ts +41 -0
- package/dist/core/model/overlays/Woverlays.d.ts +45 -0
- package/dist/core/model/settings/Wsettings.d.ts +47 -0
- package/dist/core/model/templates/footer.template.d.ts +75 -0
- package/dist/core/model/templates/header.template.d.ts +75 -0
- package/dist/core/model/templates/layout.template.d.ts +66 -0
- package/dist/core/model/templates/overlay.template.d.ts +22 -0
- package/dist/core/model/types/model.d.ts +3 -0
- package/dist/core/model/types/region.d.ts +1 -0
- package/dist/core/sdk/DocPubApiContext.d.ts +14 -12
- package/dist/core/sdk/createDoc.d.ts +1 -3
- package/dist/core/sdk/usePagesToPdf.d.ts +13 -4
- package/dist/core/utils/expand.d.ts +28 -4
- package/dist/core/utils/index.d.ts +4 -0
- package/dist/core/utils/unit-converter-util.d.ts +12 -2
- package/dist/core/view/Doc.d.ts +14 -3
- package/dist/core/view/Page.d.ts +50 -1
- package/dist/core/view/Paragraph.d.ts +2 -0
- package/dist/core/view/Section.d.ts +21 -1
- package/dist/core/view/Table.d.ts +3 -0
- package/dist/core/view/TableCell.d.ts +4 -2
- package/dist/core/view/TableRow.d.ts +2 -0
- package/dist/core/view/base/BandContainer.d.ts +49 -0
- package/dist/core/view/base/LayoutGroup.d.ts +11 -0
- package/dist/core/view/base/LayoutNode.d.ts +3 -0
- package/dist/core/view/base/OverlayContainer.d.ts +31 -0
- package/dist/core/view/base/OverlayLayout.d.ts +19 -0
- package/dist/core/view/base/index.d.ts +2 -0
- package/dist/core/view/runs/ImageRun.d.ts +9 -0
- package/dist/core/view/runs/ImageWidget.d.ts +12 -6
- package/dist/core/view/runs/TextRun.d.ts +26 -3
- package/dist/core/view/runs/TextWidget.d.ts +14 -7
- package/dist/core/view/utils/EventUtil.d.ts +22 -0
- package/dist/core/view/utils/TextUtil.d.ts +47 -0
- package/dist/core/widget/widget-meta.d.ts +5 -0
- package/dist/domain/active/active-types.d.ts +12 -6
- package/dist/domain/constants/enum.d.ts +34 -0
- package/dist/domain/constants/options.d.ts +4 -0
- package/dist/domain/field/field-props-schema-type.d.ts +1 -1
- package/dist/domain/paper-widget/paper-widget-props-schema-type.d.ts +2 -0
- package/dist/domain/paper-widget/paper-widget-type.d.ts +10 -141
- package/dist/domain/paper-widget/widget-binding.d.ts +8 -0
- package/dist/domain/widget/component-type.d.ts +6 -2
- package/dist/index.d.ts +5 -10
- package/dist/index.es.js +61943 -52253
- package/dist/runtime/_register_/composables/panel/useActivePanel.d.ts +2 -2
- package/dist/runtime/_register_/context/DesignSuiteContext.d.ts +2 -0
- package/dist/runtime/canvas/__common__/context-menu/index.vue.d.ts +3 -1
- package/dist/runtime/canvas/doc-layout.vue.d.ts +11 -5
- package/dist/runtime/canvas/inline-image/resize-box.vue.d.ts +22 -6
- package/dist/{suites/edhr/panel-schema/paper-widget/widgets/barcode.vue.d.ts → runtime/canvas/node/overlay-layout.vue.d.ts} +2 -3
- package/dist/{suites/edhr/panel-schema/paper-widget/widgets/qrcode.vue.d.ts → runtime/canvas/overlay/page-overlay-group.vue.d.ts} +4 -3
- package/dist/{suites/edhr/panel-schema/paper-widget/widgets/diagonal.vue.d.ts → runtime/canvas/paper/header-footer-guides.vue.d.ts} +2 -3
- package/dist/runtime/canvas/paper/inner-corner-mark.vue.d.ts +2 -5
- package/dist/runtime/canvas/paper/paper-group.vue.d.ts +2 -1
- package/dist/{suites/edhr/panel-schema/paper-widget/widgets/serialnumber.vue.d.ts → runtime/canvas/paper/paper-hit-rect.vue.d.ts} +3 -3
- package/dist/runtime/canvas/table/design/table-structure-overlay/dynamic-label.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/design/table-structure-overlay/placeholder-label.vue.d.ts +1 -0
- package/dist/runtime/canvas/table/utils/index.d.ts +21 -3
- package/dist/runtime/canvas/table/utils/useTableSelection.d.ts +5 -1
- package/dist/runtime/designer/main/editable-canvas.vue.d.ts +6 -3
- package/dist/runtime/designer/ribbon/components/set-table-header-form-modal.vue.d.ts +18 -0
- package/dist/runtime/designer/ribbon/components/sub-table-form-modal.vue.d.ts +4 -1
- package/dist/runtime/factories/usePwRenderData.d.ts +13 -0
- package/dist/runtime/factories/useRenderData.d.ts +1 -1
- package/dist/runtime/interface/change-diff.d.ts +26 -0
- package/dist/runtime/interface/render.d.ts +18 -0
- package/dist/runtime/renderer/annotation/annotation-comment-item.vue.d.ts +13 -0
- package/dist/runtime/renderer/annotation/annotation-comment-layer.vue.d.ts +2 -0
- package/dist/runtime/renderer/dropdowns/components/tables/rdo-table-dropdown.vue.d.ts +16 -16
- package/dist/runtime/renderer/dropdowns/components/tables/table-dropdown.vue.d.ts +16 -16
- package/dist/runtime/renderer/main/preview-canvas.vue.d.ts +8 -4
- package/dist/sdk/doc-runtime/composables/useDocController.d.ts +17 -0
- package/dist/sdk/doc-runtime/composables/useDocOperations.d.ts +41 -0
- package/dist/sdk/doc-runtime/composables/useDocRuntimeProvider.d.ts +19 -0
- package/dist/sdk/doc-runtime/composables/useDocSuite.d.ts +20 -0
- package/dist/sdk/doc-runtime/factories/document-initializer.d.ts +10 -0
- package/dist/sdk/doc-runtime/factories/document-request-strategy.d.ts +3 -0
- package/dist/{runtime → sdk/doc-runtime}/factories/useDocumentFactory.d.ts +33 -6
- package/dist/sdk/doc-runtime/useWord.d.ts +12 -0
- package/dist/sdk/engine/index.d.ts +14 -0
- package/dist/sdk/index.d.ts +14 -0
- package/dist/sdk/plugins/index.d.ts +15 -0
- package/dist/sdk/setup.d.ts +55 -0
- package/dist/sdk/types/index.d.ts +119 -0
- package/dist/sdk/vue/index.d.ts +7 -0
- package/dist/sdk/vue/layouts/doc-design-layout.d.ts +7 -0
- package/dist/sdk/vue/layouts/doc-design-layout.vue.d.ts +10 -0
- package/dist/{runtime/renderer → sdk/vue/layouts}/doc-render-layout.vue.d.ts +17 -11
- package/dist/suites/edhr/field-manifest/_common_/basic.d.ts +6 -0
- package/dist/suites/edhr/index.d.ts +3 -2
- package/dist/suites/edhr/panel-config/index.d.ts +2 -1
- package/dist/suites/edhr/panel-schema/2d-table/2d-table.basic.d.ts +14 -0
- package/dist/suites/edhr/panel-schema/{paper-widget/widgets/editors/diagonal-name-editor.vue.d.ts → 2d-table/_2DTablePanel.vue.d.ts} +4 -5
- package/dist/suites/edhr/panel-schema/{paper-widget/widgets/image.vue.d.ts → check-table/CheckTablePanel.vue.d.ts} +5 -5
- package/dist/suites/edhr/panel-schema/check-table/check-table.basic.d.ts +14 -0
- package/dist/suites/edhr/panel-schema/data-group-2d/DataGroup2DPanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/data-group-2d/data-group-2d.basic.d.ts +14 -0
- package/dist/suites/edhr/panel-schema/data-init/utils/index.d.ts +26 -2
- package/dist/suites/edhr/panel-schema/data-init/utils/json-schema.d.ts +18 -0
- package/dist/suites/edhr/panel-schema/data-load/DataLoadPanel.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-load/ai-tmpl/ai-tmpl-editor.vue.d.ts +6 -0
- package/dist/suites/edhr/panel-schema/data-load/ai-tmpl/identify-param-card.vue.d.ts +14 -0
- package/dist/suites/edhr/panel-schema/data-load/common/add-tmpl-btn.vue.d.ts +16 -0
- package/dist/suites/edhr/panel-schema/data-load/common/decimal-slider.vue.d.ts +21 -0
- package/dist/suites/edhr/panel-schema/data-load/common/form-field-select.vue.d.ts +19 -0
- package/dist/suites/edhr/panel-schema/data-load/common/icon-tooltip.vue.d.ts +10 -0
- package/dist/suites/edhr/panel-schema/data-load/common/remove-icon.vue.d.ts +7 -0
- package/dist/suites/edhr/panel-schema/data-load/common/tmpl-card.vue.d.ts +25 -0
- package/dist/suites/edhr/panel-schema/data-load/data-load.basic.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-field-status.vue.d.ts +9 -0
- package/dist/suites/edhr/panel-schema/data-load/device-tmpl/device-tmpl-editor.vue.d.ts +6 -0
- package/dist/suites/edhr/panel-schema/data-load/device-tmpl/params-item-card.vue.d.ts +30 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/constant.d.ts +44 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/controller.d.ts +38 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/index.d.ts +3 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/device-link/types.d.ts +157 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/form-tmpl-config-controller.d.ts +67 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/index.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/data-load/hooks/form-tmpl-config/use-form-tmpl-config.d.ts +10 -0
- package/dist/suites/edhr/panel-schema/index.d.ts +70 -1
- package/dist/suites/edhr/panel-schema/paper-header-footer/PaperHeaderFooterPanel.vue.d.ts +2 -0
- package/dist/suites/edhr/panel-schema/paper-header-footer/paper-header-footer.basic.d.ts +5 -0
- package/dist/suites/edhr/panel-schema/paper-widget/PaperWidgetPanel.vue.d.ts +7 -1
- package/dist/suites/edhr/panel-schema/paper-widget/paper-widget.basic.d.ts +7 -1
- package/dist/suites/edhr/panel-schema/table-header/TableHeaderPanel.vue.d.ts +8 -0
- package/dist/suites/edhr/panel-schema/table-header/table-header.basic.d.ts +11 -0
- package/dist/suites/edhr/paper-widget-manifest/basic/line-manifest.d.ts +2 -0
- package/dist/suites/edhr/paper-widget-manifest/basic/pagination-manifest.d.ts +2 -0
- package/dist/suites/{edhr/panel-schema/paper-widget/widgets/editors/align-editor.vue.d.ts → shared/panel/config/editor/FormNumberEditor.vue.d.ts} +6 -8
- package/dist/suites/shared/panel/config/editor/single-field-editor/types.d.ts +9 -0
- package/dist/suites/shared/panel/modules/table-setting-module.vue.d.ts +5 -4
- package/dist/utils/TriggerUtil.d.ts +1 -1
- package/dist/utils/func/dragdrop.d.ts +6 -1
- package/dist/utils/func/file.d.ts +1 -1
- package/dist/utils/symbol/contextKey.d.ts +7 -1
- package/dist/word.css +9285 -8117
- package/package.json +4 -1
- package/dist/core/sdk/types/public-types.d.ts +0 -78
- package/dist/runtime/designer/doc-design-layout.vue.d.ts +0 -6
- package/dist/runtime/useDocEngine.d.ts +0 -36
- package/dist/setup.d.ts +0 -46
- package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/img-parser.d.ts +0 -9
- package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/size-editor.vue.d.ts +0 -13
- package/dist/suites/edhr/panel-schema/paper-widget/widgets/editors/value-editor.vue.d.ts +0 -46
- /package/dist/suites/edhr/panel-config/{file → field/file}/upload.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GctAvatar } from './src/Avatar.vue';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
avatar?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
direction?: 'vertical' | 'horizontal';
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
7
|
+
direction: "vertical" | "horizontal";
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -13,8 +13,8 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
16
|
-
disabled: boolean;
|
|
17
16
|
path: string;
|
|
17
|
+
disabled: boolean;
|
|
18
18
|
isLast: boolean;
|
|
19
19
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLLIElement>;
|
|
20
20
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GctColorPicker } from './src/ColorPicker.vue';
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
tooltip?: string;
|
|
3
|
+
};
|
|
4
|
+
type __VLS_PublicProps = {
|
|
5
|
+
modelValue?: string;
|
|
6
|
+
} & __VLS_Props;
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string) => any;
|
|
9
|
+
} & {
|
|
10
|
+
change: (val: string) => any;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
12
|
+
onChange?: ((val: string) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
tooltip: string;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
insRef: ({
|
|
18
|
+
$: import('vue').ComponentInternalInstance;
|
|
19
|
+
$data: {};
|
|
20
|
+
$props: {
|
|
21
|
+
readonly tooltip: string;
|
|
22
|
+
readonly "onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
23
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
24
|
+
$attrs: {
|
|
25
|
+
[x: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
$refs: {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
} & {
|
|
30
|
+
dropdownRef: import('vue').CreateComponentPublicInstanceWithMixins<Record<string, any> & {}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, {}, {}, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
31
|
+
P: {};
|
|
32
|
+
B: {};
|
|
33
|
+
D: {};
|
|
34
|
+
C: {};
|
|
35
|
+
M: {};
|
|
36
|
+
Defaults: {};
|
|
37
|
+
}, Record<string, any> & {}, {}, {}, {}, {}, {}> | null;
|
|
38
|
+
};
|
|
39
|
+
$slots: Readonly<{
|
|
40
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
43
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
44
|
+
$host: Element | null;
|
|
45
|
+
$emit: (event: "left-btn-click", ...args: any[]) => void;
|
|
46
|
+
$el: HTMLDivElement;
|
|
47
|
+
$options: import('vue').ComponentOptionsBase<Readonly<{
|
|
48
|
+
tooltip: string;
|
|
49
|
+
}> & Readonly<{
|
|
50
|
+
"onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
getRef: import('vue').Ref<any, any>;
|
|
53
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
"left-btn-click": (...args: any[]) => void;
|
|
55
|
+
}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
56
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
57
|
+
created?: (() => void) | (() => void)[];
|
|
58
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
59
|
+
mounted?: (() => void) | (() => void)[];
|
|
60
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
61
|
+
updated?: (() => void) | (() => void)[];
|
|
62
|
+
activated?: (() => void) | (() => void)[];
|
|
63
|
+
deactivated?: (() => void) | (() => void)[];
|
|
64
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
65
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
66
|
+
destroyed?: (() => void) | (() => void)[];
|
|
67
|
+
unmounted?: (() => void) | (() => void)[];
|
|
68
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
69
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
70
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
71
|
+
};
|
|
72
|
+
$forceUpdate: () => void;
|
|
73
|
+
$nextTick: typeof import('vue').nextTick;
|
|
74
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
75
|
+
} & Readonly<{}> & Omit<Readonly<{
|
|
76
|
+
tooltip: string;
|
|
77
|
+
}> & Readonly<{
|
|
78
|
+
"onLeft-btn-click"?: ((...args: any[]) => any) | undefined;
|
|
79
|
+
}>, "getRef"> & import('vue').ShallowUnwrapRef<{
|
|
80
|
+
getRef: import('vue').Ref<any, any>;
|
|
81
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
82
|
+
$slots: {
|
|
83
|
+
'main-content'?(_: {}): any;
|
|
84
|
+
'left-content'?(_: {}): any;
|
|
85
|
+
};
|
|
86
|
+
}) | null;
|
|
87
|
+
}, HTMLDivElement>;
|
|
88
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GctDivider } from './src/divider.vue';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IDividerProps } from './divider';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
5
|
+
refs: {};
|
|
6
|
+
rootEl: HTMLDivElement;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import('vue').DefineComponent<IDividerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IDividerProps> & Readonly<{}>, {
|
|
10
|
+
color: string;
|
|
11
|
+
vertical: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
13
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -60,12 +60,12 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
60
60
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
61
61
|
getRef: import('vue').Ref<any, any>;
|
|
62
62
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
|
-
edit: (...args: any[]) => void;
|
|
64
63
|
change: (...args: any[]) => void;
|
|
64
|
+
edit: (...args: any[]) => void;
|
|
65
65
|
"update:modelValue": (...args: any[]) => void;
|
|
66
66
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
-
onEdit?: ((...args: any[]) => any) | undefined;
|
|
68
67
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
68
|
+
onEdit?: ((...args: any[]) => any) | undefined;
|
|
69
69
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
71
|
options: DropdownOption[] | DropdownOptionGroup[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GctEmpty } from './src/empty.vue';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IEmptyProps } from './empty';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IEmptyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IEmptyProps> & Readonly<{}>, {
|
|
3
|
+
width: number | string;
|
|
4
|
+
height: number | string;
|
|
5
|
+
tip: string;
|
|
6
|
+
iconSrc: string;
|
|
7
|
+
iconHeight: number | string;
|
|
8
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
package/dist/base/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export * from './breadcrumb';
|
|
|
3
3
|
export * from './calendar';
|
|
4
4
|
export * from './checkbox';
|
|
5
5
|
export * from './collapse';
|
|
6
|
+
export * from './divider';
|
|
6
7
|
export * from './dropdown';
|
|
8
|
+
export * from './empty';
|
|
7
9
|
export * from './form-item';
|
|
8
10
|
export * from './icon';
|
|
9
11
|
export * from './image-upload';
|
|
@@ -16,9 +18,12 @@ export * from './radio';
|
|
|
16
18
|
export * from './scrollbar';
|
|
17
19
|
export * from './segment-slider';
|
|
18
20
|
export * from './select';
|
|
21
|
+
export * from './slider';
|
|
19
22
|
export * from './switch';
|
|
20
23
|
export * from './table';
|
|
21
24
|
export * from './tooltip';
|
|
22
25
|
export * from './tree';
|
|
23
26
|
export * from './tree-select';
|
|
24
27
|
export * from './date-time-picker';
|
|
28
|
+
export * from './color-picker';
|
|
29
|
+
export * from './avatar';
|
|
@@ -11,6 +11,8 @@ type __VLS_Props = {
|
|
|
11
11
|
controls?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
placeholder?: string;
|
|
14
|
+
suffix?: string;
|
|
15
|
+
allowClear?: boolean;
|
|
14
16
|
/** 控制返回类型 */
|
|
15
17
|
returnString?: boolean;
|
|
16
18
|
/** 控制是否实时 emit */
|
|
@@ -18,7 +20,18 @@ type __VLS_Props = {
|
|
|
18
20
|
/** 小数截取处理规则 */
|
|
19
21
|
roundingMode?: 1 | 4 | 6;
|
|
20
22
|
};
|
|
21
|
-
declare
|
|
23
|
+
declare function __VLS_template(): {
|
|
24
|
+
attrs: Partial<{}>;
|
|
25
|
+
slots: {
|
|
26
|
+
clearIcon?(_: {}): any;
|
|
27
|
+
};
|
|
28
|
+
refs: {
|
|
29
|
+
inputRef: HTMLInputElement;
|
|
30
|
+
};
|
|
31
|
+
rootEl: HTMLDivElement;
|
|
32
|
+
};
|
|
33
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
34
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
22
35
|
blur: () => any;
|
|
23
36
|
change: (val: string | number | null) => any;
|
|
24
37
|
"update:modelValue": (val: string | number | null) => any;
|
|
@@ -30,9 +43,18 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
30
43
|
disabled: boolean;
|
|
31
44
|
modelValue: ValueType;
|
|
32
45
|
step: number;
|
|
46
|
+
allowClear: boolean;
|
|
33
47
|
controls: boolean;
|
|
34
48
|
returnString: boolean;
|
|
35
49
|
emitOnInput: boolean;
|
|
36
50
|
roundingMode: 1 | 4 | 6;
|
|
37
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
52
|
+
inputRef: HTMLInputElement;
|
|
53
|
+
}, HTMLDivElement>;
|
|
54
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
38
55
|
export default _default;
|
|
56
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
57
|
+
new (): {
|
|
58
|
+
$slots: S;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
@@ -17,27 +17,27 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
|
17
17
|
select: () => void;
|
|
18
18
|
inputRef: import('vue').Ref<HTMLTextAreaElement | HTMLInputElement | null, HTMLTextAreaElement | HTMLInputElement | null>;
|
|
19
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
20
|
+
input: (value: string | number, event: Event) => any;
|
|
20
21
|
search: (value: string | number) => any;
|
|
21
|
-
focus: (event: FocusEvent) => any;
|
|
22
|
-
clear: () => any;
|
|
23
22
|
blur: (event: FocusEvent) => any;
|
|
24
23
|
change: (value: string | number, event: Event) => any;
|
|
25
|
-
|
|
24
|
+
focus: (event: FocusEvent) => any;
|
|
26
25
|
keydown: (event: KeyboardEvent) => any;
|
|
27
26
|
keypress: (event: KeyboardEvent) => any;
|
|
28
27
|
keyup: (event: KeyboardEvent) => any;
|
|
28
|
+
clear: () => any;
|
|
29
29
|
"update:modelValue": (value: string | number) => any;
|
|
30
30
|
pressEnter: (event: KeyboardEvent) => any;
|
|
31
31
|
}, string, import('vue').PublicProps, Readonly<GctInputProps> & Readonly<{
|
|
32
|
+
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
32
33
|
onSearch?: ((value: string | number) => any) | undefined;
|
|
33
|
-
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
34
|
-
onClear?: (() => any) | undefined;
|
|
35
34
|
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
36
35
|
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
37
|
-
|
|
36
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
38
37
|
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
39
38
|
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
40
39
|
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
40
|
+
onClear?: (() => any) | undefined;
|
|
41
41
|
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
42
42
|
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
43
43
|
}>, {
|
|
@@ -51,8 +51,8 @@ declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
|
51
51
|
placeholder: string;
|
|
52
52
|
autocomplete: string;
|
|
53
53
|
spellcheck: boolean;
|
|
54
|
-
modelValue: string | number;
|
|
55
54
|
prefix: string;
|
|
55
|
+
modelValue: string | number;
|
|
56
56
|
suffix: string;
|
|
57
57
|
addonBefore: string;
|
|
58
58
|
addonAfter: string;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { GctInputProps } from './types';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
clearIcon?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {
|
|
8
|
+
textareaRef: HTMLTextAreaElement;
|
|
9
|
+
};
|
|
10
|
+
rootEl: HTMLDivElement;
|
|
11
|
+
};
|
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<GctInputProps, {
|
|
14
|
+
focus: () => void | undefined;
|
|
15
|
+
blur: () => void | undefined;
|
|
16
|
+
textareaRef: import('vue').Ref<HTMLTextAreaElement | null, HTMLTextAreaElement | null>;
|
|
17
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
18
|
+
input: (value: string | number, event: Event) => any;
|
|
19
|
+
search: (value: string | number) => any;
|
|
20
|
+
blur: (event: FocusEvent) => any;
|
|
21
|
+
change: (value: string | number, event: Event) => any;
|
|
22
|
+
focus: (event: FocusEvent) => any;
|
|
23
|
+
keydown: (event: KeyboardEvent) => any;
|
|
24
|
+
keypress: (event: KeyboardEvent) => any;
|
|
25
|
+
keyup: (event: KeyboardEvent) => any;
|
|
26
|
+
clear: () => any;
|
|
27
|
+
"update:modelValue": (value: string | number) => any;
|
|
28
|
+
pressEnter: (event: KeyboardEvent) => any;
|
|
29
|
+
}, string, import('vue').PublicProps, Readonly<GctInputProps> & Readonly<{
|
|
30
|
+
onInput?: ((value: string | number, event: Event) => any) | undefined;
|
|
31
|
+
onSearch?: ((value: string | number) => any) | undefined;
|
|
32
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
33
|
+
onChange?: ((value: string | number, event: Event) => any) | undefined;
|
|
34
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
35
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
36
|
+
onKeypress?: ((event: KeyboardEvent) => any) | undefined;
|
|
37
|
+
onKeyup?: ((event: KeyboardEvent) => any) | undefined;
|
|
38
|
+
onClear?: (() => any) | undefined;
|
|
39
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
40
|
+
onPressEnter?: ((event: KeyboardEvent) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
name: string;
|
|
43
|
+
rows: number;
|
|
44
|
+
readonly: boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
placeholder: string;
|
|
47
|
+
autocomplete: string;
|
|
48
|
+
spellcheck: boolean;
|
|
49
|
+
modelValue: string | number;
|
|
50
|
+
allowClear: boolean;
|
|
51
|
+
showCount: boolean;
|
|
52
|
+
maxLength: number;
|
|
53
|
+
autofocus: boolean;
|
|
54
|
+
bordered: boolean;
|
|
55
|
+
customStyle: Record<string, string | number>;
|
|
56
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
57
|
+
textareaRef: HTMLTextAreaElement;
|
|
58
|
+
}, HTMLDivElement>;
|
|
59
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
62
|
+
new (): {
|
|
63
|
+
$slots: S;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { IModalProps } from './modal.type';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<IModalProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IModalProps> & Readonly<{}>, {
|
|
3
3
|
body: import('vue').Component | null;
|
|
4
|
-
width: number;
|
|
5
4
|
title: string;
|
|
5
|
+
width: number;
|
|
6
6
|
zIndex: number;
|
|
7
7
|
className: string;
|
|
8
8
|
closable: boolean;
|
|
@@ -55,12 +55,12 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
55
55
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
56
56
|
getRef: import('vue').Ref<any, any>;
|
|
57
57
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
58
|
-
edit: (option: DropdownOption) => any;
|
|
59
58
|
change: (val: string | number | (string | number)[], item?: DropdownOption | undefined) => any;
|
|
59
|
+
edit: (option: DropdownOption) => any;
|
|
60
60
|
"update:modelValue": (val: string | number | (string | number)[]) => any;
|
|
61
61
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
62
|
-
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
63
62
|
onChange?: ((val: string | number | (string | number)[], item?: DropdownOption | undefined) => any) | undefined;
|
|
63
|
+
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
64
64
|
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
|
|
65
65
|
}>, {
|
|
66
66
|
options: DropdownOption[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GctSlider } from './src/slider.vue';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
tooltipConvert?: (v: number) => string | number;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
change: (...args: any[]) => void;
|
|
10
|
+
"update:modelValue": (...args: any[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
13
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
modelValue: number;
|
|
16
|
+
step: number;
|
|
17
|
+
min: number;
|
|
18
|
+
max: number;
|
|
19
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
20
|
+
sliderRef: HTMLDivElement;
|
|
21
|
+
}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -22,12 +22,12 @@ type __VLS_Props = {
|
|
|
22
22
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
23
23
|
getRef: import('vue').Ref<any, any>;
|
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
25
|
-
edit: (option: DropdownOption) => any;
|
|
26
25
|
change: (val: string | number | (string | number)[], item?: DropdownOption | undefined) => any;
|
|
26
|
+
edit: (option: DropdownOption) => any;
|
|
27
27
|
"update:modelValue": (val: string | number | (string | number)[]) => any;
|
|
28
28
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
-
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
30
29
|
onChange?: ((val: string | number | (string | number)[], item?: DropdownOption | undefined) => any) | undefined;
|
|
30
|
+
onEdit?: ((option: DropdownOption) => any) | undefined;
|
|
31
31
|
"onUpdate:modelValue"?: ((val: string | number | (string | number)[]) => any) | undefined;
|
|
32
32
|
}>, {
|
|
33
33
|
placeholder: string;
|
|
@@ -11,20 +11,32 @@ export interface UploadFile {
|
|
|
11
11
|
timer?: number;
|
|
12
12
|
realProgress?: number;
|
|
13
13
|
}
|
|
14
|
+
type UploadOptions = {
|
|
15
|
+
modelKey?: string;
|
|
16
|
+
signal?: AbortSignal;
|
|
17
|
+
onProgress?: (p: number) => void;
|
|
18
|
+
};
|
|
19
|
+
type UploadWithProgressOptions = UploadOptions & {
|
|
20
|
+
onFakeProgress?: (delta: number) => void;
|
|
21
|
+
};
|
|
14
22
|
export declare class AssetHelper {
|
|
15
23
|
static minioBasePath: string;
|
|
16
24
|
private static transfer;
|
|
17
25
|
private static fileUrlMap;
|
|
26
|
+
private static imageCache;
|
|
18
27
|
static init(opts: {
|
|
19
28
|
transfer: (key: string) => string;
|
|
20
29
|
}): void;
|
|
30
|
+
/** 上传(基础版) */
|
|
31
|
+
static upload(file: File, opts?: UploadOptions): Promise<any>;
|
|
32
|
+
/** 上传(带进度) */
|
|
33
|
+
static uploadWithProgress(file: File, opts?: UploadWithProgressOptions): Promise<any>;
|
|
34
|
+
/** 上传前校验 */
|
|
21
35
|
static beforeUploadFun(file: File, { maxSize, acceptList, beforeUpload, }: {
|
|
22
36
|
maxSize: number;
|
|
23
37
|
acceptList: string[];
|
|
24
38
|
beforeUpload?: (file: File) => Promise<unknown>;
|
|
25
39
|
}): Promise<undefined>;
|
|
26
|
-
/** 上传 */
|
|
27
|
-
static upload(file: File): Promise<any>;
|
|
28
40
|
/** 地址转化 */
|
|
29
41
|
static resolveUrl(src?: string | File | null): string | null;
|
|
30
42
|
/**
|
|
@@ -32,6 +44,15 @@ export declare class AssetHelper {
|
|
|
32
44
|
* @param src File | minio key | http url
|
|
33
45
|
*/
|
|
34
46
|
static loadImage(src?: string | File | null): Promise<HTMLImageElement | null>;
|
|
47
|
+
/**
|
|
48
|
+
* 获取预览 URL(统一出口)
|
|
49
|
+
*/
|
|
50
|
+
static getPreviewUrl(url?: string | File | null, name?: string, callback?: (url: string) => string): string | null;
|
|
35
51
|
static revoke(file?: File | null): void;
|
|
52
|
+
/**
|
|
53
|
+
* 生成白底文字图片(兜底图)
|
|
54
|
+
*/
|
|
55
|
+
private static createWhiteImageWithText;
|
|
36
56
|
static clear(): void;
|
|
37
57
|
}
|
|
58
|
+
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FieldPropsSchemaKey } from '../../../domain/field/field-props-schema-type';
|
|
2
|
+
import { PaperWidgetPropsSchemaKey } from '../../../domain/paper-widget/paper-widget-props-schema-type';
|
|
2
3
|
import { Component } from 'vue';
|
|
3
4
|
/** 右侧面板配置-渲染组件标识 */
|
|
4
|
-
export type PanelConfigSchemaType = FieldPropsSchemaKey;
|
|
5
|
+
export type PanelConfigSchemaType = FieldPropsSchemaKey | PaperWidgetPropsSchemaKey;
|
|
5
6
|
/** 面板配置组件映射表 */
|
|
6
7
|
export type PanelConfigComponentMap = Partial<Record<PanelConfigSchemaType, {
|
|
7
8
|
config?: Component;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ExternalComponentType } from '../../domain/widget/component-type';
|
|
1
|
+
import { ExternalComponentType, PaperWidgetNodeRenderers } from '../../domain/widget/component-type';
|
|
2
2
|
import { PAPER_WIDGET_TYPE } from '../../domain/paper-widget/paper-widget-type';
|
|
3
|
+
import { PaperWidgetPropsSchemaKey } from '../../domain/paper-widget/paper-widget-props-schema-type';
|
|
3
4
|
export interface PaperWidgetManifest {
|
|
4
5
|
/** 唯一 key */
|
|
5
6
|
key: string;
|
|
6
|
-
/**
|
|
7
|
+
/** 页面组件类型 */
|
|
7
8
|
type: PAPER_WIDGET_TYPE;
|
|
8
9
|
/** 名称 */
|
|
9
10
|
label: string;
|
|
@@ -13,9 +14,19 @@ export interface PaperWidgetManifest {
|
|
|
13
14
|
version: 'v1' | 'v2';
|
|
14
15
|
/** 是否允许拖入 Word */
|
|
15
16
|
allowDrag?: boolean;
|
|
17
|
+
/** 是否允许脱离文档流 */
|
|
18
|
+
outOfFlow?: boolean;
|
|
19
|
+
/** 渲染组件节点类型 */
|
|
20
|
+
renderers: PaperWidgetNodeRenderers;
|
|
16
21
|
/** 渲染的组件类型 */
|
|
17
22
|
component: ExternalComponentType;
|
|
23
|
+
/** 右侧面板配置 schema key */
|
|
24
|
+
propsSchema?: PaperWidgetPropsSchemaKey;
|
|
25
|
+
/** 默认布局信息 */
|
|
26
|
+
defaultLayout: Record<string, any>;
|
|
18
27
|
/** 默认属性 */
|
|
19
28
|
defaultProps: Record<string, any>;
|
|
29
|
+
/** 扩展能力 */
|
|
30
|
+
extensions?: Record<string, any>;
|
|
20
31
|
}
|
|
21
32
|
export type PaperWidgetManifestMap = Partial<Record<PAPER_WIDGET_TYPE, PaperWidgetManifest>>;
|
|
@@ -37,5 +37,9 @@ export declare abstract class SetStyleBase<T extends CommandType = CommandType>
|
|
|
37
37
|
* @returns WrText 数组
|
|
38
38
|
*/
|
|
39
39
|
protected extractWrTextsFromModels(models: SelectionModel[]): WrText[];
|
|
40
|
+
/**
|
|
41
|
+
* 处理 collapsed 光标 + overlay 场景
|
|
42
|
+
*/
|
|
43
|
+
protected handleOverlayCollapsedCursor(): PostCommandContext | null;
|
|
40
44
|
protected abstract applyStyle(run: WrText): void;
|
|
41
45
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { CommandPayloadMap } from '../types';
|
|
3
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
4
|
+
/**
|
|
5
|
+
* 删除二维表命令
|
|
6
|
+
*
|
|
7
|
+
* 删除指定的 _2DTable 区域
|
|
8
|
+
*/
|
|
9
|
+
export declare class Delete2DTable extends CommandBase<'delete2DTable'> {
|
|
10
|
+
constructor(doc: Doc, payload?: CommandPayloadMap['delete2DTable']);
|
|
11
|
+
protected execute(): Promise<PostCommandContext>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { CommandPayloadMap } from '../types';
|
|
3
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
4
|
+
/**
|
|
5
|
+
* 删除有界区域命令
|
|
6
|
+
*
|
|
7
|
+
* 删除指定的 checkTable 区域
|
|
8
|
+
*/
|
|
9
|
+
export declare class DeleteCheckTable extends CommandBase<'deleteCheckTable'> {
|
|
10
|
+
constructor(doc: Doc, payload?: CommandPayloadMap['deleteCheckTable']);
|
|
11
|
+
protected execute(): Promise<PostCommandContext>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { CommandPayloadMap } from '../types';
|
|
3
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
4
|
+
/**
|
|
5
|
+
* 表格列删除命令
|
|
6
|
+
*
|
|
7
|
+
* 删除指定索引处的列
|
|
8
|
+
*/
|
|
9
|
+
export declare class DeleteDataGroup2D extends CommandBase<'deleteDataGroup2D'> {
|
|
10
|
+
constructor(doc: Doc, payload?: CommandPayloadMap['deleteDataGroup2D']);
|
|
11
|
+
protected execute(): Promise<PostCommandContext>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Doc } from '../../view/Doc';
|
|
2
|
+
import { CommandPayloadMap } from '../types';
|
|
3
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
4
|
+
/**
|
|
5
|
+
* 删除有界区域命令
|
|
6
|
+
*
|
|
7
|
+
* 删除指定的 table header 区域
|
|
8
|
+
*/
|
|
9
|
+
export declare class DeleteTableHeader extends CommandBase<'deleteTableHeader'> {
|
|
10
|
+
constructor(doc: Doc, payload?: CommandPayloadMap['deleteTableHeader']);
|
|
11
|
+
protected execute(): Promise<PostCommandContext>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CommandBase, PostCommandContext } from '../base/CommandBase';
|
|
2
|
+
import { Doc } from '../../view/Doc';
|
|
3
|
+
import { CommandPayloadMap } from '../types';
|
|
4
|
+
type InsertFloatingOverlayCommandOptions = CommandPayloadMap['insertFloatingOverlay'];
|
|
5
|
+
export declare class InsertFloatingOverlay extends CommandBase<'insertFloatingOverlay'> {
|
|
6
|
+
constructor(doc: Doc, payload: InsertFloatingOverlayCommandOptions);
|
|
7
|
+
protected execute(): Promise<PostCommandContext>;
|
|
8
|
+
}
|
|
9
|
+
export {};
|