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.
- package/dist/index.cjs.js +20 -20
- package/dist/index.esm.js +193 -43
- package/dist/index.umd.js +20 -20
- package/dist/style.css +1 -1
- package/lib/alert/alert.variable.css +1 -0
- package/lib/backtop/backtop.variable.css +1 -0
- package/lib/badge/badge.variable.css +1 -0
- package/lib/breadcrumb/breadcrumb.variable.css +1 -0
- package/lib/button/button.variable.css +1 -0
- package/lib/card/card.variable.css +1 -0
- package/lib/checkbox/checkbox.variable.css +1 -0
- package/lib/code-diff/code-diff.js +1 -1
- package/lib/code-diff/code-diff.variable.css +1 -0
- package/lib/date-picker/date-picker.variable.css +1 -0
- package/lib/divider/divider.variable.css +1 -0
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/exception/exception.variable.css +1 -0
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -0
- package/lib/form/form.css +1 -0
- package/lib/form/form.js +1 -1
- package/lib/form/form.less +1 -0
- package/lib/form/form.variable.css +1 -0
- package/lib/input/input.css +3 -3
- package/lib/input/input.less +3 -3
- package/lib/input/input.variable.css +4 -3
- package/lib/link/link.variable.css +1 -0
- package/lib/loading/loading.variable.css +1 -0
- package/lib/menu/menu.variable.css +1 -0
- package/lib/menu/submenu.variable.css +1 -0
- package/lib/message/message.css +11 -2
- package/lib/message/message.js +1 -1
- package/lib/message/message.less +12 -1
- package/lib/message/message.variable.css +12 -2
- package/lib/message/messageConstructor.d.ts +37 -4
- package/lib/navigation/navigation.variable.css +1 -0
- package/lib/notify/notify.js +1 -1
- package/lib/notify/notify.variable.css +1 -0
- package/lib/pagination/pagination.variable.css +1 -0
- package/lib/popover/popover.variable.css +1 -0
- package/lib/process/process.variable.css +1 -0
- package/lib/progress/progress.variable.css +1 -0
- package/lib/radio/radio.variable.css +1 -0
- package/lib/resize-layout/resize-layout.variable.css +1 -0
- package/lib/select/select.variable.css +1 -0
- package/lib/sideslider/sideslider.variable.css +1 -0
- package/lib/slider/slider.variable.css +1 -0
- package/lib/steps/steps.variable.css +1 -0
- package/lib/styles/themes/themes.less +1 -0
- package/lib/switcher/switcher.variable.css +1 -0
- package/lib/tab/tab.variable.css +1 -0
- package/lib/table/index.d.ts +4 -0
- package/lib/table/props.d.ts +20 -1
- package/lib/table/render.d.ts +32 -0
- package/lib/table/table.css +29 -3
- package/lib/table/table.d.ts +2 -0
- package/lib/table/table.js +1 -1
- package/lib/table/table.less +31 -5
- package/lib/table/table.variable.css +32 -5
- package/lib/table/utils.d.ts +13 -0
- package/lib/tag/tag.variable.css +1 -0
- package/lib/tag-input/tag-input.variable.css +1 -0
- package/lib/timeline/timeline.variable.css +1 -0
- package/lib/transfer/transfer.variable.css +1 -0
- package/lib/tree/tree.variable.css +1 -0
- 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:
|
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:
|
210
|
+
background: var(--table-row-active-bg-color);
|
184
211
|
}
|
package/lib/table/utils.d.ts
CHANGED
@@ -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
|
+
};
|
package/lib/tag/tag.variable.css
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "0.0.1-beta.
|
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 &&
|
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",
|