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

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

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

Loading…
Cancel
Save