@yeepay/yee-boss-ui 0.1.9 → 0.1.11

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
@@ -192,6 +192,10 @@ function handlePreviewError(error: { message: string }): void {
192
192
 
193
193
  ## YeePage 与 VXE Grid
194
194
 
195
+ `YeePage auto-content-height` 会使用宿主布局提供的 `--yee-content-height` 作为可选内容区高度;未注入时按 Page 父容器的 `100%` 计算,适合 Wujie 等嵌入场景。`heightOffset` 会从 Page 的整体高度中扣除宿主额外占用的空间。宿主如果需要注入该变量,可使用导出的 `CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT` 常量。
196
+
197
+ `YeeGrid` 在普通 `YeePage` 或未使用 `YeePage` 时按表格内容自然撑高;放在开启 `auto-content-height` 的 `YeePage` 中时会自动占满查询表单之后的剩余高度,工具栏和分页器固定在可用区域内,数据超出后由表格内部滚动。表头和单元格内容超出时默认省略并提供 Tooltip;列宽默认允许拖拽调整,可通过 `gridOptions.columnConfig.resizable: false` 关闭。显式传入 `gridOptions.height` 时仍以该配置为准。
198
+
195
199
  ```vue
196
200
  <script setup lang="ts">
197
201
  import type {
@@ -1 +1,3 @@
1
+ import { VxeUI } from 'vxe-table';
2
+ export declare function registerVxeRestoreConfirm(handler: (content: string) => Promise<Awaited<ReturnType<typeof VxeUI.modal.confirm>>>): () => void;
1
3
  export declare function initializeVxeTable(): void;
@@ -41,14 +41,14 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
41
41
  closable: boolean;
42
42
  maskClosable: boolean;
43
43
  destroyOnClose: boolean;
44
+ showCancelButton: boolean;
44
45
  cancelButtonText: string;
45
- centered: boolean;
46
- confirmButtonLoading: boolean;
46
+ showConfirmButton: boolean;
47
47
  confirmButtonText: string;
48
48
  fullscreen: boolean;
49
+ centered: boolean;
50
+ confirmButtonLoading: boolean;
49
51
  fullscreenButton: boolean;
50
- showCancelButton: boolean;
51
- showConfirmButton: boolean;
52
52
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
53
53
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
54
54
  export default _default;
@@ -8,14 +8,20 @@ declare function __VLS_template(): {
8
8
  default?(_: {}): any;
9
9
  footer?(_: {}): any;
10
10
  };
11
- refs: {};
11
+ refs: {
12
+ headerRef: HTMLElement;
13
+ footerRef: HTMLElement;
14
+ };
12
15
  rootEl: HTMLElement;
13
16
  };
14
17
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
18
  declare const __VLS_component: import('vue').DefineComponent<YeePageProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<YeePageProps> & Readonly<{}>, {
16
19
  autoContentHeight: boolean;
17
20
  heightOffset: number | string;
18
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
22
+ headerRef: HTMLElement;
23
+ footerRef: HTMLElement;
24
+ }, HTMLElement>;
19
25
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
20
26
  export default _default;
21
27
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -0,0 +1,2 @@
1
+ import { ComputedRef, InjectionKey } from 'vue';
2
+ export declare const pageAutoContentHeightKey: InjectionKey<ComputedRef<boolean>>;
@@ -0,0 +1,2 @@
1
+ /** 宿主布局写入的内容区高度变量,供 YeePage auto-content-height 使用。 */
2
+ export declare const CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT = "--yee-content-height";
@@ -0,0 +1 @@
1
+ export { CSS_VARIABLE_LAYOUT_CONTENT_HEIGHT } from './globals';
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './constants';
1
2
  export { default as PlatformConfigProvider } from './components/PlatformConfigProvider.vue';
2
3
  export * from './components/descriptions';
3
4
  export * from './components/ellipsis-text';