@airpower/web 0.0.42 → 0.0.43

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.
@@ -58,6 +58,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  clazz: {
59
59
  type: Function,
60
60
  required: true
61
+ },
62
+ /**
63
+ * ### 表格ID
64
+ * 如传入,选择表格列后会自动缓存
65
+ */
66
+ tableId: {
67
+ type: String,
68
+ default: ""
61
69
  }
62
70
  },
63
71
  setup(__props) {
@@ -1,11 +1,14 @@
1
1
  import { AirEntity, ClassConstructor } from '@airpower/core';
2
2
  import { ITableFieldConfig } from '../decorator';
3
3
  declare const _default: <E extends AirEntity>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
+ props: __VLS_PrettifyLocal<Pick<Partial<{
5
+ tableId: string;
6
+ }> & Omit<{
5
7
  readonly data: E[];
6
8
  readonly clazz: ClassConstructor<E>;
9
+ readonly tableId: string;
7
10
  readonly columns?: ITableFieldConfig[] | undefined;
8
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "columns" | ("data" | "clazz")> & {} & Partial<{}>> & import('vue').PublicProps;
11
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "tableId">, "columns" | "data" | "clazz" | "tableId"> & {} & Partial<{}>> & import('vue').PublicProps;
9
12
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
13
  attrs: any;
11
14
  slots: {};
@@ -5,7 +5,25 @@ import { TableAlign, TableFixed, TableSortable } from './TableType';
5
5
  * @autho Hamm.cn
6
6
  */
7
7
  export interface IElementTableColumn {
8
+ /**
9
+ * ### 滚动时固定位置
10
+ */
8
11
  fixed?: TableFixed;
12
+ /**
13
+ * ### 列对齐方式
14
+ */
9
15
  align?: TableAlign;
16
+ /**
17
+ * ### 是否字段允许排序 `默认不排序`
18
+ * `custom` 为自定义排序, `WebTable` 组件将触发 `onSortChange` 事件
19
+ */
10
20
  sortable?: TableSortable;
21
+ /**
22
+ * ### 列宽度
23
+ */
24
+ width?: string;
25
+ /**
26
+ * ### 最小宽度
27
+ */
28
+ minWidth?: string;
11
29
  }
@@ -16,4 +16,8 @@ export interface ITableFieldConfig extends IField, IElementTableColumn {
16
16
  * 越大越靠前
17
17
  */
18
18
  orderNumber?: number;
19
+ /**
20
+ * ### 是否隐藏
21
+ */
22
+ hide?: boolean;
19
23
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@airpower/web",
3
3
  "type": "module",
4
- "version": "0.0.42",
4
+ "version": "0.0.43",
5
5
  "description": "AirPower-Web",
6
6
  "author": {
7
7
  "name": "Hamm",
@@ -44,7 +44,7 @@
44
44
  "vue": "^3.5.13"
45
45
  },
46
46
  "dependencies": {
47
- "@airpower/core": "^0.1.16",
47
+ "@airpower/core": "^0.1.17",
48
48
  "axios": "^1.8.4",
49
49
  "element-plus": "^2.9.7",
50
50
  "vue": "^3.5.13"