EditPanel.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. <template>
  2. <transition
  3. appear
  4. name="custom-classes-transition"
  5. enter-active-class="animated slideInRight speed"
  6. leave-active-class="animated slideOutRight speed"
  7. >
  8. <div class="hots-panel" v-show="show">
  9. <div class="ui-between header">
  10. <span>{{ editTitle }}{{ $i18n.t("hotspot.hotspot_name") }}</span>
  11. <i class="iconfont icon_close" @click="cancel"></i>
  12. </div>
  13. <div class="content" ref="content">
  14. <div class="type-setting">
  15. <div class="remark">{{ $i18n.t("hotspot.hotspot_type") }}</div>
  16. <combox
  17. class="combox"
  18. :data="hotspotTypeList"
  19. :selected-id="hotspot.hotspotType"
  20. @change="onHotSpotTypeChange"
  21. />
  22. </div>
  23. <div class="icon-setting">
  24. <div class="remark">{{ $i18n.t("hotspot.hotspot_icon") }}</div>
  25. <combox
  26. class="combox"
  27. :data="hotspotIconTypeList"
  28. :selected-id="hotspot.hotspotIconType"
  29. @change="onHotspotIconTypeChange"
  30. />
  31. <component
  32. class="icon-setting-component"
  33. :is="iconTypeComponent"
  34. ref="icon-setting-component"
  35. />
  36. <div
  37. class="bars"
  38. v-if="hotspot.hotspotIconType !== 'personalized_tag'"
  39. >
  40. <RangeItem :value="rang" @input="onRangeChange" />
  41. </div>
  42. </div>
  43. <div
  44. class="title-setting"
  45. v-if="hotspot.hotspotIconType !== 'personalized_tag'"
  46. >
  47. <div class="remark-highlight">
  48. {{ $i18n.t("hotspot.hotspot_title") }}
  49. </div>
  50. <div class="title-input-wrapper">
  51. <input
  52. v-model.trim="hotspot.hotspotTitle"
  53. type="text"
  54. maxlength="50"
  55. />
  56. <span class="count">{{ hotspot.hotspotTitle.length }}/50</span>
  57. </div>
  58. <div class="remark">
  59. {{ $i18n.t("hotspot.title_show_mode") }}
  60. </div>
  61. <TabbarSwitcher
  62. class="display-mode-selector"
  63. :tabList="[
  64. // $i18n.t('hotspot.show_on_hover'),
  65. $i18n.t('hotspot.always_show'),
  66. $i18n.t('hotspot.never_show'),
  67. ]"
  68. :activeIdx="currentTitleDispayModeIdx"
  69. @select="onSelectTitleDisplayMode"
  70. />
  71. <div class="remark">
  72. {{ $i18n.t("hotspot.title_position") }}
  73. </div>
  74. <TabbarSwitcherIcon
  75. class="display-mode-selector"
  76. :tabList="[
  77. {
  78. icon: 'icon-up',
  79. tip: $i18n.t('hotspot.title_top'),
  80. },
  81. {
  82. icon: 'icon-down',
  83. tip: $i18n.t('hotspot.title_bottom'),
  84. },
  85. {
  86. icon: 'icon-left',
  87. tip: $i18n.t('hotspot.title_left'),
  88. },
  89. {
  90. icon: 'icon-right',
  91. tip: $i18n.t('hotspot.title_right'),
  92. },
  93. // {
  94. // icon: 'icon-mobile',
  95. // tip: $i18n.t('hotspot.title_custom'),
  96. // },
  97. ]"
  98. :activeIdx="currentTitlePositionIdx"
  99. @select="onSelectTitlePosition"
  100. />
  101. </div>
  102. <div class="effect-setting">
  103. <div class="title-line">
  104. <div
  105. class="remark-highlight"
  106. v-if="
  107. $i18n.t(
  108. `hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`
  109. )
  110. "
  111. >
  112. {{
  113. $i18n.t(
  114. `hotspot.hotspot_type_specific_settings_title.${hotspot.hotspotType}`
  115. )
  116. }}
  117. </div>
  118. <div class="tip" v-if="currentHotspotTypeConfigData.tip">
  119. {{ currentHotspotTypeConfigData.tip }}
  120. </div>
  121. </div>
  122. <component
  123. class="effect-setting-component"
  124. @sceneSelect="handleSceneSelect"
  125. :scene="hotspot.secne"
  126. @imageChange="
  127. (data) => {
  128. hotspot.image = data;
  129. }
  130. "
  131. :image="hotspot.image"
  132. @linkChange="
  133. (data) => {
  134. hotspot.hyperlink = data;
  135. }
  136. "
  137. :link="hotspot.hyperlink"
  138. @linkOpenType="
  139. (data) => {
  140. hotspot.linkOpenType = data;
  141. }
  142. "
  143. :linkOpenType="hotspot.linkOpenType"
  144. @textChange="
  145. (data) => {
  146. hotspot.textarea = data;
  147. }
  148. "
  149. :textarea="hotspot.textarea"
  150. @audioChange="
  151. (data) => {
  152. hotspot.audio = data;
  153. }
  154. "
  155. :audio="hotspot.audio"
  156. @videoChange="
  157. (data) => {
  158. hotspot.video = data;
  159. }
  160. "
  161. :video="hotspot.video"
  162. :is="effectSettingComponent"
  163. />
  164. </div>
  165. </div>
  166. <div class="ui-between footer" app-border dir-top>
  167. <button
  168. class="ui-button deepcancel"
  169. :class="{ disable: false }"
  170. @click="cancel"
  171. >
  172. {{ $i18n.t("hotspot.cancel") }}
  173. </button>
  174. <button
  175. class="ui-button submit"
  176. :class="{ disable: !canSubmit }"
  177. @click="save"
  178. >
  179. {{ $i18n.t("hotspot.finish") }}
  180. </button>
  181. </div>
  182. </div>
  183. </transition>
  184. </template>
  185. <script>
  186. import RangeItem from "@/components/rangeItem/index.vue";
  187. import Combox from "@/components/shared/Combox";
  188. import { mapGetters } from "vuex";
  189. import Switcher from "@/components/shared/Switcher.vue";
  190. import TabbarSwitcher from "@/components/shared/TabbarSwitcher.vue";
  191. import TabbarSwitcherIcon from "@/components/shared/TabbarSwitcherIcon.vue";
  192. import hotspotTypeList from "./hotspotTypeList.js";
  193. import { isValidPhoneNumber } from "libphonenumber-js/max";
  194. export default {
  195. props: ["show", "data", "editTitle"],
  196. components: {
  197. RangeItem,
  198. Combox,
  199. Switcher,
  200. TabbarSwitcher,
  201. TabbarSwitcherIcon,
  202. },
  203. data() {
  204. return {
  205. hotspotTypeList,
  206. hotspotIconTypeList: [
  207. {
  208. name: this.$i18n.t("hotspot.hotspot_icon_type.system_icon"),
  209. id: "system_icon",
  210. },
  211. {
  212. name: this.$i18n.t("hotspot.hotspot_icon_type.custom_image"),
  213. id: "custom_image",
  214. },
  215. {
  216. name: this.$i18n.t("hotspot.hotspot_icon_type.serial_frame"),
  217. id: "serial_frame",
  218. },
  219. {
  220. name: this.$i18n.t("hotspot.hotspot_icon_type.personalized_tag"),
  221. id: "personalized_tag",
  222. },
  223. ],
  224. rang: {
  225. label: this.$i18n.t("hotspot.icon_size"),
  226. unit: this.$i18n.t("hotspot.unit"),
  227. gradient: 0.1,
  228. value: 1,
  229. min: 0.5,
  230. max: 2,
  231. },
  232. };
  233. },
  234. watch: {
  235. "hotspot.fontSize": {
  236. handler(val) {
  237. const rangeValue = val / 12;
  238. // console.log("rangeValue", rangeValue);
  239. this.rang.value = rangeValue.toFixed(1);
  240. },
  241. immediate: true,
  242. },
  243. hotspot: {
  244. handler(val) {
  245. // console.error("this.hotspot", val);
  246. console.error("hotspot", val);
  247. this.$bus.emit("edithotspot", val);
  248. // console.log("this.$bus", this.$bus);
  249. // this.$getKrpano().call("removeJQHotspot(" + val.name + ");");
  250. // this.$bus.emit("addhotspot", val);
  251. },
  252. deep: true,
  253. },
  254. // hotspotIcon: {
  255. // handler(val) {
  256. // console.error("this.hotspotIcon", val);
  257. // val.img.length > 0 &&
  258. // this.$getKrpano().set(`hotspot[${this.hotspot.name}].url`, val.img);
  259. // },
  260. // deep: true,
  261. // },
  262. // "hotspot.img": function () {
  263. // console.log("this.hotspot.img", this.hotspot.img);
  264. // this.$getKrpano().set(
  265. // `hotspot[${this.hotspot.name}].url`,
  266. // this.hotspot.img
  267. // );
  268. // },
  269. // "hotspot.titlePosition": function (val) {
  270. // console.log("111", val);
  271. // if (val === "bottom") {
  272. // this.$getKrpano().set("layer[tooltip_" + this.hotspot.name + "].css");
  273. // }
  274. // },
  275. // "hotspot.hotspotTitle": function () {
  276. // this.$getKrpano().set(
  277. // "layer[tooltip_" + this.hotspot.name + "].html",
  278. // `<span style="color:white">${this.hotspot.hotspotTitle}</span>`
  279. // );
  280. // },
  281. // 'hotspot.visible': function () {
  282. // this.$getKrpano().set('layer[tooltip_' + this.hotspot.name + '].visible', this.hotspot.visible)
  283. // },
  284. // "hotspot.size": {
  285. // immediate: true,
  286. // handler: function (newVal) {
  287. // let h = 52;
  288. // let scaleH = h * newVal;
  289. // let offset = "-130%";
  290. // this.rang = { ...this.rang, value: newVal };
  291. // this.$getKrpano().set(`hotspot[${this.hotspot.name}].height`, scaleH);
  292. // if (newVal < 1) {
  293. // offset = "-200%";
  294. // }
  295. // if (newVal > 1) {
  296. // offset = "-100%";
  297. // }
  298. // this.$getKrpano().set(
  299. // "layer[tooltip_" + this.hotspot.name + "].y",
  300. // `${offset}`
  301. // );
  302. // },
  303. // },
  304. // "hotspot.fontSize": {
  305. // handler: function (newVal) {
  306. // this.$getKrpano().set(
  307. // "layer[tooltip_" + this.hotspot.name + "].css",
  308. // `text-align:center; color:#FFFFFF;
  309. // font-family:STXihei;font-size:${newVal}px;`
  310. // );
  311. // },
  312. // },
  313. },
  314. beforeDestroy() {
  315. this.$bus.removeListener("resethotspotTitle", this.listerFnReset);
  316. },
  317. computed: {
  318. ...mapGetters({
  319. hotspot: "hotspot",
  320. backupHotSpot: "backupHotSpot",
  321. hotspotIcon: "hotspotIcon",
  322. }),
  323. iconTypeComponent() {
  324. let tmp = this.hotspot.hotspotIconType;
  325. return () => import(`./hotspotIconType/${tmp}.vue`);
  326. },
  327. currentTitleDispayModeIdx() {
  328. switch (this.hotspot.titleDisplayMode) {
  329. // case "hover":
  330. // return 0;
  331. case "always":
  332. return 0;
  333. case "never":
  334. return 1;
  335. default:
  336. return 0;
  337. }
  338. },
  339. currentTitlePositionIdx() {
  340. switch (this.hotspot.titlePosition) {
  341. case "top":
  342. return 0;
  343. case "bottom":
  344. return 1;
  345. case "left":
  346. return 2;
  347. case "right":
  348. return 3;
  349. case "custom":
  350. return 4;
  351. default:
  352. return 0;
  353. }
  354. },
  355. effectSettingComponent() {
  356. let tmp = this.hotspot.hotspotType;
  357. return () => import(`./hotspotType/${tmp}.vue`);
  358. },
  359. canSubmit() {
  360. // 热点类型相关设置项
  361. switch (this.hotspot.hotspotType) {
  362. case "scene":
  363. if (!(this.hotspot.secne && this.hotspot.secne.id)) {
  364. return false;
  365. }
  366. break;
  367. case "image":
  368. if (!this.hotspot.image || this.hotspot.image.length === 0) {
  369. return false;
  370. }
  371. break;
  372. case "video":
  373. if (!this.hotspot.video) {
  374. return false;
  375. }
  376. break;
  377. case "audio":
  378. if (!this.hotspot.audio) {
  379. return false;
  380. }
  381. break;
  382. case "link":
  383. if (!this.hotspot.hyperlink) {
  384. return false;
  385. }
  386. break;
  387. case "textarea":
  388. if (!this.hotspot.textarea) {
  389. return false;
  390. }
  391. break;
  392. case "tag":
  393. break;
  394. case "imageText":
  395. if (
  396. this.hotspot.imageTextInfo.imageList.length === 0 ||
  397. this.hotspot.imageTextInfo.text.length === 0
  398. ) {
  399. return false;
  400. }
  401. break;
  402. case "article":
  403. if (!this.hotspot.articleInfo.html) {
  404. return false;
  405. }
  406. break;
  407. case "pdf":
  408. if (!this.hotspot.pdfInfo.name || !this.hotspot.pdfInfo.url) {
  409. return false;
  410. }
  411. break;
  412. case "phone":
  413. if (
  414. !isValidPhoneNumber(this.hotspot.phoneInfo.phone) &&
  415. !isValidPhoneNumber("+86" + this.hotspot.phoneInfo.phone)
  416. ) {
  417. return false;
  418. }
  419. break;
  420. default:
  421. break;
  422. }
  423. // 热点图标类型相关设置项
  424. switch (this.hotspot.hotspotIconType) {
  425. case "system_icon":
  426. break;
  427. case "custom_image":
  428. if (!this.hotspot.customIconInfo.img) {
  429. return false;
  430. }
  431. break;
  432. case "serial_frame":
  433. console.log(
  434. "checker",
  435. this.hotspot.serialFrameInfo
  436. );
  437. if (
  438. this.hotspot.serialFrameInfo.img &&
  439. this.hotspot.serialFrameInfo.img.length === 0
  440. ) {
  441. return false;
  442. }
  443. break;
  444. case "personalized_tag":
  445. if (
  446. this.hotspot.personalizedTagInfo.isTextWrap &&
  447. this.hotspot.personalizedTagInfo.textNumPerLine <= 0
  448. ) {
  449. return false;
  450. }
  451. break;
  452. default:
  453. break;
  454. }
  455. // 其他设置项
  456. if (!this.hotspot.hotspotTitle) {
  457. return false;
  458. }
  459. return true;
  460. },
  461. currentHotspotTypeConfigData() {
  462. return hotspotTypeList.find((item) => {
  463. return item.id === this.hotspot.hotspotType;
  464. });
  465. },
  466. },
  467. beforeDestroy() {
  468. this.$bus.off("edithotspot", this.handleEditHotspot);
  469. this.$bus.off("delhotspot", this.cancel);
  470. },
  471. mounted() {
  472. this.$bus.on("resethotspotTitle", this.listerFnReset);
  473. this.$bus.on("delhotspot", this.cancel);
  474. this.$bus.on("edithotspot", this.handleEditHotspot);
  475. setTimeout(() => {
  476. if (
  477. this.editTitle != "编辑" &&
  478. this.editTitle != this.$i18n.t("hotspot.edit")
  479. ) {
  480. this.rang.value = window.g_hotspotCurrentScale;
  481. this.onRangeChange({ value: window.g_hotspotCurrentScale });
  482. }
  483. }, 300);
  484. },
  485. methods: {
  486. handleEditHotspot(data) {
  487. const krpano = document.getElementById("krpanoSWFObject");
  488. __krfn.utils.edithotspot(krpano, data);
  489. },
  490. handleSceneSelect(data) {
  491. this.hotspot.secne = {
  492. ...data,
  493. someData: {},
  494. };
  495. },
  496. onHotSpotTypeChange(data) {
  497. this.hotspot.hotspotType = data.id;
  498. },
  499. onHotspotIconTypeChange(data) {
  500. this.hotspot.hotspotIconType = data.id;
  501. },
  502. clamp(num, min, max) {
  503. return num <= min ? min : num >= max ? max : num;
  504. },
  505. onRangeChange(data) {
  506. console.log(data);
  507. this.rang = { ...this.rang, value: data.value };
  508. this.hotspot.size = data.value;
  509. const fontsize = data.value * 12;
  510. const updateSize = Math.floor(fontsize);
  511. this.hotspot.fontSize = updateSize;
  512. console.log("updateSize", updateSize);
  513. // switch (data.value) {
  514. // case 0.5:
  515. // case 0.6:
  516. // case 0.7:
  517. // this.hotspot.fontSize = 12;
  518. // break;
  519. // case 0.8:
  520. // case 0.9:
  521. // case 1.0:
  522. // case 1.1:
  523. // case 1.2:
  524. // this.hotspot.fontSize = 14;
  525. // break;
  526. // case 1.3:
  527. // case 1.4:
  528. // case 1.5:
  529. // case 1.6:
  530. // case 1.7:
  531. // this.hotspot.fontSize = 17;
  532. // break;
  533. // case 1.8:
  534. // case 1.9:
  535. // case 2:
  536. // this.hotspot.fontSize = 20;
  537. // break;
  538. // default:
  539. // break;
  540. // }
  541. },
  542. onSelectTitleDisplayMode(idx) {
  543. switch (idx) {
  544. // case 0:
  545. // this.hotspot.titleDisplayMode = "hover";
  546. // break;
  547. case 0:
  548. this.hotspot.titleDisplayMode = "always";
  549. break;
  550. case 1:
  551. this.hotspot.titleDisplayMode = "never";
  552. break;
  553. default:
  554. break;
  555. }
  556. },
  557. onSelectTitlePosition(idx) {
  558. switch (idx) {
  559. case 0:
  560. this.hotspot.titlePosition = "top";
  561. break;
  562. case 1:
  563. this.hotspot.titlePosition = "bottom";
  564. break;
  565. case 2:
  566. this.hotspot.titlePosition = "left";
  567. break;
  568. case 3:
  569. this.hotspot.titlePosition = "right";
  570. break;
  571. case 4:
  572. this.hotspot.titlePosition = "custom";
  573. break;
  574. default:
  575. break;
  576. }
  577. },
  578. listerFnReset() {
  579. if (
  580. this.hotspot.hotspotTitle == "单击确定热点位置" ||
  581. this.hotspot.hotspotTitle == this.$i18n.t("hotspot.click_to_comfirm")
  582. ) {
  583. this.hotspot.hotspotTitle = "";
  584. }
  585. },
  586. cancel() {
  587. // if (!(this.editTitle == this.$i18n.t("hotspot.edit"))) {
  588. this.$confirm({
  589. title: this.$i18n.t("tips.title"),
  590. content: this.$i18n.t("hotspot.cancel_add_hotspot"),
  591. ok: () => {
  592. this.realCancel();
  593. },
  594. });
  595. // }
  596. },
  597. realCancel() {
  598. this.$store.commit("SetHotspot", this.backupHotSpot);
  599. console.log("cancel", this.backupHotSpot);
  600. this.$getKrpano().call(
  601. "cancelJQHotspot(" + this.backupHotSpot.name + ");"
  602. );
  603. this.$emit("close", {
  604. type: this.editTitle == this.$i18n.t("hotspot.edit") ? "edit" : "add",
  605. data: this.backupHotSpot,
  606. });
  607. },
  608. reset(data) {
  609. this.$bus.emit("edithotspotTitle", data);
  610. this.$bus.emit("edithotspotTitleisShow", data);
  611. // this.$getKrpano().set(`hotspot[${data.name}].url`, data.img);
  612. },
  613. save() {
  614. this.$store.commit("SetHotspot", this.hotspot);
  615. this.$emit("close");
  616. this.$emit("save", this.hotspot);
  617. },
  618. },
  619. };
  620. </script>
  621. <style lang="less" scoped>
  622. .hots-panel {
  623. background: #252526;
  624. z-index: 10;
  625. display: flex;
  626. flex-direction: column;
  627. .header {
  628. padding: 20px;
  629. display: flex;
  630. font-size: 18px;
  631. color: #fff;
  632. flex: 0 0 auto;
  633. .icon_close {
  634. color: rgba(255, 255, 255, 0.6);
  635. cursor: pointer;
  636. }
  637. }
  638. .content {
  639. padding: 0 20px 14px 20px;
  640. flex: 1 0 1px;
  641. overflow: auto;
  642. .type-setting {
  643. .remark {
  644. font-size: 14px;
  645. color: #ababab;
  646. }
  647. .combox {
  648. margin-top: 16px;
  649. }
  650. }
  651. .icon-setting {
  652. .icon-setting-title {
  653. font-size: 18px;
  654. color: #ffffff;
  655. }
  656. .remark {
  657. margin-top: 16px;
  658. font-size: 14px;
  659. color: #ababab;
  660. }
  661. .combox {
  662. margin-top: 16px;
  663. }
  664. .icon-setting-component {
  665. margin-top: 16px;
  666. }
  667. .bars {
  668. margin-top: 16px;
  669. }
  670. }
  671. .title-setting {
  672. .remark-highlight {
  673. margin-top: 16px;
  674. font-size: 18px;
  675. color: #ffffff;
  676. }
  677. > .title-input-wrapper {
  678. position: relative;
  679. border: 1px solid rgba(151, 151, 151, 0.2);
  680. padding: 0 16px;
  681. background: #1a1b1d;
  682. border-radius: 2px;
  683. height: 36px;
  684. width: 100%;
  685. margin-top: 18px;
  686. &:focus-within {
  687. border-color: #0076f6;
  688. }
  689. > input {
  690. border: none;
  691. background: transparent;
  692. outline: none;
  693. height: 100%;
  694. width: calc(100% - 50px);
  695. padding: 0;
  696. color: #fff;
  697. letter-spacing: 1px;
  698. font-size: 14px;
  699. }
  700. > .count {
  701. position: absolute;
  702. top: 50%;
  703. transform: translateY(-50%);
  704. right: 16px;
  705. font-size: 14px;
  706. color: rgba(255, 255, 255, 0.2);
  707. }
  708. }
  709. .remark {
  710. margin-top: 18px;
  711. color: rgba(255, 255, 255, 0.6);
  712. font-size: 14px;
  713. }
  714. .display-mode-selector {
  715. margin-top: 18px;
  716. }
  717. }
  718. .effect-setting {
  719. margin-top: 16px;
  720. > .title-line {
  721. margin-top: 16px;
  722. display: flex;
  723. justify-content: space-between;
  724. align-items: center;
  725. > .remark-highlight {
  726. font-size: 18px;
  727. color: #ffffff;
  728. }
  729. > .tip {
  730. font-size: 14px;
  731. color: #ffffff;
  732. opacity: 0.6;
  733. }
  734. }
  735. .combox {
  736. margin-top: 16px;
  737. }
  738. .effect-setting-component {
  739. margin-top: 16px;
  740. }
  741. }
  742. }
  743. .footer {
  744. flex: 0 0 auto;
  745. padding: 15px;
  746. background: #252526;
  747. .deepcancel {
  748. margin-right: 10px;
  749. }
  750. .ui-button {
  751. width: 112px;
  752. }
  753. }
  754. }
  755. </style>