import "../../../../../../node_modules/element-plus/es/index.mjs";
/* empty css                                                                */
/* empty css                                                                        */
/* empty css                                                                     */
/* empty css                                                                  */
/* empty css                                                                     */
/* empty css                                                                           */
/* empty css                                                                     */
/* empty css                                                                    */
/* empty css                                                                     */
/* empty css                                                                        */
/* empty css                                                                           */
import { createElementBlock, openBlock, Fragment, createVNode, createBlock, createCommentVNode, withCtx } from "vue";
import { ElFormItem } from "../../../../../../node_modules/element-plus/es/components/form/index.mjs";
import { ElInputNumber } from "../../../../../../node_modules/element-plus/es/components/input-number/index.mjs";
import { ElSwitch } from "../../../../../../node_modules/element-plus/es/components/switch/index.mjs";
import { ElInput } from "../../../../../../node_modules/element-plus/es/components/input/index.mjs";
import { ElSelect, ElOption } from "../../../../../../node_modules/element-plus/es/components/select/index.mjs";
const _sfc_main = {
  __name: "PageGoBack",
  props: {
    formData: Object
  },
  setup(__props) {
    return (_ctx, _cache) => {
      const _component_el_input_number = ElInputNumber;
      const _component_el_form_item = ElFormItem;
      const _component_el_switch = ElSwitch;
      const _component_el_input = ElInput;
      const _component_el_option = ElOption;
      const _component_el_select = ElSelect;
      return openBlock(), createElementBlock(Fragment, null, [
        createVNode(_component_el_form_item, { label: "回退级数" }, {
          default: withCtx(() => [
            createVNode(_component_el_input_number, {
              modelValue: __props.formData.backLevel,
              "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.formData.backLevel = $event),
              min: 1,
              max: 10,
              "controls-position": "right",
              placeholder: "回退级数",
              style: { "width": "100px" }
            }, null, 8, ["modelValue"])
          ]),
          _: 1
        }),
        createVNode(_component_el_form_item, { label: "提示信息" }, {
          default: withCtx(() => [
            createVNode(_component_el_switch, {
              modelValue: __props.formData.showConfirm,
              "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.formData.showConfirm = $event)
            }, null, 8, ["modelValue"])
          ]),
          _: 1
        }),
        __props.formData.showConfirm ? (openBlock(), createBlock(_component_el_form_item, {
          key: 0,
          label: "确认标题"
        }, {
          default: withCtx(() => [
            createVNode(_component_el_input, {
              modelValue: __props.formData.confirmTitle,
              "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.formData.confirmTitle = $event),
              placeholder: "确认回退操作"
            }, null, 8, ["modelValue"])
          ]),
          _: 1
        })) : createCommentVNode("", true),
        __props.formData.showConfirm ? (openBlock(), createBlock(_component_el_form_item, {
          key: 1,
          label: "确认内容"
        }, {
          default: withCtx(() => [
            createVNode(_component_el_input, {
              modelValue: __props.formData.confirmMessage,
              "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => __props.formData.confirmMessage = $event),
              type: "textarea",
              rows: 3,
              placeholder: "确定要返回上一页吗？",
              resize: "none"
            }, null, 8, ["modelValue"])
          ]),
          _: 1
        })) : createCommentVNode("", true),
        createVNode(_component_el_form_item, { label: "无历史记录时" }, {
          default: withCtx(() => [
            createVNode(_component_el_select, {
              modelValue: __props.formData.noHistoryAction,
              "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => __props.formData.noHistoryAction = $event),
              style: { "width": "100%" }
            }, {
              default: withCtx(() => [
                createVNode(_component_el_option, {
                  label: "无操作",
                  value: "none"
                }),
                createVNode(_component_el_option, {
                  label: "跳转到首页",
                  value: "home"
                }),
                createVNode(_component_el_option, {
                  label: "关闭当前标签",
                  value: "close"
                })
              ]),
              _: 1
            }, 8, ["modelValue"])
          ]),
          _: 1
        })
      ], 64);
    };
  }
};
export {
  _sfc_main as default
};
