PageDesignTop.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717
  1. <template>
  2. <div class="page-top-setting-wrap">
  3. <div class="logo-wrap item-wrap">
  4. <img
  5. class="menu-img"
  6. src="../BigScreenDesign/images/app.png"
  7. alt="返回"
  8. @click="goBackManage"
  9. >
  10. <span class="logo-text name-span">{{ pageInfo.name }}</span>
  11. </div>
  12. <div class="head-btn-group">
  13. <span style="margin-right:8px;font-size:12px">缩放</span>
  14. <el-input-number
  15. ref="zoomInput"
  16. class="bs-el-input-number"
  17. style="margin-right:10px"
  18. :value="zoom"
  19. :min="1"
  20. label="描述文字"
  21. :controls="true"
  22. @change="changeZoom"
  23. />
  24. <CusBtn
  25. :loading="saveAndPreviewLoading"
  26. @click.native="changeZoom('auto')"
  27. >
  28. 自适应
  29. </CusBtn>
  30. <el-dropdown
  31. trigger="click"
  32. class="align-list-dropdown"
  33. >
  34. <CusBtn type="primary">
  35. 对齐方式<i class="el-icon-arrow-down el-icon--right" />
  36. </CusBtn>
  37. <el-dropdown-menu
  38. slot="dropdown"
  39. class="align-dropdown-menu"
  40. >
  41. <el-dropdown-item
  42. v-for="(mode, index) in alignList"
  43. :key="mode.value"
  44. @click.native="setAlign(mode.value)"
  45. >
  46. <icon-svg
  47. style="padding:3px 8px"
  48. :name="iconList[index]"
  49. />
  50. <span style="color: #bcc9d4">{{ mode.label }}</span>
  51. </el-dropdown-item>
  52. </el-dropdown-menu>
  53. </el-dropdown>
  54. <CusBtn
  55. :loading="saveAndPreviewLoading"
  56. @click.native="designAssign()"
  57. >
  58. 设计分工
  59. </CusBtn>
  60. <CusBtn @click.native="showHostory">
  61. 历史操作
  62. </CusBtn>
  63. <CusBtn
  64. :disabled="undoDisabled"
  65. @click.native="undo(true)"
  66. >
  67. <i class="iconfont-bigscreen icon-jiantouqianjin icon-reverse" />
  68. </CusBtn>
  69. <CusBtn
  70. :disabled="redoDisabled"
  71. @click.native="undo(false)"
  72. >
  73. <i class="iconfont-bigscreen icon-jiantouqianjin" />
  74. </CusBtn>
  75. <CusBtn
  76. :loading="saveAndPreviewLoading"
  77. @click.native="createdImg()"
  78. >
  79. 生成图片
  80. </CusBtn>
  81. <CusBtn
  82. :loading="saveAndPreviewLoading"
  83. @click.native="execRun()"
  84. >
  85. 预览
  86. </CusBtn>
  87. <CusBtn
  88. :loading="saveLoading"
  89. @click="save('saveLoading')"
  90. >
  91. 保存
  92. </CusBtn>
  93. <CusBtn @click="empty">
  94. 清空
  95. </CusBtn>
  96. <CusBtn @click="showPageInfo">
  97. 设置
  98. </CusBtn>
  99. <CusBtn @click="updateRightVisiable">
  100. <i
  101. class="iconfont-bigscreen"
  102. :class="rightFold ? 'icon-zhankaicaidan' : 'icon-shouqicaidan'"
  103. />
  104. </CusBtn>
  105. </div>
  106. <ChooseTemplateDialog
  107. ref="ChooseTemplateDialog"
  108. :has-create="false"
  109. :page-info="pageInfo"
  110. @replaceItByTemplate="replaceItByTemplate"
  111. />
  112. <AssignDialog ref="AssignDialog" />
  113. <HistoryList ref="HistoryList" />
  114. </div>
  115. </template>
  116. <script>
  117. import { EventBus } from 'data-room-ui/js/utils/eventBus'
  118. import { toJpeg, toPng } from 'html-to-image'
  119. import { mapMutations, mapActions, mapState } from 'vuex'
  120. import { saveScreen } from 'data-room-ui/js/api/bigScreenApi'
  121. import ChooseTemplateDialog from 'data-room-ui/BigScreenManagement/ChooseTemplateDialog.vue'
  122. // import _ from 'lodash'
  123. import cloneDeep from 'lodash/cloneDeep'
  124. import uniqBy from 'lodash/uniqBy'
  125. import { stringifyObjectFunctions } from 'data-room-ui/js/utils/evalFunctions'
  126. import AssignDialog from 'data-room-ui/BigScreenDesign/AssignDialog/index.vue'
  127. import HistoryList from 'data-room-ui/BigScreenDesign/HistoryList/index.vue'
  128. import CusBtn from './BtnLoading'
  129. import icons from 'data-room-ui/assets/images/alignIcon/export'
  130. import IconSvg from 'data-room-ui/SvgIcon'
  131. import {
  132. showSize,
  133. dataURLtoBlob,
  134. translateBlobToBase64
  135. } from 'data-room-ui/js/utils/compressImg'
  136. import * as imageConversion from 'image-conversion'
  137. export default {
  138. name: 'PageTopSetting',
  139. components: {
  140. IconSvg,
  141. ChooseTemplateDialog,
  142. AssignDialog,
  143. CusBtn,
  144. HistoryList
  145. },
  146. props: {
  147. code: {
  148. type: String,
  149. default: ''
  150. },
  151. rightFold: {
  152. type: Boolean,
  153. default: false
  154. }
  155. },
  156. data () {
  157. return {
  158. iconList: icons.getNameList(),
  159. alignList: [
  160. {
  161. label: '左侧对齐',
  162. value: 'left'
  163. },
  164. {
  165. label: '居中对齐',
  166. value: 'center'
  167. },
  168. {
  169. label: '右侧对齐',
  170. value: 'right'
  171. },
  172. {
  173. label: '顶部对齐',
  174. value: 'top'
  175. },
  176. {
  177. label: '中部对齐',
  178. value: 'middle'
  179. },
  180. {
  181. label: '底部对齐',
  182. value: 'bottom'
  183. },
  184. {
  185. label: '水平均分',
  186. value: 'levelAround'
  187. },
  188. {
  189. label: '垂直均分',
  190. value: 'verticalAround'
  191. }
  192. ],
  193. initialCoverPicture: '',
  194. appInfo: '',
  195. saveLoading: false,
  196. createdImgLoading: false,
  197. saveAndPreviewLoading: false
  198. }
  199. },
  200. computed: {
  201. ...mapState({
  202. pageInfo: (state) => state.bigScreen.pageInfo,
  203. timelineStore: (state) => state.bigScreen.timelineStore,
  204. currentTimeLine: (state) => state.bigScreen.currentTimeLine,
  205. activeCodes: state => state.bigScreen.activeCodes,
  206. zoom: (state) => state.bigScreen.zoom
  207. }),
  208. pageCode () {
  209. return this.$route.query.code || this.code
  210. },
  211. undoDisabled () {
  212. return Boolean(this.currentTimeLine <= 1)
  213. },
  214. redoDisabled () {
  215. return Boolean(
  216. !this.timelineStore?.length ||
  217. (
  218. this.currentTimeLine &&
  219. this.currentTimeLine === this.timelineStore?.length
  220. )
  221. )
  222. }
  223. },
  224. mounted () {
  225. this.initialCoverPicture = this.pageInfo.coverPicture || ''
  226. this.$refs.zoomInput.$el.addEventListener('mousewheel', this.handleMouseWheel)
  227. },
  228. beforeDestroy () {
  229. this.$refs.zoomInput.$el.removeEventListener('mousewheel', this.handleMouseWheel)
  230. },
  231. methods: {
  232. ...mapActions({
  233. initLayout: 'bigScreen/initLayout'
  234. }),
  235. ...mapMutations({
  236. changeActiveCode: 'bigScreen/changeActiveCode',
  237. changeActiveItem: 'bigScreen/changeActiveItem',
  238. changePageInfo: 'bigScreen/changePageInfo',
  239. undoTimeLine: 'bigScreen/undoTimeLine',
  240. saveTimeLine: 'bigScreen/saveTimeLine'
  241. }),
  242. handleMouseWheel () {
  243. const delta = Math.sign(event.deltaY)
  244. // 限制最小缩放比例为10
  245. if (this.zoom <= 10 && delta > 0) return
  246. event.preventDefault()
  247. const zoom1 = this.zoom - delta
  248. this.$emit('changeZoom', zoom1)
  249. },
  250. changeZoom (val) {
  251. this.$emit('changeZoom', val)
  252. },
  253. setAlign (command) {
  254. const pageInfo = cloneDeep(this.pageInfo)
  255. // 获取所有选中的组件
  256. let activeChartList = pageInfo.chartList.filter((chart) => {
  257. return this.activeCodes.some(code => (code === chart.code))
  258. })
  259. // 找到选中组件内的xy最大最小值
  260. const maxXW = Math.max.apply(Math, activeChartList.map(item => { return item.x + item.w }))
  261. const maxYH = Math.max.apply(Math, activeChartList.map(item => { return item.y + item.h }))
  262. let maxX = Math.max.apply(Math, activeChartList.map(item => { return item.x }))
  263. let maxY = Math.max.apply(Math, activeChartList.map(item => { return item.y }))
  264. const minX = Math.min.apply(Math, activeChartList.map(item => { return item.x }))
  265. const minY = Math.min.apply(Math, activeChartList.map(item => { return item.y }))
  266. const centerW = maxXW - minX
  267. const centerH = maxYH - minY
  268. switch (command) {
  269. case 'left':
  270. activeChartList.forEach((chart) => {
  271. chart.x = minX
  272. })
  273. break
  274. case 'center':
  275. // eslint-disable-next-line no-case-declarations
  276. activeChartList.forEach((chart) => {
  277. chart.x = (centerW - chart.w) / 2 + minX
  278. })
  279. break
  280. case 'right':
  281. activeChartList.forEach((chart) => {
  282. chart.x = maxXW - chart.w
  283. })
  284. break
  285. case 'top':
  286. activeChartList.forEach((chart) => {
  287. chart.y = minY
  288. })
  289. break
  290. case 'middle':
  291. activeChartList.forEach((chart) => {
  292. chart.y = (centerH - chart.h) / 2 + minY
  293. })
  294. break
  295. case 'bottom':
  296. activeChartList.forEach((chart) => {
  297. chart.y = maxYH - chart.h
  298. })
  299. break
  300. case 'levelAround':
  301. // 先让数组根据x的属性进行排序
  302. activeChartList = activeChartList.sort(this.compare('x'))
  303. // eslint-disable-next-line no-case-declarations
  304. const minXW = activeChartList[0].x + activeChartList[0].w
  305. maxX = Math.max.apply(Math, activeChartList.map(item => { return item.x }))
  306. // 中间总的宽度
  307. // eslint-disable-next-line no-case-declarations
  308. let totalW = 0
  309. for (let i = 1; i < activeChartList.length - 1; i++) {
  310. totalW = totalW + activeChartList[i].w
  311. }
  312. // 中间剩余的空格
  313. // eslint-disable-next-line no-case-declarations
  314. const padding = (maxX - minXW - totalW) / (activeChartList.length - 1)
  315. // eslint-disable-next-line no-case-declarations
  316. let useW = 0
  317. for (let i = 1; i < activeChartList.length - 1; i++) {
  318. activeChartList[i].x = minXW + padding * i + useW
  319. useW = useW + activeChartList[i].w
  320. }
  321. break
  322. case 'verticalAround':
  323. // 先让数组根据y的属性进行排序
  324. activeChartList = activeChartList.sort(this.compare('y'))
  325. // eslint-disable-next-line no-case-declarations
  326. const minYH = activeChartList[0].y + activeChartList[0].h
  327. maxY = Math.max.apply(Math, activeChartList.map(item => { return item.y }))
  328. // eslint-disable-next-line no-case-declarations
  329. let totalH = 0
  330. for (let i = 1; i < activeChartList.length - 1; i++) {
  331. totalH = totalH + activeChartList[i].h
  332. }
  333. // eslint-disable-next-line no-case-declarations
  334. const paddingBottom = (maxY - minYH - totalH) / (activeChartList.length - 1)
  335. // eslint-disable-next-line no-case-declarations
  336. let useH = 0
  337. for (let i = 1; i < activeChartList.length - 1; i++) {
  338. activeChartList[i].y = minYH + paddingBottom * i + useH
  339. useH = useH + activeChartList[i].h
  340. }
  341. break
  342. }
  343. pageInfo.chartList = [...pageInfo.chartList, ...activeChartList]
  344. pageInfo.chartList = uniqBy(pageInfo.chartList, 'code')
  345. this.changePageInfo(pageInfo)
  346. },
  347. compare (property) {
  348. return function (obj1, obj2) {
  349. const value1 = obj1[property]
  350. const value2 = obj2[property]
  351. return value1 - value2 // 升序
  352. }
  353. },
  354. goBackManage () {
  355. this.$confirm('确定返回主页面吗?未保存的配置将会丢失。', '提示', {
  356. distinguishCancelAndClose: true,
  357. confirmButtonText: '保存后离开页面',
  358. cancelButtonText: '离开页面',
  359. cancelButtonClass: 'cancel-btn',
  360. type: 'warning',
  361. customClass: 'bs-el-message-box'
  362. }).then(async () => {
  363. const flag = await this.save()
  364. if (flag) {
  365. await this.backManagement()
  366. }
  367. }).catch((action) => {
  368. if (action === 'cancel') {
  369. this.backManagement()
  370. }
  371. })
  372. },
  373. backManagement () {
  374. const data = { componentsManagementType: 'component' }
  375. this.$router.app.$options.globalData = data // 将数据存储在全局变量中
  376. this.$router.push({ path: this.pageInfo.type === 'component' ? (window.BS_CONFIG?.routers?.componentUrl || '/big-screen-components') : (window.BS_CONFIG?.routers?.pageManagementUrl || '/home') })
  377. },
  378. undo (isUndo) {
  379. this.undoTimeLine(isUndo)
  380. },
  381. // 清空
  382. empty () {
  383. this.changeActiveCode('')
  384. this.$emit('empty')
  385. },
  386. // 预览
  387. async execRun () {
  388. this.save('preview').then((res) => {
  389. if (res) {
  390. this.preview(res)
  391. }
  392. })
  393. },
  394. // 预览
  395. preview (previewCode) {
  396. const { href } = this.$router.resolve({
  397. path: window.BS_CONFIG?.routers?.previewUrl || '/big-screen/preview',
  398. query: {
  399. code: previewCode || this.pageCode
  400. }
  401. })
  402. window.open(href, '_blank')
  403. },
  404. // 保存时判断tabs组件里面的元素是否符合要求
  405. validateTabs (chartList) {
  406. let isValid = true
  407. if (chartList.length) {
  408. for (const chart of chartList) {
  409. if (chart.type === 'chartTab' && chart.customize.tabList.length !== 0) {
  410. for (const tab of chart.customize.tabList) {
  411. if ((!tab.name) || (!tab.chartCode)) {
  412. isValid = false
  413. return isValid
  414. }
  415. }
  416. }
  417. }
  418. }
  419. return isValid
  420. },
  421. // 保存
  422. async save (type, hasPageTemplateId = false) {
  423. const pageInfo = cloneDeep(this.handleSaveData())
  424. // 保存时判断tabs组件里面的元素是否符合要求
  425. const flag = this.validateTabs(pageInfo?.chartList)
  426. if (!flag) {
  427. this.$message.warning('请完成tab项配置')
  428. return false
  429. }
  430. // 保存页面
  431. try {
  432. if (!hasPageTemplateId) {
  433. delete pageInfo.pageTemplateId
  434. }
  435. if (type === 'preview') {
  436. pageInfo.isPreview = true
  437. const res = await saveScreen(pageInfo)
  438. return res
  439. } else {
  440. pageInfo.isPreview = false
  441. this.saveLoading = true
  442. const node = document.querySelector('.render-theme-wrap')
  443. let dataUrl = ''
  444. try {
  445. dataUrl = await toJpeg(node, { quality: 0.2 })
  446. } catch (error) {
  447. console.info(error)
  448. }
  449. if (dataUrl) {
  450. if (showSize(dataUrl) > 200) {
  451. const url = dataURLtoBlob(dataUrl)
  452. // 压缩到500KB,这里的500就是要压缩的大小,可自定义
  453. const imgRes = await imageConversion.compressAccurately(url, {
  454. size: 200, // 图片大小压缩到100kb
  455. width: 1280, // 宽度压缩到1280
  456. height: 720 // 高度压缩到720
  457. })
  458. const base64 = await translateBlobToBase64(imgRes)
  459. pageInfo.coverPicture = base64.result
  460. } else {
  461. pageInfo.coverPicture = dataUrl
  462. }
  463. } else {
  464. this.$message.warning('保存封面失败,将使用上次保存的封面')
  465. pageInfo.coverPicture = this.initialCoverPicture
  466. }
  467. const res = await saveScreen(pageInfo)
  468. this.$message.success('保存成功')
  469. return res
  470. }
  471. } catch (error) {
  472. console.error(error)
  473. this.saveLoading = false
  474. throw error
  475. } finally {
  476. this.saveLoading = false
  477. }
  478. },
  479. goBack (path) {
  480. this.$router.push({
  481. path: `/${path}`
  482. })
  483. },
  484. // 得到模板列表
  485. getTemplateList (type) {
  486. this.$nextTick(() => {
  487. this.$refs.ChooseTemplateDialog.init(undefined, type)
  488. })
  489. },
  490. // 选择模版后覆盖配置
  491. selectTemplate (template) {
  492. this.pageInfo.pageTemplateId = template.id
  493. this.save('saveLoading', true).then(() => {
  494. this.initLayout(this.pageCode)
  495. })
  496. },
  497. replaceItByTemplate (config) {
  498. this.changePageInfo(config)
  499. },
  500. // 处理保存数据
  501. handleSaveData () {
  502. const pageInfo = cloneDeep(this.pageInfo)
  503. const chartList = cloneDeep(this.pageInfo.chartList)
  504. pageInfo.pageConfig.cacheDataSets =
  505. pageInfo.pageConfig.cacheDataSets?.map((cache) => ({
  506. name: cache.name,
  507. dataSetId: cache.dataSetId
  508. })) || []
  509. const newChartList = chartList?.map((chart) => {
  510. // 如果是自定义组件,需要将option转换为json字符串,因为其中可能有函数
  511. if (['customComponent', 'remoteComponent', 'echartsComponent'].includes(chart.type)) {
  512. // chart.option.data = []
  513. chart.option = stringifyObjectFunctions(chart.option)
  514. }
  515. return chart
  516. })
  517. return cloneDeep({
  518. ...this.pageInfo,
  519. chartList: newChartList
  520. })
  521. },
  522. updateRightVisiable () {
  523. this.$emit('updateRightVisiable', !this.rightFold)
  524. },
  525. showPageInfo () {
  526. this.$emit('showPageInfo')
  527. },
  528. designAssign () {
  529. this.$refs.AssignDialog.init()
  530. },
  531. showHostory () {
  532. this.$refs.HistoryList.init()
  533. },
  534. createdImg () {
  535. this.saveAndPreviewLoading = true
  536. // 暂停跑马灯动画
  537. EventBus.$emit('stopMarquee')
  538. const node = document.querySelector('.render-theme-wrap')
  539. toPng(node)
  540. .then((dataUrl) => {
  541. const link = document.createElement('a')
  542. link.download = `${this.pageInfo.name}.png`
  543. link.href = dataUrl
  544. link.click()
  545. link.addEventListener('click', () => {
  546. link.remove()
  547. })
  548. this.saveAndPreviewLoading = false
  549. // 恢复跑马灯动画
  550. EventBus.$emit('startMarquee')
  551. })
  552. .catch(() => {
  553. this.$message.warning('出现未知错误,请重试')
  554. this.saveAndPreviewLoading = false
  555. })
  556. }
  557. }
  558. }
  559. </script>
  560. <style lang="scss" scoped>
  561. @import '../BigScreenDesign/fonts/iconfont.css';
  562. .default-layout-box {
  563. display: flex;
  564. flex-wrap: wrap;
  565. .default-layout-item {
  566. cursor: pointer;
  567. width: 42%;
  568. margin: 9px;
  569. display: flex;
  570. flex-direction: column;
  571. align-items: center;
  572. .component-name {
  573. font-size: 12px;
  574. }
  575. .sampleImg {
  576. margin: 0 auto;
  577. width: 102px;
  578. height: 73px;
  579. display: block;
  580. }
  581. .img_dispaly {
  582. margin: 0 auto;
  583. text-align: center;
  584. width: 100px;
  585. height: 70px;
  586. line-height: 70px;
  587. background-color: #d7d7d7;
  588. color: #999;
  589. }
  590. .demonstration {
  591. text-align: center;
  592. }
  593. }
  594. .default-layout-item:hover {
  595. cursor: pointer;
  596. }
  597. ::v-deep .el-radio__label {
  598. display: none;
  599. }
  600. }
  601. .page-top-setting-wrap {
  602. height: 40px;
  603. background-color: var(--bs-background-2);
  604. display: flex;
  605. align-items: center;
  606. justify-content: space-between;
  607. position: relative;
  608. color: #ffffff;
  609. padding: 0 5px;
  610. .app-name {
  611. cursor: pointer;
  612. }
  613. .head-btn-group {
  614. display: flex;
  615. margin-left: 50px;
  616. align-items: center;
  617. i {
  618. font-size: 14px;
  619. }
  620. .icon-reverse {
  621. transform: rotate(180deg);
  622. }
  623. }
  624. .item-wrap {
  625. display: flex;
  626. align-items: center;
  627. .menu-img {
  628. width: 18px;
  629. height: 18px;
  630. margin-left: 9px;
  631. margin-right: 15px;
  632. cursor: pointer;
  633. }
  634. .logo-text {
  635. user-select: none;
  636. margin-left: 9px;
  637. font-size: 14px;
  638. color: #ffffff;
  639. }
  640. .name-span {
  641. max-width: 300px;
  642. overflow: hidden;
  643. white-space: nowrap;
  644. text-overflow: ellipsis;
  645. }
  646. }
  647. .theme-switch {
  648. margin-right: 10px;
  649. ::v-deep .el-switch__label {
  650. color: #bcc9d4 !important;
  651. }
  652. ::v-deep .el-switch__label.is-active {
  653. color: var(--bs-el-color-primary) !important;
  654. }
  655. }
  656. .align-list-dropdown {
  657. width: 100px !important;
  658. color: #ffffff !important;
  659. }
  660. }
  661. // 自定义dropdown的样式
  662. .align-dropdown-menu {
  663. background-color: var(--bs-background-2) !important;
  664. border: 1px solid var(--bs-border-1);
  665. ::v-deep .el-dropdown-menu__item {
  666. background-color: var(--bs-background-2) !important;
  667. &:hover {
  668. color: var(--bs-el-color-primary) !important;
  669. background-color: var(--bs-el-background-3) !important;
  670. }
  671. }
  672. }
  673. ::v-deep .el-input__inner,
  674. ::v-deep .el-color-picker__color-inner,
  675. ::v-deep .el-input-number--mini,
  676. ::v-deep .el-textarea__inner,
  677. ::v-deep .el-input-group__append {
  678. background: var(--bs-el-background-1);
  679. color: var(--bs-el-text);
  680. border: 0 !important;
  681. width: 100px;
  682. }
  683. // .bs-el-input-number{
  684. // }
  685. </style>