sh-tools 2.3.3 → 2.3.4
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 +1 -1
- package/packages/utils/other.js +2 -5
package/package.json
CHANGED
package/packages/utils/other.js
CHANGED
|
@@ -159,8 +159,7 @@ export default {
|
|
|
159
159
|
// editable: 是否对返回值进行修正 默认 否
|
|
160
160
|
let rvalue, rtext, rname
|
|
161
161
|
let { $vUtils } = renderContext
|
|
162
|
-
let { min, max, digits, type, multiple, split, options, format, range, nodeKey, labelField,
|
|
163
|
-
renderProps || {}
|
|
162
|
+
let { min, max, digits, type, multiple, split, options, format, range, nodeKey, labelField, openValue, openLabel, closeValue, closeLabel, defaultValue, separator } = renderProps || {}
|
|
164
163
|
let field = key
|
|
165
164
|
if (renderName === '$vRowCell') {
|
|
166
165
|
field = rowData[key + 'field'] || key
|
|
@@ -195,9 +194,7 @@ export default {
|
|
|
195
194
|
} else if (!$vUtils.isNone(value) && numberTypes.includes(type)) {
|
|
196
195
|
rvalue = $vUtils.truncate(value, digits)
|
|
197
196
|
}
|
|
198
|
-
if (rname === '$
|
|
199
|
-
rtext = $vUtils.truncate($vUtils.divide(rvalue, moneyUnit), digits)
|
|
200
|
-
} else if (rname === '$vInput' && format) {
|
|
197
|
+
if (rname === '$vInput' && format) {
|
|
201
198
|
rtext = $vUtils.format(format, rowData)
|
|
202
199
|
} else {
|
|
203
200
|
rtext = rvalue
|