rayyy-vue-table-components 1.0.28 → 1.0.30
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/index.d.ts +2 -2
- package/dist/index.es.js +11675 -17599
- package/dist/index.es.js.map +1 -0
- package/dist/index.umd.cjs +13245 -0
- package/dist/index.umd.cjs.map +1 -0
- package/dist/rayyy-vue-table-components.css +202 -1
- package/dist/src/App.vue.d.ts +1 -1
- package/dist/src/components/BaseDialog.vue.d.ts +3 -3
- package/dist/src/components/SearchBar.vue.d.ts +3 -3
- package/dist/src/components/items/BaseBtn.vue.d.ts +3 -3
- package/dist/src/components/items/BaseInput.vue.d.ts +3 -3
- package/dist/src/components/items/FilterBtn.vue.d.ts +1 -1
- package/dist/src/components/tables/BaseTable.vue.d.ts +5 -5
- package/dist/src/components/tables/SortTable.vue.d.ts +5 -5
- package/dist/src/components/transfer/TransferDialog.vue.d.ts +4 -4
- package/dist/src/components/transfer/transferItem.vue.d.ts +4 -4
- package/dist/src/index.d.ts +33 -33
- package/dist/src/layout/HomeLayout.vue.d.ts +1 -1
- package/dist/src/stores/counter.d.ts +6 -6
- package/dist/src/types/index.d.ts +1 -1
- package/dist/src/utils/tableHelper.d.ts +1 -1
- package/dist/src/views/DemoPage.vue.d.ts +1 -1
- package/dist/src/views/HomePage.vue.d.ts +1 -1
- package/dist/src/views/NotFoundPage.vue.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/transfer/TransferDialog.vue +1 -1
- package/dist/index.umd.js +0 -49
- package/dist/src/global.d.ts +0 -18
- package/dist/src/types/components.d.ts +0 -210
package/dist/src/global.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare module 'rayyy-vue-table-components' {
|
|
2
|
-
import type { App } from 'vue'
|
|
3
|
-
import type { DefineComponent } from 'vue'
|
|
4
|
-
|
|
5
|
-
export function install(app: App, options?: Record<string, unknown>): void
|
|
6
|
-
|
|
7
|
-
export const BaseTable: DefineComponent
|
|
8
|
-
export const BaseBtn: DefineComponent
|
|
9
|
-
export const BaseDialog: DefineComponent
|
|
10
|
-
|
|
11
|
-
export * from './types'
|
|
12
|
-
|
|
13
|
-
const plugin: {
|
|
14
|
-
install: typeof install
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export default plugin
|
|
18
|
-
}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
import { App, DefineComponent, VNode } from '../../vue/dist/vue.runtime.esm-bundler.js';
|
|
2
|
-
import { TableColumnCtx } from 'element-plus';
|
|
3
|
-
import { SortChangValue, TableColumn } from './index';
|
|
4
|
-
// ==================== BaseTable 組件類型 ====================
|
|
5
|
-
|
|
6
|
-
/** BaseTable 組件 Props 類型 */
|
|
7
|
-
export interface BaseTableProps<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
8
|
-
/** 是否顯示加載狀態 */
|
|
9
|
-
loading?: boolean
|
|
10
|
-
/** 表格數據 */
|
|
11
|
-
data: T[]
|
|
12
|
-
/** 表格列配置 */
|
|
13
|
-
columns: TableColumn<T>[]
|
|
14
|
-
/** 是否顯示選擇列 */
|
|
15
|
-
showSelection?: boolean
|
|
16
|
-
/** 是否顯示匯總行 */
|
|
17
|
-
showSummary?: boolean
|
|
18
|
-
/** 是否顯示溢出提示 */
|
|
19
|
-
showOverFlowTooltip?: boolean
|
|
20
|
-
/** 匯總方法 */
|
|
21
|
-
summaryMethod?: (param: {
|
|
22
|
-
columns: TableColumnCtx<Record<string, unknown>>[];
|
|
23
|
-
data: T[]
|
|
24
|
-
}) => (string | VNode)[]
|
|
25
|
-
/** 行樣式類名 */
|
|
26
|
-
baseTableRowClassName?: (data: { row: T; rowIndex: number }) => string
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/** BaseTable 組件 Emits 類型 */
|
|
30
|
-
export interface BaseTableEmits<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
31
|
-
/** 選擇變更事件 */
|
|
32
|
-
'selection-change': (selection: T[]) => void
|
|
33
|
-
/** 當前行變更事件 */
|
|
34
|
-
'current-change': (currentRow: T) => void
|
|
35
|
-
/** 單元格點擊事件 */
|
|
36
|
-
'cell-click': (column: TableColumn<T>, row: T) => void
|
|
37
|
-
/** 列排序變更事件 */
|
|
38
|
-
'column-sort-change': (value: SortChangValue<T>) => void
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/** BaseTable 組件實例類型 */
|
|
42
|
-
export interface BaseTableInstance<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
43
|
-
/** 組件 Props */
|
|
44
|
-
$props: BaseTableProps<T>
|
|
45
|
-
/** 組件 Emits */
|
|
46
|
-
$emit: BaseTableEmits<T>
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// ==================== BaseBtn 組件類型 ====================
|
|
50
|
-
|
|
51
|
-
/** BaseBtn 組件 Props 類型 */
|
|
52
|
-
export interface BaseBtnProps {
|
|
53
|
-
/** 按鈕文字 */
|
|
54
|
-
text?: string
|
|
55
|
-
/** 按鈕類型 */
|
|
56
|
-
type?: 'default' | 'primary' | 'success' | 'warning' | 'info' | 'danger'
|
|
57
|
-
/** 按鈕尺寸 */
|
|
58
|
-
size?: 'default' | 'small' | 'large'
|
|
59
|
-
/** 是否為樸素按鈕 */
|
|
60
|
-
plain?: boolean
|
|
61
|
-
/** 自定義 CSS 類名 */
|
|
62
|
-
class?: string
|
|
63
|
-
/** 是否禁用 */
|
|
64
|
-
disabled?: boolean
|
|
65
|
-
/** 是否為文字按鈕 */
|
|
66
|
-
textBtn?: boolean
|
|
67
|
-
/** 圖標 */
|
|
68
|
-
icon?: object
|
|
69
|
-
/** 是否為鏈接按鈕 */
|
|
70
|
-
link?: boolean
|
|
71
|
-
/** 是否填充樣式 */
|
|
72
|
-
isFill?: boolean
|
|
73
|
-
/** 是否顯示加載狀態 */
|
|
74
|
-
loading?: boolean
|
|
75
|
-
/** 測試屬性 */
|
|
76
|
-
dataCy?: string
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/** BaseBtn 組件 Emits 類型 */
|
|
80
|
-
export interface BaseBtnEmits {
|
|
81
|
-
/** 點擊事件 */
|
|
82
|
-
(e: 'click', evt: MouseEvent): void
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/** BaseBtn 組件實例類型 */
|
|
86
|
-
export interface BaseBtnInstance {
|
|
87
|
-
/** 組件 Props */
|
|
88
|
-
$props: BaseBtnProps
|
|
89
|
-
/** 組件 Emits */
|
|
90
|
-
$emit: BaseBtnEmits
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
// ==================== BaseDialog 組件類型 ====================
|
|
94
|
-
|
|
95
|
-
/** BaseDialog 組件 Props 類型 */
|
|
96
|
-
export interface BaseDialogProps {
|
|
97
|
-
/** 是否顯示對話框 */
|
|
98
|
-
modelValue: boolean
|
|
99
|
-
/** 對話框標題 */
|
|
100
|
-
title?: string
|
|
101
|
-
/** 副標題 */
|
|
102
|
-
subTitle?: string
|
|
103
|
-
/** 關閉前回調 */
|
|
104
|
-
beforeClose?: () => void
|
|
105
|
-
/** 自定義寬度 */
|
|
106
|
-
customWidth?: string
|
|
107
|
-
/** 是否為警告對話框 */
|
|
108
|
-
isWaring?: boolean
|
|
109
|
-
/** 是否為主要對話框 */
|
|
110
|
-
isPrimary?: boolean
|
|
111
|
-
/** 內容區域加載狀態 */
|
|
112
|
-
bodyLoading?: boolean
|
|
113
|
-
/** 提交按鈕加載狀態 */
|
|
114
|
-
submitLoading?: boolean
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
/** BaseDialog 組件 Emits 類型 */
|
|
118
|
-
export interface BaseDialogEmits {
|
|
119
|
-
/** 更新 modelValue */
|
|
120
|
-
(e: 'update:modelValue', data: boolean): void
|
|
121
|
-
/** 提交按鈕點擊事件 */
|
|
122
|
-
(e: 'click:submit'): void
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** BaseDialog 組件實例類型 */
|
|
126
|
-
export interface BaseDialogInstance {
|
|
127
|
-
/** 組件 Props */
|
|
128
|
-
$props: BaseDialogProps
|
|
129
|
-
/** 組件 Emits */
|
|
130
|
-
$emit: BaseDialogEmits
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// ==================== 組件定義類型 ====================
|
|
134
|
-
|
|
135
|
-
/** BaseTable 組件定義 */
|
|
136
|
-
export declare const BaseTable: DefineComponent<
|
|
137
|
-
BaseTableProps<any>,
|
|
138
|
-
{},
|
|
139
|
-
{},
|
|
140
|
-
{},
|
|
141
|
-
{},
|
|
142
|
-
{},
|
|
143
|
-
{},
|
|
144
|
-
BaseTableEmits<any>
|
|
145
|
-
> & {
|
|
146
|
-
/** 安裝方法 */
|
|
147
|
-
install: (app: App) => void
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/** BaseBtn 組件定義 */
|
|
151
|
-
export declare const BaseBtn: DefineComponent<
|
|
152
|
-
BaseBtnProps,
|
|
153
|
-
{},
|
|
154
|
-
{},
|
|
155
|
-
{},
|
|
156
|
-
{},
|
|
157
|
-
{},
|
|
158
|
-
{},
|
|
159
|
-
BaseBtnEmits
|
|
160
|
-
> & {
|
|
161
|
-
/** 安裝方法 */
|
|
162
|
-
install: (app: App) => void
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/** BaseDialog 組件定義 */
|
|
166
|
-
export declare const BaseDialog: DefineComponent<
|
|
167
|
-
BaseDialogProps,
|
|
168
|
-
{},
|
|
169
|
-
{},
|
|
170
|
-
{},
|
|
171
|
-
{},
|
|
172
|
-
{},
|
|
173
|
-
{},
|
|
174
|
-
BaseDialogEmits
|
|
175
|
-
> & {
|
|
176
|
-
/** 安裝方法 */
|
|
177
|
-
install: (app: App) => void
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// ==================== 插件類型 ====================
|
|
181
|
-
|
|
182
|
-
/** 插件安裝選項 */
|
|
183
|
-
export interface PluginOptions {
|
|
184
|
-
/** 是否自動導入樣式 */
|
|
185
|
-
autoImportStyles?: boolean
|
|
186
|
-
/** 自定義前綴 */
|
|
187
|
-
prefix?: string
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** 插件實例類型 */
|
|
191
|
-
export interface VueTableComponentsPlugin {
|
|
192
|
-
/** 安裝方法 */
|
|
193
|
-
install: (app: App, options?: PluginOptions) => void
|
|
194
|
-
/** BaseTable 組件 */
|
|
195
|
-
BaseTable: typeof BaseTable
|
|
196
|
-
/** BaseBtn 組件 */
|
|
197
|
-
BaseBtn: typeof BaseBtn
|
|
198
|
-
/** BaseDialog 組件 */
|
|
199
|
-
BaseDialog: typeof BaseDialog
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
// ==================== 全局類型擴展 ====================
|
|
203
|
-
|
|
204
|
-
declare module '@vue/runtime-core' {
|
|
205
|
-
export interface GlobalComponents {
|
|
206
|
-
BaseTable: typeof BaseTable
|
|
207
|
-
BaseBtn: typeof BaseBtn
|
|
208
|
-
BaseDialog: typeof BaseDialog
|
|
209
|
-
}
|
|
210
|
-
}
|