diff --git a/src/components/table/column/index.vue b/src/components/table/column/index.vue index 4570c32..a241d6a 100644 --- a/src/components/table/column/index.vue +++ b/src/components/table/column/index.vue @@ -13,6 +13,7 @@ export default defineComponent({ }, setup(props, { slots }) { const attr = reactive(props.attr) + attr['align'] = attr['align'] ? attr['align'] : 'center' attr['column-key'] = attr['column-key'] ? attr['column-key'] : attr.prop || uuid() return () => { return createVNode(Column, attr, slots.default) diff --git a/src/components/table/fieldRender/index.vue b/src/components/table/fieldRender/index.vue index 5135375..3998737 100644 --- a/src/components/table/fieldRender/index.vue +++ b/src/components/table/fieldRender/index.vue @@ -31,7 +31,7 @@
- {{ !fieldValue ? '-' : timeFormat(fieldValue, field.timeFormat ?? undefined) }} + {{ !fieldValue ? '/' : timeFormat(fieldValue, field.timeFormat ?? undefined) }}
diff --git a/src/components/table/index.vue b/src/components/table/index.vue index ea85647..08a9c05 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -1,62 +1,88 @@ - -