"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),a=require("@aplus-frontend/antdv");require("../../../../config-provider/index.js");const u=require("../context.js");require("./item.vue.js");const o=require("../../../../config-provider/hooks/use-locale.js"),m=require("../../../../config-provider/hooks/use-namespace.js"),p=require("./item.vue2.js"),d=e.defineComponent({__name:"index",props:{customizeTemplateList:{},persistenceKey:{}},setup(r){const{t:i}=o.useLocale(),{b:n}=m.useNamespace("ap-column-setting-template-list"),{activeKey:l}=u.useInjectApColumnSetting();function c(s){l.value=s}return(s,v)=>(e.openBlock(),e.createBlock(e.unref(a.Flex),{vertical:"",class:e.normalizeClass(e.unref(n)())},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(e.unref(n)("title"))},e.toDisplayString(e.unref(i)("ap.apTable.setting.templateSetting")),3),e.createVNode(e.unref(a.Divider),{style:{margin:"0"}}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(n)("content"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.customizeTemplateList,t=>(e.openBlock(),e.createBlock(p.default,{key:t.key,value:t,"is-active":e.unref(l)===t.key,"should-remove":r.customizeTemplateList.length>1,onClick:()=>c(t.key)},null,8,["value","is-active","should-remove","onClick"]))),128))],2)]),_:1},8,["class"]))}});exports.default=d;
