description-item.mjs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import { columnAlignment } from "../../../constants/column-alignment.mjs";
  2. import { buildProps } from "../../../utils/vue/props/runtime.mjs";
  3. import { COMPONENT_NAME } from "./constants.mjs";
  4. import { defineComponent } from "vue";
  5. //#region ../../packages/components/descriptions/src/description-item.ts
  6. const descriptionItemProps = buildProps({
  7. label: {
  8. type: String,
  9. default: ""
  10. },
  11. span: {
  12. type: Number,
  13. default: 1
  14. },
  15. rowspan: {
  16. type: Number,
  17. default: 1
  18. },
  19. width: {
  20. type: [String, Number],
  21. default: ""
  22. },
  23. minWidth: {
  24. type: [String, Number],
  25. default: ""
  26. },
  27. labelWidth: { type: [String, Number] },
  28. align: {
  29. type: String,
  30. values: columnAlignment,
  31. default: "left"
  32. },
  33. labelAlign: {
  34. type: String,
  35. values: columnAlignment
  36. },
  37. className: {
  38. type: String,
  39. default: ""
  40. },
  41. labelClassName: {
  42. type: String,
  43. default: ""
  44. }
  45. });
  46. const DescriptionItem = defineComponent({
  47. name: COMPONENT_NAME,
  48. props: descriptionItemProps
  49. });
  50. //#endregion
  51. export { DescriptionItem as default, descriptionItemProps };
  52. //# sourceMappingURL=description-item.mjs.map