mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 修改图片引入打包报错的问题
This commit is contained in:
@@ -48,7 +48,7 @@
|
||||
:min="10"
|
||||
:max="200"
|
||||
:step="5"
|
||||
:format-tooltip="v => `${v}%`"
|
||||
:format-tooltip="sliderFormatTooltip"
|
||||
:disabled="lockScale"
|
||||
:marks="sliderMaks"
|
||||
@update:value="sliderHandle"
|
||||
@@ -124,6 +124,9 @@ const lockHandle = () => {
|
||||
// 拖动
|
||||
const sliderValue = ref(100)
|
||||
|
||||
// 拖动格式化
|
||||
const sliderFormatTooltip = (v: string) => `${v}%`
|
||||
|
||||
// 拖动处理
|
||||
const sliderHandle = (v: number) => {
|
||||
chartEditStore.setScale(v / 100)
|
||||
|
||||
@@ -30,7 +30,7 @@ const rangeStyle = computed(() => {
|
||||
const background = getEditCanvasConfig.value.background
|
||||
const backgroundImage = getEditCanvasConfig.value.backgroundImage
|
||||
const selectColor = getEditCanvasConfig.value.selectColor
|
||||
const backgroundColor = background ? background : null
|
||||
const backgroundColor = background ? background : undefined
|
||||
const computedBackground = selectColor
|
||||
? { background: backgroundColor }
|
||||
: { background: `url(${backgroundImage}) no-repeat center/100% !important` }
|
||||
@@ -51,7 +51,6 @@ const rangeModelStyle = computed(() => {
|
||||
position: relative;
|
||||
border: 1px solid;
|
||||
border-radius: 15px;
|
||||
background: url('@/assets/images/canvas/pageBg.png');
|
||||
@include fetch-theme('box-shadow');
|
||||
@include filter-border-color('hover-border-color');
|
||||
@include fetch-theme-custom('border-color', 'background-color4');
|
||||
|
||||
Reference in New Issue
Block a user