cosey 0.6.8 → 0.6.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.
@@ -232,6 +232,7 @@ export declare const defaultTableConfig: {
232
232
  currentPage: number;
233
233
  pageSize: number;
234
234
  };
235
+ height: undefined;
235
236
  };
236
237
  export interface TableConfig {
237
238
  keys?: {
@@ -245,4 +246,5 @@ export interface TableConfig {
245
246
  desc?: string;
246
247
  };
247
248
  pagination?: Partial<PaginationProps>;
249
+ height?: number | string;
248
250
  }
@@ -160,7 +160,8 @@ const defaultTableConfig = {
160
160
  layout: "prev, pager, next, sizes, jumper, total",
161
161
  currentPage: 1,
162
162
  pageSize: 10
163
- }
163
+ },
164
+ height: void 0
164
165
  };
165
166
 
166
167
  export { defaultTableConfig, elSlotsName, omittedTableProps, tableEmitEvents, tableEmitOnEvents, tableEmitOnProps, tableExposeKeys, tableProps };
@@ -102,7 +102,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
102
102
  });
103
103
  const containerStyle = computed(() => {
104
104
  return {
105
- height: addPxUnit(props.height)
105
+ height: addPxUnit(props.height ?? unref(tableConfig)?.height ?? defaultTableConfig.height)
106
106
  };
107
107
  });
108
108
  const renderedColumns = ref([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",