@zscreate/zhxy-app-component 1.0.167 → 1.0.169
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.
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
<view v-if="widget.options.disabled" class="form-input cover-text" style="height: initial;line-break: anywhere;">
|
|
64
64
|
{{ dataModel }}
|
|
65
65
|
</view>
|
|
66
|
-
<textarea v-else
|
|
66
|
+
<textarea v-else class="form-input cover-text" v-model="dataModel"
|
|
67
67
|
:style="{ height: (widget.options.height || 100) * 2 + 'px'}"
|
|
68
68
|
placeholder-style="line-height:60rpx" placeholder-class="form-input-placeholder"
|
|
69
69
|
:placeholder="widget.options.placeholder" :disabled="widget.options.disabled">
|
|
@@ -1654,11 +1654,11 @@ export default {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
if (this.widget.type === 'number') {
|
|
1656
1656
|
const { max, min } = this.widget.options
|
|
1657
|
-
if (max && v > max) {
|
|
1657
|
+
if ((max || max === 0) && v > max) {
|
|
1658
1658
|
this.dataModel = max
|
|
1659
1659
|
return
|
|
1660
1660
|
}
|
|
1661
|
-
if (min && v < min) {
|
|
1661
|
+
if ((min || min === 0) && v < min) {
|
|
1662
1662
|
this.dataModel = min
|
|
1663
1663
|
return
|
|
1664
1664
|
}
|