dydx-naive-ui-for-vue 0.1.17 → 0.1.18

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.
@@ -1,5 +1,6 @@
1
1
  import { DataTableColumn, DataTableBaseColumn, DataTableSelectionColumn, DataTableExpandColumn, TagProps } from 'naive-ui';
2
2
  import { VNodeChild } from 'vue';
3
+ import { DeepKeys } from '../../NaiveForm';
3
4
  /**
4
5
  * 列类型
5
6
  * - text: 文本(默认)
@@ -126,7 +127,8 @@ export interface ActionColumnConfig<T = any> {
126
127
  /**
127
128
  * 扩展列配置 - 完全兼容 Naive UI DataTableBaseColumn
128
129
  */
129
- export interface DydxTableColumn<T = any> extends DataTableBaseColumn<T> {
130
+ export interface DydxTableColumn<T = any> extends Omit<DataTableBaseColumn<T>, 'key'> {
131
+ key: DeepKeys<T>;
130
132
  /** 是否默认显示(用于列设置功能) */
131
133
  defaultVisible?: boolean;
132
134
  /** 是否可在列设置中控制显示/隐藏 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dydx-naive-ui-for-vue",
3
- "version": "0.1.17",
3
+ "version": "0.1.18",
4
4
  "web-types": "./web-types.json",
5
5
  "type": "module",
6
6
  "main": "./dist/dydx-naive-ui-for-vue.umd.cjs",