SFilterWrap.js 907 B

1234567891011121314151617181920212223242526272829303132
  1. import { onMounted as a, openBlock as s, createElementBlock as i, normalizeClass as p, renderSlot as n } from "vue";
  2. import { l as c } from "./index2.js";
  3. const m = {
  4. __name: "SFilterWrap",
  5. props: {
  6. labelWidth: {
  7. type: Number,
  8. default: 70
  9. },
  10. type: {
  11. type: String,
  12. default: "filter"
  13. }
  14. },
  15. setup(r) {
  16. const e = r;
  17. return a(() => {
  18. document.querySelectorAll(".filter-item .label").forEach((t) => {
  19. t.style.width = e.labelWidth + "px";
  20. }), e.type && e.type === "filter-more" && document.querySelectorAll(".filter-more .filter-item").forEach((o) => {
  21. o.style.marginBottom = "10px";
  22. });
  23. }), (l, t) => (s(), i("div", {
  24. class: p(["filter-wrap", e.type])
  25. }, [
  26. n(l.$slots, "default", {}, void 0, !0)
  27. ], 2));
  28. }
  29. }, u = /* @__PURE__ */ c(m, [["__scopeId", "data-v-25ebb4b6"]]);
  30. export {
  31. u as default
  32. };