gyyg-components 0.3.16 → 0.3.18

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": "gyyg-components",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "private": false,
5
5
  "main": "lib/gyyg-components.umd.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  :suffix-icon="suffixIcon"
14
14
  :rows="rows"
15
15
  :autosize="autosize"
16
- @input="(val) => handleInput(val, item)"
16
+ @input="handleInput"
17
17
  @clear="clear"
18
18
  @keyup.enter.native="handleEnter"
19
19
  v-feeInput="isFeeInput"
@@ -132,11 +132,7 @@
132
132
  }
133
133
  },
134
134
  methods: {
135
- handleInput(val, item) {
136
- if(!item.numnbetr) {
137
- return
138
- }
139
-
135
+ handleInput(val) {
140
136
  let value = val;
141
137
  if (this.inputType === 'number') {
142
138
  // 只允许输入数字
@@ -144,7 +144,7 @@
144
144
  <el-pagination
145
145
  @size-change="handleSizeChange"
146
146
  @current-change="handleCurrentChange"
147
- :page-sizes="[10, 20, 30, 50]"
147
+ :page-sizes="pageSizes"
148
148
  :page-size="page.pageSize"
149
149
  :current-page="page.currentPage"
150
150
  layout="total, sizes, prev, pager, next, jumper"
@@ -266,6 +266,10 @@ export default {
266
266
  showIndex: {
267
267
  type: Boolean,
268
268
  default: false
269
+ },
270
+ pageSizes: {
271
+ type: Array,
272
+ default: () => [10, 20, 30, 50]
269
273
  }
270
274
 
271
275
  },