n20-common-lib 2.6.25 → 2.6.26

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": "n20-common-lib",
3
- "version": "2.6.25",
3
+ "version": "2.6.26",
4
4
  "private": false,
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -112,7 +112,7 @@ export default {
112
112
  if (!type) {
113
113
  return context.measureText(value).width * 1.4 + 55
114
114
  }
115
- return (context.measureText(value).width * 1.4 + 65) * 2
115
+ return (context.measureText(value).width * 1.4 + 100) * 2
116
116
  }
117
117
 
118
118
  const calcWidth = (value, type) => {
@@ -131,7 +131,7 @@ export default {
131
131
  }
132
132
  } else {
133
133
  if (type) {
134
- W = w ? w : asciiWidth(item.placeholder || typeEnum[item.type]) + 40 + 100
134
+ W = w ? w : asciiWidth(item.placeholder || typeEnum[item.type]) + 150
135
135
  } else {
136
136
  W = w ? w : asciiWidth(item.placeholder || typeEnum[item.type]) + 40
137
137
  }
@@ -330,6 +330,7 @@ export default {
330
330
  elementDom = h('InputNumberRange', {
331
331
  directives: [{ name: 'rule-key', value: 'startValue' }],
332
332
  attrs: {
333
+ ...item.props,
333
334
  ruleField: true,
334
335
  'rule-form': 'ruleValidate',
335
336
  rules: item.rules,