diy-preview.php 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723
  1. <template id="diy-preview">
  2. <div style="flex:1;position:relative">
  3. <el-scrollbar class="dp-el-scrollbar" ref="scrollbar">
  4. <div id="diy-preview-contain" class="dp-contain" ref="diyPreview" :style="mainStyle">
  5. <div id="diy-test">
  6. <div style="position: relative" data-html2canvas-ignore>
  7. <!-- :style="{ 'background': topStatusBar.bg}" -->
  8. <div class="dp-header-placeholder"></div>
  9. </div>
  10. <!-- 导航栏 -->
  11. <div
  12. class="drag-scroll hide-scrollbar"
  13. :data-id="navComponent.id"
  14. @click="onClick(navComponent, 0)"
  15. >
  16. <div :class="computedItem(navComponent, 0)">
  17. <components :is="getName(navComponent)" :active-item="navComponent"></components>
  18. <div
  19. v-if="showLocationBtn(navComponent) && isShowLocation"
  20. style="
  21. position: absolute;
  22. width: 42px;
  23. height: 84px;
  24. top: 42px;
  25. bottom: 0;
  26. left: 50%;
  27. background: #73767D;
  28. margin: auto 0 auto 220px;
  29. border-radius: 2px;
  30. z-index: 999;
  31. "
  32. >
  33. <div style="position: relative;">
  34. <el-tooltip class="item" effect="dark" :content="content" placement="right">
  35. <i class="iconfont-el el-icon-location-outline" style="
  36. height:42px;width:42px;font-size:32px;color:white;display:flex;
  37. justify-content:center;align-items:center;flex-direction:column;flex-wrap:nowrap;
  38. "></i>
  39. </el-tooltip>
  40. <div class="mask" style="cursor:pointer;" @click.stop="operateReplaceFn('replace')"></div>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div :style="contentStyle" class="scrollbar-container hide-scrollbar">
  46. <!-- 头部置顶元素 -->
  47. <div class="drag-scroll" :data-id="item.id" v-for="(item,index) in headerArr" :key="item.id" @click="onClick(item, index)">
  48. <div :class="computedItem(item,index)" v-if="index !== 0">
  49. <components :is="getName(item)" :active-item="item"></components>
  50. <div v-if="showLocationBtn(item) && isShowLocation" style="position: absolute;width: 42px;height: 84px;top: 42px;bottom: 0;left: 50%;background: #73767D;margin: auto 0 auto 220px;border-radius: 2px;z-index: 999;">
  51. <div style="position: relative;">
  52. <el-tooltip class="item" effect="dark" :content="content" placement="right">
  53. <i class="iconfont-el el-icon-location-outline" style="
  54. height:42px;width:42px;font-size:32px;color:white;display:flex;
  55. justify-content:center;align-items:center;flex-direction:column;flex-wrap:nowrap;
  56. "></i>
  57. </el-tooltip>
  58. <div class="mask" style="cursor:pointer;" @click.stop="operateReplaceFn('replace')"></div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. <!-- 拖拽容器 - 文档流元素 -->
  64. <draggable class="drag-contain" :list="prevArr" group="componentsGroup" :animation="300" :options="{filter:'.undraggable',preventOnFilter:false}" @start="start" @end="onEnd">
  65. <transition-group>
  66. <!-- 请保证生成key唯一 -->
  67. <!-- v-if 会影响滚动精准 -->
  68. <div class="drag-scroll" :data-id="item.id" v-show="filterArr(item)" v-for="(item,index) in prevArr" :class="[ item.is_drag !== false ? '' : 'undraggable']" :key="item.id" @click="onClick(item, index)">
  69. <div :class="computedItem(item,index)">
  70. <components :is="getName(item)" :active-item="item"></components>
  71. <div class="dp-close" v-if="deleteBtn(item)" @click.stop>
  72. <el-popover placement="bottom" v-model="item.visible">
  73. <p class="diy-del-text">确定删除吗?</p>
  74. <div flex="cross:center">
  75. <el-button class="diy-del-btn" size="mini" plain @click.stop="deleteItem">删除</el-button>
  76. <el-button size="mini" plain @click="item.visible = false">取消</el-button>
  77. </div>
  78. <i class="el-icon-close" slot="reference"></i>
  79. </el-popover>
  80. </div>
  81. <div class="dp-hover"></div>
  82. <!-- 前端是否显示 -->
  83. <div class="show" v-if="!item.isShow">
  84. <div>已隐藏</div>
  85. </div>
  86. </div>
  87. </div>
  88. </transition-group>
  89. </draggable>
  90. <!-- 脱离文档流元素 - 选中效果需要子元素添加.diy-solid-line类名 -->
  91. <div id="float">
  92. <div class="drag-scroll" :data-id="item.id" v-if="filterFloatArr(item)" v-for="(item,index) in prevArr" :key="item.id" @click="onClick(item, index)" v-show="index != 0">
  93. <div :class="computedFloatItem(item,index)">
  94. <components :is="getName(item)" :active-item="item">
  95. <!-- 容器里面必须有position不为默认值的情况 - 才生效 -->
  96. <div class="dp-close" v-if="deleteBtn(item)" @click.stop>
  97. <el-popover placement="bottom" v-model="item.visible">
  98. <p class="diy-del-text">确定删除吗?</p>
  99. <div flex="cross:center">
  100. <el-button class="diy-del-btn" size="mini" plain @click.stop="deleteItem">删除</el-button>
  101. <el-button size="mini" plain @click="item.visible = false">取消</el-button>
  102. </div>
  103. <i class="el-icon-close" slot="reference"></i>
  104. </el-popover>
  105. </div>
  106. <div class="dp-hover"></div>
  107. <!-- 前端是否显示 -->
  108. <div class="show" v-if="!item.isShow">
  109. <div>已隐藏</div>
  110. </div>
  111. </components>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. </div>
  118. </el-scrollbar>
  119. <!-- 操作按钮 -->
  120. <div class="slide-right" v-if="showButton" :style="{'height': operAuthHideLength() + 'px'}">
  121. <div style="position: relative;" v-if="!operAuth('show') || buttonHide">
  122. <el-tooltip class="item" effect="dark" :content="content" placement="right">
  123. <i class="iconfont-el el-icon-view" @click="operateFn('show')"></i>
  124. </el-tooltip>
  125. <div class="mask" @click.stop v-if="operAuth('show')"></div>
  126. </div>
  127. <div style="position: relative;" v-if="!operAuth('up') || buttonHide">
  128. <el-tooltip class="item" effect="dark" content="上移组件" placement="right">
  129. <i class="iconfont-el el-icon-arrow-up" @click="operateFn('up')"></i>
  130. </el-tooltip>
  131. <div class="mask" @click.stop v-if="operAuth('up')"></div>
  132. </div>
  133. <div style="position: relative;" v-if="!operAuth('down') || buttonHide">
  134. <el-tooltip class="item" effect="dark" content="下移组件" placement="right">
  135. <i class="iconfont-el el-icon-arrow-down" @click="operateFn('down')"></i>
  136. </el-tooltip>
  137. <div class="mask" @click.stop v-if="operAuth('down')"></div>
  138. </div>
  139. <div style="position: relative;" v-if="!operAuth('copy') || buttonHide">
  140. <el-tooltip class="item" effect="dark" content="复制组件" placement="right">
  141. <i class="iconfont-el el-icon-document-copy" @click="copy"></i>
  142. </el-tooltip>
  143. <div class="mask" @click.stop v-if="operAuth('copy')"></div>
  144. </div>
  145. <div style="position: relative;" v-if="!operAuth('delete') || buttonHide">
  146. <el-tooltip class="item" effect="dark" content="删除组件" placement="right">
  147. <i class="iconfont-el el-icon-delete" @click="operateFn('delete')"></i>
  148. </el-tooltip>
  149. <div class="mask" @click.stop v-if="operAuth('delete')"></div>
  150. </div>
  151. <!-- <el-tooltip class="item" effect="dark" content="背景设置" placement="right">
  152. <i class="iconfont-el el-icon-setting" @click="setBg"></i>
  153. </el-tooltip> -->
  154. </div>
  155. </div>
  156. </template>
  157. <script src="/resources/js/Sortable.min.js"></script>
  158. <!-- 更改了v-if => v-show -->
  159. <script src="/resources/unpkg/vuedraggable@2.18.1/dist/vuedraggable.umd.min.js"></script>
  160. <!-- <script src="/resources/js/Sortable.min.js"></script>
  161. <script src="<?= Yii::$app->request->baseUrl ?>/resources/unpkg/vuedraggable@2.18.1/dist/vuedraggable.umd.min.js"></script> -->
  162. <script>
  163. Vue.component('diy-preview', {
  164. name: "diy-preview",
  165. template: '#diy-preview',
  166. props: {
  167. list: {
  168. type: Array,
  169. default () {
  170. return []
  171. }
  172. },
  173. activeIndex: {
  174. type: Number,
  175. default () {
  176. return 0
  177. }
  178. },
  179. showButton: { //是否显示操作按钮组
  180. type: Boolean,
  181. default: true,
  182. },
  183. buttonHide: { //指定按钮隐藏
  184. type: Boolean,
  185. default: false,
  186. },
  187. isShowLocation: {
  188. type: Boolean,
  189. default: true,
  190. }
  191. },
  192. watch: {
  193. list: {
  194. handler(newValue) {
  195. this.$nextTick(() => {
  196. if (newValue && newValue.length) {
  197. // this.headerArr = newValue.filter(item => {
  198. // const e1 = item.funcListItem || {}
  199. // return e1.is_top
  200. // })
  201. // this.prevArr = newValue.slice(0)
  202. try {
  203. // 打印新值
  204. console.log("list newValue", newValue);
  205. // 复制数组到 prevArr
  206. this.prevArr = [...newValue];
  207. console.log('this.prevArr', this.prevArr);
  208. // 设置导航栏组件数据
  209. this.navComponent = newValue[0];
  210. console.log('this.navComponent', this.navComponent);
  211. // 筛选头部置顶组件
  212. this.headerArr = newValue.filter(item => item.funcListItem?.is_top);
  213. console.log('this.headerArr', this.headerArr);
  214. } catch (error) {
  215. console.log('error :>> ', error);
  216. }
  217. }
  218. })
  219. },
  220. deep: true,
  221. immediate: true
  222. },
  223. activeIndex(newVal, oldVal) {
  224. if (newVal === oldVal) return false
  225. var el = this.$refs.scrollbar.wrap; // 滚动容器
  226. var currentTop = this.$refs.scrollbar.wrap.scrollTop;
  227. var containHeight = el.offsetHeight;
  228. var halfHeight = containHeight / 2 - 200;
  229. clearTimeout(this.timerID)
  230. this.timerID = setTimeout(() => {
  231. this.$nextTick(() => {
  232. var itemDom = this.getTargetDom(newVal)
  233. if (!itemDom) {
  234. return
  235. }
  236. var clientTop = itemDom.offsetTop - currentTop;
  237. if (clientTop < halfHeight) { // 往下
  238. var addTop = halfHeight - clientTop
  239. this.toTop(currentTop, currentTop - addTop)
  240. } else { // 往上
  241. this.toTop(currentTop, currentTop + clientTop - halfHeight)
  242. }
  243. })
  244. }, 200);
  245. }
  246. },
  247. data() {
  248. return {
  249. static_img_prefix: '<?= Yii::getAlias('@attachurl') ?>'+'/static',
  250. visible: false,
  251. // 导航栏组件
  252. navComponent: {},
  253. // 头部组件
  254. headerArr: [],
  255. // 所有装修预览组件
  256. prevArr: [],
  257. // 可以显示的浮动组件
  258. floatArr: ["order-broadcast","bg-music"],
  259. // 可以显示的弹窗组件
  260. alertArr: ['popup-advertisement','bargain-popup'],
  261. duration: 0,
  262. timerID: 0
  263. };
  264. },
  265. computed: {
  266. content() {
  267. var item = this.list[this.activeIndex]
  268. return item && item.isShow ? "隐藏" : "显示"
  269. },
  270. mainStyle() {
  271. if (!this.prevArr[0]) {
  272. return {}
  273. }
  274. var mainPage = this.prevArr[0].data.mainPage || {}
  275. var style = {
  276. backgroundSize: "100%",
  277. backgroundRepeat: "no-repeat",
  278. backgroundPosition: "left top",
  279. backgroundColor: mainPage.defColor
  280. } // 基类
  281. if (mainPage.imgUrl) {
  282. let backgroundImageUrl = mainPage.imgUrl;
  283. if(mainPage.imgUrl.indexOf('http')==-1){
  284. backgroundImageUrl = this.static_img_prefix+mainPage.imgUrl
  285. }
  286. style.backgroundImage = `url(${backgroundImageUrl})`
  287. }
  288. return style
  289. },
  290. contentStyle() {
  291. try {
  292. if (!this.prevArr[0]) {
  293. return {}
  294. }
  295. const mainPage = this.prevArr[0].data.mainPage || {}
  296. const {
  297. paddingTop,
  298. paddingBottom,
  299. paddingLeft,
  300. paddingRight
  301. } = mainPage
  302. return {
  303. paddingTop,
  304. paddingBottom,
  305. paddingLeft,
  306. paddingRight
  307. }
  308. } catch (error) {
  309. return {}
  310. }
  311. }
  312. },
  313. methods: {
  314. getTargetDom(newVal) {
  315. // 通过id查询对应dom - drag-scroll类名必须对应prevArr顺序
  316. const domList = document.getElementsByClassName("drag-scroll");
  317. const item = this.prevArr[newVal]
  318. const id = item && item.id
  319. let domTarget = null;
  320. for (let index = 0; index < domList.length; index++) {
  321. let dom = domList[index];
  322. if (dom.dataset.id === id) {
  323. domTarget = dom
  324. }
  325. }
  326. return domTarget
  327. },
  328. deleteBtn(item) {
  329. var typeCom = ['nav', 'goods-parse'] // 过滤肯定不要删除的组件
  330. return !(typeCom.indexOf(item.funcListItem.type) !== -1) && (!item.disabled || !(item.is_delete === false))
  331. },
  332. toTop(startTop = 100, endTop = 0, duration = 400) {
  333. var start = 0;
  334. var el = this.$refs.scrollbar;
  335. const frameFunc = (t) => {
  336. if (!start) {
  337. start = t
  338. }
  339. var time = t - start
  340. el.wrap.scrollTop = linear(time, startTop, endTop - startTop, duration)
  341. if (time > duration) {
  342. return false
  343. }
  344. requestAnimationFrame(frameFunc)
  345. };
  346. requestAnimationFrame(frameFunc)
  347. // 辅助函数
  348. /** 运动算法
  349. * t:动画已经消耗的时间
  350. * b:小球初始位置
  351. * c:小球的需要移动额距离
  352. * d:动画持续的总时间
  353. * */
  354. function linear(t, b, c, d) {
  355. return c * t / d + b;
  356. }
  357. },
  358. // 过滤头部元素、浮动元素、弹窗元素
  359. filterArr(item) {
  360. try {
  361. if (!item || !item.funcListItem) {
  362. return false;
  363. }
  364. // 过滤头部元素、浮动元素、弹窗元素
  365. if (item.funcListItem.is_top || this.filterFloatArr(item) || this.filterAlertArr(item)) {
  366. return false;
  367. }
  368. return true;
  369. } catch (error) {
  370. console.error(error);
  371. return false;
  372. }
  373. },
  374. // 过滤非弹窗元素
  375. filterAlertArr(item) {
  376. if (!item || !item.funcListItem || !item.funcListItem.type) {
  377. return false;
  378. }
  379. return this.alertArr.includes(item.funcListItem.type);
  380. },
  381. // 过滤非浮动元素
  382. filterFloatArr(item) {
  383. if (!item || !item.funcListItem || !item.funcListItem.type) {
  384. return false;
  385. }
  386. return this.floatArr.includes(item.funcListItem.type);
  387. },
  388. start(e) {
  389. this.duration = 300
  390. },
  391. onEnd(e) {
  392. this.$emit("change-move", {
  393. newIndex: e.newIndex,
  394. list: this.prevArr
  395. })
  396. this.duration = 0
  397. },
  398. getName(target) {
  399. try {
  400. return target ? target.funcListItem.type + "-preview" : ''
  401. } catch (e) {
  402. return ""
  403. }
  404. },
  405. computedItem(item, index) {
  406. return {
  407. 'dp-list-item': true,
  408. 'dp-active-item': this.activeIndex == index,
  409. 'dp-is-show': item.isShow
  410. }
  411. },
  412. computedFloatItem(item, index) {
  413. return {
  414. 'float-dp-list-item': true,
  415. 'float-dp-active-item': this.activeIndex == index,
  416. 'float-dp-is-show': item.isShow
  417. }
  418. },
  419. onClick(item, index) {
  420. console.log("onClick", item, index);
  421. this.$emit("select-item", item, index)
  422. },
  423. /**
  424. * 操作相关
  425. */
  426. copy() {
  427. if (this.operAuth("copy")) {
  428. return
  429. }
  430. this.$eventBus.$emit("diy-preview-copy")
  431. },
  432. deleteItem() {
  433. this.visible = false
  434. this.operateFn('delete')
  435. },
  436. operAuth(type) {
  437. var item = this.prevArr[this.activeIndex] || {
  438. funcListItem: {}
  439. }
  440. var typeCom = ['nav', 'nav-location','member-info','goods-info'] // 过滤肯定禁用的组件
  441. var boo = false
  442. if (item) {
  443. boo = (typeCom.indexOf(item.funcListItem.type) !== -1) || this.activeIndex === -1 || item.disabled === false;
  444. }
  445. // console.info(type,"type",item);
  446. var obj = {
  447. show: boo || item.is_show === false,
  448. up: boo || item.is_up === false,
  449. down: boo || item.is_down === false,
  450. copy: boo || item.is_copy === false,
  451. delete: boo || item.is_delete === false
  452. }
  453. return obj[type]
  454. },
  455. operAuthHideLength(){
  456. let arr = ["show","up","down","copy","delete"];
  457. let count = 0;
  458. let that = this;
  459. arr.forEach(v => {
  460. if(!that.operAuth(v) || that.buttonHide){
  461. count++;
  462. }
  463. })
  464. return count * 40;
  465. },
  466. operateFn(type, index) {
  467. // up - down - show - delete
  468. if (this.operAuth(type)) {
  469. return
  470. }
  471. this.$eventBus.$emit("diy-preview-operateFn", {
  472. type,
  473. index: this.activeIndex
  474. })
  475. },
  476. operateReplaceFn(type, index) {
  477. this.$eventBus.$emit("diy-preview-operateFn", {
  478. type,
  479. index: this.activeIndex
  480. })
  481. },
  482. setBg() {
  483. this.$eventBus.$emit("diy-back-set")
  484. },
  485. showLocationBtn(item) {
  486. let func_list = ['nav', 'nav-location'];
  487. return this.activeIndex == 0 && func_list.indexOf(item.funcListItem.type) > -1;
  488. }
  489. },
  490. });
  491. </script>
  492. <style>
  493. .dp-el-scrollbar {
  494. height: 100%;
  495. }
  496. /* TODO:后面适配手机套壳后再优化手机尺寸问题 */
  497. .dp-contain {
  498. position: relative;
  499. box-sizing: initial;
  500. display: flex;
  501. flex-direction: column;
  502. border: 1px solid #ddd;
  503. /* 按照 iPhone SE 尺寸 */
  504. margin: 20px auto;
  505. width: 375px;
  506. max-width: 375px;
  507. /* min-height: 667px; */
  508. /* max-height: 667px; */
  509. }
  510. .dp-header-placeholder {
  511. width: 100%;
  512. height: 44px;
  513. background-size: 100% 100%;
  514. z-index: 99;
  515. background: url("resources/img/decorate/nav/light1.png") no-repeat;
  516. }
  517. #float {
  518. position: absolute;
  519. top: 0;
  520. left: 0;
  521. right: 0;
  522. bottom: 0;
  523. pointer-events: none;
  524. margin-top: 88px;
  525. }
  526. .dp-nav-placeholder {
  527. position: relative;
  528. height: 44px;
  529. }
  530. .dp-list-item {
  531. position: relative;
  532. }
  533. .float-dp-list-item {
  534. /* position: relative; */
  535. float: left;
  536. pointer-events: auto;
  537. }
  538. .dp-list-item .dp-close,
  539. .float-dp-list-item .dp-close {
  540. display: none;
  541. }
  542. .dp-active-item:before,
  543. .float-dp-active-item .diy-solid-line:before {
  544. box-sizing: border-box;
  545. content: "";
  546. position: absolute;
  547. top: 0;
  548. left: 0;
  549. right: 0;
  550. bottom: 0;
  551. border: 2px solid var(--diy-theme);
  552. height: 100%;
  553. z-index: 100;
  554. pointer-events: none;
  555. cursor: move;
  556. }
  557. .dp-active-item .dp-close,
  558. .float-dp-active-item .dp-close {
  559. display: block;
  560. }
  561. .slide-right {
  562. position: absolute;
  563. width: 42px;
  564. height: 200px;
  565. top: 0;
  566. bottom: 0;
  567. left: 50%;
  568. background: #73767D;
  569. margin: auto 0 auto 220px;
  570. /* margin-left: ; */
  571. border-radius: 2px;
  572. z-index: 999;
  573. }
  574. .slide-right .iconfont-el {
  575. color: #fff;
  576. display: block;
  577. text-align: center;
  578. font-size: 24px;
  579. line-height: 40px;
  580. cursor: pointer;
  581. position: relative;
  582. }
  583. .slide-right .iconfont-el>p {
  584. display: none;
  585. }
  586. .dp-close {
  587. position: absolute;
  588. top: 0;
  589. right: 0;
  590. width: 16px;
  591. height: 16px;
  592. background-color: var(--diy-theme);
  593. color: #fff;
  594. font-size: 12px;
  595. text-align: center;
  596. border-bottom-left-radius: 40px;
  597. z-index: 99;
  598. }
  599. .dp-close .el-icon-close {
  600. transform: translate(2px, -2px);
  601. }
  602. .flip-list-move {
  603. transition: transform 1s;
  604. }
  605. .dp-hover:before {
  606. box-sizing: border-box;
  607. content: "";
  608. position: absolute;
  609. top: 0;
  610. left: 0;
  611. right: 0;
  612. bottom: 0;
  613. border: 1px dashed var(--diy-theme);
  614. height: 100%;
  615. z-index: 100;
  616. pointer-events: none;
  617. cursor: move;
  618. display: none;
  619. }
  620. .dp-list-item:hover .dp-hover:before,
  621. .float-dp-list-item .diy-solid-line:hover .dp-hover:before {
  622. display: block;
  623. }
  624. .mask {
  625. position: absolute;
  626. top: 0;
  627. left: 0;
  628. right: 0;
  629. bottom: 0;
  630. background-color: rgba(0, 0, 0, 0.2);
  631. }
  632. .show {
  633. position: absolute;
  634. top: 0;
  635. left: 0;
  636. right: 0;
  637. bottom: 0;
  638. background-color: rgba(0, 0, 0, 0.2);
  639. z-index: 10;
  640. }
  641. .show div {
  642. position: absolute;
  643. top: 0;
  644. left: 0;
  645. right: 0;
  646. bottom: 0;
  647. width: 68px;
  648. height: 24px;
  649. line-height: 24px;
  650. margin: auto;
  651. text-align: center;
  652. background-color: #000;
  653. border-radius: 50px;
  654. color: #fff;
  655. }
  656. .dp-el-scrollbar .sortable-chosen {
  657. float: none !important;
  658. width: 100% !important;
  659. background: #fff;
  660. }
  661. .scrollbar-container {
  662. min-height: 623px;
  663. max-height: 623px;
  664. overflow-x: scroll;
  665. }
  666. #diy-tes,
  667. .drag-contain {
  668. min-height: 100%;
  669. }
  670. .hide-scrollbar {
  671. overflow: -moz-scrollbars-none;
  672. -ms-overflow-style: none;
  673. scrollbar-width: none; /* Firefox */
  674. }
  675. .hide-scrollbar::-webkit-scrollbar {
  676. display: none; /* Safari 和 Chrome */
  677. }
  678. </style>