bkui-vue 0.0.1-beta.41 → 0.0.1-beta.44

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 (65) hide show
  1. package/dist/index.cjs.js +20 -20
  2. package/dist/index.esm.js +193 -43
  3. package/dist/index.umd.js +20 -20
  4. package/dist/style.css +1 -1
  5. package/lib/alert/alert.variable.css +1 -0
  6. package/lib/backtop/backtop.variable.css +1 -0
  7. package/lib/badge/badge.variable.css +1 -0
  8. package/lib/breadcrumb/breadcrumb.variable.css +1 -0
  9. package/lib/button/button.variable.css +1 -0
  10. package/lib/card/card.variable.css +1 -0
  11. package/lib/checkbox/checkbox.variable.css +1 -0
  12. package/lib/code-diff/code-diff.js +1 -1
  13. package/lib/code-diff/code-diff.variable.css +1 -0
  14. package/lib/date-picker/date-picker.variable.css +1 -0
  15. package/lib/divider/divider.variable.css +1 -0
  16. package/lib/dropdown/dropdown.variable.css +1 -0
  17. package/lib/exception/exception.variable.css +1 -0
  18. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
  19. package/lib/form/form.css +1 -0
  20. package/lib/form/form.js +1 -1
  21. package/lib/form/form.less +1 -0
  22. package/lib/form/form.variable.css +1 -0
  23. package/lib/input/input.css +3 -3
  24. package/lib/input/input.less +3 -3
  25. package/lib/input/input.variable.css +4 -3
  26. package/lib/link/link.variable.css +1 -0
  27. package/lib/loading/loading.variable.css +1 -0
  28. package/lib/menu/menu.variable.css +1 -0
  29. package/lib/menu/submenu.variable.css +1 -0
  30. package/lib/message/message.css +11 -2
  31. package/lib/message/message.js +1 -1
  32. package/lib/message/message.less +12 -1
  33. package/lib/message/message.variable.css +12 -2
  34. package/lib/message/messageConstructor.d.ts +37 -4
  35. package/lib/navigation/navigation.variable.css +1 -0
  36. package/lib/notify/notify.js +1 -1
  37. package/lib/notify/notify.variable.css +1 -0
  38. package/lib/pagination/pagination.variable.css +1 -0
  39. package/lib/popover/popover.variable.css +1 -0
  40. package/lib/process/process.variable.css +1 -0
  41. package/lib/progress/progress.variable.css +1 -0
  42. package/lib/radio/radio.variable.css +1 -0
  43. package/lib/resize-layout/resize-layout.variable.css +1 -0
  44. package/lib/select/select.variable.css +1 -0
  45. package/lib/sideslider/sideslider.variable.css +1 -0
  46. package/lib/slider/slider.variable.css +1 -0
  47. package/lib/steps/steps.variable.css +1 -0
  48. package/lib/styles/themes/themes.less +1 -0
  49. package/lib/switcher/switcher.variable.css +1 -0
  50. package/lib/tab/tab.variable.css +1 -0
  51. package/lib/table/index.d.ts +4 -0
  52. package/lib/table/props.d.ts +20 -1
  53. package/lib/table/render.d.ts +32 -0
  54. package/lib/table/table.css +29 -3
  55. package/lib/table/table.d.ts +2 -0
  56. package/lib/table/table.js +1 -1
  57. package/lib/table/table.less +31 -5
  58. package/lib/table/table.variable.css +32 -5
  59. package/lib/table/utils.d.ts +13 -0
  60. package/lib/tag/tag.variable.css +1 -0
  61. package/lib/tag-input/tag-input.variable.css +1 -0
  62. package/lib/timeline/timeline.variable.css +1 -0
  63. package/lib/transfer/transfer.variable.css +1 -0
  64. package/lib/tree/tree.variable.css +1 -0
  65. package/package.json +2 -2
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  .bk-table {
95
96
  height: 100%;
@@ -120,6 +121,8 @@
120
121
  .bk-table .bk-table-body table th .cell,
121
122
  .bk-table .bk-table-head table td .cell,
122
123
  .bk-table .bk-table-body table td .cell {
124
+ display: flex;
125
+ align-items: center;
123
126
  padding: 0 15px;
124
127
  overflow: hidden;
125
128
  line-height: var(--row-height);
@@ -130,9 +133,6 @@
130
133
  }
131
134
  .bk-table .bk-table-head table thead th,
132
135
  .bk-table .bk-table-body table thead th {
133
- position: sticky;
134
- top: 0;
135
- z-index: 1;
136
136
  color: var(--table-head-font-color);
137
137
  background-color: var(--table-head-bg-color);
138
138
  }
@@ -140,7 +140,34 @@
140
140
  .bk-table .bk-table-body table thead th.active,
141
141
  .bk-table .bk-table-head table thead th:hover,
142
142
  .bk-table .bk-table-body table thead th:hover {
143
- background: #f0f1f5;
143
+ background: var(--table-row-active-bg-color);
144
+ }
145
+ .bk-table .bk-table-head table thead th .head-cell-sort,
146
+ .bk-table .bk-table-body table thead th .head-cell-sort {
147
+ display: flex;
148
+ flex-direction: column;
149
+ margin-left: 4px;
150
+ font-size: 10px;
151
+ }
152
+ .bk-table .bk-table-head table thead th .head-cell-sort .sort-action,
153
+ .bk-table .bk-table-body table thead th .head-cell-sort .sort-action {
154
+ display: flex;
155
+ width: 18px;
156
+ height: calc(var(--row-height)/2);
157
+ color: #c0c4cc;
158
+ cursor: pointer;
159
+ }
160
+ .bk-table .bk-table-head table thead th .head-cell-sort .sort-action.active,
161
+ .bk-table .bk-table-body table thead th .head-cell-sort .sort-action.active {
162
+ color: #3a84ff;
163
+ }
164
+ .bk-table .bk-table-head table thead th .head-cell-sort .sort-action.sort-asc,
165
+ .bk-table .bk-table-body table thead th .head-cell-sort .sort-action.sort-asc {
166
+ align-items: flex-end;
167
+ }
168
+ .bk-table .bk-table-head table thead th .head-cell-sort .sort-action.sort-desc,
169
+ .bk-table .bk-table-body table thead th .head-cell-sort .sort-action.sort-desc {
170
+ align-items: flex-start;
144
171
  }
145
172
  .bk-table .bk-table-head table tbody tr:hover td,
146
173
  .bk-table .bk-table-body table tbody tr:hover td {
@@ -180,5 +207,5 @@
180
207
  }
181
208
  .bk-table colgroup col.active {
182
209
  position: relative;
183
- background: #f0f1f5;
210
+ background: var(--table-row-active-bg-color);
184
211
  }
@@ -67,3 +67,16 @@ export declare const isPercentPixOrNumber: (val: string | number) => boolean;
67
67
  * @returns 返回值
68
68
  */
69
69
  export declare const resolvePaginationOption: (propPagination: any, defVal: any) => any;
70
+ /**
71
+ * Format Table Head Option
72
+ * @param props
73
+ * @returns
74
+ */
75
+ export declare const resolveHeadConfig: (props: TablePropTypes) => {
76
+ isShow: boolean;
77
+ height: number;
78
+ } & {
79
+ height?: Number;
80
+ isShow?: boolean;
81
+ cellFn?: Function;
82
+ };
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  .bk-tag {
95
96
  display: inline-flex;
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  .bk-tag-input {
95
96
  position: relative;
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  * {
95
96
  box-sizing: border-box;
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  /* 边框色 */
95
96
  /* 按钮、表单边框颜色、禁用时文本颜色 */
@@ -90,6 +90,7 @@
90
90
  --table-head-font-color: #313238;
91
91
  --table-body-font-color: #575961;
92
92
  --table-row-hover-bg-color: #f5f7fa;
93
+ --table-row-active-bg-color: #f0f1f5;
93
94
  }
94
95
  .bk-tree .bk-node-row {
95
96
  padding-left: calc(var(--offset-left));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.1-beta.41",
3
+ "version": "0.0.1-beta.44",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -19,7 +19,7 @@
19
19
  "build:dist": "rimraf dist && lerna run --stream --scope cli dist",
20
20
  "build:lib": "rimraf lib && lerna run --stream --scope cli lib",
21
21
  "help:release": "lerna run --stream --scope cli release",
22
- "release": "yarn build && rimraf package.json.bak && yarn help:release",
22
+ "release": "yarn build && yarn help:release",
23
23
  "analyze:lib": "rimraf lib && lerna run --stream --scope cli lib -- -a",
24
24
  "generate:icon": "lerna run --scope @bkui-vue/icon build",
25
25
  "changelog": "conventional-changelog -c .changelog.config.js -p angular -i CHANGELOG.md -s -l",