1.0.8 • Published 4 years ago

dgtek-markers v1.0.8

Weekly downloads
27
License
-
Repository
github
Last release
4 years ago

dgtek-markers

Install

yarn add dgtek-markers

Import

import 'dgtek-markers'
import 'dgtek-markers/dist/dgtek-markers.css'

Usage

<Markers :saveData.sync="saveData" />

App.vue

data: () => ({
  saveData: false
}),
watch: {
  saveData (val) {
    if (val) this.saveMarkers()
  }
},
methods: {
  async saveMarkers () {
    const data = localStorage.getAllMarkers()

    await axios.post(..., { data: JSON.stringify(data) })
    this.saveData = false
  }
}

Demo

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago