| 12345678910111213141516171819202122232425262728293031323334 |
- import { onMounted as a, openBlock as s, createElementBlock as i, normalizeClass as n, renderSlot as p } from "vue";
- import { n as c } from "./index2.js";
- const m = {
- __name: "SFilterWrap",
- props: {
- // 统一子项标签宽度,单位 px
- labelWidth: {
- type: Number,
- default: 70
- },
- // filter-more:更多筛选区(紧凑样式)
- type: {
- type: String,
- default: "filter"
- }
- },
- setup(l) {
- const e = l;
- return a(() => {
- document.querySelectorAll(".filter-item .label").forEach((t) => {
- t.style.width = e.labelWidth + "px";
- }), e.type && e.type === "filter-more" && document.querySelectorAll(".filter-more .filter-item").forEach((o) => {
- o.style.marginBottom = "10px";
- });
- }), (r, t) => (s(), i("div", {
- class: n(["filter-wrap", e.type])
- }, [
- p(r.$slots, "default", {}, void 0, !0)
- ], 2));
- }
- }, u = /* @__PURE__ */ c(m, [["__scopeId", "data-v-938505c6"]]);
- export {
- u as default
- };
|