SFilterItem.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import { onMounted as d, openBlock as i, createElementBlock as n, normalizeStyle as l, createElementVNode as o, toDisplayString as a, renderSlot as s } from "vue";
  2. import { l as c } from "./index2.js";
  3. const m = { class: "value" }, u = {
  4. __name: "SFilterItem",
  5. props: {
  6. label: {
  7. required: !0,
  8. type: String
  9. },
  10. // labelWidth: {
  11. // type: Number,
  12. // default: 70
  13. // },
  14. colon: {
  15. type: Boolean,
  16. default: !1
  17. },
  18. width: {
  19. type: Number,
  20. default: 280
  21. },
  22. mb: {
  23. type: Number,
  24. default: 0
  25. }
  26. },
  27. setup(e) {
  28. const t = e;
  29. return d(() => {
  30. }), (r, p) => (i(), n("div", {
  31. class: "filter-item",
  32. style: l({ width: t.width + "px", marginBottom: e.mb + "px" })
  33. }, [
  34. o("div", {
  35. class: "label",
  36. style: l({ width: t.labelWidth + "px" })
  37. }, a(e.label) + a(t.colon ? ":" : ""), 5),
  38. o("div", m, [
  39. s(r.$slots, "default", {}, void 0, !0)
  40. ])
  41. ], 4));
  42. }
  43. }, y = /* @__PURE__ */ c(u, [["__scopeId", "data-v-31f2e1bd"]]);
  44. export {
  45. y as default
  46. };