@fmdevui/fm-dev 1.0.73 → 1.0.74

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.
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.73 */
1
+ /*! fm-dev v1.0.74 */
2
2
  import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, resolveDynamicComponent } from 'vue';
3
3
  import crypto from 'crypto';
4
4
  import require$$0 from 'url';
@@ -36564,12 +36564,18 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
36564
36564
  const modeValue = useModel(__props, "modelValue");
36565
36565
  const props = __props;
36566
36566
  onMounted(() => {
36567
+ nextTick(() => {
36568
+ initdate();
36569
+ });
36570
+ });
36571
+ const initdate = () => {
36567
36572
  if (props.dateType === "bdate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
36568
36573
  modeValue.value = getBdate(props.adddaynum);
36569
36574
  } else if (props.dateType === "edate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
36570
36575
  modeValue.value = getEdate(props.adddaynum);
36571
36576
  }
36572
- });
36577
+ };
36578
+ initdate();
36573
36579
  return (_ctx, _cache) => {
36574
36580
  const _component_el_date_picker = resolveComponent("el-date-picker");
36575
36581
  return openBlock(), createBlock(_component_el_date_picker, {
@@ -29,12 +29,18 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
29
29
  const modeValue = vue.useModel(__props, "modelValue");
30
30
  const props = __props;
31
31
  vue.onMounted(() => {
32
+ vue.nextTick(() => {
33
+ initdate();
34
+ });
35
+ });
36
+ const initdate = () => {
32
37
  if (props.dateType === "bdate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
33
38
  modeValue.value = formatTime.getBdate(props.adddaynum);
34
39
  } else if (props.dateType === "edate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
35
40
  modeValue.value = formatTime.getEdate(props.adddaynum);
36
41
  }
37
- });
42
+ };
43
+ initdate();
38
44
  return (_ctx, _cache) => {
39
45
  const _component_el_date_picker = vue.resolveComponent("el-date-picker");
40
46
  return vue.openBlock(), vue.createBlock(_component_el_date_picker, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fmdevui/fm-dev",
3
- "version": "1.0.73",
3
+ "version": "1.0.74",
4
4
  "description": "Page level components developed based on Element Plus.",
5
5
  "author": "fmdevui",
6
6
  "keywords": [
File without changes