diy-preview.php 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710
  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. try {
  198. // 复制数组到 prevArr
  199. this.prevArr = [...newValue];
  200. // 设置导航栏组件数据
  201. this.navComponent = newValue[0];
  202. // 筛选头部置顶组件
  203. this.headerArr = newValue.filter(item => item.funcListItem?.is_top);
  204. } catch (error) {
  205. }
  206. }
  207. })
  208. },
  209. deep: true,
  210. immediate: true
  211. },
  212. activeIndex(newVal, oldVal) {
  213. if (newVal === oldVal) return false
  214. var el = this.$refs.scrollbar.wrap; // 滚动容器
  215. var currentTop = this.$refs.scrollbar.wrap.scrollTop;
  216. var containHeight = el.offsetHeight;
  217. var halfHeight = containHeight / 2 - 200;
  218. clearTimeout(this.timerID)
  219. this.timerID = setTimeout(() => {
  220. this.$nextTick(() => {
  221. var itemDom = this.getTargetDom(newVal)
  222. if (!itemDom) {
  223. return
  224. }
  225. var clientTop = itemDom.offsetTop - currentTop;
  226. if (clientTop < halfHeight) { // 往下
  227. var addTop = halfHeight - clientTop
  228. this.toTop(currentTop, currentTop - addTop)
  229. } else { // 往上
  230. this.toTop(currentTop, currentTop + clientTop - halfHeight)
  231. }
  232. })
  233. }, 200);
  234. }
  235. },
  236. data() {
  237. return {
  238. static_img_prefix: '<?= Yii::getAlias('@attachurl') ?>'+'/static',
  239. visible: false,
  240. // 导航栏组件
  241. navComponent: {},
  242. // 头部组件
  243. headerArr: [],
  244. // 所有装修预览组件
  245. prevArr: [],
  246. // 可以显示的浮动组件
  247. floatArr: ["order-broadcast","bg-music"],
  248. // 可以显示的弹窗组件
  249. alertArr: ['popup-advertisement'],
  250. duration: 0,
  251. timerID: 0
  252. };
  253. },
  254. computed: {
  255. content() {
  256. var item = this.list[this.activeIndex]
  257. return item && item.isShow ? "隐藏" : "显示"
  258. },
  259. mainStyle() {
  260. if (!this.prevArr[0]) {
  261. return {}
  262. }
  263. var mainPage = this.prevArr[0].data.mainPage || {}
  264. var style = {
  265. backgroundSize: "100%",
  266. backgroundRepeat: "no-repeat",
  267. backgroundPosition: "left top",
  268. backgroundColor: mainPage.defColor
  269. } // 基类
  270. if (mainPage.imgUrl) {
  271. let backgroundImageUrl = mainPage.imgUrl;
  272. if(mainPage.imgUrl.indexOf('http')==-1){
  273. backgroundImageUrl = this.static_img_prefix+mainPage.imgUrl
  274. }
  275. style.backgroundImage = `url(${backgroundImageUrl})`
  276. }
  277. return style
  278. },
  279. contentStyle() {
  280. try {
  281. if (!this.prevArr[0]) {
  282. return {}
  283. }
  284. const mainPage = this.prevArr[0].data.mainPage || {}
  285. const {
  286. paddingTop,
  287. paddingBottom,
  288. paddingLeft,
  289. paddingRight
  290. } = mainPage
  291. return {
  292. paddingTop,
  293. paddingBottom,
  294. paddingLeft,
  295. paddingRight
  296. }
  297. } catch (error) {
  298. return {}
  299. }
  300. }
  301. },
  302. methods: {
  303. getTargetDom(newVal) {
  304. // 通过id查询对应dom - drag-scroll类名必须对应prevArr顺序
  305. const domList = document.getElementsByClassName("drag-scroll");
  306. const item = this.prevArr[newVal]
  307. const id = item && item.id
  308. let domTarget = null;
  309. for (let index = 0; index < domList.length; index++) {
  310. let dom = domList[index];
  311. if (dom.dataset.id === id) {
  312. domTarget = dom
  313. }
  314. }
  315. return domTarget
  316. },
  317. deleteBtn(item) {
  318. var typeCom = ['nav', 'goods-parse'] // 过滤肯定不要删除的组件
  319. return !(typeCom.indexOf(item.funcListItem.type) !== -1) && (!item.disabled || !(item.is_delete === false))
  320. },
  321. toTop(startTop = 100, endTop = 0, duration = 400) {
  322. var start = 0;
  323. var el = this.$refs.scrollbar;
  324. const frameFunc = (t) => {
  325. if (!start) {
  326. start = t
  327. }
  328. var time = t - start
  329. el.wrap.scrollTop = linear(time, startTop, endTop - startTop, duration)
  330. if (time > duration) {
  331. return false
  332. }
  333. requestAnimationFrame(frameFunc)
  334. };
  335. requestAnimationFrame(frameFunc)
  336. // 辅助函数
  337. /** 运动算法
  338. * t:动画已经消耗的时间
  339. * b:小球初始位置
  340. * c:小球的需要移动额距离
  341. * d:动画持续的总时间
  342. * */
  343. function linear(t, b, c, d) {
  344. return c * t / d + b;
  345. }
  346. },
  347. // 过滤头部元素、浮动元素、弹窗元素
  348. filterArr(item) {
  349. try {
  350. if (!item || !item.funcListItem) {
  351. return false;
  352. }
  353. // 过滤头部元素、浮动元素、弹窗元素
  354. if (item.funcListItem.is_top || this.filterFloatArr(item) || this.filterAlertArr(item)) {
  355. return false;
  356. }
  357. return true;
  358. } catch (error) {
  359. console.error(error);
  360. return false;
  361. }
  362. },
  363. // 过滤非弹窗元素
  364. filterAlertArr(item) {
  365. if (!item || !item.funcListItem || !item.funcListItem.type) {
  366. return false;
  367. }
  368. return this.alertArr.includes(item.funcListItem.type);
  369. },
  370. // 过滤非浮动元素
  371. filterFloatArr(item) {
  372. if (!item || !item.funcListItem || !item.funcListItem.type) {
  373. return false;
  374. }
  375. return this.floatArr.includes(item.funcListItem.type);
  376. },
  377. start(e) {
  378. this.duration = 300
  379. },
  380. onEnd(e) {
  381. this.$emit("change-move", {
  382. newIndex: e.newIndex,
  383. list: this.prevArr
  384. })
  385. this.duration = 0
  386. },
  387. getName(target) {
  388. try {
  389. return target ? target.funcListItem.type + "-preview" : ''
  390. } catch (e) {
  391. return ""
  392. }
  393. },
  394. computedItem(item, index) {
  395. return {
  396. 'dp-list-item': true,
  397. 'dp-active-item': this.activeIndex == index,
  398. 'dp-is-show': item.isShow
  399. }
  400. },
  401. computedFloatItem(item, index) {
  402. return {
  403. 'float-dp-list-item': true,
  404. 'float-dp-active-item': this.activeIndex == index,
  405. 'float-dp-is-show': item.isShow
  406. }
  407. },
  408. onClick(item, index) {
  409. this.$emit("select-item", item, index)
  410. },
  411. /**
  412. * 操作相关
  413. */
  414. copy() {
  415. if (this.operAuth("copy")) {
  416. return
  417. }
  418. this.$eventBus.$emit("diy-preview-copy")
  419. },
  420. deleteItem() {
  421. this.visible = false
  422. this.operateFn('delete')
  423. },
  424. operAuth(type) {
  425. var item = this.prevArr[this.activeIndex] || {
  426. funcListItem: {}
  427. }
  428. var typeCom = ['nav', 'nav-location','member-info','goods-info'] // 过滤肯定禁用的组件
  429. var boo = false
  430. if (item) {
  431. boo = (typeCom.indexOf(item.funcListItem.type) !== -1) || this.activeIndex === -1 || item.disabled === false;
  432. }
  433. // console.info(type,"type",item);
  434. var obj = {
  435. show: boo || item.is_show === false,
  436. up: boo || item.is_up === false,
  437. down: boo || item.is_down === false,
  438. copy: boo || item.is_copy === false,
  439. delete: boo || item.is_delete === false
  440. }
  441. return obj[type]
  442. },
  443. operAuthHideLength(){
  444. let arr = ["show","up","down","copy","delete"];
  445. let count = 0;
  446. let that = this;
  447. arr.forEach(v => {
  448. if(!that.operAuth(v) || that.buttonHide){
  449. count++;
  450. }
  451. })
  452. return count * 40;
  453. },
  454. operateFn(type, index) {
  455. // up - down - show - delete
  456. if (this.operAuth(type)) {
  457. return
  458. }
  459. this.$eventBus.$emit("diy-preview-operateFn", {
  460. type,
  461. index: this.activeIndex
  462. })
  463. },
  464. operateReplaceFn(type, index) {
  465. this.$eventBus.$emit("diy-preview-operateFn", {
  466. type,
  467. index: this.activeIndex
  468. })
  469. },
  470. setBg() {
  471. this.$eventBus.$emit("diy-back-set")
  472. },
  473. showLocationBtn(item) {
  474. let func_list = ['nav', 'nav-location'];
  475. return this.activeIndex == 0 && func_list.indexOf(item.funcListItem.type) > -1;
  476. }
  477. },
  478. });
  479. </script>
  480. <style>
  481. .dp-el-scrollbar {
  482. height: 100%;
  483. }
  484. /* TODO:后面适配手机套壳后再优化手机尺寸问题 */
  485. .dp-contain {
  486. position: relative;
  487. box-sizing: initial;
  488. display: flex;
  489. flex-direction: column;
  490. border: 1px solid #ddd;
  491. /* 按照 iPhone SE 尺寸 */
  492. margin: 20px auto;
  493. width: 375px;
  494. max-width: 375px;
  495. /* min-height: 667px; */
  496. /* max-height: 667px; */
  497. }
  498. .dp-header-placeholder {
  499. width: 100%;
  500. height: 44px;
  501. background-size: 100% 100%;
  502. z-index: 99;
  503. background: url("resources/img/decorate/nav/light1.png") no-repeat;
  504. }
  505. #float {
  506. position: absolute;
  507. top: 0;
  508. left: 0;
  509. right: 0;
  510. bottom: 0;
  511. pointer-events: none;
  512. margin-top: 88px;
  513. }
  514. .dp-nav-placeholder {
  515. position: relative;
  516. height: 44px;
  517. }
  518. .dp-list-item {
  519. position: relative;
  520. }
  521. .float-dp-list-item {
  522. /* position: relative; */
  523. float: left;
  524. pointer-events: auto;
  525. }
  526. .dp-list-item .dp-close,
  527. .float-dp-list-item .dp-close {
  528. display: none;
  529. }
  530. .dp-active-item:before,
  531. .float-dp-active-item .diy-solid-line:before {
  532. box-sizing: border-box;
  533. content: "";
  534. position: absolute;
  535. top: 0;
  536. left: 0;
  537. right: 0;
  538. bottom: 0;
  539. border: 2px solid var(--diy-theme);
  540. height: 100%;
  541. z-index: 100;
  542. pointer-events: none;
  543. cursor: move;
  544. }
  545. .dp-active-item .dp-close,
  546. .float-dp-active-item .dp-close {
  547. display: block;
  548. }
  549. .slide-right {
  550. position: absolute;
  551. width: 42px;
  552. height: 200px;
  553. top: 0;
  554. bottom: 0;
  555. left: 50%;
  556. background: #73767D;
  557. margin: auto 0 auto 220px;
  558. /* margin-left: ; */
  559. border-radius: 2px;
  560. z-index: 999;
  561. }
  562. .slide-right .iconfont-el {
  563. color: #fff;
  564. display: block;
  565. text-align: center;
  566. font-size: 24px;
  567. line-height: 40px;
  568. cursor: pointer;
  569. position: relative;
  570. }
  571. .slide-right .iconfont-el>p {
  572. display: none;
  573. }
  574. .dp-close {
  575. position: absolute;
  576. top: 0;
  577. right: 0;
  578. width: 16px;
  579. height: 16px;
  580. background-color: var(--diy-theme);
  581. color: #fff;
  582. font-size: 12px;
  583. text-align: center;
  584. border-bottom-left-radius: 40px;
  585. z-index: 99;
  586. }
  587. .dp-close .el-icon-close {
  588. transform: translate(2px, -2px);
  589. }
  590. .flip-list-move {
  591. transition: transform 1s;
  592. }
  593. .dp-hover:before {
  594. box-sizing: border-box;
  595. content: "";
  596. position: absolute;
  597. top: 0;
  598. left: 0;
  599. right: 0;
  600. bottom: 0;
  601. border: 1px dashed var(--diy-theme);
  602. height: 100%;
  603. z-index: 100;
  604. pointer-events: none;
  605. cursor: move;
  606. display: none;
  607. }
  608. .dp-list-item:hover .dp-hover:before,
  609. .float-dp-list-item .diy-solid-line:hover .dp-hover:before {
  610. display: block;
  611. }
  612. .mask {
  613. position: absolute;
  614. top: 0;
  615. left: 0;
  616. right: 0;
  617. bottom: 0;
  618. background-color: rgba(0, 0, 0, 0.2);
  619. }
  620. .show {
  621. position: absolute;
  622. top: 0;
  623. left: 0;
  624. right: 0;
  625. bottom: 0;
  626. background-color: rgba(0, 0, 0, 0.2);
  627. z-index: 10;
  628. }
  629. .show div {
  630. position: absolute;
  631. top: 0;
  632. left: 0;
  633. right: 0;
  634. bottom: 0;
  635. width: 68px;
  636. height: 24px;
  637. line-height: 24px;
  638. margin: auto;
  639. text-align: center;
  640. background-color: #000;
  641. border-radius: 50px;
  642. color: #fff;
  643. }
  644. .dp-el-scrollbar .sortable-chosen {
  645. float: none !important;
  646. width: 100% !important;
  647. background: #fff;
  648. }
  649. .scrollbar-container {
  650. min-height: 623px;
  651. max-height: 623px;
  652. overflow-x: scroll;
  653. }
  654. #diy-tes,
  655. .drag-contain {
  656. min-height: 100%;
  657. }
  658. .hide-scrollbar {
  659. overflow: -moz-scrollbars-none;
  660. -ms-overflow-style: none;
  661. scrollbar-width: none; /* Firefox */
  662. }
  663. .hide-scrollbar::-webkit-scrollbar {
  664. display: none; /* Safari 和 Chrome */
  665. }
  666. </style>