primevue
Version:
[](https://opensource.org/licenses/MIT) [](https://badge.fury.io/js/primevue)
1 lines • 3.59 kB
JavaScript
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue")):"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["dataviewlayoutoptions"]=e(require("vue")):t["dataviewlayoutoptions"]=e(t["Vue"])})("undefined"!==typeof self?self:this,(function(t){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({8875:function(t,e,n){var r,o,u;(function(n,i){o=[],r=i,u="function"===typeof r?r.apply(e,o):r,void 0===u||(t.exports=u)})("undefined"!==typeof self&&self,(function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(s){var n,r,o,u=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,i=/@([^@]*):(\d+):(\d+)\s*$/gi,c=u.exec(s.stack)||i.exec(s.stack),a=c&&c[1]||!1,l=c&&c[2]||!1,d=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");a===d&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(r,"$1").trim());for(var f=0;f<p.length;f++){if("interactive"===p[f].readyState)return p[f];if(p[f].src===a)return p[f];if(a===d&&p[f].innerHTML&&p[f].innerHTML.trim()===o)return p[f]}return null}}return t}))},"8bbf":function(e,n){e.exports=t},fb15:function(t,e,n){"use strict";if(n.r(e),"undefined"!==typeof window){var r=window.document.currentScript,o=n("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var u=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(n.p=u[1])}var i=n("8bbf"),c={class:"p-dataview-layout-options p-selectbutton p-buttonset"},a=Object(i["createVNode"])("i",{class:"pi pi-bars"},null,-1),l=Object(i["createVNode"])("i",{class:"pi pi-th-large"},null,-1);function d(t,e,n,r,o,u){return Object(i["openBlock"])(),Object(i["createBlock"])("div",c,[Object(i["createVNode"])("button",{class:u.buttonListClass,onClick:e[1]||(e[1]=function(t){return u.changeLayout("list")}),type:"button"},[a],2),Object(i["createVNode"])("button",{class:u.buttonGridClass,onClick:e[2]||(e[2]=function(t){return u.changeLayout("grid")}),type:"button"},[l],2)])}var p={emits:["update:modelValue"],props:{modelValue:String},computed:{buttonListClass:function(){return["p-button p-button-icon-only",{"p-highlight":"list"===this.modelValue}]},buttonGridClass:function(){return["p-button p-button-icon-only",{"p-highlight":"grid"===this.modelValue}]}},methods:{changeLayout:function(t){this.$emit("update:modelValue",t)}}};p.render=d;var f=p;e["default"]=f}})["default"]}));