diff --git a/frontend/src/business/components/api/definition/components/list/ApiList.vue b/frontend/src/business/components/api/definition/components/list/ApiList.vue index 433b6f231d..a4fe6c3e9a 100644 --- a/frontend/src/business/components/api/definition/components/list/ApiList.vue +++ b/frontend/src/business/components/api/definition/components/list/ApiList.vue @@ -9,25 +9,18 @@ - + + + - - - - - - - {{$t('api_test.batch_menus.select_all_data',[total])}} - - - {{$t('api_test.batch_menus.select_show_data',[tableData.length])}} - - - @@ -127,10 +120,12 @@ import {getCurrentProjectID} from "@/common/js/utils"; import {WORKSPACE_ID} from '../../../../../../common/js/constants'; import ApiListContainer from "./ApiListContainer"; + import MsTableSelectAll from "../../../../common/components/table/MsTableSelectAll"; export default { name: "ApiList", components: { + MsTableSelectAll, ApiListContainer, MsTableButton, MsTableOperatorButton, @@ -467,36 +462,7 @@ .search-input { float: right; width: 300px; - /*margin-bottom: 20px;*/ margin-right: 20px; } - .api-list >>> th:first-child { - /*border: 1px solid #DCDFE6;*/ - /*border-right: 0px;*/ - /*border-top-left-radius:5px;*/ - /*border-bottom-left-radius:5px;*/ - /*width: 20px;*/ - - } - - .api-list >>> th:nth-child(2) { - /*border: 1px solid #DCDFE6;*/ - /*border-left: 0px;*/ - /*border-top-right-radius:5px;*/ - /*border-bottom-right-radius:5px;*/ - } - - .api-list >>> th:first-child>.cell { - padding: 5px; - width: 30px; - } - .api-list >>> th:nth-child(2)>.cell { - /*background-color: black;*/ - } - - .api-list >>> .el-dropdown { - float: left; - } - diff --git a/frontend/src/business/components/common/components/table/MsTableSelectAll.vue b/frontend/src/business/components/common/components/table/MsTableSelectAll.vue new file mode 100644 index 0000000000..926819da87 --- /dev/null +++ b/frontend/src/business/components/common/components/table/MsTableSelectAll.vue @@ -0,0 +1,28 @@ + + + + + diff --git a/frontend/src/common/css/main.css b/frontend/src/common/css/main.css index ac4755b733..f80a1b9976 100644 --- a/frontend/src/common/css/main.css +++ b/frontend/src/common/css/main.css @@ -120,7 +120,6 @@ html,body { padding-right: 60px; } - /* 滚动条样式 */ ::-webkit-scrollbar{ width: 5px; @@ -137,3 +136,36 @@ html,body { background-color: transparent; position: fixed; } + +/* <-- 表格全选样式 */ +.ms-select-all th:first-child { + border: 1px solid #DCDFE6; + border-radius:5px; + padding: 0px; + margin-top: 5px; + display: inline-block; + margin-top: 25px; + width: 50px; +} + +.ms-select-all th:nth-child(2) { + overflow: visible; +} + +.ms-select-all th:first-child>.cell { + padding: 5px; + width: 35px; +} + +.ms-select-all th:nth-child(2)>.cell { + overflow: visible; +} + +.ms-select-all .el-icon-arrow-down { + position: absolute; + display: inline-block; + top: -3px; + left: -40px; + width: 30px; +} +/* 表格全选样式 --> */