| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- import { computed as d, onMounted as i, openBlock as n, createElementBlock as u, normalizeStyle as l, normalizeClass as m, createElementVNode as o, toDisplayString as a, renderSlot as c } from "vue";
- import { n as p } from "./index2.js";
- const f = { class: "value" }, b = {
- __name: "SFilterItem",
- props: {
- label: {
- required: !0,
- type: String
- },
- labelWidth: {
- type: Number,
- default: 70
- },
- colon: {
- type: Boolean,
- default: !1
- },
- width: {
- type: Number,
- default: 280
- },
- // 独占一行:父级 SFilterWrap 是 flex-wrap 容器,宽度拉满即整行
- full: {
- type: Boolean,
- default: !1
- },
- mb: {
- type: Number,
- default: 0
- }
- },
- setup(t) {
- const e = t, r = d(() => ({
- width: e.full ? "100%" : e.width + "px",
- marginBottom: e.mb + "px"
- }));
- return i(() => {
- }), (s, y) => (n(), u("div", {
- class: m(["filter-item", { "is-full": e.full }]),
- style: l(r.value)
- }, [
- o("div", {
- class: "label",
- style: l({ width: e.labelWidth + "px" })
- }, a(t.label) + a(e.colon ? ":" : ""), 5),
- o("div", f, [
- c(s.$slots, "default", {}, void 0, !0)
- ])
- ], 6));
- }
- }, S = /* @__PURE__ */ p(b, [["__scopeId", "data-v-1386d4b5"]]);
- export {
- S as default
- };
|