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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haiwei-ui",
3
- "version": "1.1.6",
3
+ "version": "1.1.7",
4
4
  "description": "HaiWei前端组件库",
5
5
  "author": "Eric",
6
6
  "license": "ISC",
@@ -191,7 +191,7 @@ import QueryImport from './components/import'
191
191
  pageSizes: {
192
192
  type: Array,
193
193
  default() {
194
- return [10, 15, 50, 100]
194
+ return [20, 50, 100, 200]
195
195
  }
196
196
  },
197
197
  /**渲染嵌套数据的配置选项 */
@@ -4,7 +4,9 @@ export default {
4
4
  mixins: [select],
5
5
  props: {
6
6
  // 接口方法
7
- method: Function
7
+ method: Function,
8
+ // 宽度设置,支持CSS宽度值如:300px、100%、auto等
9
+ width: String
8
10
  },
9
11
  created() {
10
12
  this.action = this.method
@@ -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,