1.47.3 • Published 10 months ago

datepicker-jp v1.47.3

Weekly downloads
-
License
CC-BY-ND-4.0
Repository
-
Last release
10 months ago

datepicker-jp

Date input components (Datepicker), specialized for use in Japan.

It can be used with plain HTML pages other than vue.js.

DOCUMENTATION

日本語の説明はこちら ⇒ ( https://dp-jp.sinroku.net/ )

npm.io

Features

  • Single date picker
  • Month picker
  • Year picker
  • Pick by decade
  • Pick by era
  • For ja-JP locale
  • JST(+0900) only
  • Vuetify theme (optional)
  • Included type definitions
  • Included umd format library

Usage

You can use it from a CDN without "build step".

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="https://unpkg.com/vue@3/dist/vue.global.prod.js"></script>
<script src="https://unpkg.com/datepicker-jp"></script>

<form action="https://postform.sinroku.net/" method="post">
  <div id="vueapp" style="margin: 1rem;">
    <dpjp style="width: 15rem;" font-size="2rem" color="#9c27b0"></dpjp>
  </div>
  <input type="submit" value="送信ボタン" style="margin: 1rem;">
</form>
<script>
  Vue.createApp().component('dpjp', DpJp.DatepickerJp8).mount('#vueapp');
</script>

Install

Or import and register components and build.

npm install datepicker-jp
<script lang="ts" setup>
import {ref} from "vue";
import {DatepickerJp} from 'datepicker-jp';
const dpJp_modelValue = ref();
</script>

<template>
  <DatepickerJp v-model="dpJp_modelValue" :year-select-mode="3"> // 選択できる年を明治以降にするモード
    <span style="color: blue;">datepicker-jp</span>              // コンポーネントの上部に表示する内容
    <template v-slot:dialog>
      <span style="color: green;">datepicker-jp:dialog</span>    // ダイアログの上部に表示する内容
    </template>
  </DatepickerJp>
  <input type="text" id="modelText" v-model="dpJp_modelValue" /> // このテキスト入力と連動する
</template>

License

Copyright © 2024-present sinroku.com

CC-BY-ND-4.0

1.47.3

10 months ago

1.47.2

11 months ago

1.47.1

11 months ago

1.47.0

12 months ago

1.46.4

12 months ago

1.46.3

12 months ago

1.46.0

1 year ago

1.46.2

1 year ago

1.45.3

1 year ago

1.46.1

1 year ago

1.45.2

1 year ago

1.45.1

1 year ago

1.45.0

1 year ago

1.44.0

1 year ago

1.43.1

1 year ago

1.43.0

1 year ago

1.42.0

1 year ago

1.41.1

1 year ago

1.41.0

1 year ago

1.40.0

1 year ago

1.40.2

1 year ago

1.40.1

1 year ago

1.40.4

1 year ago

1.40.3

1 year ago

1.40.6

1 year ago

1.40.5

1 year ago

1.40.8

1 year ago

1.40.7

1 year ago

1.38.2

1 year ago

1.38.3

1 year ago

1.39.0

1 year ago

1.38.6

1 year ago

1.38.7

1 year ago

1.38.4

1 year ago

1.38.5

1 year ago

1.38.10

1 year ago

1.38.8

1 year ago

1.38.9

1 year ago

1.38.0

1 year ago

1.38.1

1 year ago

1.37.0

1 year ago

1.36.2

1 year ago

1.36.1

1 year ago

1.36.0

1 year ago