@fy-/fws-vue 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -99,12 +99,17 @@ defineExpose({ focus, blur, getInputRef });
99
99
 
100
100
  function setDpValue(e: any) {
101
101
  model.value = e.detail.date.toISOString().split("T")[0];
102
+ dpValue.value = e.detail.date.toISOString().split("T")[0];
102
103
  }
103
104
 
105
+ const dpValue = ref<string | undefined>(undefined);
106
+
104
107
  onMounted(() => {
105
108
  if (props.type === "datepicker" && inputRef.value) {
106
109
  dpRef.value = new Datepicker(inputRef.value, {
107
110
  autohide: true,
111
+ format: "yyyy-mm-dd",
112
+ dateFormat: "yyyy-mm-dd",
108
113
  ...props.dpOptions,
109
114
  });
110
115
  inputRef.value.addEventListener("changeDate", setDpValue);
@@ -213,6 +218,7 @@ onUnmounted(() => {
213
218
  :aria-describedby="help ? `${id}-help` : id"
214
219
  :required="req"
215
220
  ref="inputRef"
221
+ v-model="model"
216
222
  />
217
223
  </div>
218
224
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {