@netang/quasar 0.2.45 → 0.2.47
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
|
-
|
|
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
package/sass/common.scss
CHANGED
|
@@ -94,6 +94,12 @@ body {
|
|
|
94
94
|
text-decoration: underline;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
+
// 文本自动换行
|
|
98
|
+
.n-word-wrap {
|
|
99
|
+
word-wrap: break-word; /* 允许在长单词内部换行 */
|
|
100
|
+
word-break: break-all; /* 允许任意位置的单词断行 */
|
|
101
|
+
}
|
|
102
|
+
|
|
97
103
|
//.n-color-primary,
|
|
98
104
|
//.n-color-main {
|
|
99
105
|
// color: var(--q-primary);
|