import { computed as r, onMounted as s, openBlock as n, createElementBlock as u, normalizeStyle as l, normalizeClass as m, createElementVNode as a, toDisplayString as o, renderSlot as f } from "vue"; import { n as p } from "./index2.js"; const c = { class: "value" }, b = { __name: "SFilterItem", props: { // 标签文案(必填) label: { required: !0, type: String }, // 标签宽度,单位 px labelWidth: { type: Number, default: 70 }, // 标签后是否带冒号 colon: { type: Boolean, default: !1 }, // 表单项宽度,单位 px(full 为 true 时失效) width: { type: Number, default: 280 }, // 独占一行:父级 SFilterWrap 是 flex-wrap 容器,宽度拉满即整行 full: { type: Boolean, default: !1 }, // 底部外边距,单位 px mb: { type: Number, default: 0 }, // 默认描边样式;false 为无边框样式 isNormal: { type: Boolean, default: !0 } }, setup(t) { const e = t, i = r(() => ({ width: e.full ? "100%" : e.width + "px", marginBottom: e.mb + "px" })); return s(() => { }), (d, h) => (n(), u("div", { class: m(["filter-item", { "is-full": e.full, "is-default": t.isNormal }]), style: l(i.value) }, [ a("div", { class: "label", style: l({ width: e.labelWidth + "px", maxWidth: e.labelWidth + "px", minWidth: e.labelWidth + "px" }) }, o(t.label) + o(e.colon ? ":" : ""), 5), a("div", c, [ f(d.$slots, "default", {}, void 0, !0) ]) ], 6)); } }, S = /* @__PURE__ */ p(b, [["__scopeId", "data-v-8d8fd6ae"]]); export { S as default };