message: chore(AddressEdit): remove SwitchCell
diff: @@ -4,13 +4,14 @@ import { isMobile } from '../utils/validate/mobile';
  // Components
  import Area from '../area';
  +import Cell from '../cell';
  import Field from '../field';
  import Popup from '../popup';
  import Toast from '../toast';
  import Button from '../button';
  import Dialog from '../dialog';
  import Detail from './Detail';
  -import SwitchCell from '../switch-cell';
  +import Switch from '../switch';
  const [createComponent, bem, t] = createNamespace('address-edit');
  @@ -258,6 +259,34 @@ export default createComponent({
  this.detailFocused = false;
  });
  },
  +
  + genSetDefaultCell(h) {
  + if (this.showSetDefault) {
  + const slots = {
  + 'right-icon': () => (
  + <Switch
  + vModel={this.data.isDefault}
  + size="24"
  + onChange={(event) => {
  + this.$emit('change-default', event);
  + }}
  + />
  + ),
  + };
  +
  + return (
  + <Cell
  + vShow={!this.hideBottomFields}
  + center
  + title={t('defaultAddress')}
  + class={bem('default')}
  + scopedSlots={slots}
  + />
  + );
  + }
  +
  + return h();
  + },
  },
  render(h) {
  @@ -334,19 +363,7 @@ export default createComponent({
  )}
  {this.slots()}
  </div>
  - {this.showSetDefault ? (
  - <SwitchCell
  - class={bem('default')}
  - vModel={data.isDefault}
  - vShow={!hideBottomFields}
  - title={t('defaultAddress')}
  - onChange={(event) => {
  - this.$emit('change-default', event);
  - }}
  - />
  - ) : (
  - h()
  - )}
  + {this.genSetDefaultCell(h)}
  <div vShow={!hideBottomFields} class={bem('buttons')}>
  <Button
  block
  