@vunk/form 1.1.58 → 1.1.59

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.
@@ -1,10 +1,9 @@
1
1
  import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
2
2
  import { defineComponent, computed, ref, resolveComponent, openBlock, createBlock, normalizeProps, guardReactiveProps, withCtx, createVNode, normalizeClass, createCommentVNode } from 'vue';
3
- import { VkfDatePicker } from '@vunk/form/components/date-picker';
4
3
  import { useComputedReadonly } from '@vunk/form/composables';
5
4
  import { Popup } from 'vant';
6
5
  import { DatePicker, TimePicker } from '@varlet/ui';
7
- import { ElTabPane, ElTabs, dayjs } from 'element-plus';
6
+ import { ElDatePicker, ElTabPane, ElTabs, dayjs } from 'element-plus';
8
7
  import 'vant/es/popup/style';
9
8
  import '@varlet/ui/es/date-picker/style';
10
9
  import '@varlet/ui/es/time-picker/style';
@@ -145,7 +144,7 @@ const _sfc_main = defineComponent({
145
144
  name: "VkfVarDatetimePicker",
146
145
  components: {
147
146
  VkfFormItem,
148
- VkfDatePicker,
147
+ ElDatePicker,
149
148
  DatePicker,
150
149
  TimePicker,
151
150
  Popup,
@@ -238,7 +237,7 @@ const _sfc_main = defineComponent({
238
237
  }
239
238
  });
240
239
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
241
- const _component_VkfDatePicker = resolveComponent("VkfDatePicker");
240
+ const _component_ElDatePicker = resolveComponent("ElDatePicker");
242
241
  const _component_DatePicker = resolveComponent("DatePicker");
243
242
  const _component_ElTabPane = resolveComponent("ElTabPane");
244
243
  const _component_TimePicker = resolveComponent("TimePicker");
@@ -247,7 +246,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
247
246
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
248
247
  return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
249
248
  default: withCtx(() => [
250
- createVNode(_component_VkfDatePicker, {
249
+ createVNode(_component_ElDatePicker, {
251
250
  "popper-class": "var-datetime-picker-el-popover",
252
251
  "model-value": _ctx.modelValue,
253
252
  onFocus: _ctx.preInput,
@@ -1,5 +1,8 @@
1
1
  import { DatePickType } from 'element-plus';
2
2
  import { VarDatePickerType } from './const';
3
+ import { VueComponentPropsType } from '@vunk/core';
4
+ import { BasicSource } from '@vunk/form';
5
+ import type CoreVue from './index.vue.d';
3
6
  export interface VarDatePickerTypeMedia {
4
7
  label: string;
5
8
  value: VarDatePickerType;
@@ -12,4 +15,8 @@ export interface ElDatePickerTypeMedia {
12
15
  isRange?: boolean;
13
16
  hasTime?: boolean;
14
17
  }
18
+ export interface Source<P extends string = string> extends VueComponentPropsType<typeof CoreVue>, BasicSource {
19
+ prop?: P;
20
+ templateType: 'VkfVarDatetimePicker';
21
+ }
15
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.58",
3
+ "version": "1.1.59",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {