@bsgoal/common 2.15.15 → 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
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-04-10 15:00:00
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-06-30 16:
|
|
5
|
+
* @LastEditTime: 2023-06-30 16:54:25
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-form\demo.vue
|
|
7
7
|
* @Description: 表单公共组件演示组件
|
|
8
8
|
*
|
|
@@ -263,7 +263,6 @@ const changeValues = (params = '') => {
|
|
|
263
263
|
<div class="bsgoal-base-form-demo">
|
|
264
264
|
{{ values }}
|
|
265
265
|
<BsgoalBaseForm
|
|
266
|
-
compact
|
|
267
266
|
ref="BSGOAL_BASE_FORM_REF"
|
|
268
267
|
readonly
|
|
269
268
|
none="--"
|
|
@@ -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
|
|
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,8 +355,8 @@ 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.
|
|
359
|
-
rebuildModel[prop] = valueInt || ['0', 0].includes(value) ? valueInt : value
|
|
358
|
+
const valueInt = Number.parseFloat(value)
|
|
359
|
+
rebuildModel[prop] = ( valueInt || ['0', 0].includes(value) ) && !(/^0.+/i).test(`${value}`) ? valueInt : value
|
|
360
360
|
}
|
|
361
361
|
}
|
|
362
362
|
return rebuildModel
|