@yidun/antd-super-table 0.1.0 → 0.1.1
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/dist/example/type-example.d.ts +0 -0
- package/dist/{types.d.ts → interface.d.ts} +17 -2
- package/dist/src/config.d.ts +1 -1
- package/dist/src/index.d.ts +1 -3
- package/dist/src/utils/index.d.ts +1 -1
- package/dist/src/utils/service.d.ts +1 -1
- package/example/type-example.ts +0 -0
- package/package.json +3 -3
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SelectProps, TableProps, PaginationProps } from 'ant-design-vue'
|
|
2
|
-
import type { Component, Reactive, Ref } from 'vue'
|
|
2
|
+
import type { Component, ComponentPublicInstance, Reactive, Ref } from 'vue'
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* 表格列对应的类型枚举
|
|
@@ -408,7 +408,7 @@ export interface SuperTableTableOperations {
|
|
|
408
408
|
}
|
|
409
409
|
|
|
410
410
|
/**
|
|
411
|
-
*
|
|
411
|
+
* 插槽类型
|
|
412
412
|
* @public
|
|
413
413
|
*/
|
|
414
414
|
export interface SuperTableSlots {
|
|
@@ -429,3 +429,18 @@ export interface SuperTableSlots {
|
|
|
429
429
|
/** 展开行内容插槽 */
|
|
430
430
|
expandedRowRender?: (props: { record: any }) => any
|
|
431
431
|
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* 组件暴露方法类型
|
|
435
|
+
* @public
|
|
436
|
+
*/
|
|
437
|
+
export interface SuperTableExpose extends SuperTableFormOperations, SuperTableTableOperations {
|
|
438
|
+
/** 是否已初始化 */
|
|
439
|
+
isInitialized: Ref<boolean>
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* 组件实例类型
|
|
444
|
+
* @public
|
|
445
|
+
*/
|
|
446
|
+
export type SuperTableInstance = ComponentPublicInstance<Record<string, any>, SuperTableExpose>
|
package/dist/src/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SuperTableColumnType, SuperTableFormItemType } from './
|
|
1
|
+
import { SuperTableColumnType, SuperTableFormItemType } from './interface';
|
|
2
2
|
/** antd 主题配置 */
|
|
3
3
|
export declare const antdSeedToken: import("ant-design-vue/es/theme/interface").MapToken;
|
|
4
4
|
/** 查询项内置的一些字段 */
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import type SuperTableComponent from './SuperTable.vue';
|
|
2
1
|
import SuperTable from './SuperTable.vue';
|
|
3
2
|
import DynamicList from './components/DynamicList.vue';
|
|
4
3
|
export default SuperTable;
|
|
5
4
|
export { DynamicList };
|
|
6
5
|
export { SuperTableColumnTypeEnum, SuperTableFormItemTypeEnum } from './config';
|
|
7
|
-
export * from './
|
|
8
|
-
export type SuperTableInstance = InstanceType<typeof SuperTableComponent>;
|
|
6
|
+
export * from './interface.d';
|
|
9
7
|
declare module 'vue' {
|
|
10
8
|
interface GlobalComponents {
|
|
11
9
|
SuperTable: typeof SuperTable;
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yidun/antd-super-table",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"module": "./dist/index.js",
|
|
6
|
-
"types": "./dist/
|
|
6
|
+
"types": "./dist/interface.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
9
9
|
"example",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
14
|
"dev": "vite",
|
|
15
|
-
"build": "vite build --mode lib && tsc --emitDeclarationOnly && cp src/
|
|
15
|
+
"build": "vite build --mode lib && tsc --emitDeclarationOnly && cp src/interface.d.ts dist/",
|
|
16
16
|
"preview": "vite preview",
|
|
17
17
|
"tsc": "tsc --noEmit --project tsconfig.json",
|
|
18
18
|
"lint": "eslint src --ext .js,.ts,.vue",
|