bge-ui 1.0.7 → 1.0.9

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/dist/index.js CHANGED
@@ -6648,15 +6648,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
6648
6648
  emit("focus");
6649
6649
  }
6650
6650
  function handleBlur() {
6651
- if (!isClearHover.value) {
6652
- isFocus.value = false;
6653
- }
6651
+ isFocus.value = false;
6654
6652
  emit("blur");
6655
6653
  emit("update:modelValue", input.value);
6656
6654
  }
6657
6655
  watch(() => props.modelValue, (val) => {
6658
6656
  input.value = val;
6659
- formItemContext.validate && formItemContext.validate().catch((err) => err);
6657
+ formItemContext && formItemContext.validate && formItemContext.validate().catch((err) => err);
6660
6658
  });
6661
6659
  function handleChange() {
6662
6660
  emit("change", input.value);
package/dist/style.css CHANGED
@@ -3192,6 +3192,7 @@
3192
3192
  }
3193
3193
  .bge-form .bge-form-item__content.error .bge-input__wrapper {
3194
3194
  border: 1px solid var(--tc-red, #FF477E);
3195
+ background-color: var(--bg-red-08, rgba(255, 82, 133, 0.08));
3195
3196
  }.bge-form {
3196
3197
  margin: 0;
3197
3198
  }.bge-form-item {
@@ -3237,7 +3238,7 @@
3237
3238
  background: var(--bg-input, rgba(88, 126, 163, 0.08));
3238
3239
  }
3239
3240
  .bge-input .bge-input__wrapper.focus {
3240
- border: 1px solid var(--tc-secondary, #798EA3);
3241
+ border: 1px solid var(--tc-theme, #292D33);
3241
3242
  background: transparent;
3242
3243
  }
3243
3244
  .bge-input .bge-input__wrapper.textarea {
@@ -3273,7 +3274,7 @@
3273
3274
  box-sizing: border-box;
3274
3275
  resize: none;
3275
3276
  }
3276
- .bge-input .bge-input__inner ::placeholder {
3277
+ .bge-input .bge-input__inner::placeholder {
3277
3278
  color: var(--tc-quaternary, #3B4C5C);
3278
3279
  font-weight: 500;
3279
3280
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bge-ui",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -110,6 +110,7 @@ defineExpose({
110
110
  &.error {
111
111
  .bge-input__wrapper {
112
112
  border: 1px solid var(--tc-red, #FF477E);
113
+ background-color: var(--bg-red-08, rgba(#ff5285, 0.08));
113
114
  }
114
115
  }
115
116
  }
@@ -73,16 +73,14 @@ function handleFocus() {
73
73
  }
74
74
 
75
75
  function handleBlur() {
76
- if (!isClearHover.value) {
77
- isFocus.value = false
78
- }
76
+ isFocus.value = false
79
77
  emit('blur')
80
78
  emit('update:modelValue', input.value)
81
79
  }
82
80
 
83
81
  watch(() => props.modelValue, (val) => {
84
82
  input.value = val
85
- formItemContext.validate && formItemContext.validate().catch((err: any) => (err))
83
+ formItemContext && formItemContext.validate && formItemContext.validate().catch((err: any) => (err))
86
84
  })
87
85
 
88
86
  function handleChange() {
@@ -137,7 +135,7 @@ function handelClear() {
137
135
  }
138
136
 
139
137
  &.focus {
140
- border: 1px solid var(--tc-secondary, #798EA3);
138
+ border: 1px solid var(--tc-theme, #292D33);
141
139
  background: transparent;
142
140
  }
143
141
 
@@ -179,7 +177,7 @@ function handelClear() {
179
177
  box-sizing: border-box;
180
178
  resize: none;
181
179
 
182
- ::placeholder {
180
+ &::placeholder {
183
181
  color: var(--tc-quaternary, #3B4C5C);
184
182
  font-weight: 500;
185
183
  }