import{T as n,e as s}from"./index-cf27e902.js";import{n as a,ae as c}from"./index-b54f5418.js";import"./three-dc46505d.js";var f=function(){var e=this,r=e.$createElement,o=e._self._c||r;return o("div",{staticClass:"NumberConstraintor-container"},[o("de-controller-input",{attrs:{keyframe:!1,label:"名称"},model:{value:e.config.name,callback:function(t){e.$set(e.config,"name",t)},expression:"config.name"}}),o("de-controller-input",{attrs:{keyframe:!1,label:"类型",disabled:""},model:{value:e.config.type,callback:function(t){e.$set(e.config,"type",t)},expression:"config.type"}}),o("de-controller-select",{attrs:{keyframe:!1,label:"约束属性",options:e.targetAttrList,"list-type":""},model:{value:e.config.targetAttr,callback:function(t){e.$set(e.config,"targetAttr",t)},expression:"config.targetAttr"}}),o("de-controller-select",{attrs:{keyframe:!1,label:"参照物",options:e.objects},model:{value:e.config.ref,callback:function(t){e.$set(e.config,"ref",t)},expression:"config.ref"}}),e.config.ref?o("de-controller-select",{attrs:{keyframe:!1,label:"参照属性",options:e.refAttrList,"list-type":""},model:{value:e.config.refAttr,callback:function(t){e.$set(e.config,"refAttr",t)},expression:"config.refAttr"}}):e._e(),o("de-controller-select",{attrs:{keyframe:!1,label:"运算符",options:["+","-","*","/"],"list-type":""},model:{value:e.config.offset.operate,callback:function(t){e.$set(e.config.offset,"operate",t)},expression:"config.offset.operate"}}),o("de-controller-number",{attrs:{keyframe:!1,label:"运算量"},model:{value:e.config.offset.value,callback:function(t){e.$set(e.config.offset,"value",t)},expression:"config.offset.value"}})],1)},i=[];const u={props:{config:{type:Object,required:!0}},data(){return{}},computed:{objects(){const e=Object.keys(c).map(o=>this.$store.getters[`${o}/get`]),r=[];for(const o of e)for(const t of Object.values(o))r.push({label:t.name,value:t.vid});return r},targetAttrList(){return n.getObjectAttrList(s.getConfigBySymbol(this.config.target))},refAttrList(){return n.getObjectAttrList(s.getConfigBySymbol(this.config.ref))}}},l={};var g=a(u,f,i,!1,p,null,null,null);function p(e){for(let r in l)this[r]=l[r]}const v=function(){return g.exports}();export{v as default};
