@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.
Files changed (93) hide show
  1. package/README.md +1 -1
  2. package/dist/index.es.js +11 -11
  3. package/dist/index.umd.cjs +11 -11
  4. package/dist/ivue.css +1 -1
  5. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/defaultExtConfig.d.ts +4 -0
  6. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/props.d.ts +1 -1
  7. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/types.d.ts +8 -4
  8. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/props.d.ts +1 -1
  9. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/hook.d.ts +1 -1
  10. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/index.vue.d.ts +7 -7
  11. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/props.d.ts +1 -1
  12. package/dist/types/{UseElDescriptions → components/UseElDescriptions}/types.d.ts +1 -1
  13. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Cascader.vue.d.ts +1 -1
  14. package/dist/types/{UseElForm → components/UseElForm}/components/controls/DatePicker.vue.d.ts +1 -1
  15. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Input.vue.d.ts +1 -1
  16. package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputNumber.vue.d.ts +1 -1
  17. package/dist/types/{UseElForm → components/UseElForm}/components/controls/InputRange.vue.d.ts +1 -1
  18. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Radio.vue.d.ts +1 -1
  19. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Select.vue.d.ts +1 -1
  20. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimePicker.vue.d.ts +1 -1
  21. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TimeSelect.vue.d.ts +1 -1
  22. package/dist/types/{UseElForm → components/UseElForm}/components/controls/TreeSelect.vue.d.ts +1 -1
  23. package/dist/types/{UseElForm → components/UseElForm}/hook.d.ts +1 -1
  24. package/dist/types/{UseElForm → components/UseElForm}/props.d.ts +1 -1
  25. package/dist/types/{UseElForm → components/UseElForm}/types.d.ts +1 -1
  26. package/dist/types/{UseElInput → components/UseElInput}/props.d.ts +1 -1
  27. package/dist/types/{UseElSelect → components/UseElSelect}/hook.d.ts +1 -1
  28. package/dist/types/{UseElSelect → components/UseElSelect}/props.d.ts +1 -1
  29. package/dist/types/{UseElTable → components/UseElTable}/components/RecTableColumn.vue.d.ts +1 -1
  30. package/dist/types/{UseElTable → components/UseElTable}/defaultExtConfig.d.ts +5 -0
  31. package/dist/types/{UseElTable → components/UseElTable}/hooks/useElTable.d.ts +1 -1
  32. package/dist/types/{UseElTable → components/UseElTable}/hooks/useTableColumnMinWidth.d.ts +1 -1
  33. package/dist/types/components/UseElTable/hooks/useTableHeightAdaptive.d.ts +5 -0
  34. package/dist/types/{UseElTable → components/UseElTable}/props.d.ts +1 -1
  35. package/dist/types/{UseElTable → components/UseElTable}/types.d.ts +7 -2
  36. package/dist/types/{UseElTable → components/UseElTable}/utils.d.ts +1 -1
  37. package/dist/types/components/UseIconfont/index.vue.d.ts +50 -0
  38. package/dist/types/components/UseIconfont/props.d.ts +23 -0
  39. package/dist/types/components/UseLineTitle/defaultExtConfig.d.ts +19 -0
  40. package/dist/types/components/UseLineTitle/index.vue.d.ts +50 -0
  41. package/dist/types/components/UseLineTitle/props.d.ts +25 -0
  42. package/dist/types/components/UseLineTitle/types.d.ts +24 -0
  43. package/dist/types/{UseRender → components/UseRender}/props.d.ts +1 -1
  44. package/dist/types/{index.d.ts → components/index.d.ts} +2 -0
  45. package/package.json +5 -5
  46. package/src/components/UseElConfigProvider/defaultExtConfig.ts +1 -0
  47. package/src/components/UseElConfigProvider/types.ts +6 -2
  48. package/src/components/UseElTable/defaultExtConfig.ts +11 -0
  49. package/src/components/UseElTable/props.ts +1 -1
  50. package/src/components/UseElTable/types.ts +9 -2
  51. package/src/components/UseIconfont/props.ts +40 -0
  52. package/src/components/UseLineTitle/defaultExtConfig.ts +32 -0
  53. package/src/components/UseLineTitle/props.ts +43 -0
  54. package/src/components/UseLineTitle/types.ts +44 -0
  55. package/dist/types/UseElTable/hooks/useTableHeightAdaptive.d.ts +0 -4
  56. package/dist/types/{UseElButton → components/UseElButton}/defaultExtConfig.d.ts +0 -0
  57. package/dist/types/{UseElButton → components/UseElButton}/hook.d.ts +0 -0
  58. package/dist/types/{UseElButton → components/UseElButton}/index.vue.d.ts +0 -0
  59. package/dist/types/{UseElButton → components/UseElButton}/props.d.ts +0 -0
  60. package/dist/types/{UseElButton → components/UseElButton}/types.d.ts +0 -0
  61. package/dist/types/{UseElConfigProvider → components/UseElConfigProvider}/index.vue.d.ts +0 -0
  62. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/index.vue.d.ts +0 -0
  63. package/dist/types/{UseElDatePicker → components/UseElDatePicker}/types.d.ts +0 -0
  64. package/dist/types/{UseElDialog → components/UseElDialog}/hook.d.ts +0 -0
  65. package/dist/types/{UseElDialog → components/UseElDialog}/index.vue.d.ts +0 -0
  66. package/dist/types/{UseElDialog → components/UseElDialog}/props.d.ts +0 -0
  67. package/dist/types/{UseElDialog → components/UseElDialog}/types.d.ts +0 -0
  68. package/dist/types/{UseElDrawer → components/UseElDrawer}/hook.d.ts +0 -0
  69. package/dist/types/{UseElDrawer → components/UseElDrawer}/index.vue.d.ts +0 -0
  70. package/dist/types/{UseElDrawer → components/UseElDrawer}/props.d.ts +0 -0
  71. package/dist/types/{UseElDrawer → components/UseElDrawer}/types.d.ts +0 -0
  72. package/dist/types/{UseElForm → components/UseElForm}/components/QueryForm.vue.d.ts +0 -0
  73. package/dist/types/{UseElForm → components/UseElForm}/components/RowForm.vue.d.ts +0 -0
  74. package/dist/types/{UseElForm → components/UseElForm}/components/controls/Switch.vue.d.ts +0 -0
  75. package/dist/types/{UseElForm → components/UseElForm}/components/useQueryColSpan.d.ts +0 -0
  76. package/dist/types/{UseElForm → components/UseElForm}/index.vue.d.ts +0 -0
  77. package/dist/types/{UseElInput → components/UseElInput}/index.vue.d.ts +0 -0
  78. package/dist/types/{UseElInput → components/UseElInput}/types.d.ts +0 -0
  79. package/dist/types/{UseElSelect → components/UseElSelect}/index.vue.d.ts +0 -0
  80. package/dist/types/{UseElSelect → components/UseElSelect}/types.d.ts +0 -0
  81. package/dist/types/{UseElSwitch → components/UseElSwitch}/index.vue.d.ts +0 -0
  82. package/dist/types/{UseElSwitch → components/UseElSwitch}/props.d.ts +0 -0
  83. package/dist/types/{UseElTable → components/UseElTable}/components/EditableCell.vue.d.ts +0 -0
  84. package/dist/types/{UseElTable → components/UseElTable}/components/Selection.vue.d.ts +0 -0
  85. package/dist/types/{UseElTable → components/UseElTable}/components/Span.vue.d.ts +0 -0
  86. package/dist/types/{UseElTable → components/UseElTable}/hooks/usePagination.d.ts +0 -0
  87. package/dist/types/{UseElTable → components/UseElTable}/hooks/useSelection.d.ts +2 -2
  88. /package/dist/types/{UseElTable → components/UseElTable}/index.vue.d.ts +0 -0
  89. /package/dist/types/{UseRender → components/UseRender}/hook.d.ts +0 -0
  90. /package/dist/types/{UseRender → components/UseRender}/index.vue.d.ts +0 -0
  91. /package/dist/types/{UseRender → components/UseRender}/types.d.ts +0 -0
  92. /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/index.vue.d.ts +0 -0
  93. /package/dist/types/{UseSvgIcon → components/UseSvgIcon}/props.d.ts +0 -0
@@ -23,7 +23,7 @@ export default {
23
23
  required: true
24
24
  },
25
25
  /**
26
- * 表格高度 如为autoCalc则使用组件内部高度自适应逻辑,可指定具体高度值
26
+ * 表格高度 如为autoCalc则使用组件内部高度自适应逻辑,可指定具体高度值或auto
27
27
  */
28
28
  tableHeight: {
29
29
  type: String,
@@ -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[] | any): void
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>`即可,可传入string自定义具名插槽名称
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
+ }
@@ -1,4 +0,0 @@
1
- import { Ref } from 'vue';
2
- export declare const useTableHeightAdaptive: (rootRef: Ref<HTMLDivElement | null>, tableWrapperRef: Ref<HTMLDivElement | null>) => {
3
- tableRealHeight: Ref<string, string>;
4
- };
@@ -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
  };