@jetlinks-web/components 2.6.22 → 2.6.24
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/es/CardSelect/style/index.css +24 -0
- package/es/CardSelect/style/index.less +26 -0
- package/es/CheckButton/style/index.css +37 -0
- package/es/CheckButton/style/index.less +40 -0
- package/es/DragModal/style/index.css +82 -0
- package/es/DragModal/style/index.less +97 -0
- package/es/EditTable/EditTable.js +1 -1
- package/es/EditTable/group.js +6 -4
- package/es/EditTable/style/body.less +66 -0
- package/es/EditTable/style/form.less +33 -0
- package/es/EditTable/style/group.less +32 -0
- package/es/EditTable/style/header.less +77 -0
- package/es/EditTable/style/index.css +267 -0
- package/es/EditTable/style/index.less +41 -0
- package/es/EditTable/style/menu.less +25 -0
- package/es/EditTable/style/table.less +47 -0
- package/es/Ellipsis/style/index.css +17 -0
- package/es/Ellipsis/style/index.less +20 -0
- package/es/FlameGraph/FlameGraph.js +3 -2
- package/es/FlameGraph/style/index.css +43 -0
- package/es/FlameGraph/style/index.less +52 -0
- package/es/MonacoEditor/style/index.css +4 -0
- package/es/MonacoEditor/style/index.less +4 -0
- package/es/PermissionButton/index.js +4 -4
- package/es/ProLayout/Basic/BasicLayout.less +66 -0
- package/es/ProLayout/Basic/Header.less +8 -0
- package/es/ProLayout/PageContainer/index.less +103 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +4 -4
- package/es/ProLayout/SiderMenu/index.less +231 -0
- package/es/ProLayout/TopHeader/index.less +174 -0
- package/es/ProLayout/style/default.less +4 -0
- package/es/ProLayout/style/style.less +7 -0
- package/es/ProTable/Content.js +11 -24
- package/es/ProTable/hooks/useTableInject.js +5 -0
- package/es/ProTable/hooks/useTableSelection.js +95 -0
- package/es/ProTable/style/ProTable.less +138 -0
- package/es/RadioButton/style/index.css +20 -0
- package/es/RadioButton/style/index.less +19 -0
- package/es/Scrollbar/style/index.css +65 -0
- package/es/Scrollbar/style/index.less +83 -0
- package/es/Search/style/Item.less +33 -0
- package/es/Search/style/Search.less +179 -0
- package/es/Title/style/index.css +23 -0
- package/es/Title/style/index.less +25 -0
- package/es/style/index.css +5237 -0
- package/es/style/variable.css +4 -0
- package/es/style/variable.less +4 -0
- package/lib/CardSelect/style/index.css +24 -0
- package/lib/CardSelect/style/index.less +26 -0
- package/lib/CheckButton/style/index.css +37 -0
- package/lib/CheckButton/style/index.less +40 -0
- package/lib/DragModal/style/index.css +82 -0
- package/lib/DragModal/style/index.less +97 -0
- package/lib/EditTable/EditTable.js +1 -1
- package/lib/EditTable/group.js +6 -4
- package/lib/EditTable/style/body.less +66 -0
- package/lib/EditTable/style/form.less +33 -0
- package/lib/EditTable/style/group.less +32 -0
- package/lib/EditTable/style/header.less +77 -0
- package/lib/EditTable/style/index.css +267 -0
- package/lib/EditTable/style/index.less +41 -0
- package/lib/EditTable/style/menu.less +25 -0
- package/lib/EditTable/style/table.less +47 -0
- package/lib/Ellipsis/style/index.css +17 -0
- package/lib/Ellipsis/style/index.less +20 -0
- package/lib/FlameGraph/FlameGraph.js +3 -2
- package/lib/FlameGraph/style/index.css +43 -0
- package/lib/FlameGraph/style/index.less +52 -0
- package/lib/Icon/icon.js +1 -2
- package/lib/MonacoEditor/style/index.css +4 -0
- package/lib/MonacoEditor/style/index.less +4 -0
- package/lib/PermissionButton/index.js +4 -4
- package/lib/ProLayout/Basic/BasicLayout.js +1 -2
- package/lib/ProLayout/Basic/BasicLayout.less +66 -0
- package/lib/ProLayout/Basic/Header.less +8 -0
- package/lib/ProLayout/PageContainer/index.less +103 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +4 -4
- package/lib/ProLayout/SiderMenu/SiderMenu.js +1 -2
- package/lib/ProLayout/SiderMenu/index.less +231 -0
- package/lib/ProLayout/TopHeader/index.less +174 -0
- package/lib/ProLayout/style/default.less +4 -0
- package/lib/ProLayout/style/style.less +7 -0
- package/lib/ProTable/Content.js +11 -24
- package/lib/ProTable/hooks/useTableInject.js +11 -0
- package/lib/ProTable/hooks/useTableSelection.js +102 -0
- package/lib/ProTable/style/ProTable.less +138 -0
- package/lib/RadioButton/style/index.css +20 -0
- package/lib/RadioButton/style/index.less +19 -0
- package/lib/Scrollbar/style/index.css +65 -0
- package/lib/Scrollbar/style/index.less +83 -0
- package/lib/Search/style/Item.less +33 -0
- package/lib/Search/style/Search.less +179 -0
- package/lib/Title/style/index.css +23 -0
- package/lib/Title/style/index.less +25 -0
- package/lib/components.js +1 -2
- package/lib/index.js +1 -2
- package/lib/style/components.less +10 -0
- package/lib/style/index.css +5237 -0
- package/lib/style/variable.css +4 -0
- package/lib/style/variable.less +4 -0
- package/package.json +4 -4
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useTableSelection = exports.PROTABLE_ROW_SELECTION_KEY = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
10
|
+
var _vue = require("vue");
|
|
11
|
+
var _lodashEs = require("lodash");
|
|
12
|
+
var PROTABLE_ROW_SELECTION_KEY = exports.PROTABLE_ROW_SELECTION_KEY = Symbol('protable-row-selection-key');
|
|
13
|
+
var useTableSelection = exports.useTableSelection = function useTableSelection() {
|
|
14
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
15
|
+
type: 'checkbox',
|
|
16
|
+
rowKey: "id",
|
|
17
|
+
isCheck: true
|
|
18
|
+
};
|
|
19
|
+
var _options$type = options.type,
|
|
20
|
+
type = _options$type === void 0 ? 'checkbox' : _options$type,
|
|
21
|
+
_options$rowKey = options.rowKey,
|
|
22
|
+
rowKey = _options$rowKey === void 0 ? 'id' : _options$rowKey;
|
|
23
|
+
var selectedRowKeys = (0, _vue.ref)([]);
|
|
24
|
+
var selectedRows = (0, _vue.ref)([]);
|
|
25
|
+
var selectionObj = (0, _vue.ref)(null);
|
|
26
|
+
var isCheckRef = (0, _vue.computed)(function () {
|
|
27
|
+
return (0, _vue.unref)(options.isCheck);
|
|
28
|
+
});
|
|
29
|
+
var onSelect = function onSelect(record, selected) {
|
|
30
|
+
if (type === 'checkbox') {
|
|
31
|
+
if (selected) {
|
|
32
|
+
selectedRows.value.push(record);
|
|
33
|
+
} else {
|
|
34
|
+
selectedRows.value = selectedRows.value.filter(function (i) {
|
|
35
|
+
return i[rowKey] !== record[rowKey];
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
selectedRowKeys.value = selectedRows.value.map(function (i) {
|
|
39
|
+
return i[rowKey];
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
// 单选
|
|
44
|
+
var onChange = function onChange(_selectedRowKeys, _selectedRows) {
|
|
45
|
+
if (type === 'radio') {
|
|
46
|
+
selectedRowKeys.value = _selectedRowKeys;
|
|
47
|
+
selectedRows.value = _selectedRows;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var onSelectAll = function onSelectAll(selected, _selectedRows, changeRows) {
|
|
51
|
+
if (selected) {
|
|
52
|
+
var _selectedRows$value;
|
|
53
|
+
(_selectedRows$value = selectedRows.value).push.apply(_selectedRows$value, (0, _toConsumableArray2.default)(changeRows));
|
|
54
|
+
} else {
|
|
55
|
+
var arr = changeRows.map(function (item) {
|
|
56
|
+
return item[rowKey];
|
|
57
|
+
});
|
|
58
|
+
selectedRows.value = selectedRows.value.filter(function (i) {
|
|
59
|
+
return !arr.includes(i[rowKey]);
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
selectedRowKeys.value = selectedRows.value.map(function (i) {
|
|
63
|
+
return i[rowKey];
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
var onSelectNone = function onSelectNone() {
|
|
67
|
+
selectedRowKeys.value = [];
|
|
68
|
+
selectedRows.value = [];
|
|
69
|
+
};
|
|
70
|
+
var updateSelection = function updateSelection() {
|
|
71
|
+
if (isCheckRef.value) {
|
|
72
|
+
// 提供选择上下文
|
|
73
|
+
selectionObj.value = type === 'checkbox' ? (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodashEs.omit)(options, ['isCheck'])), {}, {
|
|
74
|
+
selectedRowKeys: selectedRowKeys,
|
|
75
|
+
onSelect: onSelect,
|
|
76
|
+
onSelectAll: onSelectAll,
|
|
77
|
+
onSelectNone: onSelectNone
|
|
78
|
+
}) : (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodashEs.omit)(options, ['isCheck'])), {}, {
|
|
79
|
+
selectedRowKeys: selectedRowKeys,
|
|
80
|
+
onChange: onChange,
|
|
81
|
+
onSelectNone: onSelectNone
|
|
82
|
+
});
|
|
83
|
+
} else {
|
|
84
|
+
// 清空选择状态
|
|
85
|
+
onSelectNone();
|
|
86
|
+
selectionObj.value = null;
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
(0, _vue.watch)(isCheckRef, function () {
|
|
90
|
+
updateSelection();
|
|
91
|
+
}, {
|
|
92
|
+
immediate: true,
|
|
93
|
+
deep: false
|
|
94
|
+
} // 注意:deep 设为 false
|
|
95
|
+
);
|
|
96
|
+
(0, _vue.provide)(PROTABLE_ROW_SELECTION_KEY, selectionObj);
|
|
97
|
+
return {
|
|
98
|
+
selectedRowKeys: selectedRowKeys,
|
|
99
|
+
selectedRows: selectedRows,
|
|
100
|
+
onSelectNone: onSelectNone
|
|
101
|
+
};
|
|
102
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
@import '../../style/variable.less';
|
|
2
|
+
@import 'ant-design-vue/lib/pagination/style/index.less';
|
|
3
|
+
@import 'ant-design-vue/lib/table/style/index.less';
|
|
4
|
+
@import 'ant-design-vue/lib/button/style/index.less';
|
|
5
|
+
@import 'ant-design-vue/lib/alert/style/index.less';
|
|
6
|
+
@import 'ant-design-vue/lib/radio/style/index.less';
|
|
7
|
+
@import 'ant-design-vue/lib/spin/style/index.less';
|
|
8
|
+
|
|
9
|
+
.jtable-body-spin {
|
|
10
|
+
height: 100%;
|
|
11
|
+
width: 100%;
|
|
12
|
+
background-color: #fff;
|
|
13
|
+
|
|
14
|
+
.ant-spin-nested-loading {
|
|
15
|
+
height: 100%;
|
|
16
|
+
|
|
17
|
+
.ant-spin-container {
|
|
18
|
+
height: 100%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.jtable-body {
|
|
23
|
+
width: 100%;
|
|
24
|
+
box-sizing: border-box;
|
|
25
|
+
height: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
flex-direction: column;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.jtable-body-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
align-items: center;
|
|
35
|
+
margin-bottom: 16px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
gap: 8px;
|
|
38
|
+
|
|
39
|
+
.jtable-body-header-left {
|
|
40
|
+
flex: 1;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.jtable-body-header-right {
|
|
45
|
+
display: flex;
|
|
46
|
+
gap: 8px;
|
|
47
|
+
align-items: center;
|
|
48
|
+
|
|
49
|
+
.jtable-body-header-right-button {
|
|
50
|
+
width: 62px;
|
|
51
|
+
|
|
52
|
+
.right-button-icon {
|
|
53
|
+
font-size: 16px;
|
|
54
|
+
color: #d9d9d9;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.ant-radio-button-wrapper {
|
|
58
|
+
padding: 0 8px;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
:deep(.ant-radio-button-wrapper-checked) {
|
|
62
|
+
color: @primary-color;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.jtable-box {
|
|
69
|
+
flex: 1;
|
|
70
|
+
min-height: 0;
|
|
71
|
+
|
|
72
|
+
.jtable-card {
|
|
73
|
+
height: 100%;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
|
|
76
|
+
.jtable-card-items {
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-gap: 26px;
|
|
79
|
+
|
|
80
|
+
.jtable-card-item {
|
|
81
|
+
display: flex;
|
|
82
|
+
min-width: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.j-table-empty {
|
|
87
|
+
margin-top: 100px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.ant-table-wrapper {
|
|
92
|
+
height: 100%;
|
|
93
|
+
.ant-table {
|
|
94
|
+
height: 100%;
|
|
95
|
+
|
|
96
|
+
.ant-table-container {
|
|
97
|
+
height: 100%;
|
|
98
|
+
|
|
99
|
+
.ant-table-content {
|
|
100
|
+
height: 100%;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.j-table-scroll {
|
|
107
|
+
|
|
108
|
+
.ant-table-container {
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
|
|
112
|
+
.ant-table-body {
|
|
113
|
+
flex: 1;
|
|
114
|
+
min-height: 0;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.jtable-alert {
|
|
121
|
+
margin-bottom: 16px;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.jtable-pagination {
|
|
125
|
+
width: 100%;
|
|
126
|
+
display: flex;
|
|
127
|
+
justify-content: flex-end;
|
|
128
|
+
margin-top: 16px;
|
|
129
|
+
|
|
130
|
+
.hide-content {
|
|
131
|
+
.@{ant-prefix}-pagination-item,
|
|
132
|
+
& .@{ant-prefix}-pagination-jump-prev,
|
|
133
|
+
& .@{ant-prefix}-pagination-jump-next {
|
|
134
|
+
display: none;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
+
/* stylelint-disable */
|
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
+
.j-radio-button {
|
|
6
|
+
display: grid;
|
|
7
|
+
gap: 16px;
|
|
8
|
+
}
|
|
9
|
+
.j-radio-button .j-radio-button-item {
|
|
10
|
+
padding: 6px 12px;
|
|
11
|
+
text-align: center;
|
|
12
|
+
height: 100%;
|
|
13
|
+
border-radius: 2px;
|
|
14
|
+
background-color: #f5f5f5;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
.j-radio-button .j-radio-button-item.active {
|
|
18
|
+
color: #fff;
|
|
19
|
+
background-color: #1890ff;
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@import '../../style/variable.less';
|
|
2
|
+
.j-radio-button {
|
|
3
|
+
display: grid;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
|
|
6
|
+
.j-radio-button-item {
|
|
7
|
+
padding: 6px 12px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
height: 100%;
|
|
10
|
+
border-radius: 2px;
|
|
11
|
+
background-color: #f5f5f5;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
|
|
14
|
+
&.active {
|
|
15
|
+
color: #fff;
|
|
16
|
+
background-color: @primary-color;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
+
/* stylelint-disable */
|
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
+
.j-scrollbar {
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
position: relative;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
.j-scrollbar__wrap {
|
|
11
|
+
overflow: auto;
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
.j-scrollbar__wrap--hidden-default {
|
|
15
|
+
scrollbar-width: none;
|
|
16
|
+
}
|
|
17
|
+
.j-scrollbar__wrap--hidden-default::-webkit-scrollbar {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
.j-scrollbar__thumb {
|
|
21
|
+
position: relative;
|
|
22
|
+
display: block;
|
|
23
|
+
width: 0;
|
|
24
|
+
height: 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
border-radius: inherit;
|
|
27
|
+
background-color: #909399;
|
|
28
|
+
transition: 0.3s background-color;
|
|
29
|
+
opacity: 0.3;
|
|
30
|
+
}
|
|
31
|
+
.j-scrollbar__thumb:hover {
|
|
32
|
+
background-color: #909399;
|
|
33
|
+
opacity: 0.5;
|
|
34
|
+
}
|
|
35
|
+
.j-scrollbar__bar {
|
|
36
|
+
position: absolute;
|
|
37
|
+
right: 2px;
|
|
38
|
+
bottom: 2px;
|
|
39
|
+
z-index: 1;
|
|
40
|
+
border-radius: 4px;
|
|
41
|
+
}
|
|
42
|
+
.j-scrollbar__bar--vertical {
|
|
43
|
+
width: 6px;
|
|
44
|
+
top: 2px;
|
|
45
|
+
}
|
|
46
|
+
.j-scrollbar__bar--vertical > div {
|
|
47
|
+
width: 100%;
|
|
48
|
+
}
|
|
49
|
+
.j-scrollbar__bar--horizontal {
|
|
50
|
+
height: 6px;
|
|
51
|
+
left: 2px;
|
|
52
|
+
}
|
|
53
|
+
.j-scrollbar__bar--horizontal > div {
|
|
54
|
+
height: 100%;
|
|
55
|
+
}
|
|
56
|
+
.j-scrollbar-fade-enter-active {
|
|
57
|
+
transition: opacity 340ms ease-out;
|
|
58
|
+
}
|
|
59
|
+
.j-scrollbar-fade-leave-active {
|
|
60
|
+
transition: opacity 120ms ease-out;
|
|
61
|
+
}
|
|
62
|
+
.j-scrollbar-fade-enter-from,
|
|
63
|
+
.j-scrollbar-fade-leave-active {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@import '../../style/variable.less';
|
|
2
|
+
@scrollbar-bg-color: #909399;
|
|
3
|
+
@scrollbar-hover-bg-color: #909399;
|
|
4
|
+
@scrollbar-hover-opacity: 0.5;
|
|
5
|
+
@scrollbar-opacity: 0.3;
|
|
6
|
+
@transition-duration: 0.3s;
|
|
7
|
+
|
|
8
|
+
.j-scrollbar {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
position: relative;
|
|
11
|
+
height: 100%;
|
|
12
|
+
|
|
13
|
+
&__wrap {
|
|
14
|
+
overflow: auto;
|
|
15
|
+
height: 100%;
|
|
16
|
+
|
|
17
|
+
&--hidden-default {
|
|
18
|
+
scrollbar-width: none;
|
|
19
|
+
|
|
20
|
+
&::-webkit-scrollbar {
|
|
21
|
+
display: none;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&__thumb {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: block;
|
|
29
|
+
width: 0;
|
|
30
|
+
height: 0;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
border-radius: inherit;
|
|
33
|
+
background-color: @scrollbar-bg-color;
|
|
34
|
+
transition: @transition-duration background-color;
|
|
35
|
+
opacity: @scrollbar-opacity;
|
|
36
|
+
|
|
37
|
+
&:hover {
|
|
38
|
+
background-color: @scrollbar-hover-bg-color;
|
|
39
|
+
opacity: @scrollbar-hover-opacity;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&__bar {
|
|
44
|
+
position: absolute;
|
|
45
|
+
right: 2px;
|
|
46
|
+
bottom: 2px;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
border-radius: 4px;
|
|
49
|
+
|
|
50
|
+
&--vertical {
|
|
51
|
+
width: 6px;
|
|
52
|
+
top: 2px;
|
|
53
|
+
|
|
54
|
+
> div {
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&--horizontal {
|
|
60
|
+
height: 6px;
|
|
61
|
+
left: 2px;
|
|
62
|
+
|
|
63
|
+
> div {
|
|
64
|
+
height: 100%;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.j-scrollbar-fade {
|
|
71
|
+
&-enter-active {
|
|
72
|
+
transition: opacity 340ms ease-out;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&-leave-active {
|
|
76
|
+
transition: opacity 120ms ease-out;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&-enter-from,
|
|
80
|
+
&-leave-active {
|
|
81
|
+
opacity: 0;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.JSearch-item {
|
|
2
|
+
display: flex;
|
|
3
|
+
gap: 16px;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
.JSearch-item--type {
|
|
7
|
+
width: 90px;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
> span {
|
|
10
|
+
line-height: 34px;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.JSearch-item--column {
|
|
16
|
+
width: 130px;
|
|
17
|
+
min-width: 0;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.JSearch-item--termType {
|
|
21
|
+
width: 110px;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
}
|
|
24
|
+
.JSearch-item--label {
|
|
25
|
+
min-width: 40px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.JSearch-item--value {
|
|
29
|
+
display: flex;
|
|
30
|
+
width: 0;
|
|
31
|
+
flex-grow: 1;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
@import '../../style/variable.less';
|
|
2
|
+
.JSearch-warp {
|
|
3
|
+
padding: 24px;
|
|
4
|
+
background-color: #fff;
|
|
5
|
+
margin-bottom: 24px;
|
|
6
|
+
|
|
7
|
+
.pack-up {
|
|
8
|
+
.JSearch-items {
|
|
9
|
+
flex: 1 1 auto;
|
|
10
|
+
|
|
11
|
+
.left {
|
|
12
|
+
min-width: 380px;
|
|
13
|
+
max-width: 580px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&.senior {
|
|
19
|
+
> .JSearch-content {
|
|
20
|
+
display: flex;
|
|
21
|
+
.JSearch-footer {
|
|
22
|
+
display: flex;
|
|
23
|
+
gap: 64px;
|
|
24
|
+
position: relative;
|
|
25
|
+
|
|
26
|
+
.more-btn {
|
|
27
|
+
.more-text {
|
|
28
|
+
padding-right: 24px;
|
|
29
|
+
}
|
|
30
|
+
.more-icon {
|
|
31
|
+
transition: transform 0.3s;
|
|
32
|
+
transform: rotateZ(90deg);
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
|
|
35
|
+
&.more-up {
|
|
36
|
+
transform: rotateZ(-90deg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
&.expand {
|
|
42
|
+
margin-top: 16px;
|
|
43
|
+
width: 100%;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.JSearch-footer--btns {
|
|
48
|
+
display: flex;
|
|
49
|
+
gap: 12px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.items-expand {
|
|
54
|
+
display: flex;
|
|
55
|
+
gap: 16px;
|
|
56
|
+
|
|
57
|
+
.left,
|
|
58
|
+
& .right {
|
|
59
|
+
min-width: 0;
|
|
60
|
+
flex: 1 1 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.left-items,
|
|
64
|
+
& .right-items {
|
|
65
|
+
display: flex;
|
|
66
|
+
gap: 16px;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.center {
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.vertical {
|
|
77
|
+
flex-direction: column;
|
|
78
|
+
.center {
|
|
79
|
+
flex-direction: row;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&.senior-expand {
|
|
86
|
+
flex-direction: column;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.small {
|
|
90
|
+
gap: 12px;
|
|
91
|
+
.JSearch-footer {
|
|
92
|
+
gap: 4px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.JSearch-content {
|
|
99
|
+
&.simple {
|
|
100
|
+
.JSearch-footer--btns {
|
|
101
|
+
display: flex;
|
|
102
|
+
gap: 12px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.JSearch-item {
|
|
106
|
+
gap: 8px;
|
|
107
|
+
|
|
108
|
+
.JSearch-item--label {
|
|
109
|
+
text-align: right;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.no-radius {
|
|
116
|
+
border-radius: 0;
|
|
117
|
+
border-color: #f1f1f1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.search-history-warp {
|
|
121
|
+
position: relative;
|
|
122
|
+
|
|
123
|
+
.search-history-button {
|
|
124
|
+
padding-right: 32px;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.search-history-button-icon {
|
|
128
|
+
position: absolute;
|
|
129
|
+
width: 24px;
|
|
130
|
+
height: 18px;
|
|
131
|
+
right: 6px;
|
|
132
|
+
top: 8px;
|
|
133
|
+
color: #fff;
|
|
134
|
+
line-height: 18px;
|
|
135
|
+
text-align: center;
|
|
136
|
+
font-weight: bold;
|
|
137
|
+
> span {
|
|
138
|
+
font-size: 14px;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.search-history-empty {
|
|
145
|
+
padding: 12px 12px 6px 12px;
|
|
146
|
+
background-color: #fff;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.search-history-items {
|
|
150
|
+
width: 120px;
|
|
151
|
+
max-height: 300px;
|
|
152
|
+
overflow-y: auto;
|
|
153
|
+
.search-history-item {
|
|
154
|
+
display: flex;
|
|
155
|
+
padding: 4px 0px 4px 4px;
|
|
156
|
+
align-items: center;
|
|
157
|
+
gap: 4px;
|
|
158
|
+
|
|
159
|
+
&:hover {
|
|
160
|
+
background-color: #f1f1f1;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.history-item--title {
|
|
164
|
+
width: calc(100% - 30px);
|
|
165
|
+
cursor: pointer;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.delete {
|
|
169
|
+
padding: 0 6px;
|
|
170
|
+
flex: 0 0 28px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.search-history-list-pop {
|
|
176
|
+
.ant-popover-inner-content {
|
|
177
|
+
padding: 0;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.j-title {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-bottom: 16px;
|
|
6
|
+
}
|
|
7
|
+
.j-title .j-title-content {
|
|
8
|
+
position: relative;
|
|
9
|
+
padding-left: 10px;
|
|
10
|
+
color: rgba(0, 0, 0, 0.8);
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
}
|
|
14
|
+
.j-title .j-title-content::before {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: 4px;
|
|
19
|
+
height: 100%;
|
|
20
|
+
background-color: #1890ff;
|
|
21
|
+
border-radius: 0 3px 3px 0;
|
|
22
|
+
content: ' ';
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
.j-title {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
width: 100%;
|
|
5
|
+
margin-bottom: 16px;
|
|
6
|
+
|
|
7
|
+
.j-title-content {
|
|
8
|
+
position: relative;
|
|
9
|
+
padding-left: 10px;
|
|
10
|
+
color: rgba(0, 0, 0, 0.8);
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
line-height: 1;
|
|
13
|
+
|
|
14
|
+
&::before {
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: 0;
|
|
17
|
+
left: 0;
|
|
18
|
+
width: 4px;
|
|
19
|
+
height: 100%;
|
|
20
|
+
background-color: #1890ff;
|
|
21
|
+
border-radius: 0 3px 3px 0;
|
|
22
|
+
content: ' ';
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
package/lib/components.js
CHANGED
|
@@ -185,5 +185,4 @@ var _Markdown = _interopRequireDefault(require("./Markdown"));
|
|
|
185
185
|
var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
|
|
186
186
|
var _Title = _interopRequireDefault(require("./Title"));
|
|
187
187
|
var _FlameGraph = _interopRequireDefault(require("./FlameGraph"));
|
|
188
|
-
function
|
|
189
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
188
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|