"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
require("../../../../../../node_modules/.pnpm/vue@3.3.4/node_modules/vue/dist/vue.runtime.esm-bundler.js");
const SettingItem = require("../../../../../components/Pages/ChartItemSetting/SettingItem.vue2.js");
const SettingItemBox = require("../../../../../components/Pages/ChartItemSetting/SettingItemBox.vue.js");
const CollapseItem_vue_vue_type_script_setup_true_lang = require("../../../../../components/Pages/ChartItemSetting/CollapseItem.vue.js");
require("../../../../../../node_modules/.pnpm/vue3-lazyload@0.2.5-beta_a6dezdz3je235ci4e3tu4rayna/node_modules/vue3-lazyload/dist/vue3-lazyload.esm.js");
require("../../../../../../node_modules/.pnpm/screenfull@6.0.2/node_modules/screenfull/index.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js");
require("../../../../../../node_modules/.pnpm/html2canvas@1.4.1/node_modules/html2canvas/dist/html2canvas.esm.js");
require("../../../../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseClone.js");
require("../../../../../../node_modules/.pnpm/crypto-js@4.1.1/node_modules/crypto-js/index.js");
require("../../../../../enums/pageEnum.js");
require("../../../../../router/index.js");
require("../../../../../store/modules/designStore/designStore.js");
require("../../../../../settings/designSetting.js");
require("../../../../../components/GoLoading/index.js");
require("../../../../../components/GoSkeleton/index.vue.js");
require("../../../../../store/modules/chartEditStore/chartEditStore.js");
require("../../../../../components/Pages/ChartItemSetting/StylesSetting.vue.js");
const runtimeCore_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_runtime-core@3.3.4/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js");
const reactivity_esmBundler = require("../../../../../../node_modules/.pnpm/@vue_reactivity@3.3.4/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js");
const _sfc_main = /* @__PURE__ */ runtimeCore_esmBundler.defineComponent({
  __name: "config",
  props: {
    optionData: {
      type: Object,
      required: true
    }
  },
  setup(__props) {
    const props = __props;
    const config = runtimeCore_esmBundler.computed(() => {
      return props.optionData;
    });
    const dialConfig = runtimeCore_esmBundler.computed(() => {
      return props.optionData.series[0];
    });
    const updateClick = (val) => {
      props.optionData.series[1].splitLine.lineStyle.color = val;
    };
    return (_ctx, _cache) => {
      const _component_n_input_number = runtimeCore_esmBundler.resolveComponent("n-input-number");
      const _component_n_color_picker = runtimeCore_esmBundler.resolveComponent("n-color-picker");
      return runtimeCore_esmBundler.openBlock(), runtimeCore_esmBundler.createBlock(reactivity_esmBundler.unref(CollapseItem_vue_vue_type_script_setup_true_lang.default), {
        name: `圆环`,
        expanded: true
      }, {
        default: runtimeCore_esmBundler.withCtx(() => [
          runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "数据" }, {
            default: runtimeCore_esmBundler.withCtx(() => [
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "数值" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                    value: config.value.dataset,
                    "onUpdate:value": _cache[0] || (_cache[0] = ($event) => config.value.dataset = $event),
                    min: dialConfig.value.min,
                    max: dialConfig.value.max,
                    step: 1,
                    size: "small",
                    placeholder: "数值"
                  }, null, 8, ["value", "min", "max"])
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "字体" }, {
            default: runtimeCore_esmBundler.withCtx(() => [
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: dialConfig.value.axisLabel.color,
                    "onUpdate:value": _cache[1] || (_cache[1] = ($event) => dialConfig.value.axisLabel.color = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "字体大小" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                    value: dialConfig.value.axisLabel.fontSize,
                    "onUpdate:value": _cache[2] || (_cache[2] = ($event) => dialConfig.value.axisLabel.fontSize = $event),
                    min: 0,
                    step: 1,
                    size: "small",
                    placeholder: "字体大小"
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "表盘外部" }, {
            default: runtimeCore_esmBundler.withCtx(() => [
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: config.value.series[1].axisLine.lineStyle.color[1][1],
                    "onUpdate:value": _cache[3] || (_cache[3] = ($event) => config.value.series[1].axisLine.lineStyle.color[1][1] = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "指针" }, {
            default: runtimeCore_esmBundler.withCtx(() => [
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: dialConfig.value.data[0].itemStyle.color,
                    "onUpdate:value": _cache[4] || (_cache[4] = ($event) => dialConfig.value.data[0].itemStyle.color = $event)
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "宽度" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                    value: dialConfig.value.pointer.width,
                    "onUpdate:value": _cache[5] || (_cache[5] = ($event) => dialConfig.value.pointer.width = $event),
                    min: 0,
                    step: 1,
                    size: "small",
                    placeholder: "数值"
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          }),
          runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItemBox.default), { name: "刻度" }, {
            default: runtimeCore_esmBundler.withCtx(() => [
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "最小值" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                    value: dialConfig.value.min,
                    "onUpdate:value": _cache[6] || (_cache[6] = ($event) => dialConfig.value.min = $event),
                    min: 0,
                    step: 1,
                    size: "small",
                    placeholder: "数值"
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "最大值" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_input_number, {
                    value: dialConfig.value.max,
                    "onUpdate:value": _cache[7] || (_cache[7] = ($event) => dialConfig.value.max = $event),
                    min: 0,
                    step: 1,
                    size: "small",
                    placeholder: "数值"
                  }, null, 8, ["value"])
                ]),
                _: 1
              }),
              runtimeCore_esmBundler.createVNode(reactivity_esmBundler.unref(SettingItem.default), { name: "颜色" }, {
                default: runtimeCore_esmBundler.withCtx(() => [
                  runtimeCore_esmBundler.createVNode(_component_n_color_picker, {
                    size: "small",
                    modes: ["hex"],
                    value: config.value.series[1].axisTick.lineStyle.color,
                    "onUpdate:value": [
                      _cache[8] || (_cache[8] = ($event) => config.value.series[1].axisTick.lineStyle.color = $event),
                      updateClick
                    ]
                  }, null, 8, ["value"])
                ]),
                _: 1
              })
            ]),
            _: 1
          })
        ]),
        _: 1
      });
    };
  }
});
exports.default = _sfc_main;
