|
@@ -89,6 +89,7 @@
|
|
|
speed: 1,
|
|
|
key: action.action,
|
|
|
name: action.title,
|
|
|
+ duration: getActionDur(action.action),
|
|
|
})
|
|
|
"
|
|
|
/>
|
|
@@ -134,6 +135,7 @@ import { Switch, Slider, TabPane, Tabs } from "ant-design-vue";
|
|
|
import { AnimationModel } from "@/api";
|
|
|
import SignItem from "@/views/tagging-position/sign-item.vue";
|
|
|
import { computed, ref } from "vue";
|
|
|
+import { round } from "@/utils";
|
|
|
import { paths } from "@/store/path";
|
|
|
import Message from "bill/components/message/message.vue";
|
|
|
import { Modal } from "ant-design-vue";
|
|
@@ -195,6 +197,14 @@ const selectPathHandler = () => {
|
|
|
emit("addPath", { name, pathId: pathId.value });
|
|
|
visibleSelectPath.value = false;
|
|
|
};
|
|
|
+
|
|
|
+const getActionDur = (key: string) => {
|
|
|
+ const actions = amMap[props.am.id].am?.getSupportActions() || [];
|
|
|
+ const action = actions.find((item) => item.name === key);
|
|
|
+ if (action?.duration) {
|
|
|
+ return round(action?.duration);
|
|
|
+ }
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|