给vue组件传递对象或是数组,参考下面语法:

给vue组件传递对象或是数组

 

props: {
            prop_object: {
                type: Object,
                default: () => ({}) 
            },
            prop_array: {
                type: Array,
                default: () => []
            }
        }
Source Code

相关文章:

  • 2022-01-26
  • 2021-12-26
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案