@bsgoal/common 2.15.16 → 2.15.17

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": "@bsgoal/common",
3
- "version": "2.15.16",
3
+ "version": "2.15.17",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist",
@@ -2,7 +2,7 @@
2
2
  * @Author: canlong.shen
3
3
  * @Date: 2023-04-17 11:44:29
4
4
  * @LastEditors: canlong.shen
5
- * @LastEditTime: 2023-06-30 17:32:31
5
+ * @LastEditTime: 2023-06-30 19:44:43
6
6
  * @FilePath: \common\src\components\bsgoal-base-form\index.vue
7
7
  * @Description: 表单公共组件
8
8
  *
@@ -355,7 +355,7 @@ const filterSlotProps = (model = {}) => {
355
355
  for (const prop of Object.keys(model)) {
356
356
  if (!prop.startsWith('_')) {
357
357
  const value = model[prop]
358
- const valueInt = Number.parseInt(value)
358
+ const valueInt = Number.parseFloat(value)
359
359
  rebuildModel[prop] = ( valueInt || ['0', 0].includes(value) ) && !(/^0.+/i).test(`${value}`) ? valueInt : value
360
360
  }
361
361
  }