import{n as s}from"./vueComponentNormalizer.9ef17bb1.js";var c=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v_list_card"},[t.title?i("h2",{staticClass:"mb-12 v-title"},[t._v(t._s(t.title))]):t._e(),i("ul",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadMore,expression:"loadMore"}]},t._l(t.dataList,function(n){return i("li",{key:n[t.itemKey],class:{active:t.active&&t.active[t.itemKey]===n[t.itemKey]},on:{click:function(u){return t.setActive(n)}}},[t._v(t._s(n[t.itemLabelKey]))])}),0)])},l=[];const r={props:{title:{type:String},itemKey:{type:String,default:"id"},itemLabelKey:{type:String,default:"title"},dataList:{type:Array,default:()=>[]},loadMore:{type:Function},isCancel:{type:Boolean}},data:()=>({active:null}),watch:{active(t){this.$emit("change",t)}},methods:{setActive(t){if(this.isCancel&&this.active===t)return this.active=null;this.active=t}}},a={};var o=s(r,c,l,!1,_,"c3cc29d4",null,null);function _(t){for(let e in a)this[e]=a[e]}const d=function(){return o.exports}();export{d as V};
