/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: /home/maktab/admin/js/chunk-6c26fa28.b89dfa01.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6c26fa28"],{"89c5":function(t,e,o){},ce5c:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("XTable",{ref:"tbl",attrs:{model:t.cols},scopedSlots:t._u([{key:"operator",fn:function(o){o.text;var n=o.record;return e("div",{},[e("a-tooltip",{on:{click:function(e){return t.setPreview(n.file,n.title)}}},[e("template",{slot:"title"},[t._v("\n مشاهده عکس ها\n ")]),e("Icon",{staticClass:"cursor-pointer text-primary",attrs:{icon:"vuesax:gallery-linear"}})],2),e("a-tooltip",{on:{click:function(e){return t.toEdit(n.id)}}},[e("template",{slot:"title"},[t._v("\n ویرایش عکس ها\n ")]),e("Icon",{staticClass:"cursor-pointer text-warning",attrs:{icon:"vuesax:edit-linear"}})],2)],1)}}])}),e("GalleryMoldal",{attrs:{items:t.photosModelPreview},model:{value:t.photoModel,callback:function(e){t.photoModel=e},expression:"photoModel"}})],1)},i=[],s=o("e0d2"),l=new s["b"]("/admin/gallery/table","لیست مکتب ها");l.add(new s["a"]("id","شناسه").filterText()),l.add(new s["a"]("title","عنوان").filterText()),l.add(new s["a"]("operator","عملیات").renderSlot("operator"));var r=l,c=o("ff6e"),a=o("dc19"),u=function(){var t=this,e=t._self._c;return e("div",[e("transition",[t.value?e("div",{staticClass:"w-screen h-screen bg-c-grey-transparent fixed top-0 bottom-0 left-0 right-0 bg-trans",staticStyle:{"z-index":"60000"},on:{click:function(e){return t.$emit("input",!1)}}},[t.items.length>0?e("div",[e("h2",{staticClass:"text-white mt-12 mx-5"},[t._v(t._s(t.title))]),e("div",{staticClass:"pt-3 text-center"},[e("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[e("picture",{key:t.counter},[e("img",{staticClass:"w-full md:w-90 md:h-90 xl:w-98 xl:h-98 rounded-custom trans-img object-cover aspect-square md:aspect-auto",attrs:{src:t.items[t.counter],alt:""}})])])],1),e("div",{staticClass:"fixed bottom-0"},[e("div",{on:{click:t.stopPropagation}},[e("div",{staticClass:"flex mt-24 mb-10 thumb-items thumb-scroll",attrs:{id:"container"}},t._l(t.items,(function(o,n){return e("div",{staticClass:"thumb-item",class:n===t.counter?"":"opacity-50",attrs:{id:"item".concat(n)},on:{click:function(e){return t.setItem(n)}}},[e("img",{staticClass:"mr-5 w-20 h-20 rounded",attrs:{src:o,alt:""}})])})),0)])])]):e("div",{staticClass:"text-white text-3xl w-full h-full flex items-center justify-center"},[t._v("\n هیچ تصویری موجود نیست\n ")])]):t._e()])],1)},d=[],f={data:function(){return{counter:0}},methods:{stopPropagation:function(t){console.log("salam"),t.stopPropagation()},setItem:function(t){this.counter=t,document.getElementById("item".concat(t)).scrollIntoView({behavior:"smooth",inline:"center"})}},watch:{value:function(t){var e=this;t&&(this.$nextTick((function(){var t=document.getElementById("container");console.log("ff",t);var e,o,n=!1,i=function(i){n=!0,e=i.pageX-t.offsetLeft,o=t.scrollLeft},s=function(t){n=!1};t.addEventListener("mousemove",(function(i){if(i.preventDefault(),n){var s=i.pageX-t.offsetLeft,l=s-e;t.scrollLeft=o-l}})),t.addEventListener("mousedown",i,!1),t.addEventListener("mouseup",s,!1),t.addEventListener("mouseleave",s,!1)})),this.$nextTick((function(){document.getElementById("item".concat(e.counter)).scrollIntoView({behavior:"smooth",inline:"center"})})))}},props:{value:{required:!0},items:{required:!0},title:{}},mounted:function(){}},m=f,p=(o("f291"),o("2877")),h=Object(p["a"])(m,u,d,!1,null,null,null),v=h.exports,w={name:"list",data:function(){return{cols:null,photoModel:!1,photosModelTitle:"",photosModelPreview:[]}},watch:{photoModel:function(t){document.body.style.overflow=!0===t?"hidden":"auto"}},computed:{gridCols:function(){switch(this.photosModelPreview.length){case 1:return"lg:grid-cols-1";case 2:return"lg:grid-cols-2";default:return"lg:grid-cols-3"}}},components:{GalleryMoldal:v,XTable:c["a"],Icon:a["a"]},methods:{setPreview:function(t,e){this.photosModelPreview=t.map((function(t){return t.full_src})),this.photosModelTitle=e,this.photoModel=!0},toEdit:function(t){window.open("/gallery/".concat(t),"_blank").focus()}},created:function(){this.cols=r}},g=w,x=Object(p["a"])(g,n,i,!1,null,"7d133f34",null);e["default"]=x.exports},f291:function(t,e,o){"use strict";o("89c5")}}]); //# sourceMappingURL=chunk-6c26fa28.b89dfa01.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure