adtec-core-package 2.8.4 → 2.8.5

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": "adtec-core-package",
3
- "version": "2.8.4",
3
+ "version": "2.8.5",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -287,6 +287,14 @@ const reloadTask = async () => {
287
287
  }
288
288
  }
289
289
  }
290
+ const reload=()=>{
291
+ reloadTask()
292
+ }
293
+ defineExpose<{
294
+ reload: () => void
295
+ }>({
296
+ reload,
297
+ })
290
298
  watch(() => $props.taskId, reloadTask)
291
299
  // watchEffect(() => {
292
300
  // //需要指定实际处理人
@@ -153,5 +153,13 @@ watch(
153
153
  },
154
154
  { immediate: true }, // 若不需要在组件挂载时立即触发,可以设置为 false
155
155
  )
156
+ const reload=()=>{
157
+ open()
158
+ }
159
+ defineExpose<{
160
+ reload: () => void
161
+ }>({
162
+ reload,
163
+ })
156
164
  </script>
157
165
  <style scoped lang="scss"></style>