ele-admin-plus 1.1.9-beta.10 → 1.1.9-beta.11

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 (157) hide show
  1. package/es/ele-alert/index.js +2 -2
  2. package/es/ele-basic-select/index.d.ts +1 -1
  3. package/es/ele-basic-select/index.js +7 -1
  4. package/es/ele-config-provider/types.d.ts +3 -1
  5. package/es/ele-cropper-modal/index.js +1 -1
  6. package/es/ele-drawer/index.d.ts +8 -5
  7. package/es/ele-drawer/index.js +107 -113
  8. package/es/ele-drawer/style/index.scss +48 -105
  9. package/es/ele-edit-tag/index.js +1 -1
  10. package/es/ele-file-list/components/file-grid-item.js +1 -1
  11. package/es/ele-file-list/components/file-table-item.js +1 -1
  12. package/es/ele-icon-select/components/icon-grid.js +1 -1
  13. package/es/ele-loading/index.d.ts +0 -4
  14. package/es/ele-loading/index.js +10 -16
  15. package/es/ele-map-picker/components/map-view.js +1 -1
  16. package/es/ele-map-picker/index.js +1 -1
  17. package/es/ele-menus/index.d.ts +4 -6
  18. package/es/ele-menus/index.js +1 -1
  19. package/es/ele-menus/props.d.ts +1 -3
  20. package/es/ele-menus/props.js +1 -3
  21. package/es/ele-menus/style/css-var.scss +1 -5
  22. package/es/ele-modal/index.d.ts +12 -6
  23. package/es/ele-modal/index.js +163 -184
  24. package/es/ele-modal/props.d.ts +2 -0
  25. package/es/ele-modal/props.js +2 -0
  26. package/es/ele-modal/style/index.scss +85 -146
  27. package/es/ele-modal/util.d.ts +18 -44
  28. package/es/ele-modal/util.js +53 -179
  29. package/es/ele-pagination/index.d.ts +9 -0
  30. package/es/ele-pagination/index.js +4 -1
  31. package/es/ele-pagination/props.d.ts +5 -0
  32. package/es/ele-pagination/props.js +5 -0
  33. package/es/ele-popconfirm/index.d.ts +3 -3
  34. package/es/ele-popconfirm/index.js +6 -28
  35. package/es/ele-popover/index.d.ts +2 -2
  36. package/es/ele-popover/index.js +6 -14
  37. package/es/ele-pro-layout/components/pro-header.d.ts +66 -11
  38. package/es/ele-pro-layout/components/pro-header.js +110 -20
  39. package/es/ele-pro-layout/components/pro-sidebar.d.ts +2 -7
  40. package/es/ele-pro-layout/components/pro-sidebar.js +2 -5
  41. package/es/ele-pro-layout/components/pro-sidebox.d.ts +2 -7
  42. package/es/ele-pro-layout/components/pro-sidebox.js +2 -5
  43. package/es/ele-pro-layout/components/tab-dropdown.js +1 -1
  44. package/es/ele-pro-layout/index.d.ts +25 -27
  45. package/es/ele-pro-layout/index.js +45 -29
  46. package/es/ele-pro-layout/props.d.ts +3 -6
  47. package/es/ele-pro-layout/props.js +2 -4
  48. package/es/ele-pro-layout/style/css-var.scss +3 -18
  49. package/es/ele-pro-layout/style/header.scss +74 -9
  50. package/es/ele-pro-layout/style/layout-mobile.scss +2 -2
  51. package/es/ele-pro-layout/style/layout-style.scss +8 -3
  52. package/es/ele-pro-layout/style/layout-theme.scss +48 -23
  53. package/es/ele-pro-layout/style/layout.scss +23 -3
  54. package/es/ele-pro-layout/style/sidebar.scss +0 -1
  55. package/es/ele-pro-layout/style/tabs.scss +19 -11
  56. package/es/ele-pro-layout/types.d.ts +1 -1
  57. package/es/ele-pro-table/components/tool-print.js +0 -3
  58. package/es/ele-pro-table/index.d.ts +3 -5
  59. package/es/ele-pro-table/index.js +2 -1
  60. package/es/ele-pro-table/util.d.ts +1 -1
  61. package/es/ele-tab-wrap/index.js +2 -1
  62. package/es/ele-table-select/index.d.ts +13 -12
  63. package/es/ele-table-select/index.js +27 -26
  64. package/es/ele-tabs/index.js +1 -0
  65. package/es/ele-tabs/style/css-var.scss +1 -30
  66. package/es/ele-tabs/style/index.scss +372 -241
  67. package/es/ele-tabs/types.d.ts +2 -1
  68. package/es/ele-tooltip/index.js +3 -0
  69. package/es/ele-tooltip/props.d.ts +5 -0
  70. package/es/ele-tooltip/props.js +2 -0
  71. package/es/ele-virtual-table/style/index.scss +1 -1
  72. package/es/icons/ResizeOutlined.d.ts +2 -0
  73. package/es/icons/ResizeOutlined.js +30 -0
  74. package/es/icons/index.d.ts +1 -0
  75. package/es/icons/index.js +50 -48
  76. package/es/style/themes/dark.scss +9 -15
  77. package/es/style/themes/default.scss +56 -80
  78. package/es/style/themes/rounded.scss +16 -30
  79. package/lib/ele-alert/index.cjs +2 -2
  80. package/lib/ele-basic-select/index.cjs +7 -1
  81. package/lib/ele-basic-select/index.d.ts +1 -1
  82. package/lib/ele-config-provider/types.d.ts +3 -1
  83. package/lib/ele-cropper-modal/index.cjs +1 -1
  84. package/lib/ele-drawer/index.cjs +105 -111
  85. package/lib/ele-drawer/index.d.ts +8 -5
  86. package/lib/ele-drawer/style/index.scss +48 -105
  87. package/lib/ele-edit-tag/index.cjs +1 -1
  88. package/lib/ele-file-list/components/file-grid-item.cjs +1 -1
  89. package/lib/ele-file-list/components/file-table-item.cjs +1 -1
  90. package/lib/ele-icon-select/components/icon-grid.cjs +1 -1
  91. package/lib/ele-loading/index.cjs +9 -15
  92. package/lib/ele-loading/index.d.ts +0 -4
  93. package/lib/ele-map-picker/components/map-view.cjs +1 -1
  94. package/lib/ele-map-picker/index.cjs +1 -1
  95. package/lib/ele-menus/index.cjs +1 -1
  96. package/lib/ele-menus/index.d.ts +4 -6
  97. package/lib/ele-menus/props.cjs +1 -3
  98. package/lib/ele-menus/props.d.ts +1 -3
  99. package/lib/ele-menus/style/css-var.scss +1 -5
  100. package/lib/ele-modal/index.cjs +176 -197
  101. package/lib/ele-modal/index.d.ts +12 -6
  102. package/lib/ele-modal/props.cjs +2 -0
  103. package/lib/ele-modal/props.d.ts +2 -0
  104. package/lib/ele-modal/style/index.scss +85 -146
  105. package/lib/ele-modal/util.cjs +53 -179
  106. package/lib/ele-modal/util.d.ts +18 -44
  107. package/lib/ele-pagination/index.cjs +4 -1
  108. package/lib/ele-pagination/index.d.ts +9 -0
  109. package/lib/ele-pagination/props.cjs +5 -0
  110. package/lib/ele-pagination/props.d.ts +5 -0
  111. package/lib/ele-popconfirm/index.cjs +5 -27
  112. package/lib/ele-popconfirm/index.d.ts +3 -3
  113. package/lib/ele-popover/index.cjs +5 -13
  114. package/lib/ele-popover/index.d.ts +2 -2
  115. package/lib/ele-pro-layout/components/pro-header.cjs +109 -19
  116. package/lib/ele-pro-layout/components/pro-header.d.ts +66 -11
  117. package/lib/ele-pro-layout/components/pro-sidebar.cjs +2 -5
  118. package/lib/ele-pro-layout/components/pro-sidebar.d.ts +2 -7
  119. package/lib/ele-pro-layout/components/pro-sidebox.cjs +2 -5
  120. package/lib/ele-pro-layout/components/pro-sidebox.d.ts +2 -7
  121. package/lib/ele-pro-layout/components/tab-dropdown.cjs +1 -1
  122. package/lib/ele-pro-layout/index.cjs +45 -29
  123. package/lib/ele-pro-layout/index.d.ts +25 -27
  124. package/lib/ele-pro-layout/props.cjs +2 -4
  125. package/lib/ele-pro-layout/props.d.ts +3 -6
  126. package/lib/ele-pro-layout/style/css-var.scss +3 -18
  127. package/lib/ele-pro-layout/style/header.scss +74 -9
  128. package/lib/ele-pro-layout/style/layout-mobile.scss +2 -2
  129. package/lib/ele-pro-layout/style/layout-style.scss +8 -3
  130. package/lib/ele-pro-layout/style/layout-theme.scss +48 -23
  131. package/lib/ele-pro-layout/style/layout.scss +23 -3
  132. package/lib/ele-pro-layout/style/sidebar.scss +0 -1
  133. package/lib/ele-pro-layout/style/tabs.scss +19 -11
  134. package/lib/ele-pro-layout/types.d.ts +1 -1
  135. package/lib/ele-pro-table/components/tool-print.cjs +0 -3
  136. package/lib/ele-pro-table/index.cjs +2 -1
  137. package/lib/ele-pro-table/index.d.ts +3 -5
  138. package/lib/ele-pro-table/util.d.ts +1 -1
  139. package/lib/ele-tab-wrap/index.cjs +2 -1
  140. package/lib/ele-table-select/index.cjs +27 -26
  141. package/lib/ele-table-select/index.d.ts +13 -12
  142. package/lib/ele-tabs/index.cjs +1 -0
  143. package/lib/ele-tabs/style/css-var.scss +1 -30
  144. package/lib/ele-tabs/style/index.scss +372 -241
  145. package/lib/ele-tabs/types.d.ts +2 -1
  146. package/lib/ele-tooltip/index.cjs +3 -0
  147. package/lib/ele-tooltip/props.cjs +2 -0
  148. package/lib/ele-tooltip/props.d.ts +5 -0
  149. package/lib/ele-virtual-table/style/index.scss +1 -1
  150. package/lib/icons/ResizeOutlined.cjs +29 -0
  151. package/lib/icons/ResizeOutlined.d.ts +2 -0
  152. package/lib/icons/index.cjs +2 -0
  153. package/lib/icons/index.d.ts +1 -0
  154. package/lib/style/themes/dark.scss +9 -15
  155. package/lib/style/themes/default.scss +56 -80
  156. package/lib/style/themes/rounded.scss +16 -30
  157. package/package.json +9 -9
@@ -8,7 +8,7 @@
8
8
  top: 0;
9
9
  }
10
10
 
11
- .ele-admin-tabs {
11
+ .ele-admin-body > .ele-admin-tabs {
12
12
  position: sticky;
13
13
  top: eleVar('header', 'height');
14
14
  }
@@ -85,6 +85,7 @@
85
85
 
86
86
  .ele-admin-main,
87
87
  .ele-admin-body,
88
+ .ele-admin-wrapper,
88
89
  .ele-admin-content {
89
90
  overflow-x: hidden;
90
91
  overflow-y: auto;
@@ -95,6 +96,10 @@
95
96
  .ele-admin-sidebox {
96
97
  height: 100%;
97
98
  }
99
+
100
+ .ele-admin-wrapper > .el-backtop {
101
+ z-index: eleVar('layout', 'index');
102
+ }
98
103
  }
99
104
 
100
105
  /* 内容全屏 */
@@ -102,11 +107,11 @@
102
107
  .ele-admin-header,
103
108
  .ele-admin-sidebar,
104
109
  .ele-admin-sidebox,
105
- &.ele-admin-expanded .ele-admin-tabs {
110
+ &.ele-admin-expanded .ele-admin-body > .ele-admin-tabs {
106
111
  display: none;
107
112
  }
108
113
 
109
- &.ele-admin-fixed-header .ele-admin-tabs {
114
+ &.ele-admin-fixed-header .ele-admin-body > .ele-admin-tabs {
110
115
  top: 0;
111
116
  }
112
117
 
@@ -4,9 +4,9 @@
4
4
  /* 暗色顶栏 */
5
5
  .ele-admin-header.is-dark,
6
6
  .ele-admin-header.is-primary {
7
- color: eleVar('menu-dark', 'active-color');
8
- background: eleVar('header-dark', 'bg');
9
- box-shadow: eleVar('header-dark', 'shadow');
7
+ color: eleVar('header', 'dark-color');
8
+ background: eleVar('header', 'dark-bg');
9
+ box-shadow: eleVar('header', 'dark-shadow');
10
10
 
11
11
  /* 操作按钮 */
12
12
  .ele-admin-tool:hover {
@@ -15,32 +15,63 @@
15
15
 
16
16
  /* 面包屑 */
17
17
  .ele-breadcrumb .el-breadcrumb__item {
18
- .el-breadcrumb__inner {
19
- color: eleVar('menu-dark', 'color');
20
-
21
- &.is-link:hover {
22
- color: eleVar('menu-dark', 'active-color');
23
- }
18
+ .el-breadcrumb__inner,
19
+ .el-breadcrumb__separator {
20
+ color: rgba(255, 255, 255, 0.8);
24
21
  }
25
22
 
23
+ .el-breadcrumb__inner.is-link:hover,
26
24
  &:last-child .el-breadcrumb__inner {
27
- color: eleVar('menu-dark', 'active-color');
25
+ color: eleVar('header', 'dark-color');
28
26
  }
27
+ }
29
28
 
30
- .el-breadcrumb__separator {
31
- color: eleVar('menu-dark', 'color');
32
- }
29
+ /* 页签栏 */
30
+ & > .ele-admin-tabs.ele-tab-wrap,
31
+ & > .ele-admin-tabs .ele-tabs {
32
+ $color: eleVar('header', 'dark-color');
33
+ $hover-bg: eleVar('header', 'dark-tool-hover-bg');
34
+ #{eleVarName('tab', 'color')}: #{$color};
35
+ #{eleVarName('tab', 'hover-color')}: #{$color};
36
+ #{eleVarName('tab', 'close-color')}: #{$color};
37
+ #{eleVarName('tab', 'close-hover-color')}: #{$color};
38
+ #{eleVarName('tab', 'close-hover-bg')}: #{$hover-bg};
39
+ #{eleVarName('tab', 'tool-color')}: #{$color};
40
+ #{eleVarName('tab', 'tool-hover-color')}: #{$color};
41
+ #{eleVarName('tab', 'simple-hover-color')}: #{$color};
42
+ #{eleVarName('tab', 'simple-hover-bg')}: #{$hover-bg};
43
+ #{eleVarName('tab', 'simple-active-bg')}: #{elVar('bg-color', 'overlay')};
44
+ #{eleVarName('tab', 'simple-active-line')}: 0px;
45
+ #{eleVarName('tab', 'simple-tool-hover-bg')}: transparent;
46
+ #{eleVarName('tab', 'indicator-dot-color')}: rgba(255, 255, 255, 0.4);
47
+ #{eleVarName('tab', 'indicator-dot-hover-color')}: rgba(255, 255, 255, 0.6);
48
+ #{eleVarName('tab', 'button-bg')}: #{$hover-bg};
49
+ #{eleVarName('tab', 'button-hover-bg')}: rgba(255, 255, 255, 0.2);
50
+ #{eleVarName('tab', 'button-hover-color')}: #{$color};
33
51
  }
34
52
  }
35
53
 
54
+ .ele-admin-header.is-dark > .ele-admin-tabs.ele-tab-wrap,
55
+ .ele-admin-header.is-dark > .ele-admin-tabs .ele-tabs {
56
+ $color: eleVar('header', 'dark-color');
57
+ $hover-bg: eleVar('header', 'dark-tool-hover-bg');
58
+ #{eleVarName('tab', 'active-close-color')}: #{$color};
59
+ #{eleVarName('tab', 'active-close-hover-color')}: #{$color};
60
+ #{eleVarName('tab', 'active-close-hover-bg')}: #{$hover-bg};
61
+ #{eleVarName('tab', 'simple-active-color')}: #{$color};
62
+ #{eleVarName('tab', 'simple-active-bg')}: #{elVar('color-primary')};
63
+ #{eleVarName('tab', 'indicator-dot-active-color')}: #{$color};
64
+ #{eleVarName('tab', 'button-active-color')}: #{$color};
65
+ #{eleVarName('tab', 'button-active-bg')}: #{elVar('color-primary')};
66
+ }
67
+
36
68
  /* 主色顶栏 */
37
69
  .ele-admin-header.is-primary {
38
70
  background: elVar('color-primary');
39
71
 
72
+ /* 菜单 */
40
73
  .ele-admin-menus > .ele-menu {
41
- $hover-bg: eleVar('header-primary', 'hover-bg');
42
- $active-bg: eleVar('header-primary', 'active-bg');
43
- #{eleVarName('menu-horizontal', 'dark-hover-bg')}: #{$hover-bg};
74
+ $active-bg: eleVar('header', 'primary-active-bg');
44
75
  #{eleVarName('menu-horizontal', 'dark-active-bg')}: #{$active-bg};
45
76
  }
46
77
  }
@@ -68,18 +99,12 @@
68
99
 
69
100
  .ele-admin-sidebox {
70
101
  background: eleVar('sidebar', 'dark-bg');
71
-
72
- .ele-admin-menus > .el-scrollbar__wrap > .el-scrollbar__view > .ele-menu {
73
- & > .el-sub-menu.is-active > .el-sub-menu__title {
74
- background: eleVar('menu-dark', 'active-bg');
75
- }
76
- }
77
102
  }
78
103
  }
79
104
 
80
105
  .ele-admin-sidebox .ele-sidebar-tool,
81
106
  &:not(.ele-admin-mix-sidebar) .ele-admin-sidebar .ele-sidebar-tool {
82
- color: eleVar('menu-dark', 'active-color');
107
+ color: eleVar('header', 'dark-color');
83
108
 
84
109
  &:hover {
85
110
  background: eleVar('header', 'dark-tool-hover-bg');
@@ -19,14 +19,21 @@
19
19
  transition: width $ele-transition;
20
20
  }
21
21
 
22
- .ele-admin-content {
22
+ .ele-admin-wrapper {
23
23
  flex: auto;
24
24
  display: flex;
25
25
  flex-direction: column;
26
+ position: relative;
27
+
28
+ & > .el-backtop {
29
+ z-index: calc(#{eleVar('layout', 'index')} + 1);
30
+ }
26
31
  }
27
32
 
28
- & > .el-backtop {
29
- z-index: eleVar('layout', 'index');
33
+ .ele-admin-content {
34
+ flex: auto;
35
+ display: flex;
36
+ flex-direction: column;
30
37
  }
31
38
  }
32
39
 
@@ -72,3 +79,16 @@
72
79
  flex-shrink: 0;
73
80
  overflow: hidden;
74
81
  }
82
+
83
+ /* 弹窗容器 */
84
+ .ele-admin-modals {
85
+ position: absolute;
86
+ top: 0;
87
+ left: 0;
88
+ right: 0;
89
+ bottom: 0;
90
+ width: 100%;
91
+ height: 100%;
92
+ pointer-events: none;
93
+ z-index: eleVar('layout', 'index');
94
+ }
@@ -103,7 +103,6 @@
103
103
  }
104
104
 
105
105
  & > .el-sub-menu.is-active > .el-sub-menu__title {
106
- background: eleVar('menu-item', 'active-bg');
107
106
  transition: none;
108
107
  }
109
108
 
@@ -15,6 +15,25 @@
15
15
  /* 固定主页页签 */
16
16
  &.is-fixed-home {
17
17
  padding-left: eleVar('page', 'padding');
18
+
19
+ &.is-tag .el-tabs__nav-wrap:not(.is-scrollable) .el-tabs__nav {
20
+ padding-left: eleVar('tab', 'tag-space');
21
+ }
22
+
23
+ &.is-button .el-tabs__nav-wrap:not(.is-scrollable) .el-tabs__nav {
24
+ padding-left: eleVar('tab', 'button-space');
25
+ }
26
+ }
27
+
28
+ /* 页签风格适配 */
29
+ &.is-tag {
30
+ padding-right: eleVar('tab', 'tag-space');
31
+ }
32
+
33
+ &.is-button {
34
+ padding-right: eleVar('page', 'padding');
35
+ background: eleVar('layout', 'bg');
36
+ box-shadow: none;
18
37
  }
19
38
  }
20
39
 
@@ -24,14 +43,3 @@
24
43
  box-shadow: 0 -0.8px 0 eleVar('header', 'line-color') inset;
25
44
  }
26
45
  }
27
-
28
- /* 按钮风格页签 */
29
- .ele-admin-tab-card .ele-admin-tabs {
30
- padding-right: eleVar('page', 'padding');
31
- background: eleVar('layout', 'bg');
32
- box-shadow: none;
33
-
34
- &.is-fixed-home .el-tabs__nav-wrap:not(.is-scrollable) .el-tabs__nav {
35
- padding-left: eleVar('tab-button', 'space');
36
- }
37
- }
@@ -117,7 +117,7 @@ export type SidebarStyle = 'light' | 'dark';
117
117
  /**
118
118
  * 页签风格
119
119
  */
120
- export type TabStyle = 'simple' | 'indicator' | 'button';
120
+ export type TabStyle = 'simple' | 'indicator' | 'button' | 'tag';
121
121
 
122
122
  /**
123
123
  * 菜单标题国际化方法
@@ -129,9 +129,6 @@ const _sfc_main = defineComponent({
129
129
  };
130
130
  const onPrintDone = () => {
131
131
  hideLoading();
132
- if (props.printerProps != null && typeof props.printerProps.onDone === "function") {
133
- props.printerProps.onDone();
134
- }
135
132
  };
136
133
  const printData = (data) => {
137
134
  showLoading();
@@ -121,7 +121,6 @@ declare const _default: import('vue').DefineComponent<{
121
121
  row: any;
122
122
  rowIndex: number;
123
123
  column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<any>;
124
- /** 请求数据回调 */
125
124
  columnIndex: number;
126
125
  }) => number[] | {
127
126
  rowspan: number;
@@ -222,7 +221,7 @@ declare const _default: import('vue').DefineComponent<{
222
221
  'update:current': (_current?: DataItem | null | undefined) => boolean;
223
222
  columnsChange: (_columns: Columns) => boolean;
224
223
  sizeChange: (_size: "" | "default" | "small" | "large" | undefined) => boolean;
225
- maximizedChange: (_maximized: boolean) => boolean;
224
+ maximizedChange: (_maximized: boolean) => boolean; /** 表格尺寸 */
226
225
  refresh: () => boolean;
227
226
  select: (_selection: DataItem[], _row: DataItem) => boolean;
228
227
  selectAll: (_selection: DataItem[]) => boolean;
@@ -241,9 +240,9 @@ declare const _default: import('vue').DefineComponent<{
241
240
  filterChange: (_filter: Filter) => boolean;
242
241
  currentChange: (_current?: DataItem | null | undefined, _old?: DataItem | null | undefined) => boolean;
243
242
  headerDragend: (_width: number, _old: number, _column: import("./types").Column, _e: MouseEvent) => boolean;
244
- expandChange: (_row: DataItem, _expanded: boolean) => boolean; /** 数据请求状态 */
243
+ expandChange: (_row: DataItem, _expanded: boolean) => boolean;
245
244
  'update:currentRowKey': (_currentRowKey?: import("../ele-data-table/types").DataKey | undefined) => boolean;
246
- 'update:selectedRowKeys': (_selectedRowKeys?: import("../ele-data-table/types").DataKey[] | undefined) => boolean;
245
+ 'update:selectedRowKeys': (_selectedRowKeys?: import("../ele-data-table/types").DataKey[] | undefined) => boolean; /** 表格尺寸 */
247
246
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
248
247
  rowKey: {
249
248
  type: import("vue").PropType<string | ((row: DataItem) => string) | undefined>;
@@ -362,7 +361,6 @@ declare const _default: import('vue').DefineComponent<{
362
361
  row: any;
363
362
  rowIndex: number;
364
363
  column: import("element-plus/es/components/table/src/table-column/defaults").TableColumnCtx<any>;
365
- /** 请求数据回调 */
366
364
  columnIndex: number;
367
365
  }) => number[] | {
368
366
  rowspan: number;
@@ -60,7 +60,8 @@ const _sfc_main = defineComponent({
60
60
  {
61
61
  total: tableTotal.value,
62
62
  pageSize: tableLimit.value,
63
- currentPage: tablePage.value
63
+ currentPage: tablePage.value,
64
+ hasNext: tableData.value.length >= tableLimit.value
64
65
  }
65
66
  );
66
67
  });
@@ -27,7 +27,7 @@ export declare function getTableLimit(pagination: boolean | TablePagination | un
27
27
  * @param globalPagination 全局配置分页组件属性
28
28
  * @param pageProps 分页相关的属性
29
29
  */
30
- export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage'>): ElePaginationProps | null;
30
+ export declare function getPaginationProps(size: TableSize, pagination: boolean | TablePagination | undefined, globalPagination: boolean | TablePagination | undefined, pageProps?: Pick<ElePaginationProps, 'total' | 'pageSize' | 'currentPage' | 'hasNext'>): ElePaginationProps | null;
31
31
  /**
32
32
  * 判断是否开启自动修正页码
33
33
  * @param pagination 分页组件属性
@@ -19,7 +19,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
19
19
  { "is-large": _ctx.size === "large" },
20
20
  { "is-simple": _ctx.type === "simple" },
21
21
  { "is-indicator": _ctx.type === "indicator" },
22
- { "is-button": _ctx.type === "button" }
22
+ { "is-button": _ctx.type === "button" },
23
+ { "is-tag": _ctx.type === "tag" }
23
24
  ])
24
25
  }, [
25
26
  renderSlot(_ctx.$slots, "default")
@@ -1,5 +1,4 @@
1
- import { DataKey, DataItem, Column } from '../ele-data-table/types';
2
- import { DoneParams } from '../ele-pro-table/types';
1
+ import { DataKey, DataItem } from '../ele-data-table/types';
3
2
  import { SingleValue, SelectValue, SelectedItem } from '../ele-basic-select/types';
4
3
  import { EleBasicSelectInstance, EleProTableInstance } from '../ele-app/plus';
5
4
 
@@ -22,12 +21,12 @@ declare const _default: import('vue').DefineComponent<{
22
21
  default: string;
23
22
  };
24
23
  initValue: import("vue").PropType<DataItem | DataItem[]>;
25
- cacheData: import("vue").PropType<DataItem[]>;
24
+ cacheData: import("vue").PropType<DataItem[]>; /** 表格组件 */
26
25
  tableProps: {
27
- type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>;
26
+ type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>; /** 下拉框是否显示 */
28
27
  required: boolean;
29
28
  };
30
- maxTagCount: NumberConstructor; /** 下拉框是否显示 */
29
+ maxTagCount: NumberConstructor; /** 选中的标签 */
31
30
  maxTagTextLength: NumberConstructor;
32
31
  tagType: {
33
32
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
@@ -85,10 +84,12 @@ declare const _default: import('vue').DefineComponent<{
85
84
  onSelectFilter: (keywords: string) => void;
86
85
  updateSelectedRowKeys: (rowKeys: DataKey[]) => void;
87
86
  updateCurrentRowKey: (rowKey?: DataKey) => void;
88
- onTableCurrentChange: (row?: DataItem | null, old?: DataItem | null) => void;
89
- onTableSelectionChange: (selection: DataItem[]) => void;
90
- onTableRowClick: (row: DataItem, column: Column, e: MouseEvent) => void;
91
- onTableDone: (result: DoneParams<DataItem>, parent?: DataItem) => void;
87
+ onTableCurrentChange: (row?: DataItem | null) => void;
88
+ onTableSelectionChange: () => void;
89
+ onTableRowClick: (row: DataItem) => void;
90
+ onTableSelect: (selection: DataItem[]) => void;
91
+ onTableSelectAll: (selection: DataItem[]) => void;
92
+ onTableDone: () => void;
92
93
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
93
94
  'update:modelValue': (_value: SelectValue) => boolean;
94
95
  change: (_value: SelectValue) => boolean;
@@ -118,12 +119,12 @@ declare const _default: import('vue').DefineComponent<{
118
119
  default: string;
119
120
  };
120
121
  initValue: import("vue").PropType<DataItem | DataItem[]>;
121
- cacheData: import("vue").PropType<DataItem[]>;
122
+ cacheData: import("vue").PropType<DataItem[]>; /** 表格组件 */
122
123
  tableProps: {
123
- type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>;
124
+ type: import("vue").PropType<import("../ele-app/plus").EleProTableProps>; /** 下拉框是否显示 */
124
125
  required: boolean;
125
126
  };
126
- maxTagCount: NumberConstructor; /** 下拉框是否显示 */
127
+ maxTagCount: NumberConstructor; /** 选中的标签 */
127
128
  maxTagTextLength: NumberConstructor;
128
129
  tagType: {
129
130
  type: import("vue").PropType<import("element-plus/es/utils/index").EpPropMergeType<StringConstructor, "success" | "warning" | "info" | "primary" | "danger", unknown> | undefined>;
@@ -228,39 +228,35 @@ const _sfc_main = defineComponent({
228
228
  updateModelValue(rowKey);
229
229
  }
230
230
  };
231
- const onTableCurrentChange = (row, old) => {
231
+ const onTableCurrentChange = (row) => {
232
232
  if (!props.multiple && row != null) {
233
233
  updateSelectedItems(true);
234
- emit("select", row);
235
- }
236
- if (props.tableProps != null && typeof props.tableProps.onCurrentChange === "function") {
237
- props.tableProps.onCurrentChange(row, old);
238
234
  }
239
235
  };
240
- const onTableSelectionChange = (selection) => {
236
+ const onTableSelectionChange = () => {
241
237
  if (props.multiple) {
242
238
  updateSelectedItems(true);
243
- emit("select", selection);
244
- }
245
- if (props.tableProps != null && typeof props.tableProps.onSelectionChange === "function") {
246
- props.tableProps.onSelectionChange(selection);
247
239
  }
248
240
  };
249
- const onTableRowClick = (row, column, e) => {
241
+ const onTableRowClick = (row) => {
242
+ var _a;
250
243
  if (!props.multiple) {
251
244
  updateVisible(false);
245
+ emit("select", row);
246
+ } else if (((_a = props.tableProps) == null ? void 0 : _a.rowClickChecked) && tableRef.value) {
247
+ emit("select", tableRef.value.getSelectionRows() || []);
252
248
  }
253
- if (props.tableProps != null && typeof props.tableProps.onRowClick === "function") {
254
- props.tableProps.onRowClick(row, column, e);
255
- }
256
249
  };
257
- const onTableDone = (result, parent) => {
250
+ const onTableSelect = (selection) => {
251
+ emit("select", selection);
252
+ };
253
+ const onTableSelectAll = (selection) => {
254
+ emit("select", selection);
255
+ };
256
+ const onTableDone = () => {
258
257
  nextTick(() => {
259
258
  updatePopover();
260
259
  });
261
- if (props.tableProps != null && typeof props.tableProps.onDone === "function") {
262
- props.tableProps.onDone(result, parent);
263
- }
264
260
  };
265
261
  watch(
266
262
  () => props.modelValue,
@@ -322,6 +318,8 @@ const _sfc_main = defineComponent({
322
318
  onTableCurrentChange,
323
319
  onTableSelectionChange,
324
320
  onTableRowClick,
321
+ onTableSelect,
322
+ onTableSelectAll,
325
323
  onTableDone
326
324
  };
327
325
  }
@@ -370,19 +368,22 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
370
368
  }, createSlots({
371
369
  default: withCtx(() => [
372
370
  renderSlot(_ctx.$slots, "topExtra"),
373
- createVNode(_component_EleProTable, mergeProps(_ctx.tableProps || {}, {
374
- ref: "tableRef",
375
- rowKey: _ctx.valueKey,
376
- reserveCurrent: true,
377
- highlightCurrentRow: !_ctx.multiple,
378
- currentRowKey: _ctx.currentRowKey,
379
- selectedRowKeys: _ctx.selectedRowKeys,
371
+ createVNode(_component_EleProTable, mergeProps({
380
372
  "onUpdate:selectedRowKeys": _ctx.updateSelectedRowKeys,
381
373
  "onUpdate:currentRowKey": _ctx.updateCurrentRowKey,
382
374
  onSelectionChange: _ctx.onTableSelectionChange,
383
375
  onCurrentChange: _ctx.onTableCurrentChange,
384
376
  onRowClick: _ctx.onTableRowClick,
377
+ onSelect: _ctx.onTableSelect,
378
+ onSelectAll: _ctx.onTableSelectAll,
385
379
  onDone: _ctx.onTableDone
380
+ }, _ctx.tableProps || {}, {
381
+ ref: "tableRef",
382
+ rowKey: _ctx.valueKey,
383
+ reserveCurrent: true,
384
+ highlightCurrentRow: !_ctx.multiple,
385
+ currentRowKey: _ctx.currentRowKey,
386
+ selectedRowKeys: _ctx.selectedRowKeys
386
387
  }), createSlots({ _: 2 }, [
387
388
  renderList(Object.keys(_ctx.$slots).filter(
388
389
  (k) => !["topExtra", "bottomExtra", "maxTagPlaceholder"].includes(k)
@@ -394,7 +395,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
394
395
  ])
395
396
  };
396
397
  })
397
- ]), 1040, ["rowKey", "highlightCurrentRow", "currentRowKey", "selectedRowKeys", "onUpdate:selectedRowKeys", "onUpdate:currentRowKey", "onSelectionChange", "onCurrentChange", "onRowClick", "onDone"]),
398
+ ]), 1040, ["onUpdate:selectedRowKeys", "onUpdate:currentRowKey", "onSelectionChange", "onCurrentChange", "onRowClick", "onSelect", "onSelectAll", "onDone", "rowKey", "highlightCurrentRow", "currentRowKey", "selectedRowKeys"]),
398
399
  renderSlot(_ctx.$slots, "bottomExtra")
399
400
  ]),
400
401
  _: 2
@@ -217,6 +217,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
217
217
  { "is-simple": _ctx.type === "simple" },
218
218
  { "is-indicator": _ctx.type === "indicator" },
219
219
  { "is-button": _ctx.type === "button" },
220
+ { "is-tag": _ctx.type === "tag" },
220
221
  { "is-center": _ctx.center }
221
222
  ],
222
223
  "onUpdate:modelValue": _ctx.onUpdateModelValue,
@@ -3,36 +3,7 @@
3
3
  /* 标签页主题变量 */
4
4
  @mixin set-tab-var($var) {
5
5
  .ele-tabs,
6
- .ele-tab-tool,
7
- .ele-modal-inner,
8
- .ele-drawer-inner {
6
+ .ele-tab-wrap {
9
7
  @include set-ele-var('tab', $var);
10
8
  }
11
-
12
- .ele-tabs.is-small,
13
- .ele-tab-wrap.is-small .ele-tab-tool {
14
- @include set-ele-var('tab-sm', $var);
15
- }
16
-
17
- .ele-tabs.is-large,
18
- .ele-tab-wrap.is-large .ele-tab-tool {
19
- @include set-ele-var('tab-lg', $var);
20
- }
21
-
22
- .ele-tabs.is-simple,
23
- .ele-tabs.is-indicator,
24
- .ele-tab-wrap.is-simple .ele-tab-tool,
25
- .ele-tab-wrap.is-indicator .ele-tab-tool {
26
- @include set-ele-var('tab-simple', $var);
27
- }
28
-
29
- .ele-tabs.is-indicator {
30
- @include set-ele-var('tab-indicator', $var);
31
- }
32
-
33
- .ele-tabs.is-button,
34
- .ele-tab-wrap.is-button .ele-tab-tool,
35
- .ele-admin-tab-card .ele-admin-tabs {
36
- @include set-ele-var('tab-button', $var);
37
- }
38
9
  }