import { defineComponent, useAttrs, ref, resolveComponent, createBlock, openBlock, normalizeClass, unref, withCtx, createVNode, normalizeProps, guardReactiveProps } from 'vue';
import '../../../../utils/index.mjs';
import './cron-inner.vue.mjs';
import { createNamespace } from '../../../../utils/create-namespace.mjs';
import _sfc_main$1 from './cron-inner.vue2.mjs';

"use strict";
var _sfc_main = /* @__PURE__ */ defineComponent({
  ...{ name: "LlCronModal" },
  __name: "cron-modal",
  emits: ["ok"],
  setup(__props, { expose: __expose, emit: __emit }) {
    const bem = createNamespace("cron-modal");
    const emit = __emit;
    const attrs = useAttrs();
    const open = ref(false);
    function openModal() {
      open.value = true;
    }
    function handleCancel() {
      open.value = false;
    }
    function handleSubmit() {
      handleCancel();
      emit("ok");
    }
    __expose({ openModal });
    return (_ctx, _cache) => {
      const _component_ll_modal = resolveComponent("ll-modal");
      return openBlock(), createBlock(_component_ll_modal, {
        open: open.value,
        "onUpdate:open": _cache[0] || (_cache[0] = ($event) => open.value = $event),
        title: "Cron\u8868\u8FBE\u5F0F",
        width: 1e3,
        class: normalizeClass(unref(bem).b()),
        keyboard: false,
        onOk: handleSubmit,
        onCancel: handleCancel
      }, {
        default: withCtx(() => [
          createVNode(
            _sfc_main$1,
            normalizeProps(guardReactiveProps(unref(attrs))),
            null,
            16
            /* FULL_PROPS */
          )
        ]),
        _: 1
        /* STABLE */
      }, 8, ["open", "class"]);
    };
  }
});

export { _sfc_main as default };
//# sourceMappingURL=cron-modal.vue2.mjs.map
