Tracking de l'application VApp (IHM du jeu)
This commit is contained in:
81
VApp/node_modules/vuetify/lib/components/VDatePicker/VDatePickerTitle.mjs
generated
vendored
Normal file
81
VApp/node_modules/vuetify/lib/components/VDatePicker/VDatePickerTitle.mjs
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
// @ts-nocheck
|
||||
/* eslint-disable */
|
||||
|
||||
import "./VDatePickerTitle.css";
|
||||
|
||||
// Components
|
||||
import VIcon from "../VIcon/index.mjs"; // Mixins
|
||||
import PickerButton from "../../mixins/picker-button.mjs"; // Utils
|
||||
import mixins from "../../util/mixins.mjs"; // Types
|
||||
export default mixins(PickerButton
|
||||
/* @vue/component */).extend({
|
||||
name: 'v-date-picker-title',
|
||||
props: {
|
||||
date: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
disabled: Boolean,
|
||||
readonly: Boolean,
|
||||
selectingYear: Boolean,
|
||||
value: {
|
||||
type: String
|
||||
},
|
||||
year: {
|
||||
type: [Number, String],
|
||||
default: ''
|
||||
},
|
||||
yearIcon: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data: () => ({
|
||||
isReversing: false
|
||||
}),
|
||||
computed: {
|
||||
computedTransition() {
|
||||
return this.isReversing ? 'picker-reverse-transition' : 'picker-transition';
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
value(val, prev) {
|
||||
this.isReversing = val < prev;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
genYearIcon() {
|
||||
return this.$createElement(VIcon, {
|
||||
props: {
|
||||
dark: true
|
||||
}
|
||||
}, this.yearIcon);
|
||||
},
|
||||
getYearBtn() {
|
||||
return this.genPickerButton('selectingYear', true, [String(this.year), this.yearIcon ? this.genYearIcon() : null], false, 'v-date-picker-title__year');
|
||||
},
|
||||
genTitleText() {
|
||||
return this.$createElement('transition', {
|
||||
props: {
|
||||
name: this.computedTransition
|
||||
}
|
||||
}, [this.$createElement('div', {
|
||||
domProps: {
|
||||
innerHTML: this.date || ' '
|
||||
},
|
||||
key: this.value
|
||||
})]);
|
||||
},
|
||||
genTitleDate() {
|
||||
return this.genPickerButton('selectingYear', false, [this.genTitleText()], false, 'v-date-picker-title__date');
|
||||
}
|
||||
},
|
||||
render(h) {
|
||||
return h('div', {
|
||||
staticClass: 'v-date-picker-title',
|
||||
class: {
|
||||
'v-date-picker-title--disabled': this.disabled
|
||||
}
|
||||
}, [this.getYearBtn(), this.genTitleDate()]);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=VDatePickerTitle.mjs.map
|
||||
Reference in New Issue
Block a user