1.0.5 • Published 5 years ago

vue-ctk-input-text v1.0.5

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

vue-ctk-input-text

vue-ctk-date-time-picker

A vue component for select dates (range mode available) & time

vue-ctk-input-text

Demo

Enjoy here

Installation

Using yarn

yarn add vue-ctk-date-input-text

Using npm

npm i --save vue-ctk-date-input-text

Usage

ES6 Modules / CommonJS

import VueCtkDateTimePicker from 'vue-ctk-date-time-picker';
import 'vue-ctk-date-time-picker/dist/vue-ctk-date-time-picker.min.css';

Vue.component('vue-ctk-date-input-text', VueCtkInputText);
<vue-ctk-input-text></vue-ctk-input-text>

UMD

<vue-ctk-input-text></vue-ctk-input-text>

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/vue-ctk-input-text.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/vue-ctk-input-text.min.css">

<script type="text/javascript">
  Vue.component('vue-ctk-input-text', window.VueCtkInputText.default);
</script>

Props API

PropsTypeRequiredDefaultOptions
v-modelString/Inttrue--
labelStringfalseEnter Text-
typeStringnotexttext or number
hint*textno-
error-hint**Booleannofalse

Contribution

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Build

Build configuration is located in the poi.config.js file, to build just run: npm run build, it will build to cjs and umd directories.

Tests

This template uses karma with chai by default, you can change test settings in poi.config.js

npm run test npm run test:watch npm run test:cov

License

This project is licensed under MIT License