xt-element-ui 2.1.72 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.common.js +267 -61
- package/lib/index.css +1 -1
- package/lib/index.umd.js +267 -61
- package/lib/index.umd.min.js +1 -1
- package/lib/xt-badge/demo.html +10 -0
- package/lib/xt-badge/index.js +1 -0
- package/lib/xt-badge/xt-badge.common.js +335 -0
- package/lib/xt-badge/xt-badge.css +1 -0
- package/lib/xt-badge/xt-badge.umd.js +345 -0
- package/lib/xt-badge/xt-badge.umd.min.js +1 -0
- package/lib/xt-button/demo.html +10 -0
- package/lib/xt-button/index.js +1 -0
- package/lib/xt-button/xt-button.common.js +331 -0
- package/lib/xt-button/xt-button.css +1 -0
- package/lib/xt-button/xt-button.umd.js +341 -0
- package/lib/xt-button/xt-button.umd.min.js +1 -0
- package/lib/xt-card/demo.html +10 -0
- package/lib/xt-card/index.js +1 -0
- package/lib/xt-card/xt-card.common.js +325 -0
- package/lib/xt-card/xt-card.css +1 -0
- package/lib/xt-card/xt-card.umd.js +335 -0
- package/lib/xt-card/xt-card.umd.min.js +1 -0
- package/lib/xt-card-item/demo.html +10 -0
- package/lib/xt-card-item/index.js +1 -0
- package/lib/xt-card-item/xt-card-item.common.js +291 -0
- package/lib/xt-card-item/xt-card-item.css +1 -0
- package/lib/xt-card-item/xt-card-item.umd.js +301 -0
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -0
- package/lib/xt-chart/demo.html +10 -0
- package/lib/xt-chart/index.js +1 -0
- package/lib/xt-chart/xt-chart.common.js +109203 -0
- package/lib/xt-chart/xt-chart.css +1 -0
- package/lib/xt-chart/xt-chart.umd.js +109213 -0
- package/lib/xt-chart/xt-chart.umd.min.js +1 -0
- package/lib/xt-config-provider/demo.html +10 -0
- package/lib/xt-config-provider/index.js +1 -0
- package/lib/xt-config-provider/xt-config-provider.common.js +108388 -0
- package/lib/xt-config-provider/xt-config-provider.css +1 -0
- package/lib/xt-config-provider/xt-config-provider.umd.js +108398 -0
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -0
- package/lib/xt-date-picker/demo.html +10 -0
- package/lib/xt-date-picker/index.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.common.js +768 -0
- package/lib/xt-date-picker/xt-date-picker.css +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.js +778 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -0
- package/lib/xt-flex-box/demo.html +10 -0
- package/lib/xt-flex-box/index.js +1 -0
- package/lib/xt-flex-box/xt-flex-box.common.js +303 -0
- package/lib/xt-flex-box/xt-flex-box.css +1 -0
- package/lib/xt-flex-box/xt-flex-box.umd.js +313 -0
- package/lib/xt-flex-box/xt-flex-box.umd.min.js +1 -0
- package/lib/xt-form-schema/demo.html +10 -0
- package/lib/xt-form-schema/index.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +510 -0
- package/lib/xt-form-schema/xt-form-schema.css +1 -0
- package/lib/xt-form-schema/xt-form-schema.umd.js +520 -0
- package/lib/xt-form-schema/xt-form-schema.umd.min.js +1 -0
- package/lib/xt-grid-box/demo.html +10 -0
- package/lib/xt-grid-box/index.js +1 -0
- package/lib/xt-grid-box/xt-grid-box.common.js +404 -0
- package/lib/xt-grid-box/xt-grid-box.css +1 -0
- package/lib/xt-grid-box/xt-grid-box.umd.js +414 -0
- package/lib/xt-grid-box/xt-grid-box.umd.min.js +1 -0
- package/lib/xt-grid-item/demo.html +10 -0
- package/lib/xt-grid-item/index.js +1 -0
- package/lib/xt-grid-item/xt-grid-item.common.js +381 -0
- package/lib/xt-grid-item/xt-grid-item.css +1 -0
- package/lib/xt-grid-item/xt-grid-item.umd.js +391 -0
- package/lib/xt-grid-item/xt-grid-item.umd.min.js +1 -0
- package/lib/xt-icon/demo.html +10 -0
- package/lib/xt-icon/index.js +1 -0
- package/lib/xt-icon/xt-icon.common.js +430 -0
- package/lib/xt-icon/xt-icon.css +1 -0
- package/lib/xt-icon/xt-icon.umd.js +440 -0
- package/lib/xt-icon/xt-icon.umd.min.js +1 -0
- package/lib/xt-input/demo.html +10 -0
- package/lib/xt-input/index.js +1 -0
- package/lib/xt-input/xt-input.common.js +584 -0
- package/lib/xt-input/xt-input.css +1 -0
- package/lib/xt-input/xt-input.umd.js +594 -0
- package/lib/xt-input/xt-input.umd.min.js +1 -0
- package/lib/xt-list/demo.html +10 -0
- package/lib/xt-list/index.js +1 -0
- package/lib/xt-list/xt-list.common.js +714 -0
- package/lib/xt-list/xt-list.css +1 -0
- package/lib/xt-list/xt-list.umd.js +724 -0
- package/lib/xt-list/xt-list.umd.min.js +1 -0
- package/lib/xt-map/demo.html +10 -0
- package/lib/xt-map/index.js +1 -0
- package/lib/xt-map/xt-map.common.js +1951 -0
- package/lib/xt-map/xt-map.css +1 -0
- package/lib/xt-map/xt-map.umd.js +1961 -0
- package/lib/xt-map/xt-map.umd.min.js +1 -0
- package/lib/xt-map-provider/demo.html +10 -0
- package/lib/xt-map-provider/index.js +1 -0
- package/lib/xt-map-provider/xt-map-provider.common.js +644 -0
- package/lib/xt-map-provider/xt-map-provider.css +1 -0
- package/lib/xt-map-provider/xt-map-provider.umd.js +654 -0
- package/lib/xt-map-provider/xt-map-provider.umd.min.js +1 -0
- package/lib/xt-page/demo.html +10 -0
- package/lib/xt-page/index.js +1 -0
- package/lib/xt-page/xt-page.common.js +353 -0
- package/lib/xt-page/xt-page.css +1 -0
- package/lib/xt-page/xt-page.umd.js +363 -0
- package/lib/xt-page/xt-page.umd.min.js +1 -0
- package/lib/xt-progress/demo.html +10 -0
- package/lib/xt-progress/index.js +1 -0
- package/lib/xt-progress/xt-progress.common.js +327 -0
- package/lib/xt-progress/xt-progress.css +1 -0
- package/lib/xt-progress/xt-progress.umd.js +337 -0
- package/lib/xt-progress/xt-progress.umd.min.js +1 -0
- package/lib/xt-scroll-arrow/demo.html +10 -0
- package/lib/xt-scroll-arrow/index.js +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +495 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.css +1 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +505 -0
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.min.js +1 -0
- package/lib/xt-select-tree/demo.html +10 -0
- package/lib/xt-select-tree/index.js +1 -0
- package/lib/xt-select-tree/xt-select-tree.common.js +1791 -0
- package/lib/xt-select-tree/xt-select-tree.css +1 -0
- package/lib/xt-select-tree/xt-select-tree.umd.js +1801 -0
- package/lib/xt-select-tree/xt-select-tree.umd.min.js +1 -0
- package/lib/xt-step-price/demo.html +10 -0
- package/lib/xt-step-price/index.js +1 -0
- package/lib/xt-step-price/xt-step-price.common.js +800 -0
- package/lib/xt-step-price/xt-step-price.css +1 -0
- package/lib/xt-step-price/xt-step-price.umd.js +810 -0
- package/lib/xt-step-price/xt-step-price.umd.min.js +1 -0
- package/lib/xt-step-price-item/demo.html +10 -0
- package/lib/xt-step-price-item/index.js +1 -0
- package/lib/xt-step-price-item/xt-step-price-item.common.js +417 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +427 -0
- package/lib/xt-step-price-item/xt-step-price-item.umd.min.js +1 -0
- package/lib/xt-tab-pane/demo.html +10 -0
- package/lib/xt-tab-pane/index.js +1 -0
- package/lib/xt-tab-pane/xt-tab-pane.common.js +309 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +319 -0
- package/lib/xt-tab-pane/xt-tab-pane.umd.min.js +1 -0
- package/lib/xt-table/demo.html +10 -0
- package/lib/xt-table/index.js +1 -0
- package/lib/xt-table/xt-table.common.js +1027 -0
- package/lib/xt-table/xt-table.css +1 -0
- package/lib/xt-table/xt-table.umd.js +1037 -0
- package/lib/xt-table/xt-table.umd.min.js +1 -0
- package/lib/xt-tabs/demo.html +10 -0
- package/lib/xt-tabs/index.js +1 -0
- package/lib/xt-tabs/xt-tabs.common.js +463 -0
- package/lib/xt-tabs/xt-tabs.css +1 -0
- package/lib/xt-tabs/xt-tabs.umd.js +473 -0
- package/lib/xt-tabs/xt-tabs.umd.min.js +1 -0
- package/lib/xt-text/demo.html +10 -0
- package/lib/xt-text/index.js +1 -0
- package/lib/xt-text/xt-text.common.js +536 -0
- package/lib/xt-text/xt-text.css +1 -0
- package/lib/xt-text/xt-text.umd.js +546 -0
- package/lib/xt-text/xt-text.umd.min.js +1 -0
- package/lib/xt-time/demo.html +10 -0
- package/lib/xt-time/index.js +1 -0
- package/lib/xt-time/xt-time.common.js +555 -0
- package/lib/xt-time/xt-time.css +1 -0
- package/lib/xt-time/xt-time.umd.js +565 -0
- package/lib/xt-time/xt-time.umd.min.js +1 -0
- package/lib/xt-transfer-tree/demo.html +10 -0
- package/lib/xt-transfer-tree/index.js +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +594 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.css +1 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +604 -0
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.min.js +1 -0
- package/lib/xt-upload/demo.html +10 -0
- package/lib/xt-upload/index.js +1 -0
- package/lib/xt-upload/xt-upload.common.js +1292 -0
- package/lib/xt-upload/xt-upload.css +1 -0
- package/lib/xt-upload/xt-upload.umd.js +1302 -0
- package/lib/xt-upload/xt-upload.umd.min.js +1 -0
- package/package.json +4 -2
- package/src/components/xt-badge/index.js +8 -7
- package/src/components/xt-button/index.js +1 -0
- package/src/components/xt-card/index.js +1 -0
- package/src/components/xt-card-item/index.js +1 -0
- package/src/components/xt-config-provider/index.js +1 -0
- package/src/components/xt-flex-box/index.js +1 -0
- package/src/components/xt-grid-box/index.js +1 -0
- package/src/components/xt-icon/index.js +1 -0
- package/src/components/xt-input/index.js +1 -0
- package/src/components/xt-map/index.js +1 -0
- package/src/components/xt-progress/index.js +8 -7
- package/src/components/xt-scroll-arrow/index.js +8 -7
- package/src/components/xt-step-price/index.js +1 -0
- package/src/components/xt-tabs/index.js +9 -8
- package/src/components/xt-text/index.js +1 -0
- package/src/components/xt-time/index.js +1 -0
- package/src/index.js +32 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t():"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["xt-date-picker"]=t():e["xt-date-picker"]=t()})("undefined"!==typeof self?self:this,(function(){return function(e){var t={};function a(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,a),n.l=!0,n.exports}return a.m=e,a.c=t,a.d=function(e,t,r){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(a.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)a.d(r,n,function(t){return e[t]}.bind(null,n));return r},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="",a(a.s="fb15")}({"134c":function(e,t,a){"use strict";a("4fae")},"3d19":function(e,t,a){},"4fae":function(e,t,a){},"53d0":function(e,t,a){},"863a":function(e,t,a){"use strict";a("53d0")},b1e2:function(e,t,a){"use strict";a("3d19")},fb15:function(e,t,a){"use strict";if(a.r(t),a.d(t,"XtDatePicker",(function(){return P})),"undefined"!==typeof window){var r=window.document.currentScript,n=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);n&&(a.p=n[1])}var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"xt-date-picker-container"},[e.showDimension?t("div",{staticClass:"xt-date-dimension"},[t("el-radio-group",{attrs:{size:"small"},model:{value:e.dimension,callback:function(t){e.dimension=t},expression:"dimension"}},[t("el-radio-button",{attrs:{label:"date"}},[e._v("日")]),t("el-radio-button",{attrs:{label:"month"}},[e._v("月")]),t("el-radio-button",{attrs:{label:"year"}},[e._v("年")]),t("el-radio-button",{attrs:{label:"daterange"}},[e._v("自定义")])],1)],1):e._e(),t("div",{staticClass:"xt-date-picker-wrapper"},[e.useRangeMode?t("RangeDate",{staticClass:"xt-date",class:{focus:e.isfocus},style:e.width?{width:e.width+"px"}:{},attrs:{type:e.rangeDateType,separator:e.separator,disabled:e.disabled},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.rangeValue,callback:function(t){e.rangeValue=t},expression:"rangeValue"}}):e._e(),e.useRangeMode||"quarter"===e.realDateType?e.useRangeMode||"quarter"!==e.realDateType?e._e():t("Picker",{attrs:{type:"quarter",size:"small",disabled:e.disabled,placeholder:e.innerPlaceholder},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}}):t("el-date-picker",{ref:"singlePicker",attrs:{size:"small",disabled:e.disabled,"append-to-body":"",format:e.format,type:e.realDateType,placeholder:e.innerPlaceholder,clearable:""},on:{focus:function(t){e.isfocus=!0,e.$emit("focus")},blur:function(t){e.isfocus=!1,e.$emit("blur")}},model:{value:e.singleValue,callback:function(t){e.singleValue=t},expression:"singleValue"}})],1)])},s=[],l=function(){var e=this,t=e._self._c;return t("div",{staticClass:"range-wrap"},[t("Picker",{attrs:{type:e.type,size:"small",placeholder:e.startPlaceholder,disabled:e.disabled,"disabled-date":e.disabledStart},on:{change:e.handleChange},model:{value:e.startVal,callback:function(t){e.startVal=t},expression:"startVal"}}),t("span",{staticClass:"split"},[e._v(e._s(e.separator))]),t("Picker",{attrs:{type:e.type,size:"small",placeholder:e.endPlaceholder,disabled:e.disabled,"disabled-date":e.disabledEnd},on:{change:e.handleChange},model:{value:e.endVal,callback:function(t){e.endVal=t},expression:"endVal"}})],1)},o=[],d=function(){var e=this,t=e._self._c;return t("div",{staticClass:"base-date-root"},["quarter"!==e.type?t("el-date-picker",e._g(e._b({attrs:{type:e.pickerType,"value-format":e.valueFormat,disabled:e.disabled,placeholder:e.placeholder,"popper-append-to-body":"","popper-class":"base-date-popper"},model:{value:e.innerValue,callback:function(t){e.innerValue=t},expression:"innerValue"}},"el-date-picker",e.$attrs,!1),e.$listeners)):t("el-popover",{attrs:{trigger:"manual",placement:"bottom-start",width:"240"},model:{value:e.quarterPopVisible,callback:function(t){e.quarterPopVisible=t},expression:"quarterPopVisible"}},[t("div",{staticClass:"quarter-panel"},[t("div",{staticClass:"quarter-header"},[t("el-button",{attrs:{icon:"el-icon-d-arrow-left"},on:{click:function(t){e.year--}}}),t("span",[e._v(e._s(e.year)+" 年")]),t("el-button",{attrs:{icon:"el-icon-d-arrow-right"},on:{click:function(t){e.year++}}})],1),t("div",{staticClass:"quarter-list"},e._l(4,(function(a){return t("div",{key:a,staticClass:"quarter-item",class:{active:e.quarterNum===a},on:{click:function(t){return e.selectQuarter(a)}}},[e._v(" Q"+e._s(a)+" ")])})),0)]),t("el-input",{ref:"quarterInput",attrs:{slot:"reference",size:"small",readonly:"",placeholder:e.placeholder,disabled:e.disabled,clearable:""},on:{clear:e.handleClearQuarter},slot:"reference",model:{value:e.quarterShowText,callback:function(t){e.quarterShowText=t},expression:"quarterShowText"}},[t("i",{staticClass:"el-icon-date",attrs:{slot:"affix"},slot:"affix"})])],1)],1)},u=[],c={name:"BaseDatePicker",inheritAttrs:!1,props:{value:{type:[String,null],default:null},type:{type:String,default:"date",validator:e=>["date","month","year","quarter","week"].includes(e)},disabled:{type:Boolean,default:!1},placeholder:String,valueFormat:String},data(){return{quarterPopVisible:!1,year:(new Date).getFullYear(),quarterNum:null}},computed:{pickerType(){return"quarter"===this.type?null:this.type},placeholder(){if(this.$props.placeholder)return this.$props.placeholder;const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周"};return e[this.type]||"请选择日期"},valueFormat(){if(this.$props.valueFormat)return this.$props.valueFormat;const e={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",quarter:"yyyy-Qq",week:"yyyy-WW"};return e[this.type]||"yyyy-MM-dd"},innerValue:{get(){return this.value},set(e){this.$emit("input",e)}},quarterShowText(){return this.value?`${this.year}-Q${this.quarterNum}`:""}},watch:{value:{handler(e){if("quarter"!==this.type||!e)return void(this.quarterNum=null);const[t,a]=e.split("-Q");this.year=Number(t),this.quarterNum=Number(a)},immediate:!0}},methods:{selectQuarter(e){this.quarterNum=e;const t=`${this.year}-Q${e}`;this.$emit("input",t),this.quarterPopVisible=!1},handleClearQuarter(){this.quarterNum=null,this.$emit("input",null)}},mounted(){"quarter"===this.type&&this.$refs.quarterInput&&this.$refs.quarterInput.$el.addEventListener("click",()=>{this.disabled||(this.quarterPopVisible=!0)})}},p=c;a("134c");function h(e,t,a,r,n,i,s,l){var o,d="function"===typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=a,d._compiled=!0),r&&(d.functional=!0),i&&(d._scopeId="data-v-"+i),s?(o=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),n&&n.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},d._ssrRegister=o):n&&(o=l?function(){n.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:n),o)if(d.functional){d._injectStyles=o;var u=d.render;d.render=function(e,t){return o.call(t),u(e,t)}}else{var c=d.beforeCreate;d.beforeCreate=c?[].concat(c,o):[o]}return{exports:e,options:d}}var y=h(p,d,u,!1,null,"54a20a1c",null),f=y.exports,m={name:"RangeDate",components:{Picker:f},props:{value:{type:Array,default:()=>[null,null]},type:{type:String,default:"date"},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1}},data(){return{startVal:"",endVal:""}},watch:{value:{handler(e){const[t,a]=e||[];this.startVal=t||"",this.endVal=a||""},immediate:!0}},computed:{startDate(){return this.startVal?new Date(this.startVal):null},endDate(){return this.endVal?new Date(this.endVal):null},startPlaceholder(){const e={date:"开始日期",month:"开始月份",year:"开始年份",quarter:"开始季度",week:"开始周"};return e[this.type]||"开始日期"},endPlaceholder(){const e={date:"结束日期",month:"结束月份",year:"结束年份",quarter:"结束季度",week:"结束周"};return e[this.type]||"结束日期"}},methods:{disabledStart(e){return!!this.endDate&&e.getTime()>this.endDate.getTime()},disabledEnd(e){return!!this.startDate&&e.getTime()<this.startDate.getTime()},handleChange(){this.$emit("input",[this.startVal,this.endVal])}}},b=m,v=(a("863a"),h(b,l,o,!1,null,"373bd75c",null)),g=v.exports;const k={datetime:"yyyy-MM-dd HH:mm",month:"yyyy-MM",year:"yyyy",date:"yyyy-MM-dd",quarter:"yyyy-Qq",week:"yyyy-WW"},_={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",daterange:"yyyy-MM-dd"},q={date:"date",month:"month",year:"year",daterange:"date"},V={date:"date",month:"month",year:"year",quarter:"quarter",week:"week"};var w={name:"XtDatePicker",components:{RangeDate:g,Picker:f},model:{prop:"value",event:"change"},props:{value:{type:[String,Array,null],default:null},dateType:{type:String,default:"date",validator:e=>Object.keys(k).includes(e)},separator:{type:String,default:"至"},disabled:{type:Boolean,default:!1},immediate:{type:Boolean,default:!0},placeholder:String,width:{type:String,default:"100%"},rangeMode:{type:Boolean,default:!1},showDimension:{type:Boolean,default:!1},dimension:{type:String,default:"date",validator:e=>["date","month","year","daterange"].includes(e)}},data(){return{isfocus:!1}},computed:{realDateType(){return this.showDimension?this.dimension:this.dateType},useRangeMode(){return"daterange"===this.dimension||this.rangeMode},rangeDateType(){return this.showDimension?q[this.dimension]||"date":V[this.dateType]||"date"},format(){return this.showDimension?_[this.dimension]||k[this.dateType]:k[this.dateType]||"yyyy-MM-dd"},innerPlaceholder(){if(this.placeholder)return this.placeholder;const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周",datetime:"请选择日期时间"};return e[this.realDateType]||"请选择"},singleValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}},rangeValue:{get(){return this.value},set(e){this.$emit("update:value",e),this.$emit("change",e),this.$emit("dimension-change",{dimension:this.dimension,value:e})}}},watch:{dimension(e){this.closePickerPanels(),this.immediate&&this.$emit("dimension-change",{dimension:e,value:this.value})}},methods:{closePickerPanels(){this.$refs.singlePicker&&(this.$refs.singlePicker.pickerVisible=!1)}}},$=w,x=(a("b1e2"),h($,i,s,!1,null,"3d03fedb",null)),P=x.exports;P.install=function(e){e.component(P.name,P)};var M=P;t["default"]=M}})}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./xt-flex-box.common.js');
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
module.exports =
|
|
2
|
+
/******/ (function(modules) { // webpackBootstrap
|
|
3
|
+
/******/ // The module cache
|
|
4
|
+
/******/ var installedModules = {};
|
|
5
|
+
/******/
|
|
6
|
+
/******/ // The require function
|
|
7
|
+
/******/ function __webpack_require__(moduleId) {
|
|
8
|
+
/******/
|
|
9
|
+
/******/ // Check if module is in cache
|
|
10
|
+
/******/ if(installedModules[moduleId]) {
|
|
11
|
+
/******/ return installedModules[moduleId].exports;
|
|
12
|
+
/******/ }
|
|
13
|
+
/******/ // Create a new module (and put it into the cache)
|
|
14
|
+
/******/ var module = installedModules[moduleId] = {
|
|
15
|
+
/******/ i: moduleId,
|
|
16
|
+
/******/ l: false,
|
|
17
|
+
/******/ exports: {}
|
|
18
|
+
/******/ };
|
|
19
|
+
/******/
|
|
20
|
+
/******/ // Execute the module function
|
|
21
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
22
|
+
/******/
|
|
23
|
+
/******/ // Flag the module as loaded
|
|
24
|
+
/******/ module.l = true;
|
|
25
|
+
/******/
|
|
26
|
+
/******/ // Return the exports of the module
|
|
27
|
+
/******/ return module.exports;
|
|
28
|
+
/******/ }
|
|
29
|
+
/******/
|
|
30
|
+
/******/
|
|
31
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
32
|
+
/******/ __webpack_require__.m = modules;
|
|
33
|
+
/******/
|
|
34
|
+
/******/ // expose the module cache
|
|
35
|
+
/******/ __webpack_require__.c = installedModules;
|
|
36
|
+
/******/
|
|
37
|
+
/******/ // define getter function for harmony exports
|
|
38
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
39
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
40
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
41
|
+
/******/ }
|
|
42
|
+
/******/ };
|
|
43
|
+
/******/
|
|
44
|
+
/******/ // define __esModule on exports
|
|
45
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
46
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
47
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
50
|
+
/******/ };
|
|
51
|
+
/******/
|
|
52
|
+
/******/ // create a fake namespace object
|
|
53
|
+
/******/ // mode & 1: value is a module id, require it
|
|
54
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
55
|
+
/******/ // mode & 4: return value when already ns object
|
|
56
|
+
/******/ // mode & 8|1: behave like require
|
|
57
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
58
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
59
|
+
/******/ if(mode & 8) return value;
|
|
60
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
61
|
+
/******/ var ns = Object.create(null);
|
|
62
|
+
/******/ __webpack_require__.r(ns);
|
|
63
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
64
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
65
|
+
/******/ return ns;
|
|
66
|
+
/******/ };
|
|
67
|
+
/******/
|
|
68
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
69
|
+
/******/ __webpack_require__.n = function(module) {
|
|
70
|
+
/******/ var getter = module && module.__esModule ?
|
|
71
|
+
/******/ function getDefault() { return module['default']; } :
|
|
72
|
+
/******/ function getModuleExports() { return module; };
|
|
73
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
74
|
+
/******/ return getter;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
78
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
79
|
+
/******/
|
|
80
|
+
/******/ // __webpack_public_path__
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/
|
|
83
|
+
/******/
|
|
84
|
+
/******/ // Load entry module and return exports
|
|
85
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
86
|
+
/******/ })
|
|
87
|
+
/************************************************************************/
|
|
88
|
+
/******/ ({
|
|
89
|
+
|
|
90
|
+
/***/ "5820":
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
// extracted by mini-css-extract-plugin
|
|
94
|
+
|
|
95
|
+
/***/ }),
|
|
96
|
+
|
|
97
|
+
/***/ "fb15":
|
|
98
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
99
|
+
|
|
100
|
+
"use strict";
|
|
101
|
+
// ESM COMPAT FLAG
|
|
102
|
+
__webpack_require__.r(__webpack_exports__);
|
|
103
|
+
|
|
104
|
+
// EXPORTS
|
|
105
|
+
__webpack_require__.d(__webpack_exports__, "XtFlexBox", function() { return /* reexport */ xt_flex_box; });
|
|
106
|
+
|
|
107
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
108
|
+
// This file is imported into lib/wc client bundles.
|
|
109
|
+
|
|
110
|
+
if (typeof window !== 'undefined') {
|
|
111
|
+
var currentScript = window.document.currentScript
|
|
112
|
+
if (false) { var getCurrentScript; }
|
|
113
|
+
|
|
114
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
115
|
+
if (src) {
|
|
116
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// Indicate to webpack that this file can be concatenated
|
|
121
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
122
|
+
|
|
123
|
+
// EXTERNAL MODULE: ./src/components/xt-flex-box/style/index.scss
|
|
124
|
+
var style = __webpack_require__("5820");
|
|
125
|
+
|
|
126
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-flex-box/index.vue?vue&type=template&id=5dab0d2a
|
|
127
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-flex-box",class:_vm.classAttrs,style:(_vm.flexStyle)},[_vm._t("default")],2)
|
|
128
|
+
}
|
|
129
|
+
var staticRenderFns = []
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue?vue&type=template&id=5dab0d2a
|
|
133
|
+
|
|
134
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-flex-box/index.vue?vue&type=script&lang=js
|
|
135
|
+
|
|
136
|
+
/* harmony default export */ var xt_flex_boxvue_type_script_lang_js = ({
|
|
137
|
+
name: "XtFlexBox",
|
|
138
|
+
props: {
|
|
139
|
+
type: { type: String, default: "flex" },
|
|
140
|
+
align: { type: String, default: "center" },
|
|
141
|
+
content: { type: String, default: "start" },
|
|
142
|
+
direction: { type: String, default: "row" },
|
|
143
|
+
wrap: { type: String, default: "unset" },
|
|
144
|
+
gap: { type: String, default: "" }
|
|
145
|
+
},
|
|
146
|
+
computed: {
|
|
147
|
+
classAttrs(){
|
|
148
|
+
const { type, align, wrap, direction, content } = this;
|
|
149
|
+
return [`${type}`, `align-${align}`, `content-${content}`, `direction-${direction}`, `wrap-${wrap}`]
|
|
150
|
+
},
|
|
151
|
+
flexStyle() {
|
|
152
|
+
const result = {}
|
|
153
|
+
if (this.gap) {
|
|
154
|
+
result.gap = this.gap
|
|
155
|
+
} else {
|
|
156
|
+
result.gap = ''
|
|
157
|
+
}
|
|
158
|
+
return result
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
|
|
163
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue?vue&type=script&lang=js
|
|
164
|
+
/* harmony default export */ var components_xt_flex_boxvue_type_script_lang_js = (xt_flex_boxvue_type_script_lang_js);
|
|
165
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
166
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
167
|
+
|
|
168
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
169
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
170
|
+
// be included in the final webpack user bundle.
|
|
171
|
+
|
|
172
|
+
function normalizeComponent(
|
|
173
|
+
scriptExports,
|
|
174
|
+
render,
|
|
175
|
+
staticRenderFns,
|
|
176
|
+
functionalTemplate,
|
|
177
|
+
injectStyles,
|
|
178
|
+
scopeId,
|
|
179
|
+
moduleIdentifier /* server only */,
|
|
180
|
+
shadowMode /* vue-cli only */
|
|
181
|
+
) {
|
|
182
|
+
// Vue.extend constructor export interop
|
|
183
|
+
var options =
|
|
184
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
185
|
+
|
|
186
|
+
// render functions
|
|
187
|
+
if (render) {
|
|
188
|
+
options.render = render
|
|
189
|
+
options.staticRenderFns = staticRenderFns
|
|
190
|
+
options._compiled = true
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// functional template
|
|
194
|
+
if (functionalTemplate) {
|
|
195
|
+
options.functional = true
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// scopedId
|
|
199
|
+
if (scopeId) {
|
|
200
|
+
options._scopeId = 'data-v-' + scopeId
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
var hook
|
|
204
|
+
if (moduleIdentifier) {
|
|
205
|
+
// server build
|
|
206
|
+
hook = function (context) {
|
|
207
|
+
// 2.3 injection
|
|
208
|
+
context =
|
|
209
|
+
context || // cached call
|
|
210
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
211
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
212
|
+
// 2.2 with runInNewContext: true
|
|
213
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
214
|
+
context = __VUE_SSR_CONTEXT__
|
|
215
|
+
}
|
|
216
|
+
// inject component styles
|
|
217
|
+
if (injectStyles) {
|
|
218
|
+
injectStyles.call(this, context)
|
|
219
|
+
}
|
|
220
|
+
// register component module identifier for async chunk inferrence
|
|
221
|
+
if (context && context._registeredComponents) {
|
|
222
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
// used by ssr in case component is cached and beforeCreate
|
|
226
|
+
// never gets called
|
|
227
|
+
options._ssrRegister = hook
|
|
228
|
+
} else if (injectStyles) {
|
|
229
|
+
hook = shadowMode
|
|
230
|
+
? function () {
|
|
231
|
+
injectStyles.call(
|
|
232
|
+
this,
|
|
233
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
234
|
+
)
|
|
235
|
+
}
|
|
236
|
+
: injectStyles
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (hook) {
|
|
240
|
+
if (options.functional) {
|
|
241
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
242
|
+
// go through the normalizer
|
|
243
|
+
options._injectStyles = hook
|
|
244
|
+
// register for functional component in vue file
|
|
245
|
+
var originalRender = options.render
|
|
246
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
247
|
+
hook.call(context)
|
|
248
|
+
return originalRender(h, context)
|
|
249
|
+
}
|
|
250
|
+
} else {
|
|
251
|
+
// inject component registration as beforeCreate hook
|
|
252
|
+
var existing = options.beforeCreate
|
|
253
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
return {
|
|
258
|
+
exports: scriptExports,
|
|
259
|
+
options: options
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
/* normalize component */
|
|
270
|
+
|
|
271
|
+
var component = normalizeComponent(
|
|
272
|
+
components_xt_flex_boxvue_type_script_lang_js,
|
|
273
|
+
render,
|
|
274
|
+
staticRenderFns,
|
|
275
|
+
false,
|
|
276
|
+
null,
|
|
277
|
+
null,
|
|
278
|
+
null
|
|
279
|
+
|
|
280
|
+
)
|
|
281
|
+
|
|
282
|
+
/* harmony default export */ var xt_flex_box = (component.exports);
|
|
283
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.js
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
xt_flex_box.install = function (Vue) {
|
|
288
|
+
Vue.component(xt_flex_box.name, xt_flex_box)
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
/* harmony default export */ var components_xt_flex_box = (xt_flex_box);
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_flex_box);
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
/***/ })
|
|
302
|
+
|
|
303
|
+
/******/ });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.xt-flex-box.flex{display:flex}.xt-flex-box.is-inline{display:inline-flex}.direction-row{flex-direction:row}.direction-row-reverse{flex-direction:row-reverse}.direction-column{flex-direction:column}.direction-column-reverse{flex-direction:column-reverse}.align-center{align-items:center}.align-start{align-items:flex-start}.align-end{align-items:flex-end}.align-baseline{align-items:baseline}.align-stretch{align-items:stretch}.content-center{justify-content:center}.content-around{justify-content:space-around}.content-between{justify-content:space-between}.content-start{justify-content:flex-start}.content-end{justify-content:flex-end}.content-evenly{justify-content:space-evenly}.wrap-wrap{flex-wrap:wrap}.wrap-nowrap{flex-wrap:nowrap}.wrap-unset{flex-wrap:wrap}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory();
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["xt-flex-box"] = factory();
|
|
8
|
+
else
|
|
9
|
+
root["xt-flex-box"] = factory();
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
|
11
|
+
return /******/ (function(modules) { // webpackBootstrap
|
|
12
|
+
/******/ // The module cache
|
|
13
|
+
/******/ var installedModules = {};
|
|
14
|
+
/******/
|
|
15
|
+
/******/ // The require function
|
|
16
|
+
/******/ function __webpack_require__(moduleId) {
|
|
17
|
+
/******/
|
|
18
|
+
/******/ // Check if module is in cache
|
|
19
|
+
/******/ if(installedModules[moduleId]) {
|
|
20
|
+
/******/ return installedModules[moduleId].exports;
|
|
21
|
+
/******/ }
|
|
22
|
+
/******/ // Create a new module (and put it into the cache)
|
|
23
|
+
/******/ var module = installedModules[moduleId] = {
|
|
24
|
+
/******/ i: moduleId,
|
|
25
|
+
/******/ l: false,
|
|
26
|
+
/******/ exports: {}
|
|
27
|
+
/******/ };
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // Execute the module function
|
|
30
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
31
|
+
/******/
|
|
32
|
+
/******/ // Flag the module as loaded
|
|
33
|
+
/******/ module.l = true;
|
|
34
|
+
/******/
|
|
35
|
+
/******/ // Return the exports of the module
|
|
36
|
+
/******/ return module.exports;
|
|
37
|
+
/******/ }
|
|
38
|
+
/******/
|
|
39
|
+
/******/
|
|
40
|
+
/******/ // expose the modules object (__webpack_modules__)
|
|
41
|
+
/******/ __webpack_require__.m = modules;
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // expose the module cache
|
|
44
|
+
/******/ __webpack_require__.c = installedModules;
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // define getter function for harmony exports
|
|
47
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
|
48
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
|
49
|
+
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
|
50
|
+
/******/ }
|
|
51
|
+
/******/ };
|
|
52
|
+
/******/
|
|
53
|
+
/******/ // define __esModule on exports
|
|
54
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
55
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
56
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
57
|
+
/******/ }
|
|
58
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
59
|
+
/******/ };
|
|
60
|
+
/******/
|
|
61
|
+
/******/ // create a fake namespace object
|
|
62
|
+
/******/ // mode & 1: value is a module id, require it
|
|
63
|
+
/******/ // mode & 2: merge all properties of value into the ns
|
|
64
|
+
/******/ // mode & 4: return value when already ns object
|
|
65
|
+
/******/ // mode & 8|1: behave like require
|
|
66
|
+
/******/ __webpack_require__.t = function(value, mode) {
|
|
67
|
+
/******/ if(mode & 1) value = __webpack_require__(value);
|
|
68
|
+
/******/ if(mode & 8) return value;
|
|
69
|
+
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
|
70
|
+
/******/ var ns = Object.create(null);
|
|
71
|
+
/******/ __webpack_require__.r(ns);
|
|
72
|
+
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
|
73
|
+
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
|
74
|
+
/******/ return ns;
|
|
75
|
+
/******/ };
|
|
76
|
+
/******/
|
|
77
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
78
|
+
/******/ __webpack_require__.n = function(module) {
|
|
79
|
+
/******/ var getter = module && module.__esModule ?
|
|
80
|
+
/******/ function getDefault() { return module['default']; } :
|
|
81
|
+
/******/ function getModuleExports() { return module; };
|
|
82
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
|
83
|
+
/******/ return getter;
|
|
84
|
+
/******/ };
|
|
85
|
+
/******/
|
|
86
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
|
87
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
|
88
|
+
/******/
|
|
89
|
+
/******/ // __webpack_public_path__
|
|
90
|
+
/******/ __webpack_require__.p = "";
|
|
91
|
+
/******/
|
|
92
|
+
/******/
|
|
93
|
+
/******/ // Load entry module and return exports
|
|
94
|
+
/******/ return __webpack_require__(__webpack_require__.s = "fb15");
|
|
95
|
+
/******/ })
|
|
96
|
+
/************************************************************************/
|
|
97
|
+
/******/ ({
|
|
98
|
+
|
|
99
|
+
/***/ "5820":
|
|
100
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
+
|
|
102
|
+
// extracted by mini-css-extract-plugin
|
|
103
|
+
|
|
104
|
+
/***/ }),
|
|
105
|
+
|
|
106
|
+
/***/ "fb15":
|
|
107
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
108
|
+
|
|
109
|
+
"use strict";
|
|
110
|
+
// ESM COMPAT FLAG
|
|
111
|
+
__webpack_require__.r(__webpack_exports__);
|
|
112
|
+
|
|
113
|
+
// EXPORTS
|
|
114
|
+
__webpack_require__.d(__webpack_exports__, "XtFlexBox", function() { return /* reexport */ xt_flex_box; });
|
|
115
|
+
|
|
116
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
117
|
+
// This file is imported into lib/wc client bundles.
|
|
118
|
+
|
|
119
|
+
if (typeof window !== 'undefined') {
|
|
120
|
+
var currentScript = window.document.currentScript
|
|
121
|
+
if (false) { var getCurrentScript; }
|
|
122
|
+
|
|
123
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
124
|
+
if (src) {
|
|
125
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Indicate to webpack that this file can be concatenated
|
|
130
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
131
|
+
|
|
132
|
+
// EXTERNAL MODULE: ./src/components/xt-flex-box/style/index.scss
|
|
133
|
+
var style = __webpack_require__("5820");
|
|
134
|
+
|
|
135
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"b8cd9b04-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-flex-box/index.vue?vue&type=template&id=5dab0d2a
|
|
136
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:"xt-flex-box",class:_vm.classAttrs,style:(_vm.flexStyle)},[_vm._t("default")],2)
|
|
137
|
+
}
|
|
138
|
+
var staticRenderFns = []
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue?vue&type=template&id=5dab0d2a
|
|
142
|
+
|
|
143
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/xt-flex-box/index.vue?vue&type=script&lang=js
|
|
144
|
+
|
|
145
|
+
/* harmony default export */ var xt_flex_boxvue_type_script_lang_js = ({
|
|
146
|
+
name: "XtFlexBox",
|
|
147
|
+
props: {
|
|
148
|
+
type: { type: String, default: "flex" },
|
|
149
|
+
align: { type: String, default: "center" },
|
|
150
|
+
content: { type: String, default: "start" },
|
|
151
|
+
direction: { type: String, default: "row" },
|
|
152
|
+
wrap: { type: String, default: "unset" },
|
|
153
|
+
gap: { type: String, default: "" }
|
|
154
|
+
},
|
|
155
|
+
computed: {
|
|
156
|
+
classAttrs(){
|
|
157
|
+
const { type, align, wrap, direction, content } = this;
|
|
158
|
+
return [`${type}`, `align-${align}`, `content-${content}`, `direction-${direction}`, `wrap-${wrap}`]
|
|
159
|
+
},
|
|
160
|
+
flexStyle() {
|
|
161
|
+
const result = {}
|
|
162
|
+
if (this.gap) {
|
|
163
|
+
result.gap = this.gap
|
|
164
|
+
} else {
|
|
165
|
+
result.gap = ''
|
|
166
|
+
}
|
|
167
|
+
return result
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
});
|
|
171
|
+
|
|
172
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue?vue&type=script&lang=js
|
|
173
|
+
/* harmony default export */ var components_xt_flex_boxvue_type_script_lang_js = (xt_flex_boxvue_type_script_lang_js);
|
|
174
|
+
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
175
|
+
/* globals __VUE_SSR_CONTEXT__ */
|
|
176
|
+
|
|
177
|
+
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
|
178
|
+
// This module is a runtime utility for cleaner component module output and will
|
|
179
|
+
// be included in the final webpack user bundle.
|
|
180
|
+
|
|
181
|
+
function normalizeComponent(
|
|
182
|
+
scriptExports,
|
|
183
|
+
render,
|
|
184
|
+
staticRenderFns,
|
|
185
|
+
functionalTemplate,
|
|
186
|
+
injectStyles,
|
|
187
|
+
scopeId,
|
|
188
|
+
moduleIdentifier /* server only */,
|
|
189
|
+
shadowMode /* vue-cli only */
|
|
190
|
+
) {
|
|
191
|
+
// Vue.extend constructor export interop
|
|
192
|
+
var options =
|
|
193
|
+
typeof scriptExports === 'function' ? scriptExports.options : scriptExports
|
|
194
|
+
|
|
195
|
+
// render functions
|
|
196
|
+
if (render) {
|
|
197
|
+
options.render = render
|
|
198
|
+
options.staticRenderFns = staticRenderFns
|
|
199
|
+
options._compiled = true
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// functional template
|
|
203
|
+
if (functionalTemplate) {
|
|
204
|
+
options.functional = true
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
// scopedId
|
|
208
|
+
if (scopeId) {
|
|
209
|
+
options._scopeId = 'data-v-' + scopeId
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
var hook
|
|
213
|
+
if (moduleIdentifier) {
|
|
214
|
+
// server build
|
|
215
|
+
hook = function (context) {
|
|
216
|
+
// 2.3 injection
|
|
217
|
+
context =
|
|
218
|
+
context || // cached call
|
|
219
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
220
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
|
221
|
+
// 2.2 with runInNewContext: true
|
|
222
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
223
|
+
context = __VUE_SSR_CONTEXT__
|
|
224
|
+
}
|
|
225
|
+
// inject component styles
|
|
226
|
+
if (injectStyles) {
|
|
227
|
+
injectStyles.call(this, context)
|
|
228
|
+
}
|
|
229
|
+
// register component module identifier for async chunk inferrence
|
|
230
|
+
if (context && context._registeredComponents) {
|
|
231
|
+
context._registeredComponents.add(moduleIdentifier)
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// used by ssr in case component is cached and beforeCreate
|
|
235
|
+
// never gets called
|
|
236
|
+
options._ssrRegister = hook
|
|
237
|
+
} else if (injectStyles) {
|
|
238
|
+
hook = shadowMode
|
|
239
|
+
? function () {
|
|
240
|
+
injectStyles.call(
|
|
241
|
+
this,
|
|
242
|
+
(options.functional ? this.parent : this).$root.$options.shadowRoot
|
|
243
|
+
)
|
|
244
|
+
}
|
|
245
|
+
: injectStyles
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
if (hook) {
|
|
249
|
+
if (options.functional) {
|
|
250
|
+
// for template-only hot-reload because in that case the render fn doesn't
|
|
251
|
+
// go through the normalizer
|
|
252
|
+
options._injectStyles = hook
|
|
253
|
+
// register for functional component in vue file
|
|
254
|
+
var originalRender = options.render
|
|
255
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
256
|
+
hook.call(context)
|
|
257
|
+
return originalRender(h, context)
|
|
258
|
+
}
|
|
259
|
+
} else {
|
|
260
|
+
// inject component registration as beforeCreate hook
|
|
261
|
+
var existing = options.beforeCreate
|
|
262
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return {
|
|
267
|
+
exports: scriptExports,
|
|
268
|
+
options: options
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.vue
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
/* normalize component */
|
|
279
|
+
|
|
280
|
+
var component = normalizeComponent(
|
|
281
|
+
components_xt_flex_boxvue_type_script_lang_js,
|
|
282
|
+
render,
|
|
283
|
+
staticRenderFns,
|
|
284
|
+
false,
|
|
285
|
+
null,
|
|
286
|
+
null,
|
|
287
|
+
null
|
|
288
|
+
|
|
289
|
+
)
|
|
290
|
+
|
|
291
|
+
/* harmony default export */ var xt_flex_box = (component.exports);
|
|
292
|
+
// CONCATENATED MODULE: ./src/components/xt-flex-box/index.js
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
xt_flex_box.install = function (Vue) {
|
|
297
|
+
Vue.component(xt_flex_box.name, xt_flex_box)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* harmony default export */ var components_xt_flex_box = (xt_flex_box);
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
/* harmony default export */ var entry_lib = __webpack_exports__["default"] = (components_xt_flex_box);
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
/***/ })
|
|
311
|
+
|
|
312
|
+
/******/ });
|
|
313
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e():"function"===typeof define&&define.amd?define([],e):"object"===typeof exports?exports["xt-flex-box"]=e():t["xt-flex-box"]=e()})("undefined"!==typeof self?self:this,(function(){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")}({5820:function(t,e,n){},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"XtFlexBox",(function(){return c})),"undefined"!==typeof window){var r=window.document.currentScript,o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}n("5820");var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"xt-flex-box",class:t.classAttrs,style:t.flexStyle},[t._t("default")],2)},f=[],u={name:"XtFlexBox",props:{type:{type:String,default:"flex"},align:{type:String,default:"center"},content:{type:String,default:"start"},direction:{type:String,default:"row"},wrap:{type:String,default:"unset"},gap:{type:String,default:""}},computed:{classAttrs(){const{type:t,align:e,wrap:n,direction:r,content:o}=this;return[""+t,"align-"+e,"content-"+o,"direction-"+r,"wrap-"+n]},flexStyle(){const t={};return this.gap?t.gap=this.gap:t.gap="",t}}},s=u;function a(t,e,n,r,o,i,f,u){var s,a="function"===typeof t?t.options:t;if(e&&(a.render=e,a.staticRenderFns=n,a._compiled=!0),r&&(a.functional=!0),i&&(a._scopeId="data-v-"+i),f?(s=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(f)},a._ssrRegister=s):o&&(s=u?function(){o.call(this,(a.functional?this.parent:this).$root.$options.shadowRoot)}:o),s)if(a.functional){a._injectStyles=s;var l=a.render;a.render=function(t,e){return s.call(e),l(t,e)}}else{var c=a.beforeCreate;a.beforeCreate=c?[].concat(c,s):[s]}return{exports:t,options:a}}var l=a(s,i,f,!1,null,null,null),c=l.exports;c.install=function(t){t.component(c.name,c)};var p=c;e["default"]=p}})}));
|