How to use the xe-utils.clone function in xe-utils

To help you get started, we’ve selected a few xe-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github xuliangzhan / vue-element-extends / src / views / editable / Click2.vue View on Github external
        setTimeout(() => resolve(XEUtils.clone(regionData, true)), 200)
      })
github xuliangzhan / vue-element-extends / examples / views / editable / Click1.vue View on Github external
data () {
    return {
      loading: false,
      sexList: XEUtils.clone(sexData, true),
      regionList: XEUtils.clone(regionData, true),
      list: []
    }
  },
  created () {
github xuliangzhan / vxe-table / examples / views / table / virtual-tree / Radio.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {
github xuliangzhan / vxe-table / examples / views / table / virtual-tree / Edit.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {
github xuliangzhan / vxe-table / examples / views / table / virtual-tree / Menu.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {
github xuliangzhan / vue-element-extends / packages / editable / src / editable.vue View on Github external
reloadRow (record, newRecord) {
      let matchObj = XEUtils.findTree(this.datas, row => row.data === record, this.elTreeOpts)
      if (matchObj) {
        let { item } = matchObj
        XEUtils.destructuring(item.data, newRecord)
        Object.assign(item, {
          store: XEUtils.clone(item.data, true),
          validActive: null,
          validRule: null,
          showValidMsg: false,
          checked: null,
          editActive: null,
          editStatus: 'initial'
        })
      }
      return this.$nextTick()
    },
    /**
github xuliangzhan / vxe-table / examples / views / table / tree / Filter.vue View on Github external
setTimeout(() => {
      this.loading = false
      this.originData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
      this.handleSearch()
    }, 300)
  },
github xuliangzhan / vxe-table / examples / views / table / virtual-tree / Template.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {
github xuliangzhan / vxe-table / examples / views / table / tree / Normal.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
    this.tableData3 = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {
github xuliangzhan / vxe-table / examples / views / table / tree / Highlight.vue View on Github external
created () {
    this.tableData = XEUtils.clone(window.MOCK_TREE_DATA_LIST, true)
  },
  mounted () {