@wyfex/ivue 0.19.2 → 0.19.4
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.es.js +12 -12
- package/dist/index.umd.cjs +12 -12
- package/dist/ivue.css +1 -1
- package/dist/types/{UseCrudTable → UseCrud}/defaultExtConfig.d.ts +6 -0
- package/dist/types/UseCrud/hook.d.ts +31 -0
- package/dist/types/{UseCrudTable → UseCrud}/index.vue.d.ts +6 -12
- package/dist/types/UseCrud/props.d.ts +13 -0
- package/dist/types/UseCrud/types.d.ts +33 -0
- package/dist/types/UseCrud/useCrudWithBusiness.d.ts +46 -0
- package/dist/types/UseElButton/index.vue.d.ts +1 -1
- package/dist/types/UseElCheckbox/index.vue.d.ts +1 -1
- package/dist/types/UseElCheckbox/types.d.ts +2 -2
- package/dist/types/UseElConfigProvider/types.d.ts +4 -0
- package/dist/types/UseElDatePicker/index.vue.d.ts +1 -1
- package/dist/types/UseElDescriptions/index.vue.d.ts +1 -1
- package/dist/types/UseElDialog/index.vue.d.ts +1 -1
- package/dist/types/UseElDrawer/index.vue.d.ts +2 -2
- package/dist/types/UseElForm/components/QueryForm.vue.d.ts +1 -3
- package/dist/types/UseElForm/components/RowForm.vue.d.ts +1 -3
- package/dist/types/UseElForm/index.vue.d.ts +1 -1
- package/dist/types/UseElForm/types.d.ts +20 -21
- package/dist/types/UseElInput/index.vue.d.ts +11 -11
- package/dist/types/UseElInput/props.d.ts +5 -5
- package/dist/types/UseElSelect/index.vue.d.ts +2 -2
- package/dist/types/UseElTable/defaultExtConfig.d.ts +1 -0
- package/dist/types/UseElTable/index.vue.d.ts +20 -2
- package/dist/types/UseElTable/props.d.ts +8 -0
- package/dist/types/UseElTable/types.d.ts +1 -0
- package/dist/types/UseRender/index.vue.d.ts +1 -1
- package/dist/types/index.d.ts +2 -1
- package/package.json +8 -8
- package/src/components/UseCrud/defaultExtConfig.ts +15 -0
- package/src/components/UseCrud/props.ts +25 -0
- package/src/components/UseCrud/types.ts +85 -0
- package/src/components/UseElCheckbox/types.ts +2 -2
- package/src/components/UseElConfigProvider/types.ts +9 -0
- package/src/components/UseElForm/types.ts +165 -54
- package/src/components/UseElTable/defaultExtConfig.ts +1 -1
- package/src/components/UseElTable/props.ts +14 -0
- package/src/components/UseElTable/types.ts +8 -1
- package/src/types/index.ts +8 -0
- package/dist/types/UseCrudTable/props.d.ts +0 -18
- package/dist/types/UseCrudTable/types.d.ts +0 -26
- package/src/components/UseCrudTable/defaultExtConfig.ts +0 -28
- package/src/components/UseCrudTable/props.ts +0 -32
- package/src/components/UseCrudTable/types.ts +0 -51
- /package/dist/types/{UseCrudTable → UseCrud}/utils.d.ts +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ExtractPropTypes } from 'vue';
|
|
2
|
-
import { default as componentProps } from './props';
|
|
3
|
-
import { FormColumn } from '../UseElForm/types';
|
|
4
|
-
import { TableColumn } from '../UseElTable/types';
|
|
5
|
-
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
6
|
-
export interface Emits {
|
|
7
|
-
(e: 'onDictKeys', value?: string[]): void;
|
|
8
|
-
}
|
|
9
|
-
export type BaseConfigs = Omit<FormColumn, 'prop'> & Omit<TableColumn, 'prop'>;
|
|
10
|
-
export interface Configs extends BaseConfigs {
|
|
11
|
-
prop: string;
|
|
12
|
-
onlySearch?: boolean;
|
|
13
|
-
tableOrder?: number;
|
|
14
|
-
}
|
|
15
|
-
export interface Divider {
|
|
16
|
-
show: boolean;
|
|
17
|
-
borderStyle: 'none' | 'solid' | 'hidden' | 'dashed';
|
|
18
|
-
}
|
|
19
|
-
export interface ExtConfig {
|
|
20
|
-
actionBar: {
|
|
21
|
-
margin: string;
|
|
22
|
-
showControlFormDisplayBtn: boolean;
|
|
23
|
-
reverse: boolean;
|
|
24
|
-
divider: Divider;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { ExtConfig } from './types'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 默认扩展配置
|
|
5
|
-
*/
|
|
6
|
-
export default {
|
|
7
|
-
/**
|
|
8
|
-
* 操作栏配置项
|
|
9
|
-
*/
|
|
10
|
-
actionBar: {
|
|
11
|
-
/**
|
|
12
|
-
* 操作栏外边距配置项
|
|
13
|
-
*/
|
|
14
|
-
margin: '20px 0',
|
|
15
|
-
/**
|
|
16
|
-
* 是否显示【收起/展开查询】按钮配置项
|
|
17
|
-
*/
|
|
18
|
-
showControlFormDisplayBtn: true,
|
|
19
|
-
/**
|
|
20
|
-
* 是否反转操作栏按钮 仅showControlFormDisplayBtn为true时生效
|
|
21
|
-
*/
|
|
22
|
-
reverse: false,
|
|
23
|
-
/**
|
|
24
|
-
* 操作栏底部分割线配置项
|
|
25
|
-
*/
|
|
26
|
-
divider: { show: false, borderStyle: 'solid' }
|
|
27
|
-
}
|
|
28
|
-
} satisfies ExtConfig
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { PropType } from 'vue'
|
|
2
|
-
import type { ExtConfig as TableExtConfig } from '../UseElTable/types'
|
|
3
|
-
import type { Configs, ExtConfig } from './types'
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* 组件props
|
|
7
|
-
*/
|
|
8
|
-
export default {
|
|
9
|
-
/**
|
|
10
|
-
* 配置项 必传
|
|
11
|
-
* 1、configs是【formColumns】和【tableColumns】的统一配置入口
|
|
12
|
-
* 2、configs在【formColumns】和【tableColumns】的配置基础上新增了【onlySearch】和【tableOrder】配置项用于兼容特殊应用场景
|
|
13
|
-
*/
|
|
14
|
-
configs: {
|
|
15
|
-
type: Array as PropType<Configs[]>,
|
|
16
|
-
required: true
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* 表格扩展配置项
|
|
20
|
-
*/
|
|
21
|
-
tableExtConfig: {
|
|
22
|
-
type: Object as PropType<TableExtConfig>,
|
|
23
|
-
default: () => ({})
|
|
24
|
-
},
|
|
25
|
-
/**
|
|
26
|
-
* 扩展配置 如【操作栏】等
|
|
27
|
-
*/
|
|
28
|
-
extConfig: {
|
|
29
|
-
type: Object as PropType<ExtConfig>,
|
|
30
|
-
default: () => ({})
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ExtractPropTypes } from 'vue'
|
|
2
|
-
import componentProps from './props'
|
|
3
|
-
import type { FormColumn } from '../UseElForm/types'
|
|
4
|
-
import type { TableColumn } from '../UseElTable/types'
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* props类型
|
|
8
|
-
*/
|
|
9
|
-
export type Props = ExtractPropTypes<typeof componentProps>
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* emits接口
|
|
13
|
-
*/
|
|
14
|
-
export interface Emits {
|
|
15
|
-
// dictKeys事件
|
|
16
|
-
(e: 'onDictKeys', value?: string[]): void
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 基础配置类型
|
|
21
|
-
*/
|
|
22
|
-
export type BaseConfigs = Omit<FormColumn, 'prop'> & Omit<TableColumn, 'prop'>
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 配置项接口
|
|
26
|
-
*/
|
|
27
|
-
export interface Configs extends BaseConfigs {
|
|
28
|
-
prop: string
|
|
29
|
-
onlySearch?: boolean
|
|
30
|
-
tableOrder?: number
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 分割线配置项接口
|
|
35
|
-
*/
|
|
36
|
-
export interface Divider {
|
|
37
|
-
show: boolean
|
|
38
|
-
borderStyle: 'none' | 'solid' | 'hidden' | 'dashed'
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* extConfig接口
|
|
43
|
-
*/
|
|
44
|
-
export interface ExtConfig {
|
|
45
|
-
actionBar: {
|
|
46
|
-
margin: string
|
|
47
|
-
showControlFormDisplayBtn: boolean
|
|
48
|
-
reverse: boolean
|
|
49
|
-
divider: Divider
|
|
50
|
-
}
|
|
51
|
-
}
|
|
File without changes
|