|
|
|
|
((typeof self !== 'undefined' ? self : this)["webpackJsonpchartmix"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpchartmix"] || []).push([[4],{
|
|
|
|
|
|
|
|
|
|
/***/ "1540":
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseLabel", function() { return ChartBaseLabel; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseSwitch", function() { return ChartBaseSwitch; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseInput", function() { return ChartBaseInput; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseSelect", function() { return ChartBaseSelect; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseSlider", function() { return ChartBaseSlider; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ChartBaseBox", function() { return ChartBaseBox; });
|
|
|
|
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "importComp", function() { return importComp; });
|
|
|
|
|
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d3b7");
|
|
|
|
|
/* harmony import */ var core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string__WEBPACK_IMPORTED_MODULE_0__);
|
|
|
|
|
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("e6cf");
|
|
|
|
|
/* harmony import */ var core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise__WEBPACK_IMPORTED_MODULE_1__);
|
|
|
|
|
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("2f62");
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "mapActions", function() { return vuex__WEBPACK_IMPORTED_MODULE_2__["b"]; });
|
|
|
|
|
|
|
|
|
|
/* harmony import */ var _utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("ca00");
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "deepCopy", function() { return _utils_util__WEBPACK_IMPORTED_MODULE_3__["a"]; });
|
|
|
|
|
|
|
|
|
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("2ef0");
|
|
|
|
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
|
|
|
|
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isEqual", function() { return lodash__WEBPACK_IMPORTED_MODULE_4__["isEqual"]; });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 复用的组件和方法
|
|
|
|
|
var ChartBaseLabel = function ChartBaseLabel() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 2).then(__webpack_require__.bind(null, "02ce"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ChartBaseSwitch = function ChartBaseSwitch() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 11).then(__webpack_require__.bind(null, "9e1a"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ChartBaseInput = function ChartBaseInput() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 10).then(__webpack_require__.bind(null, "37cd"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ChartBaseSelect = function ChartBaseSelect() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 3).then(__webpack_require__.bind(null, "138b"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ChartBaseSlider = function ChartBaseSlider() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 1).then(__webpack_require__.bind(null, "b57e"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ChartBaseBox = function ChartBaseBox() {
|
|
|
|
|
return __webpack_require__.e(/* import() */ 9).then(__webpack_require__.bind(null, "3f9f"));
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 重复引入的组件
|
|
|
|
|
|
|
|
|
|
var importComp = function importComp(t) {
|
|
|
|
|
return {
|
|
|
|
|
'chart-base-label': t.ChartBaseLabel,
|
|
|
|
|
'chart-base-input': t.ChartBaseInput,
|
|
|
|
|
'chart-base-switch': t.ChartBaseSwitch,
|
|
|
|
|
'chart-base-slider': t.ChartBaseSlider,
|
|
|
|
|
'chart-base-select': t.ChartBaseSelect
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
|
|
/***/ "e078":
|
|
|
|
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
// ESM COMPAT FLAG
|
|
|
|
|
__webpack_require__.r(__webpack_exports__);
|
|
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3da76939-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ChartMix/chartChips/chart/ChartAxis.vue?vue&type=template&id=728665dc&
|
|
|
|
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-collapse-item',{attrs:{"name":"6","title":"XY轴设置"}},[_c('chart-base-select',{attrs:{"selectOption":_vm.axisGroup,"selectValue":_vm.axis.axisType},on:{"update:selectValue":function($event){return _vm.$set(_vm.axis, "axisType", $event)},"update:select-value":function($event){return _vm.$set(_vm.axis, "axisType", $event)}}},[_c('div',{attrs:{"slot":"select"},slot:"select"},[_vm._v("选择坐标轴")])]),_c('chart-base-switch',{attrs:{"switchValue":_vm.series.show},on:{"update:switchValue":function($event){return _vm.$set(_vm.series, "show", $event)},"update:switch-value":function($event){return _vm.$set(_vm.series, "show", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v(_vm._s(_vm.series.name))])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.series.show),expression:"series.show"}]},[_c('chart-base-input',{attrs:{"inputValue":_vm.series.title.text,"placeholder":'请输入标题内容'},on:{"update:inputValue":function($event){return _vm.$set(_vm.series.title, "text", $event)},"update:input-value":function($event){return _vm.$set(_vm.series.title, "text", $event)}}},[_c('div',{attrs:{"slot":"input"},slot:"input"},[_vm._v("标题内容")])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.series.title.text),expression:"series.title.text"}],staticStyle:{"margin-top":"15px"}},[_c('chart-base-label',{attrs:{"router":_vm.router + '/label',"baseLabelOption":_vm.series.title.label},on:{"update:baseLabelOption":function($event){return _vm.$set(_vm.series.title, "label", $event)},"update:base-label-option":function($event){return _vm.$set(_vm.series.title, "label", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v("文本样式")])]),_c('chart-base-select',{attrs:{"selectOption":_vm.fzPosOption,"selectValue":_vm.series.title.fzPosition},on:{"update:selectValue":function($event){return _vm.$set(_vm.series.title, "fzPosition", $event)},"update:select-value":function($event){return _vm.$set(_vm.series.title, "fzPosition", $event)}}},[_c('div',{attrs:{"slot":"select"},slot:"select"},[_vm._v("文本对齐方式")])])],1),_c('chart-base-switch',{attrs:{"switchValue":_vm.series.inverse},on:{"update:switchValue":function($event){return _vm.$set(_vm.series, "inverse", $event)},"update:switch-value":function($event){return _vm.$set(_vm.series, "inverse", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v("反向坐标轴")])]),_c('chart-base-slider',{attrs:{"hideCol":true,"max":10,"baseSliderOption":_vm.series.tickLabel.optimize,"unit":'个',"content":'滑动修改坐标轴间隔个数'},on:{"update:baseSliderOption":function($event){return _vm.$set(_vm.series.tickLabel, "optimize", $event)},"update:base-slider-option":function($event){return _vm.$set(_vm.series.tickLabel, "optimize", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v("坐标轴间隔个数")])]),_c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.series.title.text),expression:"series.title.text"}]},[_c('chart-base-slider',{attrs:{"hideCol":true,"baseSliderOption":_vm.series.title.nameGap,"unit":'px',"content":'滑动修改标题与轴线距离'},on:{"update:baseSliderOption":function($event){return _vm.$set(_vm.series.title, "nameGap", $event)},"update:base-slider-option":function($event){return _vm.$set(_vm.series.title, "nameGap", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v("标题与轴线距离")])]),_c('chart-base-slider',{attrs:{"hideCol":true,"format":_vm.formatRotation+'',"max":180,"min":-180,"baseSliderOption":_vm.series.title.rotate,"unit":'°',"content":'滑动修改标题与轴线距离'},on:{"update:baseSliderOption":function($event){return _vm.$set(_vm.series.title, "rotate", $event)},"update:base-slider-option":function($event){return _vm.$set(_vm.series.title, "rotate", $event)}}},[_c('div',{attrs:{"slot":"title"},slot:"title"},[_vm._v("倾斜轴标题")])])],1),_c('chart-base-switch',{attrs:{"switchValue":_vm.series.ti
|
|
|
|
|
var staticRenderFns = []
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./src/packages/ChartMix/chartChips/chart/ChartAxis.vue?vue&type=template&id=728665dc&
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
|
|
|
var es_array_slice = __webpack_require__("fb6a");
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
|
|
|
var es_regexp_exec = __webpack_require__("ac1f");
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
|
|
|
var es_string_split = __webpack_require__("1276");
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
|
|
|
var objectSpread2 = __webpack_require__("5530");
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/utils/importUtil.js
|
|
|
|
|
var importUtil = __webpack_require__("1540");
|
|
|
|
|
|
|
|
|
|
// EXTERNAL MODULE: ./src/data/chartJson.js
|
|
|
|
|
var chartJson = __webpack_require__("b4cc");
|
|
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ChartMix/chartChips/chart/ChartAxis.vue?vue&type=script&lang=js&
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var ChartAxisvue_type_script_lang_js_ = ({
|
|
|
|
|
name: 'ChartXaxis',
|
|
|
|
|
props: {
|
|
|
|
|
chartAllType: String,
|
|
|
|
|
axisOption: Object,
|
|
|
|
|
router: String
|
|
|
|
|
},
|
|
|
|
|
components: Object(objectSpread2["a" /* default */])({}, importUtil["importComp"](importUtil)),
|
|
|
|
|
data: function data() {
|
|
|
|
|
return {
|
|
|
|
|
axis: {},
|
|
|
|
|
series: {},
|
|
|
|
|
//具体坐标轴配置
|
|
|
|
|
fontSizeOption: '',
|
|
|
|
|
lineStyleOption: '',
|
|
|
|
|
ratioOption: '',
|
|
|
|
|
digitOption: '',
|
|
|
|
|
fzPosOption: [{
|
|
|
|
|
value: 'middle',
|
|
|
|
|
label: '居中'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'start',
|
|
|
|
|
label: '头部'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'end',
|
|
|
|
|
label: '尾部'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'hidden',
|
|
|
|
|
label: '隐藏'
|
|
|
|
|
}],
|
|
|
|
|
orient: [{
|
|
|
|
|
label: '朝内',
|
|
|
|
|
value: 'inside'
|
|
|
|
|
}, {
|
|
|
|
|
label: '朝外',
|
|
|
|
|
value: 'outside'
|
|
|
|
|
}],
|
|
|
|
|
formatRotation: function formatRotation(val) {
|
|
|
|
|
return val + ' °';
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
watch: {
|
|
|
|
|
axisOption: {
|
|
|
|
|
handler: function handler(newVal) {
|
|
|
|
|
if (importUtil["isEqual"](this.axis, this.axisOption)) {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.axis = importUtil["deepCopy"](this.axisOption);
|
|
|
|
|
this.series = this.axis[newVal.axisType];
|
|
|
|
|
this.fontSizeOption = importUtil["deepCopy"](chartJson["f" /* fontSizeOption */]);
|
|
|
|
|
this.lineStyleOption = importUtil["deepCopy"](chartJson["j" /* lineStyleOption */]);
|
|
|
|
|
this.intervalOption = importUtil["deepCopy"](chartJson["i" /* intervalOption */]);
|
|
|
|
|
this.ratioOption = importUtil["deepCopy"](chartJson["n" /* ratioOption */]);
|
|
|
|
|
this.digitOption = importUtil["deepCopy"](chartJson["c" /* digitOption */]);
|
|
|
|
|
},
|
|
|
|
|
immediate: true,
|
|
|
|
|
deep: true
|
|
|
|
|
},
|
|
|
|
|
series: {
|
|
|
|
|
handler: function handler(newVal, oldVal) {
|
|
|
|
|
// 改变值就重新渲染
|
|
|
|
|
if (oldVal) {
|
|
|
|
|
this.changeAxis();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
deep: true,
|
|
|
|
|
immediate: true
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
chartType: function chartType() {
|
|
|
|
|
return this.chartAllType.split('|')[1];
|
|
|
|
|
},
|
|
|
|
|
chartStyle: function chartStyle() {
|
|
|
|
|
return this.chartAllType.split('|')[2];
|
|
|
|
|
},
|
|
|
|
|
axisGroup: function axisGroup() {
|
|
|
|
|
if (this.chartType == 'bar' && this.chartStyle != 'compare') {
|
|
|
|
|
return [{
|
|
|
|
|
value: 'xAxisDown',
|
|
|
|
|
label: 'Y轴(左侧垂直)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'xAxisUp',
|
|
|
|
|
label: 'Y轴(左侧垂直)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisLeft',
|
|
|
|
|
label: 'X轴(下方水平)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisRight',
|
|
|
|
|
label: 'X轴(上方水平)'
|
|
|
|
|
}];
|
|
|
|
|
} else if (this.chartStyle == 'compare') {
|
|
|
|
|
return [{
|
|
|
|
|
value: 'xAxisDown',
|
|
|
|
|
label: 'Y轴(右侧坐标轴)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'xAxisUp',
|
|
|
|
|
label: 'Y轴(左侧坐标轴)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisLeft',
|
|
|
|
|
label: 'X轴(右侧坐标轴)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisRight',
|
|
|
|
|
label: 'X轴(左侧坐标轴)'
|
|
|
|
|
}];
|
|
|
|
|
} else {
|
|
|
|
|
return [{
|
|
|
|
|
value: 'xAxisDown',
|
|
|
|
|
label: 'X轴(下方水平)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'xAxisUp',
|
|
|
|
|
label: 'X轴(上方水平)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisLeft',
|
|
|
|
|
label: 'Y轴(左侧垂直)'
|
|
|
|
|
}, {
|
|
|
|
|
value: 'yAxisRight',
|
|
|
|
|
label: 'Y轴(右侧垂直)'
|
|
|
|
|
}];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
showLabel: function showLabel() {
|
|
|
|
|
if (this.chartType == 'bar' && this.axis.axisType.slice(0, 1) == 'x' || this.chartType != 'bar' && this.axis.axisType.slice(0, 1) == 'y') {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
methods: Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, importUtil["mapActions"]('chartSetting', ['updateChartItem'])), {}, {
|
|
|
|
|
changeAxis: function changeAxis() {
|
|
|
|
|
var updateObj = {
|
|
|
|
|
updateObj: importUtil["deepCopy"](this.series),
|
|
|
|
|
router: this.router + '/' + this.axis.axisType
|
|
|
|
|
};
|
|
|
|
|
this.updateChartItem(updateObj);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
// CONCATENATED MODULE: ./src/packages/ChartMix/chartChips/chart/ChartAxis.vue?vue&type=script&lang=js&
|
|
|
|
|
/* harmony default export */ var chart_ChartAxisvue_type_script_lang_js_ = (ChartAxisvue_type_script_lang_js_);
|
|
|
|
|
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
|
|
|
var componentNormalizer = __webpack_require__("2877");
|
|
|
|
|
|
|
|
|
|
// CONCATENATED MODULE: ./src/packages/ChartMix/chartChips/chart/ChartAxis.vue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* normalize component */
|
|
|
|
|
|
|
|
|
|
var component = Object(componentNormalizer["a" /* default */])(
|
|
|
|
|
chart_ChartAxisvue_type_script_lang_js_,
|
|
|
|
|
render,
|
|
|
|
|
staticRenderFns,
|
|
|
|
|
false,
|
|
|
|
|
null,
|
|
|
|
|
null,
|
|
|
|
|
null
|
|
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
/* harmony default export */ var ChartAxis = __webpack_exports__["default"] = (component.exports);
|
|
|
|
|
|
|
|
|
|
/***/ })
|
|
|
|
|
|
|
|
|
|
}]);
|
|
|
|
|
//# sourceMappingURL=chartmix.umd.4.js.map
|