A vue component for select dates (range mode available) & time
yarn add vue-ctk-input-text
npm i --save vue-ctk-input-text
import VueCtkInputText from 'vue-ctk-input-text';
import 'vue-ctk-input-text/dist/vue-ctk-input-text.min.css';
Vue.component('vue-ctk-input-text', VueCtkInputText);
<vue-ctk-input-text></vue-ctk-input-text>
<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 | Type | Required | Default | Options |
---|---|---|---|---|
v-model | String/Int | true | - | - |
label | String | false | Enter Text | - |
type | String | no | text | text or number |
hint* | text | no | - | |
error-hint** | Boolean | no | false |
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
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.
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
This project is licensed under MIT License