Table.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742
  1. <!-- -->
  2. <template>
  3. <div class="Big-Book-table" v-if="curQue">
  4. <div class="Big-Book-Single-content">
  5. <div class="adult-book-input-item">
  6. <span class="adult-book-lable">标题:</span>   
  7. <el-input
  8. type="textarea"
  9. class="adult-book-input"
  10. :autosize="{ minRows: 2 }"
  11. placeholder="请输入标题"
  12. v-model="curQue.title"
  13. @blur="curQue.title = curQue.title.trim()"
  14. maxlength="500"
  15. show-word-limit
  16. ></el-input>
  17. </div>
  18. <div
  19. class="Big-Book-main"
  20. style="border-bottom: 1px #ccc solid; margin-bottom: 20px"
  21. >
  22. <div class="adult-book-input-item">
  23. <span class="adult-book-lable">表头:</span>
  24. <el-radio-group v-model="curQue.isHeader" @change="changeHeader"
  25. >     
  26. <el-radio :label="true">有</el-radio>
  27. <el-radio :label="false">无</el-radio>
  28. </el-radio-group>
  29. </div>
  30. <div class="adult-book-input-item">
  31. <span class="adult-book-lable">对齐方式:</span>
  32. <el-radio-group v-model="curQue.align"
  33. >     
  34. <el-radio label="left">左对齐</el-radio>
  35. <el-radio label="center">居中对齐</el-radio>
  36. <el-radio label="right">右对齐</el-radio>
  37. </el-radio-group>
  38. </div>
  39. <template v-if="curQue.isHeader">
  40. <div
  41. class="adult-book-input-item"
  42. v-for="(item, i) in curQue.headerList"
  43. :key="i"
  44. >
  45. <span class="adult-book-lable">表头{{ i + 1 }}:</span>           
  46.  <el-input
  47. type="textarea"
  48. placeholder="请输入内容"
  49. v-model="item.con"
  50. class="adult-book-input"
  51. :autosize="{ minRows: 2 }"
  52. @blur="item.con = item.con.trim()"
  53. maxlength="200"
  54. show-word-limit
  55. ></el-input>
  56. <img
  57. @click="deleteHeader(i)"
  58. class="close"
  59. src="../../../assets/adult/del-close.png"
  60. alt=""
  61. />
  62. </div>
  63. <div class="addoption" @click="addHeader">添加表头</div>
  64. </template>
  65. <table style="table-layout: fixed">
  66. <tr v-if="curQue.headerList.length > 0 && curQue.isHeader">
  67. <th
  68. :class="'th' + heai"
  69. v-for="(item, heai) in curQue.headerList"
  70. :key="heai + 'header'"
  71. >
  72. {{ item.con }}
  73. </th>
  74. </tr>
  75. <tr v-for="(item, rowi) in curQue.option" :key="rowi + 'row'">
  76. <td
  77. :class="'td' + coli"
  78. v-for="(it, coli) in item"
  79. :key="coli + 'col'"
  80. >
  81. <el-button
  82. v-if="!it.ByMerge"
  83. size="small"
  84. @click="editTd(rowi, coli)"
  85. >编辑</el-button
  86. >
  87. <!-- <el-button
  88. size="small"
  89. type="primary"
  90. @click="removeTd(rowi, coli)"
  91. >删除</el-button
  92. > -->
  93. <!-- <template v-if="coli == item.length - 1"> 删除列 </template> -->
  94. <div>
  95. <el-button
  96. style="position: absolute; top: 50px; left: 15px"
  97. size="mini"
  98. v-if="rowi == curQue.option.length - 1"
  99. @click="removeCol(coli)"
  100. >删除列</el-button
  101. >
  102. </div>
  103. </td>
  104. <el-button size="small" @click="removeRow(rowi)">删除行</el-button>
  105. </tr>
  106. </table>
  107. <div class="add">
  108. <div class="addoption" @click="addRow">增加行</div>
  109. <div class="addoption" v-if="!curQue.isHeader" @click="addCol">
  110. 增加列
  111. </div>
  112. </div>
  113. <div class="adult-book-input-item">
  114. 请输入每一列的宽度占比,最多为100,最少为0
  115. </div>
  116. <div
  117. class="adult-book-input-item"
  118. v-for="(item, i) in curQue.colWidthList"
  119. :key="'Colwid' + i"
  120. >
  121. <span class="adult-book-lable">第{{ i + 1 }}列</span>
  122.  <el-input
  123. type="textarea"
  124. placeholder="请输入列的宽度"
  125. v-model="item.width"
  126. class="adult-book-input"
  127. :autosize="{ minRows: 2 }"
  128. @blur="item.width = item.width.trim()"
  129. maxlength="50"
  130. show-word-limit
  131. ></el-input>
  132. </div>
  133. <div class="adult-book-input-item">
  134. <span class="adult-book-lable">提示标题:</span>           
  135. <el-input
  136. type="textarea"
  137. class="adult-book-input"
  138. :autosize="{ minRows: 2 }"
  139. placeholder="请输入提示标题"
  140. v-model="curQue.hintTitle"
  141. @blur="curQue.hintTitle = curQue.hintTitle.trim()"
  142. maxlength="200"
  143. show-word-limit
  144. ></el-input>
  145. </div>
  146. <div
  147. v-for="(item, htindex) in curQue.hintOtion"
  148. :key="'hint' + htindex"
  149. >
  150. <div class="adult-book-input-item">
  151. <span class="adult-book-lable">提示选项:</span>           
  152. <el-input
  153. type="textarea"
  154. class="adult-book-input"
  155. :autosize="{ minRows: 2 }"
  156. placeholder="请输入提示内容"
  157. v-model="item.con"
  158. @blur="item.con = item.con.trim()"
  159. maxlength="200"
  160. show-word-limit
  161. ></el-input>
  162. <img
  163. @click="deleteHint(htindex)"
  164. class="close"
  165. src="../../../assets/adult/del-close.png"
  166. alt=""
  167. />
  168. </div>
  169. <div class="adult-book-input-item">
  170. <span class="adult-book-lable">选项拼音:</span>           
  171. <el-input
  172. type="textarea"
  173. class="adult-book-input"
  174. :autosize="{ minRows: 2 }"
  175. placeholder="请输入选项拼音"
  176. v-model="item.pinyin"
  177. @blur="item.pinyin = item.pinyin.trim()"
  178. maxlength="200"
  179. show-word-limit
  180. ></el-input>
  181. <el-button @click="getPinyin(item)">生成拼音</el-button>
  182. </div>
  183. </div>
  184. <div class="addoption" @click="addHint">添加选项</div>
  185. </div>
  186. </div>
  187. <el-dialog
  188. title="编辑内容"
  189. :visible.sync="dialogVisible"
  190. width="30%"
  191. :before-close="handleClose"
  192. destroy-on-close
  193. >
  194. <template v-if="data">
  195. <div class="adult-book-input-item">
  196. <span class="adult-book-lable">内容:</span>
  197. <el-input
  198. type="textarea"
  199. class="adult-book-input"
  200. :autosize="{ minRows: 2 }"
  201. placeholder="请输入内容"
  202. v-model="data.con"
  203. @blur="data.con = data.con.trim()"
  204. maxlength="500"
  205. show-word-limit
  206. ></el-input>
  207. </div>
  208. <!-- <div
  209. class="Big-Book-con"
  210. v-for="(item, i) in data.answerList"
  211. :key="i + 'answer'"
  212. >
  213. <span>答案:</span>           
  214. <el-input
  215. style="width: 300px"
  216. type="textarea"
  217. autosize
  218. placeholder="请输入答案"
  219. v-model="item.answer"
  220. @blur="item.answer = item.answer.trim()"
  221. ></el-input>
  222. <img
  223. @click="deleteAnswer(data, i)"
  224. class="close"
  225. src="../../../assets/adult/del-close.png"
  226. alt=""
  227. />
  228. </div>
  229. <div class="addoption" @click="addAnswer(data)">增加答案</div>
  230. <div class="Big-Book-con">
  231. <span>合并单元格:</span>      
  232. <el-radio-group
  233. v-model="data.MergeDirection"
  234. @change="changeMergeDirection"
  235. >     
  236. <el-radio label="bottom">向下合并</el-radio>
  237. <el-radio label="right">向右合并</el-radio>
  238. <el-radio label="false">不合并</el-radio>
  239. </el-radio-group>
  240. </div>
  241. <div class="Big-Book-con">
  242. <span>是否需要录音:</span>           
  243. <el-radio v-model="data.isRecord" :label="true">是</el-radio>
  244. <el-radio v-model="data.isRecord" :label="false">否</el-radio>
  245. </div>
  246. <div
  247. class="Big-Book-con"
  248. v-if="mergeList.length > 0 && data.MergeDirection != 'false'"
  249. >
  250. <span>合并数量:</span>
  251. <el-select
  252. placeholder="请选择"
  253. v-model="data.mergeNumber"
  254. @change="changemMergeNumber"
  255. >
  256. <el-option
  257. v-for="item in mergeList"
  258. :key="item + 'a'"
  259. :value="item"
  260. >
  261. </el-option>
  262. </el-select>
  263. </div>
  264. <div class="Big-Book-mp3" v-if="data">
  265. <span>音频:</span>
  266. <Upload
  267. :changeFillId="changeMp3"
  268. :datafileList="data.mp3_list"
  269. :filleNumber="mp3Number"
  270. :uploadType="'mp3'"
  271. />
  272. </div> -->
  273. </template>
  274. <span slot="footer" class="dialog-footer">
  275. <el-button @click="handleClose">取 消</el-button>
  276. <el-button type="primary" @click="save">保 存</el-button>
  277. </span>
  278. </el-dialog>
  279. </div>
  280. </template>
  281. <script>
  282. import Upload from "../common/Upload.vue";
  283. export default {
  284. name: "tableView",
  285. props: ["curQue", "fn_data", "changeCurQue"],
  286. components: { Upload },
  287. data() {
  288. return {
  289. form: {
  290. stem: {
  291. con: "",
  292. pinyin: "",
  293. english: "",
  294. highlight: "",
  295. underline: "",
  296. img_url: [],
  297. mp3_url: [],
  298. },
  299. },
  300. dialogVisible: false,
  301. data: null,
  302. rowIndex: null,
  303. colIndex: null,
  304. mp3Number: 1,
  305. mergeList: [],
  306. currentOption: null,
  307. data_structure: {
  308. type: "table",
  309. name: "表格",
  310. title: "",
  311. isHeader: false,
  312. align: "center",
  313. headerList: [
  314. {
  315. con: "",
  316. },
  317. ],
  318. option: [
  319. [
  320. {
  321. img_list: [],
  322. mp3_list: [],
  323. answerList: [
  324. {
  325. answer: "",
  326. },
  327. ],
  328. con: "",
  329. MergeDirection: "false", //合并方向
  330. isRecord: false,
  331. ByMerge: false, //是否被合并
  332. },
  333. ],
  334. ],
  335. colWidthList: [
  336. {
  337. width: "",
  338. },
  339. ], // 每一列的宽度
  340. img_list: [],
  341. hintTitle: "",
  342. hintOtion: [
  343. {
  344. con: "",
  345. pinyin: "",
  346. },
  347. ],
  348. },
  349. };
  350. },
  351. computed: {},
  352. watch: {},
  353. //方法集合
  354. methods: {
  355. // 点击生成拼音
  356. getPinyin(item) {
  357. let bool = false;
  358. let value = "";
  359. if (item.con == "") {
  360. this.$message.warning("请先输入内容,再生成拼音");
  361. bool = true;
  362. } else {
  363. value = item.con;
  364. }
  365. if (bool) {
  366. return;
  367. }
  368. let result = pinyinUtil.getPinyin(value);
  369. item.pinyin = result;
  370. this.$forceUpdate();
  371. },
  372. // 删除提示选项
  373. deleteHint(index) {
  374. this.$confirm("确定要删除吗?", "提示", {
  375. confirmButtonText: "确定",
  376. cancelButtonText: "取消",
  377. type: "warning",
  378. })
  379. .then(() => {
  380. if (this.curQue.hintOtion.length <= 1) {
  381. this.$message.warning("至少要保留一个选项");
  382. return;
  383. }
  384. this.curQue.hintOtion.splice(index, 1);
  385. })
  386. },
  387. // 增加提示选项
  388. addHint() {
  389. let obj = JSON.parse(JSON.stringify(this.data_structure.hintOtion[0]));
  390. this.curQue.hintOtion.push(obj);
  391. },
  392. // 修改表头时清空option否则引发bug
  393. changeHeader(val) {
  394. let obj = JSON.parse(JSON.stringify(this.data_structure.option));
  395. this.curQue.option = obj;
  396. },
  397. // 选择合并方向或者不合并
  398. changeMergeDirection(val) {
  399. if (val == "bottom") {
  400. let num = this.currentOption.length - 1 - this.rowIndex;
  401. for (let i = 1; i <= num; i++) {
  402. this.mergeList.push(i);
  403. }
  404. }
  405. if (val == "false") {
  406. let currentTd = this.curQue.option[this.rowIndex][this.colIndex];
  407. if (currentTd.MergeDirection == "bottom") {
  408. this.currentOption.forEach((item, row) => {
  409. item.forEach((it, col) => {
  410. if (
  411. col == this.colIndex &&
  412. row > this.rowIndex &&
  413. row <= this.rowIndex + currentTd.mergeNumber
  414. ) {
  415. it.ByMerge = false;
  416. }
  417. });
  418. });
  419. }
  420. }
  421. },
  422. // 选择合并数量
  423. changemMergeNumber(val) {
  424. this.currentOption.forEach((item, row) => {
  425. item.forEach((it, col) => {
  426. if (
  427. col == this.colIndex &&
  428. row > this.rowIndex &&
  429. row <= this.rowIndex + val
  430. ) {
  431. it.ByMerge = true;
  432. }
  433. });
  434. });
  435. },
  436. // 上传音频
  437. changeMp3(fileList) {
  438. const articleImgList = JSON.parse(JSON.stringify(fileList));
  439. const articleImgRes = [];
  440. articleImgList.forEach((item) => {
  441. if (item.response) {
  442. const obj = {
  443. name: item.name,
  444. url: item.response.file_info_list[0].file_url,
  445. id: "[FID##" + item.response.file_info_list[0].file_id + "##FID]",
  446. media_duration: item.response.file_info_list[0].media_duration, //音频时长
  447. };
  448. articleImgRes.push(obj);
  449. }
  450. });
  451. this.data.mp3_list = JSON.parse(JSON.stringify(articleImgRes));
  452. },
  453. // 删除答案
  454. deleteAnswer(data, index) {
  455. if (data.answerList.length <= 1) {
  456. this.$message.warning("至少要保留1个答案");
  457. return;
  458. }
  459. data.answerList.splice(index, 1);
  460. },
  461. // 增加答案
  462. addAnswer(data) {
  463. let type = this.curQue.type;
  464. let cur_fn_data_arr = this.fn_data.filter((item) => item.type == type);
  465. let cur_fn_data = JSON.parse(JSON.stringify(cur_fn_data_arr[0]));
  466. let obj = cur_fn_data.data_structure.option[0][0].answerList[0];
  467. data.answerList.push(obj);
  468. },
  469. // 删除行
  470. removeRow(index) {
  471. this.$confirm("确定要删除吗?", "提示", {
  472. confirmButtonText: "确定",
  473. cancelButtonText: "取消",
  474. type: "warning",
  475. })
  476. .then(() => {
  477. if (this.curQue.option.length <= 1) {
  478. this.$message.warning("至少要保留一行");
  479. return;
  480. }
  481. this.curQue.option.forEach((item, i) => {
  482. if (i == index) {
  483. this.curQue.option.splice(i, 1);
  484. }
  485. });
  486. })
  487. },
  488. // 删除列
  489. removeCol(index) {
  490. this.$confirm("确定要删除吗?", "提示", {
  491. confirmButtonText: "确定",
  492. cancelButtonText: "取消",
  493. type: "warning",
  494. })
  495. .then(() => {
  496. if (this.curQue.option[0].length <= 1) {
  497. this.$message.warning("至少要保留一列");
  498. return;
  499. }
  500. this.curQue.option.forEach((item) => {
  501. item.forEach((it, i) => {
  502. if (i == index) {
  503. item.splice(i, 1);
  504. }
  505. });
  506. });
  507. this.curQue.headerList.forEach((item, i) => {
  508. if (i == index) {
  509. this.curQue.headerList.splice(i, 1);
  510. }
  511. });
  512. this.curQue.colWidthList.splice(index, 1);
  513. })
  514. },
  515. // 删除td
  516. removeTd(rowi, coli) {
  517. console.log(rowi, coli);
  518. },
  519. // 编辑td
  520. editTd(rowi, coli) {
  521. this.rowIndex = rowi;
  522. this.colIndex = coli;
  523. this.data = JSON.parse(JSON.stringify(this.curQue.option[rowi][coli]));
  524. this.dialogVisible = true;
  525. this.currentOption = null;
  526. this.currentOption = JSON.parse(JSON.stringify(this.curQue.option));
  527. if (this.data.MergeDirection == "false") {
  528. this.mergeList = [];
  529. }
  530. },
  531. // 保存
  532. save() {
  533. this.curQue.option = JSON.parse(JSON.stringify(this.currentOption));
  534. this.curQue.option[this.rowIndex][this.colIndex] = JSON.parse(
  535. JSON.stringify(this.data)
  536. );
  537. this.dialogVisible = false;
  538. },
  539. // 增加行
  540. addRow() {
  541. let obj = JSON.parse(JSON.stringify(this.data_structure.option[0][0]));
  542. let arr = [];
  543. for (let i = 0; i < this.curQue.option[0].length; i++) {
  544. arr.push(obj);
  545. }
  546. this.curQue.option.push(arr);
  547. },
  548. // 增加列
  549. addCol() {
  550. let obj = JSON.parse(JSON.stringify(this.data_structure.option[0][0]));
  551. let widthObj = JSON.parse(
  552. JSON.stringify(this.data_structure.colWidthList[0])
  553. );
  554. this.curQue.colWidthList.push(widthObj);
  555. this.curQue.option.forEach((item, i) => {
  556. item.push(obj);
  557. });
  558. },
  559. // 删除其中一个表头
  560. deleteHeader(index) {
  561. this.$confirm("确定要删除吗?", "提示", {
  562. confirmButtonText: "确定",
  563. cancelButtonText: "取消",
  564. type: "warning",
  565. })
  566. .then(() => {
  567. if (this.curQue.headerList.length <= 1) {
  568. this.$message.warning("至少要保留一个表头");
  569. return;
  570. }
  571. this.curQue.headerList.splice(index, 1);
  572. this.curQue.option.forEach((item) => {
  573. item.splice(index, 1);
  574. });
  575. this.curQue.colWidthList.splice(index, 1);
  576. })
  577. },
  578. //添加一个表头
  579. addHeader() {
  580. let optionobj = JSON.parse(
  581. JSON.stringify(this.data_structure.headerList[0])
  582. );
  583. this.curQue.headerList.push(optionobj);
  584. let obj = JSON.parse(JSON.stringify(this.data_structure.option[0][0]));
  585. this.curQue.option.forEach((item) => {
  586. item.push(obj);
  587. });
  588. let widthObj = JSON.parse(
  589. JSON.stringify(this.data_structure.colWidthList[0])
  590. );
  591. this.curQue.colWidthList.push(widthObj);
  592. },
  593. // 关闭弹窗并清空数据
  594. handleClose() {
  595. this.dialogVisible = false;
  596. this.data = null;
  597. },
  598. },
  599. //生命周期 - 创建完成(可以访问当前this实例)
  600. created() {
  601. if (!this.curQue) {
  602. this.changeCurQue(this.data_structure);
  603. } else {
  604. // if (!this.curQue.colWidthList) {
  605. // let colWidthList = [];
  606. // this.curQue.option[0].forEach((item) => {
  607. // let widthObj = JSON.parse(
  608. // JSON.stringify(this.data_structure.colWidthList[0])
  609. // );
  610. // colWidthList.push(widthObj);
  611. // });
  612. // this.curQue.colWidthList = colWidthList;
  613. // this.$forceUpdate()
  614. // }
  615. }
  616. },
  617. //生命周期 - 挂载完成(可以访问DOM元素)
  618. mounted() {},
  619. beforeCreate() {}, //生命周期 - 创建之前
  620. beforeMount() {}, //生命周期 - 挂载之前
  621. beforeUpdate() {}, //生命周期 - 更新之前
  622. updated() {}, //生命周期 - 更新之后
  623. beforeDestroy() {}, //生命周期 - 销毁之前
  624. destroyed() {}, //生命周期 - 销毁完成
  625. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  626. };
  627. </script>
  628. <style lang='scss' scope>
  629. //@import url(); 引入公共css类
  630. .Big-Book-table {
  631. &-content {
  632. &.m {
  633. display: flex;
  634. justify-content: flex-start;
  635. align-items: flex-start;
  636. }
  637. .Big-Book-title {
  638. font-size: 16px;
  639. line-height: 40px;
  640. color: #000;
  641. margin-right: 15px;
  642. }
  643. }
  644. .Big-Book-main {
  645. > div {
  646. margin-bottom: 10px;
  647. &.Big-Book-pinyin {
  648. display: flex;
  649. justify-content: flex-start;
  650. align-items: center;
  651. }
  652. }
  653. }
  654. .addoption {
  655. width: 150px;
  656. height: 40px;
  657. left: 40px;
  658. top: 304px;
  659. background: #f3f3f3;
  660. border: 1px dashed rgba(0, 0, 0, 0.15);
  661. box-sizing: border-box;
  662. border-radius: 4px;
  663. text-align: center;
  664. line-height: 40px;
  665. cursor: pointer;
  666. margin-right: 20px;
  667. }
  668. .Big-Book-divide {
  669. > div {
  670. width: 100%;
  671. }
  672. .answerList {
  673. > div {
  674. margin-top: 16px;
  675. display: flex;
  676. align-items: center;
  677. > :nth-child(1) {
  678. display: inline-block;
  679. width: 100px;
  680. margin-right: 10px;
  681. word-break: break-all;
  682. }
  683. .checkbox-group {
  684. > span {
  685. display: inline-block;
  686. margin-left: 29px;
  687. }
  688. }
  689. }
  690. }
  691. }
  692. .Big-Book-con {
  693. display: flex;
  694. align-items: center;
  695. margin: 15px 0;
  696. img {
  697. width: 24px;
  698. height: 24px;
  699. cursor: pointer;
  700. }
  701. }
  702. .Big-Book-mp3 {
  703. display: flex;
  704. }
  705. .add {
  706. display: flex;
  707. margin-top: 50px;
  708. }
  709. table {
  710. tr {
  711. th {
  712. min-width: 100px;
  713. max-width: 100px;
  714. min-height: 40px;
  715. max-height: 40px;
  716. border: 1px solid black;
  717. text-align: center;
  718. padding: 5px;
  719. word-break: break-all;
  720. overflow: hidden;
  721. text-overflow: ellipsis;
  722. }
  723. td {
  724. min-width: 100px;
  725. max-width: 100px;
  726. height: 42px;
  727. border: 1px solid black;
  728. text-align: center;
  729. padding: 5px;
  730. word-break: break-all;
  731. position: relative;
  732. }
  733. display: flex;
  734. align-items: center;
  735. }
  736. }
  737. }
  738. </style>