| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- import { resolveComponent as i, openBlock as t, createElementBlock as f, createBlock as o, withCtx as e, createVNode as n, createCommentVNode as g, createElementVNode as u, toDisplayString as d } from "vue";
- import { y as S, B as v } from "./index2.js";
- const k = { class: "modal-custom-header" }, w = { style: { color: "var(--s-text-color)" } }, B = { style: { color: "var(--s-text-color)" } }, D = /* @__PURE__ */ Object.assign({ name: "SModalHeader" }, {
- __name: "ModalHeader",
- props: {
- width: {
- type: [String, Number],
- default: "40%"
- },
- showFullScreen: {
- type: Boolean,
- default: !0
- }
- },
- emits: ["fullScreen", "reduction"],
- setup(l, { emit: m }) {
- const c = m;
- function _() {
- c("fullScreen");
- }
- function p() {
- c("reduction");
- }
- return (a, b) => {
- const y = i("BorderOutlined"), r = v, s = S, h = i("SwitcherOutlined");
- return t(), f("div", k, [
- l.width != "100vw" ? (t(), o(s, {
- key: 0,
- color: "var(--s-bg-color-container)",
- placement: "bottom",
- mouseEnterDelay: 1.5,
- mouseLeaveDelay: 0.5
- }, {
- title: e(() => [
- u("span", w, d(a.$l("全屏")), 1)
- ]),
- default: e(() => [
- l.showFullScreen ? (t(), o(r, {
- key: 0,
- type: "text",
- class: "ant-modal-close",
- style: { "margin-right": "30px" },
- onClick: _
- }, {
- default: e(() => [
- n(y)
- ]),
- _: 1
- })) : g("", !0)
- ]),
- _: 1
- })) : (t(), o(s, {
- key: 1,
- color: "var(--s-bg-color-container)",
- placement: "bottom",
- mouseEnterDelay: 3,
- mouseLeaveDelay: 3
- }, {
- title: e(() => [
- u("span", B, d(a.$l("还原")), 1)
- ]),
- default: e(() => [
- n(r, {
- type: "text",
- class: "ant-modal-close",
- style: { "margin-right": "30px" },
- onClick: p
- }, {
- default: e(() => [
- n(h, { class: "toggle-icon" })
- ]),
- _: 1
- })
- ]),
- _: 1
- }))
- ]);
- };
- }
- });
- export {
- D as default
- };
|