tabula-vue 1.0.5 → 1.0.7

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 (50) hide show
  1. package/es/components/table-lite/style/css.d.ts +1 -0
  2. package/es/components/table-lite/style/css.mjs +1 -0
  3. package/es/components/table-lite/style/index.d.ts +1 -0
  4. package/es/components/table-lite/style/index.mjs +1 -0
  5. package/es/version.d.ts +1 -1
  6. package/es/version.mjs +1 -1
  7. package/index.css +1 -1
  8. package/index.js +2 -2
  9. package/index.min.js +2 -2
  10. package/index.min.mjs +2 -2
  11. package/index.mjs +2 -2
  12. package/lib/components/table-lite/style/css.d.ts +1 -0
  13. package/lib/components/table-lite/style/css.js +1 -0
  14. package/lib/components/table-lite/style/index.d.ts +1 -0
  15. package/lib/components/table-lite/style/index.js +1 -0
  16. package/lib/version.d.ts +1 -1
  17. package/lib/version.js +1 -1
  18. package/locale/en.js +1 -1
  19. package/locale/en.min.js +1 -1
  20. package/locale/en.min.mjs +1 -1
  21. package/locale/en.mjs +1 -1
  22. package/locale/ja.js +1 -1
  23. package/locale/ja.min.js +1 -1
  24. package/locale/ja.min.mjs +1 -1
  25. package/locale/ja.mjs +1 -1
  26. package/locale/ko.js +1 -1
  27. package/locale/ko.min.js +1 -1
  28. package/locale/ko.min.mjs +1 -1
  29. package/locale/ko.mjs +1 -1
  30. package/locale/zh-cn.js +1 -1
  31. package/locale/zh-cn.min.js +1 -1
  32. package/locale/zh-cn.min.mjs +1 -1
  33. package/locale/zh-cn.mjs +1 -1
  34. package/locale/zh-hk.js +1 -1
  35. package/locale/zh-hk.min.js +1 -1
  36. package/locale/zh-hk.min.mjs +1 -1
  37. package/locale/zh-hk.mjs +1 -1
  38. package/locale/zh-tw.js +1 -1
  39. package/locale/zh-tw.min.js +1 -1
  40. package/locale/zh-tw.min.mjs +1 -1
  41. package/locale/zh-tw.mjs +1 -1
  42. package/package.json +1 -1
  43. package/theme-chalk/index.css +1 -1
  44. package/theme-chalk/plus-table-lite.css +1 -1
  45. package/theme-chalk/plus-table-v2.css +1 -1
  46. package/theme-chalk/plus-table.css +1 -1
  47. package/theme-chalk/src/mixins/table.scss +126 -0
  48. package/theme-chalk/src/table-lite.scss +45 -5
  49. package/theme-chalk/src/table-v2.scss +7 -26
  50. package/theme-chalk/src/table.scss +10 -74
@@ -1,6 +1,10 @@
1
1
  @use 'mixins/config' as *;
2
2
  @use 'mixins/mixins' as *;
3
3
  @use 'mixins/function' as *;
4
+ @use 'mixins/table' as *;
5
+
6
+ /* 标题栏 / 列设置等共享样式,与 PlusTable 保持一致 */
7
+ @include table-title-bar;
4
8
 
5
9
  /* 纯净只读表格:只保留必要的布局与内联展示样式 */
6
10
  @include b(table-lite) {
@@ -18,11 +22,20 @@
18
22
  }
19
23
  }
20
24
 
21
- /* 序号单元格 */
25
+ /* 序号单元格:与 PlusTable 一致,垂直 + 水平居中 */
22
26
  @include b(table-lite-index) {
27
+ .cell {
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ }
32
+
23
33
  @include e(content) {
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
24
37
  width: 100%;
25
- text-align: center;
38
+ overflow: hidden;
26
39
  }
27
40
  }
28
41
 
@@ -35,7 +48,7 @@
35
48
  }
36
49
  }
37
50
 
38
- /* 操作栏:与 PlusTable 保持一致的居中 / 右对齐表现 */
51
+ /* 操作栏:与 PlusTable 保持一致的居中 / 右对齐与按钮间距 */
39
52
  @include b(table-action-bar) {
40
53
  &.is-center .cell {
41
54
  justify-content: center;
@@ -45,9 +58,36 @@
45
58
  justify-content: flex-end;
46
59
  }
47
60
 
61
+ /* 固定右列需要不透明背景,否则横向滚动时内容会透出 */
62
+ &.#{$el-namespace + -table-fixed-column--right} {
63
+ background-color: getCssVar('bg-color');
64
+ }
65
+
48
66
  .cell {
49
- display: flex;
50
- align-items: center;
67
+ /* el-table 系按钮间距沿用 margin 规则,这里只补布局 */
68
+ @include table-action-bar-container;
69
+ }
70
+
71
+ @include table-action-bar-common;
72
+
73
+ /* 注意:e() 依赖全局 $B,必须在 elb() 之前调用,否则会被改写成 .el-icon__xxx */
74
+ @include e(dropdown) {
75
+ margin-left: 12px;
76
+ }
77
+
78
+ /* 相邻链接 / 图标按钮的间距,与 PlusTable 取值一致 */
79
+ @include elb(link) {
80
+ & + .#{$el-namespace + -link} {
81
+ margin-left: 12px;
82
+ }
83
+ }
84
+
85
+ @include elb(icon) {
86
+ cursor: pointer;
87
+
88
+ & + .#{$el-namespace + -icon} {
89
+ margin-left: 12px;
90
+ }
51
91
  }
52
92
  }
53
93
  }
@@ -1,6 +1,10 @@
1
1
  @use 'mixins/mixins' as *;
2
2
  @use 'mixins/function' as *;
3
3
  @use 'mixins/config' as *;
4
+ @use 'mixins/table' as *;
5
+
6
+ /* 标题栏 / 列设置等共享样式,与 PlusTable 保持一致 */
7
+ @include table-title-bar;
4
8
 
5
9
  @include b(table-v2) {
6
10
  /* 表格主体:用于承载虚拟表格与 loading */
@@ -37,34 +41,11 @@
37
41
  width: 100%;
38
42
  }
39
43
 
40
- /* 操作栏:虚拟表格里按钮为 inline 布局,需要限制换行 */
44
+ /* 操作栏:虚拟表格里按钮的父节点就是 row-cell,直接用 gap 控制间距 */
41
45
  @include b(table-action-bar) {
42
- display: flex;
43
- align-items: center;
44
- flex-wrap: nowrap;
45
- /* 与 PlusTable 的按钮间距保持一致(12px) */
46
- gap: 12px;
47
-
48
- @include e(dropdown__link) {
49
- display: inline-flex;
50
- cursor: pointer;
51
- user-select: none;
52
- color: getCssVar('color-primary');
53
- }
46
+ @include table-action-bar-container(true);
54
47
 
55
- @include e(more-text) {
56
- margin-right: 2px;
57
- }
58
-
59
- @include e(dropdown) {
60
- vertical-align: baseline;
61
- cursor: pointer;
62
- }
63
-
64
- /* Element Plus 的 .el-button + .el-button 自带 12px 外边距,统一改由 gap 控制,避免间距翻倍 */
65
- .#{$el-namespace}-button + .#{$el-namespace}-button {
66
- margin-left: 0;
67
- }
48
+ @include table-action-bar-common;
68
49
  }
69
50
 
70
51
  /* 空数据区域垂直居中 */
@@ -1,6 +1,7 @@
1
1
  @use 'mixins/config' as *;
2
2
  @use 'mixins/mixins' as *;
3
3
  @use 'mixins/function' as *;
4
+ @use 'mixins/table' as *;
4
5
 
5
6
  @include b(table) {
6
7
  /* 自定义列栏 */
@@ -32,25 +33,15 @@
32
33
  }
33
34
 
34
35
  .cell {
35
- display: flex;
36
- align-items: center;
36
+ @include table-action-bar-container;
37
37
  }
38
38
 
39
- @include e(dropdown__link) {
40
- display: inline-flex;
41
- cursor: pointer;
42
- user-select: none;
43
- color: getCssVar('color-primary');
44
- }
45
- @include e(more-text) {
46
- margin-right: 2px;
47
- }
39
+ @include table-action-bar-common;
40
+
48
41
  @include e(column__link) {
49
42
  margin-right: 10px;
50
43
  }
51
44
  @include e(dropdown) {
52
- vertical-align: baseline;
53
- cursor: pointer;
54
45
  margin-left: 12px;
55
46
  }
56
47
  @include elb(link) {
@@ -99,73 +90,18 @@
99
90
  }
100
91
  }
101
92
 
102
- /*工具栏*/
103
- @include b(table-title-bar) {
104
- display: flex;
105
- justify-content: space-between;
106
- align-items: center;
107
- margin-bottom: 10px;
108
- }
109
-
110
- @include e(toolbar) {
111
- display: flex;
112
- align-items: center;
113
- }
114
-
115
93
  @include elb(popper) {
116
94
  max-width: 200px;
117
95
  }
118
96
  }
119
97
 
120
- /* 密度设置 */
121
- @include b(table-title-bar__toolbar__density) {
122
- display: flex;
123
- flex-direction: column;
124
- align-items: center;
125
-
126
- @include elb(button) {
127
- margin-top: 10px;
128
- width: 80px;
129
-
130
- & + .#{$el-namespace + -button} {
131
- margin-left: 0;
132
- }
133
- }
134
- }
135
-
136
- @include b(table-title-bar__toolbar__icon) {
137
- margin-left: 10px;
138
- vertical-align: middle;
139
- cursor: pointer;
140
- color: getCssVar('text-color-regular');
141
- }
142
- /* 列设置 */
143
- @include b(table-title-bar__toolbar__checkbox__item) {
144
- margin-left: 6px;
145
- }
146
- /* 列设置 拖拽 item */
147
- @include b(table-checkbox-item) {
148
- display: flex;
149
- align-items: center;
150
- margin-left: 20px;
151
- }
152
- /* 列设置 拖拽handle */
153
- @include b(table-checkbox-handle) {
154
- font-size: 18px;
155
- cursor: move;
156
- }
157
-
158
- @include b(table-ghost-class) {
159
- padding: 0 5px;
160
- border: 1px dashed getCssVar('color-primary');
161
- background-color: #fff;
162
- }
98
+ /*
99
+ * 标题栏 / 列设置等共享样式
100
+ * PlusTable / PlusTableLite / PlusTableV2 共用同一份 PlusTableTitleBar 组件,
101
+ * 且按需引入时各自的 css 互不包含,因此通过 mixin 在三处各引入一次
102
+ */
103
+ @include table-title-bar;
163
104
 
164
105
  @include b(table-column__edit) {
165
106
  cursor: pointer;
166
107
  }
167
-
168
- @include b(table-checkbox-checkAll) {
169
- display: flex;
170
- justify-content: space-between;
171
- }