@ebiz/designer-components 0.0.18-beta.4 → 0.0.18-beta.6

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": "@ebiz/designer-components",
3
- "version": "0.0.18-beta.4",
3
+ "version": "0.0.18-beta.6",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -8,7 +8,7 @@ import axios from 'axios'
8
8
  import { TinyNotify } from '@opentiny/vue'
9
9
 
10
10
  // 从环境变量获取API基础URL
11
- const API_BASE_URL = 'http://localhost:8090/api'
11
+ const API_BASE_URL = window.location.host + "/api";
12
12
 
13
13
  /**
14
14
  * 创建axios实例
@@ -181,60 +181,60 @@ const emit = defineEmits([
181
181
  ]);
182
182
 
183
183
  // 处理输入事件
184
- const handleInput = (value, { e }) => {
185
- emit('update:modelValue', value);
186
- emit('input', value, { e });
184
+ const handleInput = (value, context) => {
185
+ emit('input', value, context);
187
186
  };
188
187
 
189
188
  // 处理变化事件
190
- const handleChange = (value, { e }) => {
191
- emit('change', value, { e });
189
+ const handleChange = (value, context) => {
190
+ emit('update:modelValue', value);
191
+ emit('change', value, context);
192
192
  };
193
193
 
194
194
  // 处理失去焦点事件
195
- const handleBlur = (value, { e }) => {
196
- emit('blur', value, { e });
195
+ const handleBlur = (value, context) => {
196
+ emit('blur', value, context);
197
197
  };
198
198
 
199
199
  // 处理获取焦点事件
200
- const handleFocus = (value, { e }) => {
201
- emit('focus', value, { e });
200
+ const handleFocus = (value, context) => {
201
+ emit('focus', value, context);
202
202
  };
203
203
 
204
204
  // 处理回车事件
205
- const handleEnter = (value, { e }) => {
206
- emit('enter', value, { e });
205
+ const handleEnter = (value, context) => {
206
+ emit('enter', value, context);
207
207
  };
208
208
 
209
209
  // 处理清空事件
210
- const handleClear = ({ e }) => {
210
+ const handleClear = (context) => {
211
211
  emit('update:modelValue', '');
212
- emit('clear', { e });
212
+ emit('clear', context);
213
213
  };
214
214
 
215
215
  // 处理键盘按下事件
216
- const handleKeydown = (value, { e }) => {
217
- emit('keydown', value, { e });
216
+ const handleKeydown = (value, context) => {
217
+ emit('keydown', value, context);
218
218
  };
219
219
 
220
220
  // 处理键盘按键事件
221
- const handleKeypress = (value, { e }) => {
222
- emit('keypress', value, { e });
221
+ const handleKeypress = (value, context) => {
222
+ emit('keypress', value, context);
223
223
  };
224
224
 
225
225
  // 处理键盘弹起事件
226
- const handleKeyup = (value, { e }) => {
227
- emit('keyup', value, { e });
226
+ const handleKeyup = (value, context) => {
227
+ emit('keyup', value, context);
228
228
  };
229
229
 
230
230
  // 处理鼠标进入事件
231
- const handleMouseenter = (value, { e }) => {
232
- emit('mouseenter', value, { e });
231
+ const handleMouseenter = (value, context) => {
232
+ emit('mouseenter', value, context);
233
233
  };
234
234
 
235
235
  // 处理鼠标离开事件
236
- const handleMouseleave = (value, { e }) => {
237
- emit('mouseleave', value, { e });
236
+ const handleMouseleave = (value, context) => {
237
+ emit('mouseleave', value, context);
238
238
  };
239
239
  </script>
240
240