gyyg-components 0.3.14 → 0.3.16

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.14",
3
+ "version": "0.3.16",
4
4
  "private": false,
5
5
  "main": "lib/gyyg-components.umd.js",
6
6
  "scripts": {
@@ -216,4 +216,9 @@ export default {
216
216
 
217
217
  }
218
218
  }
219
+ /deep/ .el-descriptions-item__container {
220
+ .el-descriptions-item__content, .el-descriptions-item__label {
221
+ display: block;
222
+ }
223
+ }
219
224
  </style>
@@ -13,6 +13,7 @@
13
13
  :end-placeholder="endPlaceholder"
14
14
  :range-separator="rangeSeparator"
15
15
  :value-format="valueFormat"
16
+ :clearable="clearable"
16
17
  style="width: 100%;">
17
18
  </el-date-picker>
18
19
  </div>
@@ -61,6 +62,10 @@ export default {
61
62
  valueFormat: {
62
63
  type: String,
63
64
  default: 'yyyy-MM-dd'
65
+ },
66
+ clearable: {
67
+ type: Boolean,
68
+ default: true
64
69
  }
65
70
 
66
71
  },
@@ -13,7 +13,7 @@
13
13
  :suffix-icon="suffixIcon"
14
14
  :rows="rows"
15
15
  :autosize="autosize"
16
- @input="handleInput"
16
+ @input="(val) => handleInput(val, item)"
17
17
  @clear="clear"
18
18
  @keyup.enter.native="handleEnter"
19
19
  v-feeInput="isFeeInput"
@@ -132,7 +132,11 @@
132
132
  }
133
133
  },
134
134
  methods: {
135
- handleInput(val) {
135
+ handleInput(val, item) {
136
+ if(!item.numnbetr) {
137
+ return
138
+ }
139
+
136
140
  let value = val;
137
141
  if (this.inputType === 'number') {
138
142
  // 只允许输入数字