jvs-excel-ui 0.1.0 → 0.1.1

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/README.md CHANGED
@@ -143,7 +143,23 @@ async function handleUploadImage(file: File): Promise<string> {
143
143
 
144
144
  ---
145
145
 
146
- ### 4.3 暴露的方法与属性 (`defineExpose` / `JvsExcelExpose`)
146
+ ### 4.3 Slots 插槽
147
+
148
+ | 插槽名 | 说明 |
149
+ | --- | --- |
150
+ | `footer` (或默认插槽 `default`) | 底部栏右侧控制区前置插槽(位于高亮行列、网格线开关与缩放条左侧),可用于自定义扩展按钮或状态信息 |
151
+
152
+ ```vue
153
+ <JvsExcel ref="excelRef" :workbookData="workbookData">
154
+ <template #footer>
155
+ <el-button size="small" text>自定义按钮</el-button>
156
+ </template>
157
+ </JvsExcel>
158
+ ```
159
+
160
+ ---
161
+
162
+ ### 4.4 暴露的方法与属性 (`defineExpose` / `JvsExcelExpose`)
147
163
 
148
164
  通过 `ref`(如 `const excelRef = ref<JvsExcelExpose | null>(null)`)可调用以下方法与属性:
149
165
 
@@ -1,5 +1,131 @@
1
1
  declare function cellClick(): void;
2
- declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ footer?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {
9
+ footeContentRef: HTMLDivElement;
10
+ chagneSheetsButtonRef: HTMLDivElement;
11
+ sheetsNameBoxRef: HTMLDivElement;
12
+ sheetsNameContentRef: HTMLDivElement;
13
+ pageSelectRef: HTMLDivElement;
14
+ buttonColorRef: ({
15
+ $: import('vue').ComponentInternalInstance;
16
+ $data: {};
17
+ $props: {
18
+ readonly modelValue?: string | undefined;
19
+ readonly resetColor?: string | undefined;
20
+ readonly width?: string | undefined;
21
+ readonly customClass?: string | undefined;
22
+ readonly disable?: boolean | undefined;
23
+ readonly openGradual?: boolean | undefined;
24
+ readonly theme?: string | undefined;
25
+ readonly onChange?: ((val: string) => any) | undefined;
26
+ readonly "onUpdate:modelValue"?: ((val: string) => any) | undefined;
27
+ readonly onPopShow?: (() => any) | undefined;
28
+ readonly onPopHidden?: ((val: boolean) => any) | undefined;
29
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
30
+ $attrs: import('vue').Attrs;
31
+ $refs: {
32
+ [x: string]: unknown;
33
+ } & {
34
+ triggerRef: HTMLDivElement;
35
+ };
36
+ $slots: Readonly<{
37
+ [name: string]: import('vue').Slot<any> | undefined;
38
+ }>;
39
+ $root: import('vue').ComponentPublicInstance | null;
40
+ $parent: import('vue').ComponentPublicInstance | null;
41
+ $host: Element | null;
42
+ $emit: ((event: "change", val: string) => void) & ((event: "update:modelValue", val: string) => void) & ((event: "popShow") => void) & ((event: "popHidden", val: boolean) => void);
43
+ $el: any;
44
+ $options: import('vue').ComponentOptionsBase<Readonly<{
45
+ modelValue?: string;
46
+ resetColor?: string;
47
+ width?: string;
48
+ customClass?: string;
49
+ disable?: boolean;
50
+ openGradual?: boolean;
51
+ theme?: string;
52
+ }> & Readonly<{
53
+ onChange?: ((val: string) => any) | undefined;
54
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
55
+ onPopShow?: (() => any) | undefined;
56
+ onPopHidden?: ((val: boolean) => any) | undefined;
57
+ }>, {
58
+ handleScroll: () => void;
59
+ closePopover: () => void;
60
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
+ change: (val: string) => any;
62
+ "update:modelValue": (val: string) => any;
63
+ popShow: () => any;
64
+ popHidden: (val: boolean) => any;
65
+ }, string, {
66
+ modelValue: string;
67
+ resetColor: string;
68
+ width: string;
69
+ customClass: string;
70
+ disable: boolean;
71
+ openGradual: boolean;
72
+ theme: string;
73
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
74
+ beforeCreate?: (() => void) | (() => void)[];
75
+ created?: (() => void) | (() => void)[];
76
+ beforeMount?: (() => void) | (() => void)[];
77
+ mounted?: (() => void) | (() => void)[];
78
+ beforeUpdate?: (() => void) | (() => void)[];
79
+ updated?: (() => void) | (() => void)[];
80
+ activated?: (() => void) | (() => void)[];
81
+ deactivated?: (() => void) | (() => void)[];
82
+ beforeDestroy?: (() => void) | (() => void)[];
83
+ beforeUnmount?: (() => void) | (() => void)[];
84
+ destroyed?: (() => void) | (() => void)[];
85
+ unmounted?: (() => void) | (() => void)[];
86
+ renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
87
+ renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
88
+ errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
89
+ };
90
+ $forceUpdate: () => void;
91
+ $nextTick: typeof import('vue').nextTick;
92
+ $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;
93
+ } & Readonly<{
94
+ modelValue: string;
95
+ resetColor: string;
96
+ width: string;
97
+ customClass: string;
98
+ disable: boolean;
99
+ openGradual: boolean;
100
+ theme: string;
101
+ }> & Omit<Readonly<{
102
+ modelValue?: string;
103
+ resetColor?: string;
104
+ width?: string;
105
+ customClass?: string;
106
+ disable?: boolean;
107
+ openGradual?: boolean;
108
+ theme?: string;
109
+ }> & Readonly<{
110
+ onChange?: ((val: string) => any) | undefined;
111
+ "onUpdate:modelValue"?: ((val: string) => any) | undefined;
112
+ onPopShow?: (() => any) | undefined;
113
+ onPopHidden?: ((val: boolean) => any) | undefined;
114
+ }>, "handleScroll" | "closePopover" | ("modelValue" | "resetColor" | "width" | "customClass" | "disable" | "openGradual" | "theme")> & {
115
+ handleScroll: () => void;
116
+ closePopover: () => void;
117
+ } & {} & import('vue').ComponentCustomProperties & {} & {
118
+ $slots: {
119
+ default?(_: {}): any;
120
+ };
121
+ }) | null;
122
+ scaleBarRef: HTMLDivElement;
123
+ scaleRatioRef: HTMLDivElement;
124
+ };
125
+ rootEl: HTMLDivElement;
126
+ };
127
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
128
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
129
  name: StringConstructor;
4
130
  sheetData: {
5
131
  type: ObjectConstructor;
@@ -241,4 +367,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
241
367
  scaleBarRef: HTMLDivElement;
242
368
  scaleRatioRef: HTMLDivElement;
243
369
  }, HTMLDivElement>;
370
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
244
371
  export default _default;
372
+ type __VLS_WithTemplateSlots<T, S> = T & {
373
+ new (): {
374
+ $slots: S;
375
+ };
376
+ };
@@ -1,3 +1,4 @@
1
+ declare function closeAllPopover(): void;
1
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
3
  item: {
3
4
  type: ObjectConstructor;
@@ -12,7 +13,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
12
13
  type: ObjectConstructor;
13
14
  default: () => {};
14
15
  };
15
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ }>, {
17
+ closeAllPopover: typeof closeAllPopover;
18
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
19
  doAction: (...args: any[]) => void;
17
20
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
21
  item: {
@@ -1,3 +1,4 @@
1
+ declare function closeAllPopover(): void;
1
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
3
  item: {
3
4
  type: ObjectConstructor;
@@ -11,7 +12,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
11
12
  type: ObjectConstructor;
12
13
  default: () => {};
13
14
  };
14
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ }>, {
16
+ closeAllPopover: typeof closeAllPopover;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
18
  doAction: (...args: any[]) => void;
16
19
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
20
  item: {
@@ -1,3 +1,4 @@
1
+ declare function closeAllPopover(): void;
1
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
3
  item: {
3
4
  type: ObjectConstructor;
@@ -19,7 +20,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
19
20
  type: NumberConstructor;
20
21
  default: number;
21
22
  };
22
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ }>, {
24
+ closeAllPopover: typeof closeAllPopover;
25
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
26
  doAction: (...args: any[]) => void;
24
27
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
28
  item: {
@@ -1,5 +1,5 @@
1
1
  declare function cellClick(): void;
2
- declare function onClickOutside(): void;
2
+ declare function onClickOutside(e?: MouseEvent): void;
3
3
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  currentData: {
5
5
  type: ObjectConstructor;