Browse Source

组件属性重命名及拆分属性

main
likunming 1 year ago
parent
commit
a98875edc7
  1. 8
      io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue
  2. 5
      io.sc.platform.core.frontend/src/views/likm/Grid.vue

8
io.sc.platform.core.frontend/src/platform/components/grid/WGrid.vue

@ -109,8 +109,8 @@
<template v-if="col.name === '_sortNo_'">
{{ scope.rowIndex + 1 }}
</template>
<template v-else-if="col.value && typeof col.value === 'object' && col.value.type && col.value._vuecomp_">
<component :is="col.value.type" v-bind="col.value.props"></component>
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentsType">
<component :is="col.value.componentsType" v-bind="col.value.attrs"></component>
</template>
<template v-else>
{{ col.value }}
@ -122,8 +122,8 @@
<template v-if="col.name === '_sortNo_'">
{{ scope.rowIndex + 1 }}
</template>
<template v-else-if="col.value && typeof col.value === 'object' && col.value.type && col.value._vuecomp_">
<component :is="col.value.type" v-bind="col.value.props"></component>
<template v-else-if="col.value && typeof col.value === 'object' && col.value.componentsType">
<component :is="col.value.componentsType" v-bind="col.value.attrs"></component>
</template>
<template v-else>
{{ col.value }}

5
io.sc.platform.core.frontend/src/views/likm/Grid.vue

@ -144,9 +144,8 @@ const testGrid = {
// },
// };
return {
_vuecomp_: true,
type: 'q-icon',
attr: {
componentsType: 'q-icon',
attrs: {
name: val ? IconEnum.是状态 : IconEnum.否状态,
color: val ? 'green' : 'red',
size: 'sm',

Loading…
Cancel
Save