

<script>
/* eslint-disable */
// sd-skip-auto-import
import FormService from"../form-service";import components from"./_import-components/sd-form-template-cate-picker-import";var _render=function e(){var t=this,r=t._self._c;return r("sd-tree-picker",{attrs:{value:t.value,"read-only":t.readOnly,single:"","load-tree-data":t.loadTreeData},on:{change:e=>{t.$emit("change",e)}}})};var staticRenderFns=[];_render._withStripped=true;export default{name:"SdFormTemplateCatePicker",components:components,model:{prop:"value",event:"change"},props:{value:{type:Array,default:()=>[]},selectRoot:{type:Boolean,default:false},rootType:{type:String,default:"TEMP_CREATE"},readOnly:{type:Boolean,default:false}},data(){return{}},methods:{loadTreeData(e){if(e)return FormService.getTemplateCateTree(e).then((e=>(e.data||[]).map((function(e){return{id:e.id,name:e.text,checkable:true,isLeaf:e.leaf}}))));else return FormService.getTepmlateTootNode(this.rootType).then((e=>(e.data||[]).map((e=>({id:e.id,name:e.text,checkable:this.selectRoot,isLeaf:e.leaf})))))}},render:_render,staticRenderFns:staticRenderFns};</script>

<style module lang="scss"></style>
