message: refactor(Col): use setup
diff: @@ -15,12 +15,13 @@ export default createComponent({
  },
  },
  - emits: ['click'],
  + setup(props, { slots }) {
  + return (vm) => {
  + const { tag, span, offset } = props;
  - computed: {
  - style() {
  - const { index } = this;
  - const { spaces } = this.parent || {};
  + const getStyle = () => {
  + const { index } = vm;
  + const { spaces } = vm.parent || {};
  if (spaces && spaces[index]) {
  const { left, right } = spaces[index];
  @@ -29,25 +30,16 @@ export default createComponent({
  paddingRight: right ? `${right}px` : null,
  };
  }
  - },
  - },
  -
  - methods: {
  - onClick(event) {
  - this.$emit('click', event);
  - },
  - },
  + };
  - render() {
  - const { span, offset } = this;
  return (
  - <this.tag
  - style={this.style}
  + <tag
  + style={getStyle()}
  class={bem({ [span]: span, [`offset-${offset}`]: offset })}
  - onClick={this.onClick}
  >
  - {this.$slots.default?.()}
  - </this.tag>
  + {slots.default?.()}
  + </tag>
  );
  + };
  },
  });
  