@netang/quasar 0.2.45 → 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.
@@ -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
- await sleep(500)
455
+ if (props.updateDelayTime) {
456
+ await sleep(props.updateDelayTime)
457
+ }
451
458
 
452
459
  // 格式化当前值
453
460
  const newVal = formatToCurrentValue(currentValue.value, false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.45",
3
+ "version": "0.2.46",
4
4
 
5
5
  "description": "netang-quasar",
6
6
  "scripts": {