gyyg-components 0.3.13 → 0.3.15

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.13",
3
+ "version": "0.3.15",
4
4
  "private": false,
5
5
  "main": "lib/gyyg-components.umd.js",
6
6
  "scripts": {
@@ -13,7 +13,7 @@
13
13
  "babel-plugin-component": "^1.1.1",
14
14
  "core-js": "^3.6.5",
15
15
  "element-resize-detector": "^1.2.4",
16
- "element-ui": "2.15.6",
16
+ "element-ui": "^2.15.14",
17
17
  "moment": "^2.30.1",
18
18
  "sortablejs": "^1.15.6",
19
19
  "vue": "^2.6.11"
@@ -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
  },
@@ -143,7 +143,7 @@
143
143
  } else if (this.inputType === 'english') {
144
144
  // 只允许输入英文
145
145
  value = value.replace(/[^a-zA-Z\s]/g, '');
146
- }else if (this.inputType === 'amount') {
146
+ }else if (this.inputType === 'amount') { // 金额
147
147
  // 只允许输入数字和小数点
148
148
  value = value.replace(/[^0-9.]/g, '');
149
149
  // 确保小数点只出现一次
@@ -206,6 +206,8 @@ export default {
206
206
  default: () => {
207
207
  return {
208
208
  backgroundColor: "#EFF3F8",
209
+ fontWeight: 'normal',
210
+ color: '#303133',
209
211
  }
210
212
  }
211
213
  },