```html
<div class="demo-block" id="popup-picker-demo1">
  <lx-group title="single column">
    <lx-popup-picker
      v-model="value1"
      :title="title1"
      :data="list1"
      @on-show="onShow"
      @on-hide="onHide"
    ></lx-popup-picker>
    <lx-popup-picker
      v-model="value1"
      :title="'一列显示name值'"
      :data="listName"
      :columns="1"
      show-name
      @on-show="onShow"
      @on-hide="onHide"
    ></lx-popup-picker>
  </lx-group>
  <br>
  <div class="picker-buttons">
    <lx-x-button
      type="primary"
      @click.native="changeList10"
    >
      重新赋值列表
    </lx-x-button>
    <lx-x-button
      type="primary"
      @click.native="changeList11"
    >
      push方式更改列表
    </lx-x-button>
  </div>
  <lx-group title="double columns">
    <lx-popup-picker
      v-model="value2"
      :title="title2"
      :data="list2"
    ></lx-popup-picker>
  </lx-group>
  <br>

  <lx-group title="chained columns">
    <lx-popup-picker
      ref="picker3"
      v-model="value3"
      :title="title3"
      :data="list3"
      :columns="3"
    ></lx-popup-picker>
    <lx-cell
      title="获取值对应的文字"
      :value="$refs.picker3&&$refs.picker3.getNameValues()"
    ></lx-cell>
    <lx-popup-picker
      v-model="value4"
      :title="title4"
      :data="list3"
      :columns="3"
      show-name
    ></lx-popup-picker>
  </lx-group>

  <br>
  <div class="picker-buttons">
    <lx-x-button
      type="primary"
      @click="changeList21"
    >
      push方式更改列表
    </lx-x-button>
  </div>

  <br>
  <lx-divider>Control the visibility of popup-picker</lx-divider>
  <div style="margin: 0 15px;">
    <lx-x-button
      type="primary"
      @click="showPopupPicker = true"
    >
      Show PopupPicker. value: {{ JSON.stringify(value5) }}
    </lx-x-button>
  </div>
  <lx-group>
    <lx-popup-picker
      v-model="value5"
      :show="showPopupPicker"
      :show-cell="false"
      title="TEST"
      :data="[['1', '2', '3', '4', '5']]"
    ></lx-popup-picker>
  </lx-group>

  <br>
  <lx-group title="隐藏时不影响其他popup-picker的mask">
    <lx-x-switch
      v-model="switch6"
      title="ishide popup-picker"
    ></lx-x-switch>
    <lx-popup-picker
      v-if="!switch6"
      v-model="value6"
      :show="showPopupPicker"
      title="显示值"
      :data="['我不会影响遮罩层'.split('')]"
    ></lx-popup-picker>
  </lx-group>

  <br>
  <br>
</div>

<script>
// PopupPicker.md
new Vue({
  el: '#popup-picker-demo1',
  data: {
      title1: '手机机型',
      title2: '详细机型',
      title3: '联动显示值',
      title4: '联动显示文字',
      list1: [['小米', 'iPhone', '华为', '情怀', '三星', '其他', '不告诉你']],
      list2: [
        ['小米', 'iPhone', '华为', '情怀', '三星', '其他', '不告诉你'],
        ['小米1', 'iPhone2', '华为3', '情怀4', '三星5', '其他6', '不告诉你7']
      ],
      list3: [
        {
          name: '中国',
          value: 'china',
          parent: 0
        }, {
          name: '美国',
          value: 'USA',
          parent: 0
        }, {
          name: '广东',
          value: 'china001',
          parent: 'china'
        }, {
          name: '广西',
          value: 'china002',
          parent: 'china'
        }, {
          name: '美国001',
          value: 'usa001',
          parent: 'USA'
        }, {
          name: '美国002',
          value: 'usa002',
          parent: 'USA'
        }, {
          name: '广州',
          value: 'gz',
          parent: 'china001'
        }, {
          name: '深圳',
          value: 'sz',
          parent: 'china001'
        }, {
          name: '广西001',
          value: 'gx001',
          parent: 'china002'
        }, {
          name: '广西002',
          value: 'gx002',
          parent: 'china002'
        }, {
          name: '美国001_001',
          value: '0003',
          parent: 'usa001'
        }, {
          name: '美国001_002',
          value: '0004',
          parent: 'usa001'
        }, {
          name: '美国002_001',
          value: '0005',
          parent: 'usa002'
        }, {
          name: '美国002_002',
          value: '0006',
          parent: 'usa002'
        }
      ],
      listName: [
        {value: '1', name: '111'},
        {value: '2', name: '222'},
        {value: '3', name: '3333'}
      ],
      value1: ['iPhone'],
      value2: ['iPhone', '华为3'],
      value3: [],
      value4: [],
      showPopupPicker: false,
      value5: ['2'],
      switch6: false,
      value6: []
  },
  methods: {
    changeList10 () {
      this.list1 = [['小米1', 'iPhone1', '华为1', '情怀1', '三星1', '其他1', '不告诉你1']]
    },
    changeList11 () {
      this.list1[0].push('我是push条目')
    },
    changeList20 () {

    },
    changeList21 () {
      this.list3.push({
        name: '美国002_007',
        value: '0007',
        parent: 'usa002'
      })
    },
    onShow () {
      console.log('on show')
    },
    onHide (type) {
      console.log('on hide', type)
    }
  }
})
</script>

<style>
.picker-buttons {
  margin: 0 15px;
}
</style>
```