@wyfex/ivue 0.13.0 → 0.15.0
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/README.md +1 -1
- package/dist/index.es.js +11 -11
- package/dist/index.umd.cjs +11 -11
- package/dist/ivue.css +1 -1
- package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/defaultExtConfig.d.ts +4 -0
- package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/props.d.ts +1 -1
- package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/types.d.ts +8 -4
- package/dist/types/{UseElDatePicker → components/UseElDatePicker}/props.d.ts +1 -1
- package/dist/types/{UseElDescriptions → components/UseElDescriptions}/hook.d.ts +1 -1
- package/dist/types/{UseElDescriptions → components/UseElDescriptions}/index.vue.d.ts +7 -7
- package/dist/types/{UseElDescriptions → components/UseElDescriptions}/props.d.ts +1 -1
- package/dist/types/{UseElDescriptions → components/UseElDescriptions}/types.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/Cascader.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/DatePicker.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/Input.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputNumber.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputRange.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/Radio.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/Select.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimePicker.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimeSelect.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/TreeSelect.vue.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/hook.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/props.d.ts +1 -1
- package/dist/types/{UseElForm → components/UseElForm}/types.d.ts +1 -1
- package/dist/types/{UseElInput → components/UseElInput}/props.d.ts +1 -1
- package/dist/types/{UseElSelect → components/UseElSelect}/hook.d.ts +1 -1
- package/dist/types/{UseElSelect → components/UseElSelect}/props.d.ts +1 -1
- package/dist/types/{UseElTable → components/UseElTable}/components/RecTableColumn.vue.d.ts +1 -1
- package/dist/types/{UseElTable → components/UseElTable}/defaultExtConfig.d.ts +5 -0
- package/dist/types/{UseElTable → components/UseElTable}/hooks/useElTable.d.ts +1 -1
- package/dist/types/{UseElTable → components/UseElTable}/hooks/useTableColumnMinWidth.d.ts +1 -1
- package/dist/types/components/UseElTable/hooks/useTableHeightAdaptive.d.ts +5 -0
- package/dist/types/{UseElTable → components/UseElTable}/props.d.ts +1 -1
- package/dist/types/{UseElTable → components/UseElTable}/types.d.ts +7 -2
- package/dist/types/{UseElTable → components/UseElTable}/utils.d.ts +1 -1
- package/dist/types/components/UseIconfont/index.vue.d.ts +50 -0
- package/dist/types/components/UseIconfont/props.d.ts +23 -0
- package/dist/types/components/UseLineTitle/defaultExtConfig.d.ts +19 -0
- package/dist/types/components/UseLineTitle/index.vue.d.ts +50 -0
- package/dist/types/components/UseLineTitle/props.d.ts +25 -0
- package/dist/types/components/UseLineTitle/types.d.ts +24 -0
- package/dist/types/{UseRender → components/UseRender}/props.d.ts +1 -1
- package/dist/types/{index.d.ts → components/index.d.ts} +2 -0
- package/package.json +5 -5
- package/src/components/UseElConfigProvider/defaultExtConfig.ts +1 -0
- package/src/components/UseElConfigProvider/types.ts +6 -2
- package/src/components/UseElTable/defaultExtConfig.ts +11 -0
- package/src/components/UseElTable/props.ts +1 -1
- package/src/components/UseElTable/types.ts +9 -2
- package/src/components/UseIconfont/props.ts +40 -0
- package/src/components/UseLineTitle/defaultExtConfig.ts +32 -0
- package/src/components/UseLineTitle/props.ts +43 -0
- package/src/components/UseLineTitle/types.ts +44 -0
- package/dist/types/UseElTable/hooks/useTableHeightAdaptive.d.ts +0 -4
- package/dist/types/{UseElButton → components/UseElButton}/defaultExtConfig.d.ts +0 -0
- package/dist/types/{UseElButton → components/UseElButton}/hook.d.ts +0 -0
- package/dist/types/{UseElButton → components/UseElButton}/index.vue.d.ts +0 -0
- package/dist/types/{UseElButton → components/UseElButton}/props.d.ts +0 -0
- package/dist/types/{UseElButton → components/UseElButton}/types.d.ts +0 -0
- package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/index.vue.d.ts +0 -0
- package/dist/types/{UseElDatePicker → components/UseElDatePicker}/index.vue.d.ts +0 -0
- package/dist/types/{UseElDatePicker → components/UseElDatePicker}/types.d.ts +0 -0
- package/dist/types/{UseElDialog → components/UseElDialog}/hook.d.ts +0 -0
- package/dist/types/{UseElDialog → components/UseElDialog}/index.vue.d.ts +0 -0
- package/dist/types/{UseElDialog → components/UseElDialog}/props.d.ts +0 -0
- package/dist/types/{UseElDialog → components/UseElDialog}/types.d.ts +0 -0
- package/dist/types/{UseElDrawer → components/UseElDrawer}/hook.d.ts +0 -0
- package/dist/types/{UseElDrawer → components/UseElDrawer}/index.vue.d.ts +0 -0
- package/dist/types/{UseElDrawer → components/UseElDrawer}/props.d.ts +0 -0
- package/dist/types/{UseElDrawer → components/UseElDrawer}/types.d.ts +0 -0
- package/dist/types/{UseElForm → components/UseElForm}/components/QueryForm.vue.d.ts +0 -0
- package/dist/types/{UseElForm → components/UseElForm}/components/RowForm.vue.d.ts +0 -0
- package/dist/types/{UseElForm → components/UseElForm}/components/controls/Switch.vue.d.ts +0 -0
- package/dist/types/{UseElForm → components/UseElForm}/components/useQueryColSpan.d.ts +0 -0
- package/dist/types/{UseElForm → components/UseElForm}/index.vue.d.ts +0 -0
- package/dist/types/{UseElInput → components/UseElInput}/index.vue.d.ts +0 -0
- package/dist/types/{UseElInput → components/UseElInput}/types.d.ts +0 -0
- package/dist/types/{UseElSelect → components/UseElSelect}/index.vue.d.ts +0 -0
- package/dist/types/{UseElSelect → components/UseElSelect}/types.d.ts +0 -0
- package/dist/types/{UseElSwitch → components/UseElSwitch}/index.vue.d.ts +0 -0
- package/dist/types/{UseElSwitch → components/UseElSwitch}/props.d.ts +0 -0
- package/dist/types/{UseElTable → components/UseElTable}/components/EditableCell.vue.d.ts +0 -0
- package/dist/types/{UseElTable → components/UseElTable}/components/Selection.vue.d.ts +0 -0
- package/dist/types/{UseElTable → components/UseElTable}/components/Span.vue.d.ts +0 -0
- package/dist/types/{UseElTable → components/UseElTable}/hooks/usePagination.d.ts +0 -0
- package/dist/types/{UseElTable → components/UseElTable}/hooks/useSelection.d.ts +2 -2
- /package/dist/types/{UseElTable → components/UseElTable}/index.vue.d.ts +0 -0
- /package/dist/types/{UseRender → components/UseRender}/hook.d.ts +0 -0
- /package/dist/types/{UseRender → components/UseRender}/index.vue.d.ts +0 -0
- /package/dist/types/{UseRender → components/UseRender}/types.d.ts +0 -0
- /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/index.vue.d.ts +0 -0
- /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/props.d.ts +0 -0
|
@@ -14,7 +14,7 @@ export interface Emits {
|
|
|
14
14
|
// dictKeys事件
|
|
15
15
|
(e: 'onDictKeys', value?: string[]): void
|
|
16
16
|
// 选中数据更新事件(支持 v-model:selectionData)
|
|
17
|
-
(e: 'update:selectionData', selectionData: any
|
|
17
|
+
(e: 'update:selectionData', selectionData: any): void
|
|
18
18
|
// 当前行更新事件(支持 v-model:currentRow)
|
|
19
19
|
(e: 'update:currentRow', currentRow: any): void
|
|
20
20
|
// 当前页码更新事件(支持 v-model:currentPage)
|
|
@@ -83,7 +83,8 @@ export interface TableColumn {
|
|
|
83
83
|
useDict?: boolean | string | UseDict
|
|
84
84
|
/**
|
|
85
85
|
* 插槽
|
|
86
|
-
* 为true则在模板代码中添加`<template #prop="{ row }"></template
|
|
86
|
+
* 为true则在模板代码中添加`<template #prop="{ row }"></template>`即可
|
|
87
|
+
* 可传入string自定义具名插槽名称
|
|
87
88
|
*/
|
|
88
89
|
slot?: boolean | string
|
|
89
90
|
width?: string | number
|
|
@@ -123,6 +124,12 @@ export interface ExtConfig {
|
|
|
123
124
|
class?: string
|
|
124
125
|
style?: { padding?: string; borderBottom?: string }
|
|
125
126
|
}
|
|
127
|
+
// 高度配置项
|
|
128
|
+
heightAdaptive?: {
|
|
129
|
+
isModal?: boolean
|
|
130
|
+
modalFooterHeight?: number
|
|
131
|
+
bottomOffset?: number
|
|
132
|
+
}
|
|
126
133
|
// 选择器配置项
|
|
127
134
|
selection?: Selection
|
|
128
135
|
// 序号列配置项
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 组件props
|
|
3
|
+
*/
|
|
4
|
+
export default {
|
|
5
|
+
/**
|
|
6
|
+
* 图标名称 必传
|
|
7
|
+
*/
|
|
8
|
+
name: {
|
|
9
|
+
type: String,
|
|
10
|
+
required: true
|
|
11
|
+
},
|
|
12
|
+
/**
|
|
13
|
+
* 图标前缀
|
|
14
|
+
*/
|
|
15
|
+
prefix: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: 'iconfont'
|
|
18
|
+
},
|
|
19
|
+
/**
|
|
20
|
+
* 图标大小
|
|
21
|
+
*/
|
|
22
|
+
fontSize: {
|
|
23
|
+
type: String,
|
|
24
|
+
default: '18px'
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* 图标颜色
|
|
28
|
+
*/
|
|
29
|
+
color: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ''
|
|
32
|
+
},
|
|
33
|
+
/**
|
|
34
|
+
* 是否可点击
|
|
35
|
+
*/
|
|
36
|
+
clickable: {
|
|
37
|
+
type: Boolean,
|
|
38
|
+
default: false
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { ExtConfig } from './types'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 默认扩展配置
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
/**
|
|
8
|
+
* 外边距配置项
|
|
9
|
+
*/
|
|
10
|
+
margin: {
|
|
11
|
+
top: '0px',
|
|
12
|
+
bottom: '20px'
|
|
13
|
+
},
|
|
14
|
+
/**
|
|
15
|
+
* 线条配置项
|
|
16
|
+
*/
|
|
17
|
+
line: {
|
|
18
|
+
width: '4px', //作用于position为left和bottom
|
|
19
|
+
height: '2px', //作用于position为between
|
|
20
|
+
color: 'var(--theme-color)',
|
|
21
|
+
position: 'left',
|
|
22
|
+
verticalPadding: '0px'
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* 底部border配置项
|
|
26
|
+
*/
|
|
27
|
+
borderBottom: {
|
|
28
|
+
show: false,
|
|
29
|
+
color: 'var(--el-border-color-light)',
|
|
30
|
+
paddingBottom: '20px'
|
|
31
|
+
}
|
|
32
|
+
} satisfies ExtConfig
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { PropType } from 'vue'
|
|
2
|
+
import type { ExtConfig } from './types'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* 组件props
|
|
6
|
+
*/
|
|
7
|
+
export default {
|
|
8
|
+
/**
|
|
9
|
+
* 标题名称 必传
|
|
10
|
+
*/
|
|
11
|
+
title: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
/**
|
|
16
|
+
* 字体大小
|
|
17
|
+
*/
|
|
18
|
+
fontSize: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: '18px'
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* 标题颜色
|
|
24
|
+
*/
|
|
25
|
+
color: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: ''
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* 样式类名
|
|
31
|
+
*/
|
|
32
|
+
class: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: ''
|
|
35
|
+
},
|
|
36
|
+
/**
|
|
37
|
+
* 扩展配置 如【外边距/线条/底部border】等
|
|
38
|
+
*/
|
|
39
|
+
extConfig: {
|
|
40
|
+
type: Object as PropType<ExtConfig>,
|
|
41
|
+
default: () => ({})
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue'
|
|
2
|
+
import componentProps from './props'
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* props类型
|
|
6
|
+
*/
|
|
7
|
+
export type Props = ExtractPropTypes<typeof componentProps>
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 线条接口
|
|
11
|
+
*/
|
|
12
|
+
export interface Line {
|
|
13
|
+
width: string
|
|
14
|
+
height: string
|
|
15
|
+
color: string
|
|
16
|
+
position: 'left' | 'bottom' | 'between'
|
|
17
|
+
verticalPadding: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 外边距接口
|
|
22
|
+
*/
|
|
23
|
+
export interface Margin {
|
|
24
|
+
top: string
|
|
25
|
+
bottom: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 底部border接口
|
|
30
|
+
*/
|
|
31
|
+
export interface BorderBottom {
|
|
32
|
+
show: boolean
|
|
33
|
+
color: string
|
|
34
|
+
paddingBottom: string
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* extConfig接口
|
|
39
|
+
*/
|
|
40
|
+
export interface ExtConfig {
|
|
41
|
+
line: Line
|
|
42
|
+
margin: Margin
|
|
43
|
+
borderBottom: BorderBottom
|
|
44
|
+
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,9 +7,9 @@ export declare const useSelection: ({ mergedProps, emits, attrs, etRef }: {
|
|
|
7
7
|
attrs: Attrs;
|
|
8
8
|
etRef: Ref<TableInstance | null>;
|
|
9
9
|
}) => {
|
|
10
|
+
radioComputed: import('vue').WritableComputedRef<string, string>;
|
|
11
|
+
selectionContent: ComputedRef<string>;
|
|
10
12
|
handleSelectAll: (selection: any) => void;
|
|
11
13
|
handleSelect: (selection: any, row: any) => void;
|
|
12
14
|
handleRowClick: (row: any) => void;
|
|
13
|
-
radioComputed: import('vue').WritableComputedRef<string, string>;
|
|
14
|
-
selectionContent: ComputedRef<string>;
|
|
15
15
|
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|