2024-04-23 10:29:38 +08:00

46 lines
840 B
Vue

<template>
<div class="ddei-core-panel-bottom-shapecount">
{{title}} {{ editor?.files[editor?.currentFileIndex]?.modelNumber }}
</div>
</template>
<script lang="ts">
import {DDeiEditor} from "ddei-framework";
export default {
name: "ddei-core-panel-bottom-shapecount",
extends: null,
mixins: [],
props: {
//外部传入的插件扩展参数
options: {
type: Object,
default: null
},
title: {
type: String,
default: "形状数: "
}
},
data() {
return {
editor: null,
};
},
computed: {},
watch: {},
created() { },
mounted() {
//获取编辑器
this.editor = DDeiEditor.ACTIVE_INSTANCE;
},
};
</script>
<style lang="less" scoped>
.ddei-core-panel-bottom-shapecount {
flex: 0 0 100px;
display: block;
text-align: center;
}
</style>