quasar-app-extension-qdatetimepicker
Advanced tools
Comparing version 1.0.0-rc.9 to 1.0.0-rc.10
{ | ||
"name": "quasar-app-extension-qdatetimepicker", | ||
"version": "1.0.0-rc.9", | ||
"version": "1.0.0-rc.10", | ||
"description": "QDatetimePicker for Quasar", | ||
@@ -5,0 +5,0 @@ "author": "Tobias Mesquita <tobias.mesquita@gmail.com>", |
@@ -63,2 +63,9 @@ import Vue from 'vue' | ||
}, | ||
iconPosition: { | ||
type: String, | ||
default: 'append', | ||
validation (value) { | ||
return ['append', 'prepend'].indexOf(value) !== -1 | ||
} | ||
}, | ||
clearIcon: String, | ||
@@ -65,0 +72,0 @@ autoUpdateValue: Boolean, |
@@ -153,2 +153,8 @@ { | ||
}, | ||
"iconPosition": { | ||
"type": [ "String" ], | ||
"desc": "Icon Position ('append': icon will be appended to the input, 'prepend': icon will be prepended to the input)", | ||
"examples": [ "append", "prepend" ], | ||
"default": "append" | ||
}, | ||
"calendar": { | ||
@@ -155,0 +161,0 @@ "type": "String", |
@@ -38,2 +38,3 @@ import { | ||
cbOptions (options) { | ||
let position = options.props.iconPosition || 'append' | ||
options.scopedSlots.append = function (props) { | ||
@@ -47,3 +48,3 @@ let icons = [] | ||
} | ||
if (!isReadonly) { | ||
if (!isReadonly && position === 'append') { | ||
icons.push(that.trigger()) | ||
@@ -54,2 +55,12 @@ } | ||
if (position === 'prepend') { | ||
options.scopedSlots.prepend = function (props) { | ||
let icons = [] | ||
if (!isReadonly) { | ||
icons.push(that.trigger()) | ||
} | ||
return icons | ||
} | ||
} | ||
if (self.rules) { | ||
@@ -56,0 +67,0 @@ options.props.rules = self.rules.map(rule => { |
Sorry, the diff of this file is not supported yet
154522
27
1327