Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use js from dist? #7

Open
xoit opened this issue Feb 21, 2019 · 0 comments
Open

How to use js from dist? #7

xoit opened this issue Feb 21, 2019 · 0 comments

Comments

@xoit
Copy link

xoit commented Feb 21, 2019

I used "npm run build" to generate vue-tuicalendar.js and use it in my page.

<script type="text/javascript" src='./vendor/vue-tuicalendar/dist/vue-tuicalendar.js'></script>
<link href="./vendor/tui.calendar/dist/tui-calendar.min.css" rel="stylesheet">

      <vue-tuicalendar     ref="calendar"
    :options="options"
    :schedules="schedules"
    @after-render-schedule="handler"
    @before-render-schedule="handler"
     @click-schedule="handler"></vue-tuicalendar></div>

Only get this:

<!--function(e,n,r,i){return Pt(t,e,n,r,i,!0)}-->

How can I use compiled js? Thanks

Vue.use('VueTuicalendar') ;
Vue.component('vue-tuicalendar', vueTuicalendar) ;
...
      options:{
defaultView: 'week'
      },
                  schedules: [
        {
          id: "1",
          calendarId: "1",
          title: "A schedule",
          category: "time",
          dueDateClass: "",
          start: "2018-05-22T22:30:00+09:00",
          end: "2018-05-23T02:30:00+09:00"
        },
        {
          id: "2",
          calendarId: "1",
          title: "Another schedule",
          category: "time",
          dueDateClass: "",
          start: "2018-05-23T17:30:00+09:00",
          end: "2018-05-24T17:31:00+09:00",
          isReadOnly: true
        }
      ]
...

    handler() {
      console.log("Handler") ;
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant