resolver-egretimp-plus 0.1.128 → 0.1.129

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": "resolver-egretimp-plus",
3
- "version": "0.1.128",
3
+ "version": "0.1.129",
4
4
  "description": "交付体验渲染",
5
5
  "main": "./dist/web/index.js",
6
6
  "module": "./dist/web/index.js",
@@ -60,6 +60,9 @@ const modeValue = defineModel()
60
60
  const value = computed({
61
61
  get() {
62
62
  let ret = modeValue.value
63
+ if (ret === undefined || ret === null || ret === '') {
64
+ return ''
65
+ }
63
66
  if (!isNaN(Number(modeValue.value))) {
64
67
  if (
65
68
  datePickerProps.value.valueFormat === 'x' ||
@@ -73,6 +76,10 @@ const value = computed({
73
76
  return ret
74
77
  },
75
78
  set(val) {
79
+ if (val === undefined || val === null || val === '') {
80
+ modeValue.value = ''
81
+ return
82
+ }
76
83
  let valueFormat = datePickerProps.value?.valueFormat
77
84
  if (valueFormat === 'timestamp') {
78
85
  valueFormat = 'x'