Demo.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  1. <template>
  2. <h1>组件示例</h1>
  3. <tab :data="tabData" @select="select" />
  4. <!-- 图表 -->
  5. <el-scrollbar v-if="currTab == 1" style="height:85%;">
  6. <h2>图表</h2>
  7. <h2>07-08新增</h2>
  8. <h3>组合: 时间区域 area-bar-chart</h3>
  9. <area-bar-chart @areaClick="areaBarChartClick" :showLegend="true" />
  10. <h3>组合: 柱线图 multiple-bar-line-chart</h3>
  11. <multiple-bar-line-chart :height="'250px'" />
  12. <h3>散点图 normal-scatter-chart</h3>
  13. <normal-scatter-chart />
  14. <h2>07-07新增</h2>
  15. <h3>柱状图:multiple-y-line-chart</h3>
  16. <multiple-y-line-chart :height="'300px'" />
  17. <h2>old</h2>
  18. <h3>柱状图:horizontal-bar-chart</h3>
  19. <horizontal-bar-chart :height="'300px'" />
  20. <h3>柱状图:horizontal-bar-chart</h3>
  21. <hover-bar-chart :list="HoverBarChart" :height="'200px'" />
  22. <h3>柱状图:list-bar-chart-2</h3>
  23. <list-bar-chart-2 :list="ListBarChart" :height="'200px'" />
  24. <h3>柱状图:multiple-bar-chart</h3>
  25. <multiple-bar-chart :list="MultipleBarChart" :height="'200px'" />
  26. <h3>柱状图:multiple-hover-bar-chart</h3>
  27. <multiple-hover-bar-chart :height="'200px'" />
  28. <h3>柱状图:percent-bar</h3>
  29. <percent-bar />
  30. <h3>柱状图:single-bar-chart</h3>
  31. <single-bar-chart />
  32. <h3>柱状图:thermometer</h3>
  33. <thermometer />
  34. <h3>组合:bar-line-chart</h3>
  35. <bar-line-chart :height="'300px'" />
  36. <h3>组合:bar-line-chart</h3>
  37. <vertival-bar-line-chart :height="'300px'" />
  38. <h3>折线图:double-line-chart</h3>
  39. <double-line-chart :height="'200px'" />
  40. <h3>折线图:multiple-line-chart</h3>
  41. <multiple-line-chart :height="'200px'" />
  42. <h3>折线图:multiple-line-chart</h3>
  43. <normal-line-chart />
  44. <h3>折线图:simple-line-chart</h3>
  45. <simple-line-chart />
  46. <h3>折线图:table-line-chart</h3>
  47. <table-line-chart />
  48. <h3>饼图:dash-pie-chart</h3>
  49. <div style="width: 350px">
  50. <dash-pie-chart />
  51. </div>
  52. <h3>饼图:dual-pie-chart</h3>
  53. <div style="width: 350px">
  54. <dual-pie-chart />
  55. </div>
  56. <h3>饼图:normal-pie-chart</h3>
  57. <div style="width: 350px">
  58. <normal-pie-chart />
  59. </div>
  60. <h3>饼图:percent-pie-chart</h3>
  61. <div style="width: 350px">
  62. <percent-pie-chart />
  63. </div>
  64. <h3>饼图:direction-radar-chart</h3>
  65. <div style="height: 500px">
  66. <direction-radar-chart :height="'500px'" />
  67. </div>
  68. <h3>饼图:normal-radar-chart</h3>
  69. <div style="height: 500px">
  70. <normal-radar-chart :height="'500px'" />
  71. </div>
  72. <h3>饼图:normal-radar-chart</h3>
  73. <div style="height: 500px">
  74. <radar-chart :height="'500px'" />
  75. </div>
  76. </el-scrollbar>
  77. <!-- 组件 -->
  78. <el-scrollbar v-if="currTab == 2" style="height:85%;">
  79. <h3>panel</h3>
  80. <panel :title="'title 标题'">
  81. 带标题title
  82. </panel>
  83. <br />
  84. <panel>
  85. 无标题title
  86. </panel>
  87. <h3>panel-2</h3>
  88. <panel-2 :title="'panel -2'">
  89. panel 2
  90. </panel-2>
  91. <h3>panel-3</h3>
  92. <panel-3>
  93. panel-3
  94. </panel-3>
  95. <h3>toolbar-panel</h3>
  96. <toolbar-panel title="toolbar-panel">
  97. <template v-slot:tools>
  98. <div class="tools">
  99. <div class="tool-block">
  100. <div class="legend bg-green"></div>
  101. <div class="legend-text">实际电量</div>
  102. </div>
  103. <div class="tool-block">
  104. <div class="legend bg-orange"></div>
  105. <div class="legend-text">计划检修损失</div>
  106. </div>
  107. <div class="tool-block">
  108. <div class="legend bg-yellow"></div>
  109. <div class="legend-text">非计划检修损失</div>
  110. </div>
  111. <div class="tool-block">
  112. <div class="legend bg-red"></div>
  113. <div class="legend-text">限电损失</div>
  114. </div>
  115. <div class="tool-block">
  116. <div class="legend bg-purple"></div>
  117. <div class="legend-text">受累损失</div>
  118. </div>
  119. <div class="tool-block">
  120. <div class="legend bg-blue"></div>
  121. <div class="legend-text">性能损失</div>
  122. </div>
  123. </div>
  124. </template>
  125. <bar-line-chart :height="'calc(100vh - 200px)'" :color="barColor" />
  126. </toolbar-panel>
  127. <h3>btn-group-double</h3>
  128. <btn-group-double :btnGroups="btnGroups" @select="btnGroupDoubleSelect" />
  129. <h3>card-1</h3>
  130. <card-1 />
  131. <h3>percent-card</h3>
  132. <percent-card :value="25" :title="'标题'" />
  133. <h3>percent-card-2</h3>
  134. <percent-card-2 />
  135. <h3>collapse-list</h3>
  136. <div style="width:200px">
  137. <collapse-list />
  138. </div>
  139. <h3>list</h3>
  140. <div style="width:200px">
  141. <list />
  142. </div>
  143. </el-scrollbar>
  144. <el-scrollbar v-if="currTab == 3" style="height:85%;">
  145. <h3>table</h3>
  146. <Table :data="tableData" :height="'200px'" :canScroll="true" :pageSize="40" :showHover="false" @onPagging="tableonPagging" />
  147. <h3>table</h3>
  148. <check-table :data="tableData" :height="'200px'" :canScroll="true" :pageSize="40" :showHover="false" @onPagging="tableonPagging" @check="CheckTableonCheck" />
  149. </el-scrollbar>
  150. <el-scrollbar v-if="currTab == 4" style="height:85%;">
  151. <i class="svg-icon svg-icon-sm mg-r-16">
  152. <svg-icon :svgid="'svg-wind-site'" />
  153. </i>
  154. <i class="svg-icon svg-icon-green mg-r-16">
  155. <svg-icon :svgid="'svg-wind-site'" />
  156. </i>
  157. <i class="svg-icon svg-icon-lg svg-icon-red mg-r-16">
  158. <svg-icon :svgid="'svg-wind-site'" />
  159. </i>
  160. </el-scrollbar>
  161. </template>
  162. <script>
  163. import horizontalBarChart from "../components/chart/bar/horizontal-bar-chart.vue";
  164. import HoverBarChart from "../components/chart/bar/hover-bar-chart.vue";
  165. import ListBarChart2 from "../components/chart/bar/list-bar-chart2.vue";
  166. import MultipleBarChart from "../components/chart/bar/multiple-bar-chart.vue";
  167. import MultipleHoverBarChart from "../components/chart/bar/multiple-hover-bar-chart.vue";
  168. import PercentBar from "../components/chart/bar/percent-bar.vue";
  169. import SingleBarChart from "../components/chart/bar/single-bar-chart.vue";
  170. import Thermometer from "../components/chart/bar/thermometer.vue";
  171. import AreaBarChart from "../components/chart/combination/area-bar-chart.vue";
  172. import BarLineChart from "../components/chart/combination/bar-line-chart.vue";
  173. import MultipleBarLineChart from '../components/chart/combination/multiple-bar-line-chart.vue';
  174. import VertivalBarLineChart from "../components/chart/combination/vertival-bar-line-chart.vue";
  175. import DoubleLineChart from "../components/chart/line/double-line-chart.vue";
  176. import MultipleLineChart from "../components/chart/line/multiple-line-chart.vue";
  177. import MultipleYLineChart from "../components/chart/line/multiple-y-line-chart.vue";
  178. import NormalLineChart from "../components/chart/line/normal-line-chart.vue";
  179. import SimpleLineChart from "../components/chart/line/simple-line-chart.vue";
  180. import TableLineChart from "../components/chart/line/table-line-chart.vue";
  181. import DashPieChart from "../components/chart/pie/dash-pie-chart.vue";
  182. import DualPieChart from "../components/chart/pie/dual-pie-chart.vue";
  183. import NormalPieChart from "../components/chart/pie/normal-pie-chart.vue";
  184. import PercentPieChart from "../components/chart/pie/percent-pie-chart.vue";
  185. import DirectionRadarChart from "../components/chart/radar/direction-radar-chart.vue";
  186. import NormalRadarChart from "../components/chart/radar/normal-radar-chart.vue";
  187. import RadarChart from "../components/chart/radar/radar-chart.vue";
  188. import NormalScatterChart from "../components/chart/scatter/normal-scatter-chart.vue";
  189. import BtnGroupDouble from "../components/coms/btn/btn-group-double.vue";
  190. import Card1 from "../components/coms/cards/card-1.vue";
  191. import PercentCard2 from "../components/coms/cards/percent-card-2.vue";
  192. import PercentCard from "../components/coms/cards/percent-card.vue";
  193. import CollapseList from "../components/coms/collapse/collapse-list.vue";
  194. import SvgIcon from "../components/coms/icon/svg-icon.vue";
  195. import List from "../components/coms/list/list.vue";
  196. import Panel from "../components/coms/panel/panel.vue";
  197. import Panel2 from "../components/coms/panel/panel2.vue";
  198. import Panel3 from "../components/coms/panel/panel3.vue";
  199. import ToolbarPanel from "../components/coms/panel/toolbar-panel.vue";
  200. import CheckTable from "../components/coms/table/check-table.vue";
  201. import Table from "../components/coms/table/table.vue";
  202. import Tab from "../components/coms/tabs/tab.vue";
  203. export default {
  204. components: {
  205. horizontalBarChart,
  206. HoverBarChart,
  207. ListBarChart2,
  208. MultipleBarChart,
  209. MultipleHoverBarChart,
  210. PercentBar,
  211. SingleBarChart,
  212. Thermometer,
  213. BarLineChart,
  214. VertivalBarLineChart,
  215. DoubleLineChart,
  216. MultipleLineChart,
  217. NormalLineChart,
  218. SimpleLineChart,
  219. TableLineChart,
  220. DashPieChart,
  221. DualPieChart,
  222. NormalPieChart,
  223. PercentPieChart,
  224. DirectionRadarChart,
  225. NormalRadarChart,
  226. RadarChart,
  227. Tab,
  228. BtnGroupDouble,
  229. Card1,
  230. PercentCard,
  231. PercentCard2,
  232. CollapseList,
  233. List,
  234. Panel,
  235. Panel2,
  236. Panel3,
  237. ToolbarPanel,
  238. Table,
  239. CheckTable,
  240. SvgIcon,
  241. MultipleYLineChart,
  242. NormalScatterChart,
  243. AreaBarChart,
  244. MultipleBarLineChart,
  245. },
  246. methods: {
  247. select(data) {
  248. // console.log(data);
  249. this.currTab = parseInt(data.id);
  250. },
  251. btnGroupDoubleSelect(param) {
  252. console.log("btn-group-double");
  253. console.log(param);
  254. },
  255. tableonPagging(param) {
  256. console.log("table pagging event");
  257. console.log(param);
  258. this.tableData.data = [
  259. {
  260. index: 1,
  261. name: "MG01-01",
  262. lqf: "0.1000",
  263. yggl: "0.1000",
  264. yyy: "0.10",
  265. pcspp: "0.1000",
  266. u1: "0.1000",
  267. u2: "0.1000",
  268. v1: "0.1000",
  269. v2: "0.1000",
  270. w1: "0.1000",
  271. w2: "0.1000",
  272. zca: "0.1000",
  273. zcb: "0.1000",
  274. clx: "0.1000",
  275. clx1: "0.1000",
  276. clx2: "0.1000",
  277. jc: "0.1000",
  278. hh: "0.1000",
  279. hj: "0.1000",
  280. is_light: false,
  281. },
  282. ];
  283. let index = 0;
  284. for (let i = param.start; i < param.end; i++) {
  285. this.tableData.data.push(JSON.parse(JSON.stringify(this.tableData.data[0])));
  286. this.tableData.data[index].index = i + 1;
  287. index++;
  288. }
  289. },
  290. CheckTableonCheck(param) {
  291. console.log("table check event");
  292. console.log(param);
  293. },
  294. areaBarChartClick(param) {
  295. console.log(param);
  296. },
  297. },
  298. data() {
  299. return {
  300. currTab: 1,
  301. tabData: [
  302. {
  303. id: "1",
  304. text: "图表",
  305. },
  306. {
  307. id: "2",
  308. text: "组件",
  309. },
  310. {
  311. id: "3",
  312. text: "表格",
  313. },
  314. {
  315. id: "4",
  316. text: "图标",
  317. },
  318. ],
  319. tableData: {
  320. column: [
  321. {
  322. name: "",
  323. field: "index",
  324. width: "50px",
  325. is_num: false,
  326. is_light: false,
  327. },
  328. {
  329. name: "名称",
  330. field: "name",
  331. is_num: false,
  332. is_light: false,
  333. },
  334. {
  335. name: "理论发电量",
  336. field: "lqf",
  337. is_num: false,
  338. is_light: false,
  339. },
  340. {
  341. name: "SCADA发电量",
  342. field: "yggl",
  343. is_num: false,
  344. is_light: false,
  345. },
  346. {
  347. name: "风速",
  348. field: "yyy",
  349. is_num: false,
  350. is_light: false,
  351. },
  352. {
  353. name: "非计划检修",
  354. field: "pcspp",
  355. is_num: false,
  356. is_light: false,
  357. },
  358. {
  359. name: "计划检修",
  360. field: "u1",
  361. is_num: false,
  362. is_light: false,
  363. },
  364. {
  365. name: "受累",
  366. field: "u2",
  367. is_num: false,
  368. is_light: true,
  369. },
  370. {
  371. name: "限电",
  372. field: "v1",
  373. is_num: false,
  374. is_light: false,
  375. },
  376. {
  377. name: "性能",
  378. field: "v2",
  379. is_num: false,
  380. is_light: false,
  381. },
  382. {
  383. name: "风能率用率%",
  384. field: "w1",
  385. is_num: false,
  386. is_light: false,
  387. },
  388. ],
  389. data: [
  390. {
  391. index: 1,
  392. name: "MG01-01",
  393. lqf: "0.1000",
  394. yggl: "0.1000",
  395. yyy: "0.10",
  396. pcspp: "0.1000",
  397. u1: "0.1000",
  398. u2: "0.1000",
  399. v1: "0.1000",
  400. v2: "0.1000",
  401. w1: "0.1000",
  402. w2: "0.1000",
  403. zca: "0.1000",
  404. zcb: "0.1000",
  405. clx: "0.1000",
  406. clx1: "0.1000",
  407. clx2: "0.1000",
  408. jc: "0.1000",
  409. hh: "0.1000",
  410. hj: "0.1000",
  411. is_light: false,
  412. },
  413. ],
  414. total: 100,
  415. },
  416. // 柱状图:horizontal-bar-chart data
  417. HorizontalBarChart: {
  418. area: ["新荣区", "平城区", "云冈区", "云州区", "阳高县", "天镇县", "广灵县", "浑源县", "左云县"],
  419. legend: ["因病", "因残", "因学", "因灾", "缺土地", "缺水"],
  420. data: [
  421. [1320, 1302, 901, 634, 1390, 1330, 1320, 1000, 500],
  422. [320, 302, 301, 334, 390, 330, 320, 100, 50],
  423. [320, 302, 301, 334, 390, 330, 320, 100, 50],
  424. [320, 302, 301, 334, 390, 330, 320, 100, 50],
  425. [320, 302, 301, 334, 390, 330, 320, 100, 50],
  426. [320, 302, 301, 334, 390, 330, 320, 100, 50],
  427. ],
  428. },
  429. // 柱状图:horizontal-bar-chart data
  430. HoverBarChart: [
  431. {
  432. text: "1",
  433. value: 1,
  434. },
  435. {
  436. text: "2",
  437. value: 2,
  438. },
  439. {
  440. text: "3",
  441. value: 1,
  442. },
  443. {
  444. text: "4",
  445. value: 3,
  446. },
  447. {
  448. text: "5",
  449. value: 3,
  450. },
  451. {
  452. text: "6",
  453. value: 3,
  454. },
  455. {
  456. text: "7",
  457. value: 3,
  458. },
  459. {
  460. text: "8",
  461. value: 3,
  462. },
  463. {
  464. text: "9",
  465. value: 3,
  466. },
  467. {
  468. text: "10",
  469. value: 3,
  470. },
  471. {
  472. text: "11",
  473. value: 3,
  474. },
  475. {
  476. text: "12",
  477. value: 3,
  478. },
  479. {
  480. text: "13",
  481. value: 3,
  482. },
  483. {
  484. text: "14",
  485. value: 3,
  486. },
  487. {
  488. text: "15",
  489. value: 3,
  490. },
  491. {
  492. text: "16",
  493. value: 3,
  494. },
  495. {
  496. text: "17",
  497. value: 3,
  498. },
  499. {
  500. text: "18",
  501. value: 3,
  502. },
  503. {
  504. text: "19",
  505. value: 3,
  506. },
  507. {
  508. text: "20",
  509. value: 3,
  510. },
  511. {
  512. text: "21",
  513. value: 3,
  514. },
  515. {
  516. text: "22",
  517. value: 3,
  518. },
  519. {
  520. text: "23",
  521. value: 3,
  522. },
  523. {
  524. text: "24",
  525. value: 3,
  526. },
  527. {
  528. text: "25",
  529. value: 3,
  530. },
  531. {
  532. text: "26",
  533. value: 3,
  534. },
  535. {
  536. text: "27",
  537. value: 3,
  538. },
  539. {
  540. text: "28",
  541. value: 3,
  542. },
  543. {
  544. text: "29",
  545. value: 3,
  546. },
  547. {
  548. text: "30",
  549. value: 3,
  550. },
  551. {
  552. text: "31",
  553. value: 3,
  554. },
  555. ],
  556. // list-bar-chart-2 data
  557. ListBarChart: [
  558. {
  559. name: "当日预测电量",
  560. value: 103.62,
  561. total: 150,
  562. },
  563. {
  564. name: "实际发电量",
  565. value: 98.62,
  566. total: 100,
  567. },
  568. {
  569. name: "当月预测电量",
  570. value: 113.27,
  571. total: 150,
  572. },
  573. {
  574. name: "实际发电量",
  575. value: 136.72,
  576. total: 150,
  577. },
  578. ],
  579. // multiple-bar-chart data
  580. MultipleBarChart: [
  581. {
  582. title: "日发电量",
  583. yAxisIndex: 0,
  584. value: [
  585. {
  586. text: "1日",
  587. value: 1,
  588. },
  589. {
  590. text: "2日",
  591. value: 2,
  592. },
  593. {
  594. text: "3日",
  595. value: 1,
  596. },
  597. {
  598. text: "4日",
  599. value: 3,
  600. },
  601. {
  602. text: "5日",
  603. value: 3,
  604. },
  605. {
  606. text: "6日",
  607. value: 3,
  608. },
  609. {
  610. text: "7日",
  611. value: 3,
  612. },
  613. ],
  614. },
  615. {
  616. title: "上网电量",
  617. yAxisIndex: 0,
  618. value: [
  619. {
  620. text: "1日",
  621. value: 1,
  622. },
  623. {
  624. text: "2日",
  625. value: 2,
  626. },
  627. {
  628. text: "3日",
  629. value: 1,
  630. },
  631. {
  632. text: "4日",
  633. value: 3,
  634. },
  635. {
  636. text: "5日",
  637. value: 3,
  638. },
  639. {
  640. text: "6日",
  641. value: 3,
  642. },
  643. {
  644. text: "7日",
  645. value: 3,
  646. },
  647. ],
  648. },
  649. {
  650. title: "购网电量",
  651. yAxisIndex: 0,
  652. value: [
  653. {
  654. text: "1日",
  655. value: 1,
  656. },
  657. {
  658. text: "2日",
  659. value: 2,
  660. },
  661. {
  662. text: "3日",
  663. value: 1,
  664. },
  665. {
  666. text: "4日",
  667. value: 3,
  668. },
  669. {
  670. text: "5日",
  671. value: 3,
  672. },
  673. {
  674. text: "6日",
  675. value: 3,
  676. },
  677. {
  678. text: "7日",
  679. value: 3,
  680. },
  681. ],
  682. },
  683. {
  684. title: "风速",
  685. yAxisIndex: 1,
  686. value: [
  687. {
  688. text: "1日",
  689. value: 1,
  690. },
  691. {
  692. text: "2日",
  693. value: 2,
  694. },
  695. {
  696. text: "3日",
  697. value: 1,
  698. },
  699. {
  700. text: "4日",
  701. value: 3,
  702. },
  703. {
  704. text: "5日",
  705. value: 3,
  706. },
  707. {
  708. text: "6日",
  709. value: 3,
  710. },
  711. {
  712. text: "7日",
  713. value: 3,
  714. },
  715. ],
  716. },
  717. ],
  718. // btnGroups
  719. btnGroups: [
  720. {
  721. icon: "fa fa-fire",
  722. btns: [
  723. {
  724. text: "某某风场",
  725. code: "mmfdc1",
  726. },
  727. {
  728. text: "某某风场",
  729. code: "mhsfc",
  730. },
  731. {
  732. text: "某某风场",
  733. code: "mmfdc2",
  734. },
  735. {
  736. text: "某某风场",
  737. code: "mmfdc3",
  738. },
  739. {
  740. text: "某某风场",
  741. code: "mmfdc4",
  742. },
  743. ],
  744. },
  745. {
  746. icon: "fa fa-fire-extinguisher",
  747. btns: [
  748. {
  749. text: "某某风场",
  750. code: "mmgf1",
  751. },
  752. {
  753. text: "某某风场",
  754. code: "mmgf2",
  755. },
  756. {
  757. text: "某某风场",
  758. code: "mmgf3",
  759. },
  760. {
  761. text: "某某风场",
  762. code: "mmgf4",
  763. },
  764. ],
  765. },
  766. ],
  767. };
  768. },
  769. created() {
  770. for (let i = 1; i < 21; i++) {
  771. this.tableData.data.push(JSON.parse(JSON.stringify(this.tableData.data[0])));
  772. this.tableData.data[i].index = i + 1;
  773. }
  774. },
  775. };
  776. </script>
  777. <style lang="less" scoped>
  778. .tools {
  779. display: flex;
  780. line-height: 3.4259vh;
  781. .tool-block {
  782. display: flex;
  783. align-items: center;
  784. margin-left: 0.741vh;
  785. .legend {
  786. flex: auto;
  787. width: 0.741vh;
  788. height: 0.741vh;
  789. margin-right: 0.741vh;
  790. &.long {
  791. width: 2.963vh;
  792. height: 0.37vh;
  793. }
  794. }
  795. .legend-text {
  796. color: @gray-l;
  797. font-size: @fontsize-s;
  798. }
  799. }
  800. }
  801. </style>