/
home
/
maktab
/
admin
/
js
/
File Upload :
llllll
Current File: //home/maktab/admin/js/chunk-5ae8d4b9.4ca853b1.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ae8d4b9"],{"90ea0":function(t,e,o){},ce5c:function(t,e,o){"use strict";o.r(e);var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("XTable",{ref:"tbl",attrs:{model:t.cols},scopedSlots:t._u([{key:"operator",fn:function(e){e.text;var n=e.record;return o("div",{},[o("a-tooltip",{on:{click:function(e){return t.setPreview(n.file,n.title)}}},[o("template",{slot:"title"},[t._v("\n مشاهده عکس ها\n ")]),o("Icon",{staticClass:"cursor-pointer text-primary",attrs:{icon:"vuesax:gallery-linear"}})],2),o("a-tooltip",{on:{click:function(e){return t.toEdit(n.id)}}},[o("template",{slot:"title"},[t._v("\n ویرایش عکس ها\n ")]),o("Icon",{staticClass:"cursor-pointer text-warning",attrs:{icon:"vuesax:edit-linear"}})],2)],1)}}])}),o("GalleryMoldal",{attrs:{items:t.photosModelPreview},model:{value:t.photoModel,callback:function(e){t.photoModel=e},expression:"photoModel"}})],1)},i=[],l=o("e0d2"),s=new l["b"]("/admin/gallery/table","لیست مکتب ها");s.add(new l["a"]("id","شناسه").filterText()),s.add(new l["a"]("title","عنوان").filterText()),s.add(new l["a"]("operator","عملیات").renderSlot("operator"));var r=s,a=o("ff6e"),c=o("dc19"),u=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("div",[o("transition",[t.value?o("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?o("div",[o("h2",{staticClass:"text-white mt-12 mx-5"},[t._v(t._s(t.title))]),o("div",{staticClass:"pt-3 text-center"},[o("transition",{attrs:{name:"slide-fade",mode:"out-in"}},[o("picture",{key:t.counter},[o("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),o("div",{staticClass:"fixed bottom-0"},[o("div",{on:{click:t.stopPropagation}},[o("div",{staticClass:"flex mt-24 mb-10 thumb-items thumb-scroll",attrs:{id:"container"}},t._l(t.items,(function(e,n){return o("div",{staticClass:"thumb-item",class:n===t.counter?"":"opacity-50",attrs:{id:"item"+n},on:{click:function(e){return t.setItem(n)}}},[o("img",{staticClass:"mr-5 w-20 h-20 rounded",attrs:{src:e,alt:""}})])})),0)])])]):o("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},l=function(t){n=!1};t.addEventListener("mousemove",(function(i){if(i.preventDefault(),n){var l=i.pageX-t.offsetLeft,s=l-e;t.scrollLeft=o-s}})),t.addEventListener("mousedown",i,!1),t.addEventListener("mouseup",l,!1),t.addEventListener("mouseleave",l,!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("f584"),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:a["a"],Icon:c["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},f584:function(t,e,o){"use strict";o("90ea0")}}]); //# sourceMappingURL=chunk-5ae8d4b9.4ca853b1.js.map
Copyright ©2k19 -
Hexid
|
Tex7ure