xt-element-ui 2.2.1 → 2.2.3
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/README.md +1 -1
- package/docs/README.md +10 -3
- package/docs/components/base/xt-button.md +11 -4
- package/docs/components/base/xt-card.md +5 -11
- package/docs/components/base/xt-config-provider.md +2 -0
- package/docs/components/base/xt-date-picker.md +7 -26
- package/docs/components/base/xt-flow.md +404 -0
- package/docs/components/base/xt-grid-box.md +34 -34
- package/docs/components/base/xt-multi.md +5 -5
- package/docs/components/base/xt-tabs.md +51 -6
- package/docs/components/base/xt-text.md +20 -3
- package/docs/components/business/xt-chart.md +1 -0
- package/lib/css/1.87a493be.css +1 -0
- package/lib/index.common.1.js +294 -0
- package/lib/index.common.2.js +141 -0
- package/lib/index.common.js +12125 -118823
- package/lib/index.css +1 -1
- package/lib/index.umd.1.js +294 -0
- package/lib/index.umd.2.js +141 -0
- package/lib/index.umd.js +12131 -118828
- package/lib/index.umd.min.1.js +1 -0
- package/lib/index.umd.min.2.js +1 -0
- package/lib/index.umd.min.js +1 -1
- package/lib/xt-badge/xt-badge.common.js +1 -1
- package/lib/xt-badge/xt-badge.css +1 -1
- package/lib/xt-badge/xt-badge.umd.js +1 -1
- package/lib/xt-button/xt-button.common.js +13 -8
- package/lib/xt-button/xt-button.css +1 -1
- package/lib/xt-button/xt-button.umd.js +13 -8
- package/lib/xt-button/xt-button.umd.min.js +1 -1
- package/lib/xt-card/xt-card.common.js +5 -5
- package/lib/xt-card/xt-card.umd.js +5 -5
- package/lib/xt-card/xt-card.umd.min.js +1 -1
- package/lib/xt-card-item/xt-card-item.common.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.js +4 -4
- package/lib/xt-card-item/xt-card-item.umd.min.js +1 -1
- package/lib/xt-chart/xt-chart.common.js +1969 -108924
- package/lib/xt-chart/xt-chart.css +1 -1
- package/lib/xt-chart/xt-chart.umd.js +1975 -108929
- package/lib/xt-chart/xt-chart.umd.min.js +1 -1
- package/lib/xt-config-provider/xt-config-provider.common.js +561 -107504
- package/lib/xt-config-provider/xt-config-provider.css +1 -1
- package/lib/xt-config-provider/xt-config-provider.umd.js +567 -107509
- package/lib/xt-config-provider/xt-config-provider.umd.min.js +1 -1
- package/lib/xt-date-picker/css/1.87a493be.css +1 -0
- package/lib/xt-date-picker/xt-date-picker.common.1.js +294 -0
- package/lib/xt-date-picker/xt-date-picker.common.2.js +141 -0
- package/lib/xt-date-picker/xt-date-picker.common.js +201 -332
- package/lib/xt-date-picker/xt-date-picker.css +1 -1
- package/lib/xt-date-picker/xt-date-picker.umd.1.js +294 -0
- package/lib/xt-date-picker/xt-date-picker.umd.2.js +141 -0
- package/lib/xt-date-picker/xt-date-picker.umd.js +201 -332
- package/lib/xt-date-picker/xt-date-picker.umd.min.1.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.2.js +1 -0
- package/lib/xt-date-picker/xt-date-picker.umd.min.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.common.js +1 -1
- package/lib/xt-flex-box/xt-flex-box.umd.js +1 -1
- package/lib/xt-flow/demo.html +10 -0
- package/lib/xt-flow/index.js +1 -0
- package/lib/xt-flow/xt-flow.common.js +638 -0
- package/lib/xt-flow/xt-flow.css +1 -0
- package/lib/xt-flow/xt-flow.umd.js +648 -0
- package/lib/xt-flow/xt-flow.umd.min.js +1 -0
- package/lib/xt-form-schema/xt-form-schema.common.js +1 -1
- package/lib/xt-form-schema/xt-form-schema.umd.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.common.js +1 -1
- package/lib/xt-grid-box/xt-grid-box.umd.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.common.js +1 -1
- package/lib/xt-grid-item/xt-grid-item.umd.js +1 -1
- package/lib/xt-icon/xt-icon.common.js +1 -1
- package/lib/xt-icon/xt-icon.umd.js +1 -1
- package/lib/xt-input/xt-input.common.js +1 -1
- package/lib/xt-input/xt-input.umd.js +1 -1
- package/lib/xt-list/xt-list.common.js +1 -1
- package/lib/xt-list/xt-list.umd.js +1 -1
- package/lib/xt-map/xt-map.common.js +1 -1
- package/lib/xt-map/xt-map.umd.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.common.js +1 -1
- package/lib/xt-map-provider/xt-map-provider.umd.js +1 -1
- package/lib/xt-page/xt-page.common.js +1 -1
- package/lib/xt-page/xt-page.umd.js +1 -1
- package/lib/xt-progress/xt-progress.common.js +1 -1
- package/lib/xt-progress/xt-progress.umd.js +1 -1
- package/lib/xt-scroll-arrow/xt-scroll-arrow.common.js +1 -1
- package/lib/xt-scroll-arrow/xt-scroll-arrow.umd.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.common.js +1 -1
- package/lib/xt-select-tree/xt-select-tree.umd.js +1 -1
- package/lib/xt-step-price/xt-step-price.common.js +2 -2
- package/lib/xt-step-price/xt-step-price.umd.js +2 -2
- package/lib/xt-step-price-item/xt-step-price-item.common.js +1 -1
- package/lib/xt-step-price-item/xt-step-price-item.umd.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.common.js +1 -1
- package/lib/xt-tab-pane/xt-tab-pane.umd.js +1 -1
- package/lib/xt-table/xt-table.common.js +2 -2
- package/lib/xt-table/xt-table.umd.js +2 -2
- package/lib/xt-tabs/xt-tabs.common.js +5 -27
- package/lib/xt-tabs/xt-tabs.css +1 -1
- package/lib/xt-tabs/xt-tabs.umd.js +5 -27
- package/lib/xt-tabs/xt-tabs.umd.min.js +1 -1
- package/lib/xt-text/xt-text.common.js +7 -4
- package/lib/xt-text/xt-text.css +1 -1
- package/lib/xt-text/xt-text.umd.js +7 -4
- package/lib/xt-text/xt-text.umd.min.js +1 -1
- package/lib/xt-time/xt-time.common.js +1 -1
- package/lib/xt-time/xt-time.umd.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.common.js +1 -1
- package/lib/xt-transfer-tree/xt-transfer-tree.umd.js +1 -1
- package/lib/xt-upload/xt-upload.common.js +11 -11
- package/lib/xt-upload/xt-upload.umd.js +12 -12
- package/lib/xt-upload/xt-upload.umd.min.js +1 -1
- package/package.json +5 -6
- package/src/components/index.scss +7 -1
- package/src/components/xt-badge/style/index.scss +6 -6
- package/src/components/xt-button/index.vue +11 -6
- package/src/components/xt-button/style/index.scss +7 -5
- package/src/components/xt-card/index.vue +3 -3
- package/src/components/xt-card-item/index.vue +2 -2
- package/src/components/xt-chart/XtMulti.vue +8 -18
- package/src/components/xt-chart/XtPie.vue +1 -0
- package/src/components/xt-chart/utils.js +84 -50
- package/src/components/xt-config-provider/index.vue +56 -54
- package/src/components/xt-date-picker/component/Picker.vue +2 -46
- package/src/components/xt-date-picker/component/RangeDate.vue +4 -4
- package/src/components/xt-date-picker/index.js +1 -0
- package/src/components/xt-date-picker/index.vue +3 -23
- package/src/components/xt-date-picker/style/index.scss +62 -0
- package/src/components/xt-flow/flowable-parser.js +244 -0
- package/src/components/xt-flow/index.js +8 -0
- package/src/components/xt-flow/index.vue +226 -0
- package/src/components/xt-flow/style/index.scss +359 -0
- package/src/components/xt-input/style/index.scss +1 -1
- package/src/components/xt-tabs/index.vue +3 -174
- package/src/components/xt-tabs/style/index.scss +131 -121
- package/src/components/xt-text/index.vue +5 -2
- package/src/components/xt-text/style/index.scss +6 -6
- package/src/index.js +8 -13
- package/src/styles/css-variables.scss +73 -1
- package/src/styles/theme/index.scss +0 -1
- package/src/styles/theme/dark-variables.scss +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpindex"]=("undefined"!==typeof self?self:this)["webpackJsonpindex"]||[]).push([[1,2],{"0e3e":function(e,t,a){"use strict";a("16dd")},"16dd":function(e,t,a){},"1db3":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"range-picker"},[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)},l=[],s=a("b0ea"),i={name:"RangeDate",components:{Picker:s["default"]},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])}}},n=i,u=(a("0e3e"),a("2877")),d=Object(u["a"])(n,r,l,!1,null,"32b85e82",null);t["default"]=d.exports},b0ea:function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e._self._c;return t("div",{staticClass:"date-picker"},["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)},l=[],s={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}},data(){return{quarterPopVisible:!1,year:(new Date).getFullYear(),quarterNum:null}},computed:{pickerType(){return"quarter"===this.type?null:this.type},placeholder(){const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周"};return e[this.type]||"请选择日期"},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)})}},i=s,n=a("2877"),u=Object(n["a"])(i,r,l,!1,null,null,null);t["default"]=u.exports}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpindex"]=("undefined"!==typeof self?self:this)["webpackJsonpindex"]||[]).push([[2],{b0ea:function(e,t,r){"use strict";r.r(t);var a=function(){var e=this,t=e._self._c;return t("div",{staticClass:"date-picker"},["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(r){return t("div",{key:r,staticClass:"quarter-item",class:{active:e.quarterNum===r},on:{click:function(t){return e.selectQuarter(r)}}},[e._v(" Q"+e._s(r)+" ")])})),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)},l=[],i={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}},data(){return{quarterPopVisible:!1,year:(new Date).getFullYear(),quarterNum:null}},computed:{pickerType(){return"quarter"===this.type?null:this.type},placeholder(){const e={date:"请选择日期",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",week:"请选择周"};return e[this.type]||"请选择日期"},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,r]=e.split("-Q");this.year=Number(t),this.quarterNum=Number(r)},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)})}},s=i,u=r("2877"),n=Object(u["a"])(s,a,l,!1,null,null,null);t["default"]=n.exports}}]);
|