@xtdev/xt-miniprogram-ui 1.2.38 → 1.2.40
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.
- package/libs/xt-dialog/index.js +10 -2
- package/libs/xt-dialog/index.wxml +1 -1
- package/package.json +1 -1
package/libs/xt-dialog/index.js
CHANGED
|
@@ -51,6 +51,14 @@ Component({
|
|
|
51
51
|
chooiceItems:{
|
|
52
52
|
type:Array,
|
|
53
53
|
value:[]
|
|
54
|
+
},
|
|
55
|
+
maxlength: {
|
|
56
|
+
type: Number,
|
|
57
|
+
value: -1
|
|
58
|
+
},
|
|
59
|
+
minHeight: {
|
|
60
|
+
type: Number,
|
|
61
|
+
value: 0
|
|
54
62
|
}
|
|
55
63
|
},
|
|
56
64
|
|
|
@@ -78,8 +86,8 @@ Component({
|
|
|
78
86
|
* 组件的方法列表
|
|
79
87
|
*/
|
|
80
88
|
methods: {
|
|
81
|
-
// 输入样式 -
|
|
82
|
-
|
|
89
|
+
// 输入样式 - 输入框输入
|
|
90
|
+
onInput(e){
|
|
83
91
|
console.log('输入值',e);
|
|
84
92
|
this.setData({
|
|
85
93
|
inpVal: e.detail.value
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<view class="title" winp_boxx:if="{{title}}">{{title}}</view>
|
|
34
34
|
<image catch:tap="closeDialog" src="https://img.tanjiu.cn/home/z8CZkrd2Cm4xyfmMTFbjQpFcdSXQTEk6.png" class="close_icon" wx:if="{{showCloseIcon}}"></image>
|
|
35
35
|
<view class="inp_wrapper">
|
|
36
|
-
<textarea class="inp_content" value="{{inpVal}}" maxlength="{{
|
|
36
|
+
<textarea class="inp_content" value="{{inpVal}}" maxlength="{{maxlength}}" disable-default-padding adjust-position auto-height auto-focus placeholder="{{placeholder}}" style="min-height: {{minHeight}}rpx" placeholder-style="color: #999;" bindinput="onInput" />
|
|
37
37
|
</view>
|
|
38
38
|
<slot />
|
|
39
39
|
<slot name="btn"></slot>
|