props.js 428 B

12345678910111213141516
  1. import { defineMixin } from '../../libs/vue'
  2. import defProps from '../../libs/config/props.js'
  3. export const props = defineMixin({
  4. props: {
  5. // 宫格的name
  6. name: {
  7. type: [String, Number, null],
  8. default: () => defProps.gridItem.name
  9. },
  10. // 背景颜色
  11. bgColor: {
  12. type: String,
  13. default: () => defProps.gridItem.bgColor
  14. }
  15. }
  16. })