@netang/quasar 0.2.44 → 0.2.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -383,12 +383,13 @@ export default {
|
|
|
383
383
|
}
|
|
384
384
|
|
|
385
385
|
const style = {
|
|
386
|
-
|
|
386
|
+
transform: `scale(${scale}) scale3d(${rotateX}, ${rotateY}, 1) rotate(${deg}deg) translate(${translateX}px, ${translateY}px)`,
|
|
387
387
|
transition: enableTransition ? 'transform .3s' : '',
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
if (isContain.value) {
|
|
391
|
-
style.maxWidth =
|
|
391
|
+
style.maxWidth = '100vw'
|
|
392
|
+
style.maxHeight = '100vh'
|
|
392
393
|
}
|
|
393
394
|
|
|
394
395
|
return style
|
|
@@ -132,6 +132,11 @@ export default {
|
|
|
132
132
|
disable: Boolean,
|
|
133
133
|
// 是否只读
|
|
134
134
|
readonly: Boolean,
|
|
135
|
+
// 延迟时间
|
|
136
|
+
updateDelayTime: {
|
|
137
|
+
type: Number,
|
|
138
|
+
default: 500,
|
|
139
|
+
},
|
|
135
140
|
},
|
|
136
141
|
|
|
137
142
|
/**
|
|
@@ -447,7 +452,9 @@ export default {
|
|
|
447
452
|
async function onUpdate() {
|
|
448
453
|
|
|
449
454
|
// 延迟执行
|
|
450
|
-
|
|
455
|
+
if (props.updateDelayTime) {
|
|
456
|
+
await sleep(props.updateDelayTime)
|
|
457
|
+
}
|
|
451
458
|
|
|
452
459
|
// 格式化当前值
|
|
453
460
|
const newVal = formatToCurrentValue(currentValue.value, false)
|