@kengic/vue 0.5.28 → 0.5.29-beta.0

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.
Files changed (2) hide show
  1. package/dist/kengic-vue.js +10 -6
  2. package/package.json +1 -1
@@ -7347,14 +7347,18 @@ const KgFormItemCheckboxGroup = defineComponent({
7347
7347
  emit: r,
7348
7348
  attrs: n
7349
7349
  }) {
7350
- const a = inject("$dayjs", dayjs);
7351
- function o(s) {
7352
- const i = s ? a(s) : void 0;
7353
- r("update:value", i), r("kgChange", i);
7350
+ const a = inject("$dayjs", dayjs), o = computed(() => {
7351
+ let i = e.value;
7352
+ if (!!i && (a.isDayjs(i) || (i = a(i)), !!a.isDayjs(i)))
7353
+ return i;
7354
+ });
7355
+ function s(i) {
7356
+ const l = i ? a(i) : void 0;
7357
+ r("update:value", l), r("kgChange", l);
7354
7358
  }
7355
7359
  return () => createVNode(DatePicker, {
7356
- value: e.value,
7357
- "onUpdate:value": o,
7360
+ value: o.value,
7361
+ "onUpdate:value": s,
7358
7362
  id: n.id,
7359
7363
  disabled: e.kgDisabled,
7360
7364
  placeholder: e.kgPlaceholder,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.5.28",
3
+ "version": "0.5.29-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",