diff --git a/package.json b/package.json index ffe6f1e..2420e57 100644 --- a/package.json +++ b/package.json @@ -41,6 +41,11 @@ "@rollup/plugin-node-resolve": "^9.0.0", "@rollup/plugin-replace": "^2.3.3", "@rollup/plugin-url": "^5.0.1", + "@semantic-release/changelog": "^5.0.1", + "@semantic-release/commit-analyzer": "^8.0.1", + "@semantic-release/git": "^9.0.0", + "@semantic-release/npm": "^7.0.6", + "@semantic-release/release-notes-generator": "^9.0.1", "@types/jest": "^24.0.19", "@typescript-eslint/eslint-plugin": "^2.26.0", "@typescript-eslint/parser": "^2.26.0", @@ -87,18 +92,13 @@ "rollup-plugin-typescript": "^1.0.1", "rollup-plugin-typescript2": "^0.28.0", "rollup-plugin-vue": "^6.0.0-beta.10", + "semantic-release": "17.2.1", "typescript": "^3.9.5", "url-loader": "^4.1.0", "vue-cli-plugin-vue-next": "~0.1.4", "vue-jest": "^5.0.0-alpha.5", "vue-loader": "^15.9.3", - "webpack-cli": "^3.3.12", - "@semantic-release/changelog": "^5.0.1", - "@semantic-release/commit-analyzer": "^8.0.1", - "@semantic-release/git": "^9.0.0", - "@semantic-release/npm": "^7.0.6", - "@semantic-release/release-notes-generator": "^9.0.1", - "semantic-release": "17.2.1" + "webpack-cli": "^3.3.12" }, "husky": { "hooks": { diff --git a/src/components/datepicker/DateInput.vue b/src/components/datepicker/DateInput.vue index 366d239..56a9379 100644 --- a/src/components/datepicker/DateInput.vue +++ b/src/components/datepicker/DateInput.vue @@ -17,7 +17,9 @@
+
- + + +
{{ formattedValue }}
{{ placeholder }}
diff --git a/src/components/datepicker/Datepicker.vue b/src/components/datepicker/Datepicker.vue index a442ff8..4076952 100644 --- a/src/components/datepicker/Datepicker.vue +++ b/src/components/datepicker/Datepicker.vue @@ -43,6 +43,9 @@ + (0); const selectedDate = ref(null); @@ -300,6 +303,8 @@ export default defineComponent({ const calendarHeight = ref(0); const resetTypedDate = ref(new Date()); + const hasSlot = (name: string): boolean => !!slots[name]; + /** ********************************** Computed *********************************** */ const computedInitialView = computed(() => { if (!props.initialView) { @@ -641,6 +646,7 @@ export default defineComponent({ setDate, setDate1, setValue, + hasSlot, }; }, }); diff --git a/src/components/examples/Slotview.vue b/src/components/examples/Slotview.vue index 87d4d97..9f29a38 100644 --- a/src/components/examples/Slotview.vue +++ b/src/components/examples/Slotview.vue @@ -4,6 +4,20 @@