@juzhenfe/page-model 3.18.95 → 3.18.96
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/components/editable-table/index.d.ts +0 -5
- package/dist/index.es.js +44 -20
- package/dist/index.min.css +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/types/common.d.ts +10 -4
- package/package.json +1 -1
package/dist/types/common.d.ts
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/// <reference path="./form-item-types/jz-cascader.d.ts" />
|
|
24
24
|
|
|
25
25
|
import { ButtonProps } from 'element-plus'
|
|
26
|
-
import { StyleValue } from 'vue'
|
|
26
|
+
import { StyleValue, VNode } from 'vue'
|
|
27
27
|
import { JSX } from 'vue/jsx-runtime'
|
|
28
28
|
|
|
29
29
|
declare global {
|
|
@@ -46,7 +46,6 @@ declare global {
|
|
|
46
46
|
|
|
47
47
|
type FilterType = 'string' | 'number' | 'date' | 'boolean' | 'select' | 'list'
|
|
48
48
|
|
|
49
|
-
|
|
50
49
|
type InnerFilterItem = {
|
|
51
50
|
key: string
|
|
52
51
|
compareFn: (cellValue: string) => boolean
|
|
@@ -288,6 +287,10 @@ declare global {
|
|
|
288
287
|
interface NoParams extends AnyObject {}
|
|
289
288
|
|
|
290
289
|
interface TableBaseItem<MODEL = any, CTX = any> extends BaseElItem<MODEL> {
|
|
290
|
+
/**
|
|
291
|
+
* 表头小组件渲染
|
|
292
|
+
*/
|
|
293
|
+
headerToolRenderFn?: (el: TableBaseItem<MODEL>, index: number) => VNode
|
|
291
294
|
/**
|
|
292
295
|
* 列渲染的唯一key
|
|
293
296
|
*/
|
|
@@ -337,7 +340,7 @@ declare global {
|
|
|
337
340
|
/**
|
|
338
341
|
* 是否启用过滤
|
|
339
342
|
*/
|
|
340
|
-
filterable?: boolean
|
|
343
|
+
filterable?: boolean
|
|
341
344
|
|
|
342
345
|
/**
|
|
343
346
|
* 过滤的选项
|
|
@@ -358,7 +361,10 @@ declare global {
|
|
|
358
361
|
/**
|
|
359
362
|
* 过滤选项
|
|
360
363
|
*/
|
|
361
|
-
filterOptions?: Array<{
|
|
364
|
+
filterOptions?: Array<{
|
|
365
|
+
label: string
|
|
366
|
+
value: string | number | boolean
|
|
367
|
+
}>
|
|
362
368
|
}>
|
|
363
369
|
|
|
364
370
|
/**
|