@jetlinks-web/components 3.0.1-rc → 3.0.1
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/AutoComplete/AutoComplete.js +13 -9
- package/es/BadgeStatus/Badge.js +1 -2
- package/es/BadgeStatus/color.js +3 -3
- package/es/CardSelect/CardSelect.js +23 -13
- package/es/CardSelect/style/index.js +25 -1
- package/es/CheckButton/CheckButton.js +12 -4
- package/es/CheckButton/style/index.js +41 -1
- package/es/DragModal/DragModal.js +14 -8
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +13 -7
- package/es/EditTable/FormItem.js +18 -19
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +11 -5
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +23 -18
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/body.js +53 -0
- package/es/EditTable/style/form.js +24 -0
- package/es/EditTable/style/group.js +25 -0
- package/es/EditTable/style/header.js +58 -0
- package/es/EditTable/style/index.js +42 -1
- package/es/EditTable/style/menu.js +27 -0
- package/es/EditTable/style/table.js +46 -0
- package/es/EditTable/utils.js +30 -3
- package/es/Ellipsis/Ellipsis.js +10 -2
- package/es/Ellipsis/style/index.js +24 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +6 -7
- package/es/ProLayout/Basic/BasicLayout.js +45 -41
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +3 -7
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +21 -17
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
- package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +13 -12
- package/es/ProLayout/TopHeader/style.js +126 -0
- package/es/ProLayout/style/index.js +7 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +12 -4
- package/es/ProTable/Content.js +108 -28
- package/es/ProTable/Header.js +21 -11
- package/es/ProTable/Pagination.js +12 -4
- package/es/ProTable/ProTable.js +46 -34
- package/es/ProTable/hooks/index.js +2 -0
- package/es/ProTable/hooks/useTableInject.js +5 -0
- package/es/ProTable/hooks/useTableSelection.js +95 -0
- package/es/ProTable/setting.js +1 -1
- package/es/ProTable/style/index.js +109 -1
- package/es/RadioButton/RadioButton.js +10 -4
- package/es/RadioButton/style/index.js +23 -1
- package/es/Scrollbar/Scrollbar.js +10 -3
- package/es/Scrollbar/Thumb.js +36 -25
- package/es/Scrollbar/style/index.js +63 -1
- package/es/Search/Advanced/History.js +23 -16
- package/es/Search/Advanced/SaveHistory.js +1 -2
- package/es/Search/Advanced/index.js +212 -292
- package/es/Search/Item.js +175 -415
- package/es/Search/Search.js +78 -172
- package/es/Search/hooks/index.js +108 -1
- package/es/Search/hooks/useRouteQuery.js +57 -0
- package/es/Search/setting.js +132 -14
- package/es/Search/style/index.js +4 -2
- package/es/Search/style/item.js +28 -0
- package/es/Search/style/search.js +133 -0
- package/es/Search/util.js +116 -124
- package/es/Skeleton/components/DashBoardCard.js +19 -12
- package/es/Skeleton/components/DashBoardChart.js +48 -45
- package/es/Skeleton/components/Detail.js +27 -21
- package/es/Skeleton/components/Drawer.js +23 -14
- package/es/Skeleton/components/Item.js +9 -1
- package/es/Skeleton/components/List.js +0 -1
- package/es/Skeleton/components/ListCard.js +20 -13
- package/es/Skeleton/components/ListCardItem.js +12 -13
- package/es/Skeleton/components/ListTable.js +19 -10
- package/es/Skeleton/components/Page.js +0 -1
- package/es/Skeleton/components/Tree.js +21 -14
- package/es/Skeleton/skeleton.js +17 -8
- package/es/Skeleton/style/index.js +132 -1
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +44 -39
- package/es/components.js +1 -5
- package/es/locale/en-US.js +3 -7
- package/es/locale/zh-CN.js +3 -7
- package/es/style/index.js +0 -3
- package/es/style/styleRegister.js +21 -0
- package/es/style/variable.js +4 -0
- package/es/style.js +0 -13
- package/lib/AutoComplete/AutoComplete.js +13 -9
- package/lib/BadgeStatus/Badge.js +1 -2
- package/lib/BadgeStatus/color.js +3 -3
- package/lib/CardSelect/CardSelect.js +23 -13
- package/lib/CardSelect/style/index.js +30 -1
- package/lib/CheckButton/CheckButton.js +12 -4
- package/lib/CheckButton/style/index.js +46 -1
- package/lib/DragModal/DragModal.js +14 -8
- package/lib/DragModal/style/index.js +69 -1
- package/lib/EditTable/Body.js +10 -3
- package/lib/EditTable/EditTable.js +13 -7
- package/lib/EditTable/FormItem.js +18 -19
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +23 -18
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/body.js +60 -0
- package/lib/EditTable/style/form.js +31 -0
- package/lib/EditTable/style/group.js +32 -0
- package/lib/EditTable/style/header.js +65 -0
- package/lib/EditTable/style/index.js +47 -1
- package/lib/EditTable/style/menu.js +33 -0
- package/lib/EditTable/style/table.js +52 -0
- package/lib/EditTable/utils.js +31 -3
- package/lib/Ellipsis/Ellipsis.js +10 -2
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/Icon/icon.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +6 -7
- package/lib/ProLayout/Basic/BasicLayout.js +45 -42
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +2 -6
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +19 -15
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
- package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +14 -12
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +12 -4
- package/lib/ProTable/Content.js +108 -28
- package/lib/ProTable/Header.js +21 -11
- package/lib/ProTable/Pagination.js +12 -4
- package/lib/ProTable/ProTable.js +46 -34
- package/lib/ProTable/hooks/index.js +27 -0
- package/lib/ProTable/hooks/useTableInject.js +11 -0
- package/lib/ProTable/hooks/useTableSelection.js +102 -0
- package/lib/ProTable/setting.js +1 -1
- package/lib/ProTable/style/index.js +114 -1
- package/lib/RadioButton/RadioButton.js +10 -4
- package/lib/RadioButton/style/index.js +28 -1
- package/lib/Scrollbar/Scrollbar.js +10 -3
- package/lib/Scrollbar/Thumb.js +36 -25
- package/lib/Scrollbar/style/index.js +68 -1
- package/lib/Search/Advanced/History.js +23 -16
- package/lib/Search/Advanced/SaveHistory.js +1 -2
- package/lib/Search/Advanced/index.js +212 -292
- package/lib/Search/Item.js +175 -415
- package/lib/Search/Search.js +78 -172
- package/lib/Search/hooks/index.js +130 -1
- package/lib/Search/hooks/useRouteQuery.js +64 -0
- package/lib/Search/setting.js +133 -15
- package/lib/Search/style/index.js +9 -2
- package/lib/Search/style/item.js +35 -0
- package/lib/Search/style/search.js +140 -0
- package/lib/Search/util.js +116 -124
- package/lib/Skeleton/components/DashBoardCard.js +19 -12
- package/lib/Skeleton/components/DashBoardChart.js +48 -45
- package/lib/Skeleton/components/Detail.js +27 -21
- package/lib/Skeleton/components/Drawer.js +23 -14
- package/lib/Skeleton/components/Item.js +9 -1
- package/lib/Skeleton/components/List.js +0 -1
- package/lib/Skeleton/components/ListCard.js +20 -13
- package/lib/Skeleton/components/ListCardItem.js +12 -13
- package/lib/Skeleton/components/ListTable.js +19 -10
- package/lib/Skeleton/components/Page.js +0 -1
- package/lib/Skeleton/components/Tree.js +21 -14
- package/lib/Skeleton/skeleton.js +17 -8
- package/lib/Skeleton/style/index.js +137 -1
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +44 -39
- package/lib/components.js +1 -30
- package/lib/index.js +1 -2
- package/lib/locale/en-US.js +3 -7
- package/lib/locale/zh-CN.js +3 -7
- package/lib/style/components.less +0 -1
- package/lib/style/index.js +1 -4
- package/lib/style/styleRegister.js +28 -0
- package/lib/style/variable.js +10 -0
- package/lib/style.js +1 -15
- package/package.json +170 -173
- package/es/AMap/Map.js +0 -133
- package/es/AMap/index.js +0 -5
- package/es/AMap/util.js +0 -56
- package/es/CardSelect/style/index.css +0 -24
- package/es/CardSelect/style/index.less +0 -26
- package/es/CheckButton/style/index.css +0 -37
- package/es/CheckButton/style/index.less +0 -40
- package/es/DragModal/style/index.css +0 -82
- package/es/DragModal/style/index.less +0 -97
- package/es/Echarts/Echarts.js +0 -48
- package/es/Echarts/index.js +0 -5
- package/es/EditTable/style/body.less +0 -66
- package/es/EditTable/style/form.less +0 -33
- package/es/EditTable/style/group.less +0 -32
- package/es/EditTable/style/header.less +0 -77
- package/es/EditTable/style/index.css +0 -267
- package/es/EditTable/style/index.less +0 -41
- package/es/EditTable/style/menu.less +0 -25
- package/es/EditTable/style/table.less +0 -47
- package/es/Ellipsis/style/index.css +0 -17
- package/es/Ellipsis/style/index.less +0 -20
- package/es/FlameGraph/FlameGraph.js +0 -136
- package/es/FlameGraph/index.js +0 -5
- package/es/FlameGraph/style/index.css +0 -43
- package/es/FlameGraph/style/index.js +0 -1
- package/es/FlameGraph/style/index.less +0 -52
- package/es/ProLayout/Basic/BasicLayout.less +0 -66
- package/es/ProLayout/Basic/Header.less +0 -8
- package/es/ProLayout/PageContainer/index.less +0 -103
- package/es/ProLayout/SiderMenu/index.less +0 -231
- package/es/ProLayout/TopHeader/index.less +0 -174
- package/es/ProLayout/style/default.less +0 -4
- package/es/ProLayout/style/style.less +0 -7
- package/es/ProTable/style/ProTable.less +0 -139
- package/es/RadioButton/style/index.css +0 -20
- package/es/RadioButton/style/index.less +0 -19
- package/es/Scrollbar/style/index.css +0 -65
- package/es/Scrollbar/style/index.less +0 -83
- package/es/Search/style/Item.less +0 -33
- package/es/Search/style/Search.less +0 -179
- package/es/Skeleton/style/Skeleton.less +0 -166
- package/es/Title/style/index.css +0 -27
- package/es/Title/style/index.less +0 -27
- package/es/style/index.css +0 -5375
- package/es/style/index.less +0 -14
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- package/lib/AMap/Map.js +0 -133
- package/lib/AMap/index.js +0 -12
- package/lib/AMap/util.js +0 -62
- package/lib/CardSelect/style/index.css +0 -24
- package/lib/CardSelect/style/index.less +0 -26
- package/lib/CheckButton/style/index.css +0 -37
- package/lib/CheckButton/style/index.less +0 -40
- package/lib/DragModal/style/index.css +0 -82
- package/lib/DragModal/style/index.less +0 -97
- package/lib/Echarts/Echarts.js +0 -48
- package/lib/Echarts/index.js +0 -12
- package/lib/EditTable/style/body.less +0 -66
- package/lib/EditTable/style/form.less +0 -33
- package/lib/EditTable/style/group.less +0 -32
- package/lib/EditTable/style/header.less +0 -77
- package/lib/EditTable/style/index.css +0 -267
- package/lib/EditTable/style/index.less +0 -41
- package/lib/EditTable/style/menu.less +0 -25
- package/lib/EditTable/style/table.less +0 -47
- package/lib/Ellipsis/style/index.css +0 -17
- package/lib/Ellipsis/style/index.less +0 -20
- package/lib/FlameGraph/FlameGraph.js +0 -136
- package/lib/FlameGraph/index.js +0 -12
- package/lib/FlameGraph/style/index.css +0 -43
- package/lib/FlameGraph/style/index.js +0 -3
- package/lib/FlameGraph/style/index.less +0 -52
- package/lib/ProLayout/Basic/BasicLayout.less +0 -66
- package/lib/ProLayout/Basic/Header.less +0 -8
- package/lib/ProLayout/PageContainer/index.less +0 -103
- package/lib/ProLayout/SiderMenu/index.less +0 -231
- package/lib/ProLayout/TopHeader/index.less +0 -174
- package/lib/ProLayout/style/default.less +0 -4
- package/lib/ProLayout/style/style.less +0 -7
- package/lib/ProTable/style/ProTable.less +0 -139
- package/lib/RadioButton/style/index.css +0 -20
- package/lib/RadioButton/style/index.less +0 -19
- package/lib/Scrollbar/style/index.css +0 -65
- package/lib/Scrollbar/style/index.less +0 -83
- package/lib/Search/style/Item.less +0 -33
- package/lib/Search/style/Search.less +0 -179
- package/lib/Skeleton/style/Skeleton.less +0 -166
- package/lib/Title/style/index.css +0 -27
- package/lib/Title/style/index.less +0 -27
- package/lib/style/index.css +0 -5375
- package/lib/style/index.less +0 -14
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
|
@@ -1,267 +0,0 @@
|
|
|
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
|
-
.jetlinks-edit-table-wrapper {
|
|
6
|
-
background: #fff;
|
|
7
|
-
height: 100%;
|
|
8
|
-
position: relative;
|
|
9
|
-
}
|
|
10
|
-
.jetlinks-edit-table-wrapper.table-full-screen {
|
|
11
|
-
padding: 24px;
|
|
12
|
-
}
|
|
13
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column;
|
|
16
|
-
flex-grow: 0;
|
|
17
|
-
flex-shrink: 0;
|
|
18
|
-
background: #fafafa;
|
|
19
|
-
transition: background-color 0.3s ease;
|
|
20
|
-
overflow: auto hidden;
|
|
21
|
-
}
|
|
22
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header {
|
|
23
|
-
overflow: hidden;
|
|
24
|
-
width: 100%;
|
|
25
|
-
}
|
|
26
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-body {
|
|
27
|
-
background-color: #fff;
|
|
28
|
-
overflow-y: hidden;
|
|
29
|
-
position: relative;
|
|
30
|
-
height: 100%;
|
|
31
|
-
width: 100%;
|
|
32
|
-
flex: 1 1 auto;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
}
|
|
35
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll {
|
|
36
|
-
width: 100%;
|
|
37
|
-
height: 15px;
|
|
38
|
-
min-height: 15px;
|
|
39
|
-
max-height: 15px;
|
|
40
|
-
display: flex;
|
|
41
|
-
}
|
|
42
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-table-horizontal-scroll .jetlinks-table-horizontal-scroll-bar {
|
|
43
|
-
height: 100%;
|
|
44
|
-
overflow-x: scroll;
|
|
45
|
-
}
|
|
46
|
-
.jetlinks-edit-table-body-viewport {
|
|
47
|
-
max-height: 100%;
|
|
48
|
-
width: 100%;
|
|
49
|
-
overflow: hidden auto;
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-scrollbar {
|
|
53
|
-
position: absolute;
|
|
54
|
-
left: 0;
|
|
55
|
-
top: 0;
|
|
56
|
-
right: 0;
|
|
57
|
-
z-index: -1;
|
|
58
|
-
}
|
|
59
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-body-container {
|
|
60
|
-
overflow: hidden;
|
|
61
|
-
height: 100%;
|
|
62
|
-
}
|
|
63
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center {
|
|
64
|
-
position: relative;
|
|
65
|
-
flex: 1 1 auto;
|
|
66
|
-
min-width: 0;
|
|
67
|
-
height: 100%;
|
|
68
|
-
}
|
|
69
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
|
|
70
|
-
width: 100%;
|
|
71
|
-
display: flex;
|
|
72
|
-
align-items: center;
|
|
73
|
-
transition: top 0.2s, height 0.2s, background-color 0.1s;
|
|
74
|
-
border-bottom: 1px solid #ebebeb;
|
|
75
|
-
}
|
|
76
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .jetlinks-edit-table-cell {
|
|
77
|
-
position: absolute;
|
|
78
|
-
min-width: 0;
|
|
79
|
-
}
|
|
80
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row:hover {
|
|
81
|
-
background-color: #f8f8f8;
|
|
82
|
-
}
|
|
83
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-selected {
|
|
84
|
-
background-color: var(--ant-primary-1);
|
|
85
|
-
}
|
|
86
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .body-cell-box {
|
|
87
|
-
padding: 0 12px;
|
|
88
|
-
position: relative;
|
|
89
|
-
}
|
|
90
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .readonly-mask {
|
|
91
|
-
position: absolute;
|
|
92
|
-
top: 0;
|
|
93
|
-
left: 0;
|
|
94
|
-
right: 0;
|
|
95
|
-
bottom: 0;
|
|
96
|
-
z-index: 4;
|
|
97
|
-
}
|
|
98
|
-
.jetlinks-edit-table-body-empty {
|
|
99
|
-
display: flex;
|
|
100
|
-
width: 100%;
|
|
101
|
-
justify-content: center;
|
|
102
|
-
padding-top: 24px;
|
|
103
|
-
}
|
|
104
|
-
.jetlinks-edit-table-header-container {
|
|
105
|
-
height: 100%;
|
|
106
|
-
position: relative;
|
|
107
|
-
}
|
|
108
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell {
|
|
109
|
-
height: 100%;
|
|
110
|
-
display: inline-flex;
|
|
111
|
-
align-items: center;
|
|
112
|
-
float: left;
|
|
113
|
-
overflow: visible;
|
|
114
|
-
position: absolute;
|
|
115
|
-
top: 0;
|
|
116
|
-
}
|
|
117
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box {
|
|
118
|
-
padding: 0 12px;
|
|
119
|
-
width: 100%;
|
|
120
|
-
}
|
|
121
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box.header-cell-box-tool {
|
|
122
|
-
display: flex;
|
|
123
|
-
justify-content: space-between;
|
|
124
|
-
align-items: center;
|
|
125
|
-
}
|
|
126
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .table-header-cell-title {
|
|
127
|
-
flex: 1;
|
|
128
|
-
display: flex;
|
|
129
|
-
align-items: center;
|
|
130
|
-
font-weight: 600;
|
|
131
|
-
gap: 4px;
|
|
132
|
-
}
|
|
133
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .table-header-cell-title .cell-title-box {
|
|
134
|
-
flex: 1 1 auto;
|
|
135
|
-
}
|
|
136
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box .header-cell-required {
|
|
137
|
-
color: #ff4d4f;
|
|
138
|
-
padding-left: 8px;
|
|
139
|
-
transform: translateY(3px);
|
|
140
|
-
font-weight: 500;
|
|
141
|
-
}
|
|
142
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box::before {
|
|
143
|
-
position: absolute;
|
|
144
|
-
top: 50%;
|
|
145
|
-
right: 1px;
|
|
146
|
-
width: 1px;
|
|
147
|
-
height: 1.6em;
|
|
148
|
-
pointer-events: none;
|
|
149
|
-
background-color: rgba(0, 0, 0, 0.06);
|
|
150
|
-
transform: translateY(-50%);
|
|
151
|
-
transition: background-color 0.3s;
|
|
152
|
-
content: "";
|
|
153
|
-
}
|
|
154
|
-
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box:not(:last-child)::before {
|
|
155
|
-
background-color: transparent;
|
|
156
|
-
}
|
|
157
|
-
.jetlinks-table-search .jetlinks-table-search-header {
|
|
158
|
-
display: flex;
|
|
159
|
-
justify-content: space-between;
|
|
160
|
-
}
|
|
161
|
-
.jetlinks-table-search .jetlinks-table-search-header .jetlinks-drag-modal-footer {
|
|
162
|
-
display: none;
|
|
163
|
-
}
|
|
164
|
-
.jetlinks-table-search .jetlinks-table-search-header .jetlinks-table-search-result-total {
|
|
165
|
-
color: #1890ff;
|
|
166
|
-
}
|
|
167
|
-
.jetlinks-table-group-warp .ant-tabs-nav {
|
|
168
|
-
margin-bottom: 0;
|
|
169
|
-
}
|
|
170
|
-
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab {
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
position: relative;
|
|
173
|
-
}
|
|
174
|
-
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab-active {
|
|
175
|
-
background-color: #BAE0FF !important;
|
|
176
|
-
border-color: #91CAFF !important;
|
|
177
|
-
}
|
|
178
|
-
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-nav-add {
|
|
179
|
-
border: none;
|
|
180
|
-
}
|
|
181
|
-
.jetlinks-table-group-error-warp {
|
|
182
|
-
color: #1a1a1a !important;
|
|
183
|
-
}
|
|
184
|
-
.jetlinks-table-group-error-warp .table-group-error-target {
|
|
185
|
-
position: absolute;
|
|
186
|
-
right: 0;
|
|
187
|
-
top: 0;
|
|
188
|
-
border: 16px solid transparent;
|
|
189
|
-
border-top-color: #ff4d4f;
|
|
190
|
-
border-right-width: 0;
|
|
191
|
-
border-bottom-width: 0;
|
|
192
|
-
}
|
|
193
|
-
.jetlinks-table-form-error-target {
|
|
194
|
-
position: absolute;
|
|
195
|
-
right: 2px;
|
|
196
|
-
top: -9px;
|
|
197
|
-
border: 16px solid transparent;
|
|
198
|
-
border-top-color: #ff4d4f;
|
|
199
|
-
border-right-width: 0;
|
|
200
|
-
border-bottom-width: 0;
|
|
201
|
-
}
|
|
202
|
-
.jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector {
|
|
203
|
-
border-color: #ff4d4f !important;
|
|
204
|
-
}
|
|
205
|
-
.jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector:focus {
|
|
206
|
-
box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
|
|
207
|
-
}
|
|
208
|
-
.jetlinks-edit-table-form-has-error > input {
|
|
209
|
-
border-color: #ff4d4f !important;
|
|
210
|
-
}
|
|
211
|
-
.jetlinks-edit-table-form-has-error > input:focus {
|
|
212
|
-
box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
|
|
213
|
-
}
|
|
214
|
-
.jetlinks-edit-table-form-has-error .jetlinks-table-form-required-aicon {
|
|
215
|
-
color: #ff4d4f;
|
|
216
|
-
}
|
|
217
|
-
.jetlinks-edit-table-context-menu {
|
|
218
|
-
position: fixed;
|
|
219
|
-
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
|
|
220
|
-
border-radius: 4px;
|
|
221
|
-
overflow: hidden;
|
|
222
|
-
width: 192px;
|
|
223
|
-
padding: 4px;
|
|
224
|
-
background-color: #fff;
|
|
225
|
-
}
|
|
226
|
-
.jetlinks-edit-table-context-menu .ant-menu {
|
|
227
|
-
border-right: none;
|
|
228
|
-
}
|
|
229
|
-
.jetlinks-edit-table-context-menu .ant-menu .ant-menu-item {
|
|
230
|
-
margin: 0;
|
|
231
|
-
height: 32px;
|
|
232
|
-
}
|
|
233
|
-
.jetlinks-edit-table-context-menu .ant-menu .ant-menu-item.danger {
|
|
234
|
-
color: #ff4d4f;
|
|
235
|
-
}
|
|
236
|
-
.jetlinks-edit-table-context-menu .ant-menu-item-active {
|
|
237
|
-
background-color: var(--ant-primary-1);
|
|
238
|
-
}
|
|
239
|
-
.edit-table-search-header {
|
|
240
|
-
display: flex;
|
|
241
|
-
justify-content: space-between;
|
|
242
|
-
}
|
|
243
|
-
.edit-table-search-result-total {
|
|
244
|
-
color: #1890ff;
|
|
245
|
-
}
|
|
246
|
-
.jetlinks-edit-table-horizontal-scroll {
|
|
247
|
-
height: 17px;
|
|
248
|
-
width: 100%;
|
|
249
|
-
display: flex;
|
|
250
|
-
position: relative;
|
|
251
|
-
z-index: 4;
|
|
252
|
-
}
|
|
253
|
-
.jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport {
|
|
254
|
-
overflow-y: hidden;
|
|
255
|
-
overflow-x: scroll;
|
|
256
|
-
position: relative;
|
|
257
|
-
flex: 1 1 0;
|
|
258
|
-
height: 17px;
|
|
259
|
-
width: 100%;
|
|
260
|
-
}
|
|
261
|
-
.jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-viewport > div {
|
|
262
|
-
height: 17px;
|
|
263
|
-
}
|
|
264
|
-
.jetlinks-edit-table-horizontal-scroll .jetlinks-edit-table-horizontal-scroll-hidden {
|
|
265
|
-
height: 100%;
|
|
266
|
-
overflow-x: hidden;
|
|
267
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
@import "ant-design-vue/es/style/themes/index.less";
|
|
2
|
-
@import "./table.less";
|
|
3
|
-
@import "./body.less";
|
|
4
|
-
@import "./header.less";
|
|
5
|
-
@import "./group.less";
|
|
6
|
-
@import "./form.less";
|
|
7
|
-
@import "./menu.less";
|
|
8
|
-
|
|
9
|
-
.edit-table-search-header {
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.edit-table-search-result-total {
|
|
15
|
-
color: @primary-color;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.jetlinks-edit-table-horizontal-scroll {
|
|
19
|
-
height: 17px;
|
|
20
|
-
width: 100%;
|
|
21
|
-
display: flex;
|
|
22
|
-
position: relative;
|
|
23
|
-
z-index: 4;
|
|
24
|
-
|
|
25
|
-
.jetlinks-edit-table-horizontal-scroll-viewport {
|
|
26
|
-
overflow-y: hidden;
|
|
27
|
-
overflow-x: scroll;
|
|
28
|
-
position: relative;
|
|
29
|
-
flex: 1 1 0;
|
|
30
|
-
height: 17px;
|
|
31
|
-
width: 100%;
|
|
32
|
-
|
|
33
|
-
> div {
|
|
34
|
-
height: 17px;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.jetlinks-edit-table-horizontal-scroll-hidden {
|
|
39
|
-
height: 100%; overflow-x: hidden;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
.jetlinks-edit-table-context-menu{
|
|
2
|
-
position: fixed;
|
|
3
|
-
box-shadow: 0 0 12px rgba(0, 0, 0 ,.2);
|
|
4
|
-
border-radius: 4px;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
width: 192px;
|
|
7
|
-
padding: 4px;
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
.ant-menu {
|
|
10
|
-
border-right: none;
|
|
11
|
-
|
|
12
|
-
.ant-menu-item {
|
|
13
|
-
margin: 0;
|
|
14
|
-
height: 32px;
|
|
15
|
-
|
|
16
|
-
&.danger {
|
|
17
|
-
color: @error-color;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ant-menu-item-active {
|
|
23
|
-
background-color: var(--ant-primary-1);;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
.jetlinks-edit-table-wrapper {
|
|
2
|
-
background: #fff;
|
|
3
|
-
height: 100%;
|
|
4
|
-
position: relative;
|
|
5
|
-
|
|
6
|
-
&.table-full-screen {
|
|
7
|
-
padding: 24px;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.jetlinks-edit-table {
|
|
11
|
-
display: flex;
|
|
12
|
-
flex-direction: column;
|
|
13
|
-
flex-grow: 0;
|
|
14
|
-
flex-shrink: 0;
|
|
15
|
-
background: #fafafa;
|
|
16
|
-
transition: background-color .3s ease;
|
|
17
|
-
overflow: auto hidden;
|
|
18
|
-
|
|
19
|
-
.jetlinks-edit-table-header {
|
|
20
|
-
overflow: hidden;
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.jetlinks-edit-table-body {
|
|
25
|
-
background-color: #fff;
|
|
26
|
-
overflow-y: hidden;
|
|
27
|
-
position: relative;
|
|
28
|
-
height: 100%;
|
|
29
|
-
width: 100%;
|
|
30
|
-
flex: 1 1 auto;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.jetlinks-table-horizontal-scroll {
|
|
35
|
-
width: 100%;
|
|
36
|
-
height: 15px;
|
|
37
|
-
min-height: 15px;
|
|
38
|
-
max-height: 15px;
|
|
39
|
-
display: flex;
|
|
40
|
-
|
|
41
|
-
.jetlinks-table-horizontal-scroll-bar {
|
|
42
|
-
height: 100%;
|
|
43
|
-
overflow-x: scroll;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
.j-ellipsis {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
vertical-align: bottom;
|
|
4
|
-
}
|
|
5
|
-
.j-ellipsis-cursor {
|
|
6
|
-
cursor: pointer;
|
|
7
|
-
}
|
|
8
|
-
.j-ellipsis-line-clamp {
|
|
9
|
-
display: -webkit-box;
|
|
10
|
-
-webkit-box-orient: vertical;
|
|
11
|
-
word-break: break-all;
|
|
12
|
-
}
|
|
13
|
-
.j-ellipsis-deep {
|
|
14
|
-
max-height: 380px;
|
|
15
|
-
-webkit-line-clamp: 17;
|
|
16
|
-
text-overflow: ellipsis;
|
|
17
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
.j-ellipsis {
|
|
2
|
-
overflow: hidden;
|
|
3
|
-
vertical-align: bottom;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.j-ellipsis-cursor {
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.j-ellipsis-line-clamp {
|
|
11
|
-
display: -webkit-box;
|
|
12
|
-
-webkit-box-orient: vertical;
|
|
13
|
-
word-break: break-all;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.j-ellipsis-deep {
|
|
17
|
-
max-height: 380px;
|
|
18
|
-
-webkit-line-clamp: 17;
|
|
19
|
-
text-overflow: ellipsis;
|
|
20
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) {
|
|
2
|
-
const op = ops[i];
|
|
3
|
-
const fn = ops[i + 1];
|
|
4
|
-
i += 2;
|
|
5
|
-
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
if (op === 'access' || op === 'optionalAccess') {
|
|
9
|
-
lastAccessLHS = value;
|
|
10
|
-
value = fn(value);
|
|
11
|
-
}
|
|
12
|
-
else if (op === 'call' || op === 'optionalCall') {
|
|
13
|
-
value = fn((...args) => value.call(lastAccessLHS, ...args));
|
|
14
|
-
lastAccessLHS = undefined;
|
|
15
|
-
}
|
|
16
|
-
} return value; }
|
|
17
|
-
/* Analyzed bindings: {
|
|
18
|
-
"data": "props",
|
|
19
|
-
"showSearch": "props",
|
|
20
|
-
"showInvert": "props",
|
|
21
|
-
"request": "props",
|
|
22
|
-
"flamegraph": "setup-maybe-ref",
|
|
23
|
-
"d3": "setup-const",
|
|
24
|
-
"nextTick": "setup-const",
|
|
25
|
-
"watch": "setup-const",
|
|
26
|
-
"ref": "setup-const",
|
|
27
|
-
"computed": "setup-const",
|
|
28
|
-
"props": "setup-reactive-const",
|
|
29
|
-
"flameGraphRef": "setup-ref",
|
|
30
|
-
"inverted": "setup-ref",
|
|
31
|
-
"chart": "setup-maybe-ref",
|
|
32
|
-
"search": "setup-const",
|
|
33
|
-
"formatData": "setup-ref",
|
|
34
|
-
"invert": "setup-const"
|
|
35
|
-
} */
|
|
36
|
-
import { resolveComponent as _resolveComponent, createVNode as _createVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
37
|
-
const _hoisted_1 = { class: "j-flame-graph" };
|
|
38
|
-
const _hoisted_2 = { class: "actions" };
|
|
39
|
-
import { flamegraph } from 'd3-flame-graph';
|
|
40
|
-
import * as d3 from 'd3';
|
|
41
|
-
import { nextTick, watch, ref, computed } from 'vue';
|
|
42
|
-
const __sfc_main__ = Object.assign({
|
|
43
|
-
name: 'JFlameGraph',
|
|
44
|
-
}, {
|
|
45
|
-
props: {
|
|
46
|
-
data: {
|
|
47
|
-
type: Object,
|
|
48
|
-
},
|
|
49
|
-
showSearch: {
|
|
50
|
-
type: Boolean,
|
|
51
|
-
default: true
|
|
52
|
-
},
|
|
53
|
-
showInvert: {
|
|
54
|
-
type: Boolean,
|
|
55
|
-
default: true
|
|
56
|
-
},
|
|
57
|
-
request: {
|
|
58
|
-
type: Function,
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
setup(__props) {
|
|
62
|
-
const props = __props;
|
|
63
|
-
const flameGraphRef = ref(null);
|
|
64
|
-
const inverted = ref(false);
|
|
65
|
-
const chart = flamegraph()
|
|
66
|
-
.setColorMapper(function (d, originalColor) {
|
|
67
|
-
return d.highlight ? "#E600E6" : originalColor;
|
|
68
|
-
});
|
|
69
|
-
const search = (val) => {
|
|
70
|
-
chart.search(val);
|
|
71
|
-
};
|
|
72
|
-
const formatData = computed(() => {
|
|
73
|
-
return (val) => {
|
|
74
|
-
function formatDataFn(newVal) {
|
|
75
|
-
_optionalChain([newVal, 'access', _2 => _2.children, 'optionalAccess', _3 => _3.forEach, 'call', _4 => _4(item => {
|
|
76
|
-
formatDataFn(item);
|
|
77
|
-
})]);
|
|
78
|
-
}
|
|
79
|
-
//格式化数据,增加根节点root
|
|
80
|
-
const obj = {
|
|
81
|
-
name: 'root',
|
|
82
|
-
value: val.map(item => item.value).reduce((a, b) => a + b, 0),
|
|
83
|
-
children: val
|
|
84
|
-
};
|
|
85
|
-
formatDataFn(obj);
|
|
86
|
-
return obj;
|
|
87
|
-
};
|
|
88
|
-
});
|
|
89
|
-
const invert = () => {
|
|
90
|
-
inverted.value = !inverted.value;
|
|
91
|
-
chart.inverted(inverted.value);
|
|
92
|
-
d3.select(flameGraphRef.value)
|
|
93
|
-
.datum(formatData.value(props.data))
|
|
94
|
-
.call(chart);
|
|
95
|
-
};
|
|
96
|
-
watch(() => props.data, (newVal, oldVal) => {
|
|
97
|
-
if (newVal) {
|
|
98
|
-
nextTick(() => {
|
|
99
|
-
d3.select(flameGraphRef.value)
|
|
100
|
-
.datum(formatData.value(newVal))
|
|
101
|
-
.call(chart);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
}, { immediate: true });
|
|
105
|
-
return (_ctx, _cache) => {
|
|
106
|
-
const _component_a_input_search = _resolveComponent("a-input-search");
|
|
107
|
-
const _component_a_button = _resolveComponent("a-button");
|
|
108
|
-
const _component_a_space = _resolveComponent("a-space");
|
|
109
|
-
return (_openBlock(), _createElementBlock("div", _hoisted_1, [
|
|
110
|
-
_createElementVNode("div", _hoisted_2, [
|
|
111
|
-
_createVNode(_component_a_space, null, {
|
|
112
|
-
default: _withCtx(() => [
|
|
113
|
-
_createVNode(_component_a_input_search, {
|
|
114
|
-
class: "j-flame-graph-search",
|
|
115
|
-
placeholder: "请输入",
|
|
116
|
-
onSearch: search
|
|
117
|
-
}),
|
|
118
|
-
_createVNode(_component_a_button, { onClick: invert }, {
|
|
119
|
-
default: _withCtx(() => [
|
|
120
|
-
_createTextVNode("反转")
|
|
121
|
-
]),
|
|
122
|
-
_: 1 /* STABLE */
|
|
123
|
-
})
|
|
124
|
-
]),
|
|
125
|
-
_: 1 /* STABLE */
|
|
126
|
-
})
|
|
127
|
-
]),
|
|
128
|
-
_createElementVNode("div", {
|
|
129
|
-
ref_key: "flameGraphRef",
|
|
130
|
-
ref: flameGraphRef
|
|
131
|
-
}, null, 512 /* NEED_PATCH */)
|
|
132
|
-
]));
|
|
133
|
-
};
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
export default __sfc_main__;
|
package/es/FlameGraph/index.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
.j-flame-graph {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
/* 修改矩形块样式 */
|
|
7
|
-
}
|
|
8
|
-
.j-flame-graph .actions {
|
|
9
|
-
position: sticky;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
padding: 10px;
|
|
13
|
-
background: #fff;
|
|
14
|
-
}
|
|
15
|
-
.j-flame-graph .d3-flame-graph {
|
|
16
|
-
margin-top: 40px;
|
|
17
|
-
}
|
|
18
|
-
.j-flame-graph .d3-flame-graph rect {
|
|
19
|
-
stroke: #fff;
|
|
20
|
-
stroke-width: 1px;
|
|
21
|
-
}
|
|
22
|
-
.j-flame-graph .d3-flame-graph text {
|
|
23
|
-
font-size: 18px;
|
|
24
|
-
fill: #333;
|
|
25
|
-
}
|
|
26
|
-
.j-flame-graph .frame {
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
}
|
|
29
|
-
.j-flame-graph .frame:hover {
|
|
30
|
-
fill: #E600E6;
|
|
31
|
-
}
|
|
32
|
-
.j-flame-graph .frame:hover rect {
|
|
33
|
-
fill: #ffffe0;
|
|
34
|
-
}
|
|
35
|
-
.j-flame-graph .frame div {
|
|
36
|
-
color: #000;
|
|
37
|
-
}
|
|
38
|
-
.j-flame-graph .j-flame-graph-search {
|
|
39
|
-
position: sticky;
|
|
40
|
-
top: 0;
|
|
41
|
-
left: 0;
|
|
42
|
-
width: 200px;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import './index.less';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
.j-flame-graph {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
height: 100%;
|
|
5
|
-
overflow: auto;
|
|
6
|
-
.actions {
|
|
7
|
-
position: sticky;
|
|
8
|
-
top: 0;
|
|
9
|
-
left: 0;
|
|
10
|
-
padding: 10px;
|
|
11
|
-
background: #fff;
|
|
12
|
-
}
|
|
13
|
-
.d3-flame-graph {
|
|
14
|
-
margin-top: 40px;
|
|
15
|
-
}
|
|
16
|
-
/* 修改矩形块样式 */
|
|
17
|
-
.d3-flame-graph {
|
|
18
|
-
rect {
|
|
19
|
-
stroke: #fff;
|
|
20
|
-
stroke-width: 1px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
text {
|
|
24
|
-
font-size: 18px;
|
|
25
|
-
fill: #333;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.frame {
|
|
30
|
-
cursor: pointer;
|
|
31
|
-
}
|
|
32
|
-
.frame:hover {
|
|
33
|
-
fill: #E600E6;
|
|
34
|
-
}
|
|
35
|
-
.frame:hover rect {
|
|
36
|
-
fill: #ffffe0;
|
|
37
|
-
}
|
|
38
|
-
.frame div {
|
|
39
|
-
color: #000
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.j-flame-graph-search {
|
|
43
|
-
position: sticky;
|
|
44
|
-
top: 0;
|
|
45
|
-
left: 0;
|
|
46
|
-
width: 200px;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|