haiwei-ui 1.1.6 → 1.1.7
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/package.json
CHANGED
|
@@ -49,6 +49,11 @@ export default {
|
|
|
49
49
|
remoteQueryInterval: {
|
|
50
50
|
type: Number,
|
|
51
51
|
default: 800
|
|
52
|
+
},
|
|
53
|
+
/** 宽度设置,支持CSS宽度值如:300px、100%、auto等 */
|
|
54
|
+
width: {
|
|
55
|
+
type: String,
|
|
56
|
+
default: ''
|
|
52
57
|
}
|
|
53
58
|
},
|
|
54
59
|
computed: {
|
|
@@ -201,6 +206,10 @@ export default {
|
|
|
201
206
|
remote: this.remote,
|
|
202
207
|
remoteMethod: this.remoteMethod
|
|
203
208
|
},
|
|
209
|
+
style: {
|
|
210
|
+
// 使用width属性,如果未设置则使用100%宽度
|
|
211
|
+
width: this.width || '100%'
|
|
212
|
+
},
|
|
204
213
|
on: {
|
|
205
214
|
change: this.onChange,
|
|
206
215
|
'visible-change': this.onVisibleChange,
|