cosey 0.10.15 → 0.10.16

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.
@@ -198,6 +198,10 @@ declare const _Table: {
198
198
  transformSummary: {
199
199
  type: import("vue").PropType<(sums: any[]) => any[]>;
200
200
  };
201
+ split: {
202
+ type: BooleanConstructor;
203
+ default: undefined;
204
+ };
201
205
  height: (NumberConstructor | StringConstructor)[];
202
206
  maxHeight: (NumberConstructor | StringConstructor)[];
203
207
  tableLayout: {
@@ -328,6 +332,7 @@ declare const _Table: {
328
332
  columns: import(".").MayBeTableColumnProps[];
329
333
  data: any[];
330
334
  immediate: boolean;
335
+ split: boolean;
331
336
  className: string;
332
337
  pagination: boolean | import("element-plus").PaginationProps;
333
338
  fit: boolean;
@@ -550,6 +555,10 @@ declare const _Table: {
550
555
  transformSummary: {
551
556
  type: import("vue").PropType<(sums: any[]) => any[]>;
552
557
  };
558
+ split: {
559
+ type: BooleanConstructor;
560
+ default: undefined;
561
+ };
553
562
  height: (NumberConstructor | StringConstructor)[];
554
563
  maxHeight: (NumberConstructor | StringConstructor)[];
555
564
  tableLayout: {
@@ -680,6 +689,7 @@ declare const _Table: {
680
689
  columns: import(".").MayBeTableColumnProps[];
681
690
  data: any[];
682
691
  immediate: boolean;
692
+ split: boolean;
683
693
  className: string;
684
694
  pagination: boolean | import("element-plus").PaginationProps;
685
695
  fit: boolean;
@@ -757,6 +767,10 @@ declare const _Table: {
757
767
  transformSummary: {
758
768
  type: import("vue").PropType<(sums: any[]) => any[]>;
759
769
  };
770
+ split: {
771
+ type: BooleanConstructor;
772
+ default: undefined;
773
+ };
760
774
  height: (NumberConstructor | StringConstructor)[];
761
775
  maxHeight: (NumberConstructor | StringConstructor)[];
762
776
  tableLayout: {
@@ -887,6 +901,7 @@ declare const _Table: {
887
901
  columns: import(".").MayBeTableColumnProps[];
888
902
  data: any[];
889
903
  immediate: boolean;
904
+ split: boolean;
890
905
  className: string;
891
906
  pagination: boolean | import("element-plus").PaginationProps;
892
907
  fit: boolean;
@@ -69,6 +69,10 @@ export declare const tableProps: {
69
69
  transformSummary: {
70
70
  type: PropType<(sums: any[]) => any[]>;
71
71
  };
72
+ split: {
73
+ type: BooleanConstructor;
74
+ default: undefined;
75
+ };
72
76
  height: (NumberConstructor | StringConstructor)[];
73
77
  maxHeight: (NumberConstructor | StringConstructor)[];
74
78
  tableLayout: {
@@ -242,6 +246,7 @@ export declare const defaultTableConfig: {
242
246
  pageSize: number;
243
247
  };
244
248
  height: undefined;
249
+ split: boolean;
245
250
  };
246
251
  export interface TableConfig {
247
252
  keys?: {
@@ -256,4 +261,5 @@ export interface TableConfig {
256
261
  };
257
262
  pagination?: Partial<PaginationProps>;
258
263
  height?: number | string;
264
+ split?: boolean;
259
265
  }
@@ -87,6 +87,10 @@ const tableExtraProps = {
87
87
  },
88
88
  transformSummary: {
89
89
  type: Function
90
+ },
91
+ split: {
92
+ type: Boolean,
93
+ default: void 0
90
94
  }
91
95
  };
92
96
  const tableProps = {
@@ -167,7 +171,8 @@ const defaultTableConfig = {
167
171
  currentPage: 1,
168
172
  pageSize: 10
169
173
  },
170
- height: void 0
174
+ height: void 0,
175
+ split: false
171
176
  };
172
177
 
173
178
  export { defaultTableConfig, elSlotsName, omittedTableProps, tableEmitEvents, tableEmitOnEvents, tableEmitOnProps, tableExposeKeys, tableProps };
@@ -51,8 +51,10 @@ var stdin_default = getSimpleStyleHook("CoTable", (token) => {
51
51
  },
52
52
  [`${componentCls}-before-body`]: {
53
53
  flex: "none",
54
- paddingBlockStart: token.paddingSM,
55
- paddingInline: token.paddingSM
54
+ padding: token.paddingSM
55
+ },
56
+ [`${componentCls}-before-body-plain`]: {
57
+ flex: "none"
56
58
  },
57
59
  [`${componentCls}-stats-wrapper`]: {
58
60
  paddingBlockStart: token.paddingSM
@@ -76,6 +78,26 @@ var stdin_default = getSimpleStyleHook("CoTable", (token) => {
76
78
  justifyContent: "flex-end",
77
79
  paddingBlockEnd: token.paddingSM,
78
80
  paddingInline: token.paddingSM
81
+ },
82
+ "&.is-split": {
83
+ backgroundColor: "transparent",
84
+ "&.is-fullpage": {
85
+ backgroundColor: token.colorBgLayout
86
+ },
87
+ [`${componentCls}-header`]: {
88
+ marginBlockEnd: token.marginSM,
89
+ backgroundColor: token.colorBgContainer
90
+ },
91
+ [`${componentCls}-before-body`]: {
92
+ marginBlockEnd: token.marginSM,
93
+ backgroundColor: token.colorBgContainer
94
+ },
95
+ [`${componentCls}-before-body-plain`]: {
96
+ marginBlockEnd: token.marginSM
97
+ },
98
+ [`${componentCls}-body`]: {
99
+ backgroundColor: token.colorBgContainer
100
+ }
79
101
  }
80
102
  }
81
103
  };
@@ -54,6 +54,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
54
54
  transformSummary: {
55
55
  type: import("vue").PropType<(sums: any[]) => any[]>;
56
56
  };
57
+ split: {
58
+ type: BooleanConstructor;
59
+ default: undefined;
60
+ };
57
61
  height: (NumberConstructor | StringConstructor)[];
58
62
  maxHeight: (NumberConstructor | StringConstructor)[];
59
63
  tableLayout: {
@@ -231,6 +235,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
231
235
  transformSummary: {
232
236
  type: import("vue").PropType<(sums: any[]) => any[]>;
233
237
  };
238
+ split: {
239
+ type: BooleanConstructor;
240
+ default: undefined;
241
+ };
234
242
  height: (NumberConstructor | StringConstructor)[];
235
243
  maxHeight: (NumberConstructor | StringConstructor)[];
236
244
  tableLayout: {
@@ -322,6 +330,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
322
330
  columns: import(".").MayBeTableColumnProps[];
323
331
  data: any[];
324
332
  immediate: boolean;
333
+ split: boolean;
325
334
  className: string;
326
335
  pagination: boolean | PaginationProps;
327
336
  fit: boolean;
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, unref, computed, ref, useTemplateRef, mergeProps, watch, onMounted, onBeforeUnmount, resolveComponent, resolveDirective, createBlock, openBlock, Teleport, withDirectives, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, renderSlot, createElementVNode, createVNode, withCtx, createSlots, Fragment, renderList, vShow, normalizeProps, guardReactiveProps } from 'vue';
1
+ import { defineComponent, useSlots, unref, computed, ref, useTemplateRef, mergeProps, watch, onMounted, onBeforeUnmount, resolveComponent, resolveDirective, createBlock, openBlock, Teleport, withDirectives, createElementBlock, normalizeStyle, normalizeClass, createCommentVNode, createElementVNode, createVNode, renderSlot, withCtx, createSlots, Fragment, renderList, vShow, normalizeProps, guardReactiveProps } from 'vue';
2
2
  import { merge, get, cloneDeep } from 'lodash-es';
3
3
  import { reactiveComputed, reactiveOmit } from '@vueuse/core';
4
4
  import { useNamespace, useZIndex, ElButton, Mousewheel } from 'element-plus';
@@ -74,6 +74,9 @@ var stdin_default = /* @__PURE__ */defineComponent({
74
74
  const tableKeys = reactiveComputed(() => {
75
75
  return merge({}, defaultTableConfig.keys, unref(tableConfig)?.keys, props.keys);
76
76
  });
77
+ const isSplit = computed(() => {
78
+ return props.split ?? unref(tableConfig)?.split ?? defaultTableConfig.split;
79
+ });
77
80
  const passedElSlotsName = computed(() => {
78
81
  return elSlotsName.filter(name => !!slots[name]);
79
82
  });
@@ -385,7 +388,8 @@ var stdin_default = /* @__PURE__ */defineComponent({
385
388
  ref_key: "rootRef",
386
389
  ref: rootRef,
387
390
  class: normalizeClass([unref(hashId), unref(prefixCls), {
388
- "is-fullpage": unref(isFullPage)
391
+ "is-fullpage": unref(isFullPage),
392
+ "is-split": isSplit.value
389
393
  }]),
390
394
  style: normalizeStyle({
391
395
  ...containerStyle.value,
@@ -405,7 +409,11 @@ var stdin_default = /* @__PURE__ */defineComponent({
405
409
  key: 1,
406
410
  class: normalizeClass(`${unref(prefixCls)}-before-body`)
407
411
  }, [renderSlot(_ctx.$slots, "before-body")], 2
408
- /* CLASS */)) : createCommentVNode("v-if", true), renderSlot(_ctx.$slots, "before-body-plain"), createElementVNode("div", {
412
+ /* CLASS */)) : createCommentVNode("v-if", true), _ctx.$slots["before-body-plain"] ? (openBlock(), createElementBlock("div", {
413
+ key: 2,
414
+ class: normalizeClass(`${unref(prefixCls)}-before-body-plain`)
415
+ }, [renderSlot(_ctx.$slots, "before-body-plain")], 2
416
+ /* CLASS */)) : createCommentVNode("v-if", true), createElementVNode("div", {
409
417
  class: normalizeClass(`${unref(prefixCls)}-body`)
410
418
  }, [_ctx.$slots["toolbar-left"] || _ctx.$slots["toolbar-right"] || mergedToolbarConfig.value || isStatsVisible.value ? (openBlock(), createElementBlock("div", {
411
419
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.10.15",
3
+ "version": "0.10.16",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",