@wyfex/ivue 0.13.0 → 0.14.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/dist/index.es.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/ivue.css +1 -1
- package/dist/types/UseLineTitle/defaultExtConfig.d.ts +19 -0
- package/dist/types/UseLineTitle/index.vue.d.ts +50 -0
- package/dist/types/UseLineTitle/props.d.ts +25 -0
- package/dist/types/UseLineTitle/types.d.ts +24 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/UseLineTitle/defaultExtConfig.ts +32 -0
- package/src/components/UseLineTitle/props.ts +43 -0
- package/src/components/UseLineTitle/types.ts +44 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
margin: {
|
|
3
|
+
top: string;
|
|
4
|
+
bottom: string;
|
|
5
|
+
};
|
|
6
|
+
line: {
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
color: string;
|
|
10
|
+
position: "left";
|
|
11
|
+
verticalPadding: string;
|
|
12
|
+
};
|
|
13
|
+
borderBottom: {
|
|
14
|
+
show: false;
|
|
15
|
+
color: string;
|
|
16
|
+
paddingBottom: string;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
declare const __VLS_export: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
title: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
required: boolean;
|
|
5
|
+
};
|
|
6
|
+
fontSize: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
color: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
class: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
extConfig: {
|
|
19
|
+
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
23
|
+
title: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
fontSize: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
color: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
class: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
extConfig: {
|
|
40
|
+
type: import('vue').PropType<import('./types').ExtConfig>;
|
|
41
|
+
default: () => {};
|
|
42
|
+
};
|
|
43
|
+
}>> & Readonly<{}>, {
|
|
44
|
+
extConfig: import('./types').ExtConfig;
|
|
45
|
+
class: string;
|
|
46
|
+
fontSize: string;
|
|
47
|
+
color: string;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
declare const _default: typeof __VLS_export;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ExtConfig } from './types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
};
|
|
8
|
+
fontSize: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
color: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
class: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
extConfig: {
|
|
21
|
+
type: PropType<ExtConfig>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
|
2
|
+
import { default as componentProps } from './props';
|
|
3
|
+
export type Props = ExtractPropTypes<typeof componentProps>;
|
|
4
|
+
export interface Line {
|
|
5
|
+
width: string;
|
|
6
|
+
height: string;
|
|
7
|
+
color: string;
|
|
8
|
+
position: 'left' | 'bottom' | 'between';
|
|
9
|
+
verticalPadding: string;
|
|
10
|
+
}
|
|
11
|
+
export interface Margin {
|
|
12
|
+
top: string;
|
|
13
|
+
bottom: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BorderBottom {
|
|
16
|
+
show: boolean;
|
|
17
|
+
color: string;
|
|
18
|
+
paddingBottom: string;
|
|
19
|
+
}
|
|
20
|
+
export interface ExtConfig {
|
|
21
|
+
line: Line;
|
|
22
|
+
margin: Margin;
|
|
23
|
+
borderBottom: BorderBottom;
|
|
24
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,5 +9,6 @@ export { default as UseElInput } from './UseElInput/index.vue';
|
|
|
9
9
|
export { default as UseElSelect } from './UseElSelect/index.vue';
|
|
10
10
|
export { default as UseElSwitch } from './UseElSwitch/index.vue';
|
|
11
11
|
export { default as UseElTable } from './UseElTable/index.vue';
|
|
12
|
+
export { default as UseLineTitle } from './UseLineTitle/index.vue';
|
|
12
13
|
export { default as UseRender } from './UseRender/index.vue';
|
|
13
14
|
export { default as UseSvgIcon } from './UseSvgIcon/index.vue';
|
package/package.json
CHANGED
|
@@ -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
|
+
}
|