@fmdevui/fm-dev 1.0.109 → 1.0.111

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.109 */
1
+ /*! fm-dev v1.0.111 */
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, createSlots, renderSlot, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, mergeProps, resolveDynamicComponent, useSlots, toHandlers, onBeforeUnmount, onUpdated, useAttrs, normalizeProps, guardReactiveProps } from 'vue';
3
3
  import crypto from 'crypto';
4
4
  import require$$0 from 'url';
@@ -35377,9 +35377,10 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
35377
35377
  if (multibasecode.length > 0) {
35378
35378
  const mdata = res.data.result ?? [];
35379
35379
  multibasecode.forEach((p) => {
35380
- state.optionsData[p] = mdata.filter((p2) => {
35381
- return p2.code === p2;
35382
- }) ?? [];
35380
+ const tempdata = mdata.filter((x) => {
35381
+ return x.code == p;
35382
+ });
35383
+ state.optionsData[p] = tempdata ?? [];
35383
35384
  });
35384
35385
  } else {
35385
35386
  return state.optionsData[basecode] = res.data.result ?? [];
@@ -35496,7 +35497,9 @@ var _sfc_main$c = /* @__PURE__ */ defineComponent({
35496
35497
  emit("change", fitem);
35497
35498
  };
35498
35499
  onMounted(async () => {
35499
- state.optionData = props.optionData;
35500
+ if (props.optionData.length > 0) {
35501
+ state.optionData = props.optionData;
35502
+ }
35500
35503
  if (props.autoLoadData && props.basecode && props.basecode != "") {
35501
35504
  state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
35502
35505
  }
@@ -18,9 +18,10 @@ const usefminputdropdownstore = pinia.defineStore("fminputdropdownstore", () =>
18
18
  if (multibasecode.length > 0) {
19
19
  const mdata = res.data.result ?? [];
20
20
  multibasecode.forEach((p) => {
21
- state.optionsData[p] = mdata.filter((p2) => {
22
- return p2.code === p2;
23
- }) ?? [];
21
+ const tempdata = mdata.filter((x) => {
22
+ return x.code == p;
23
+ });
24
+ state.optionsData[p] = tempdata ?? [];
24
25
  });
25
26
  } else {
26
27
  return state.optionsData[basecode] = res.data.result ?? [];
@@ -111,7 +111,9 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
111
111
  emit("change", fitem);
112
112
  };
113
113
  vue.onMounted(async () => {
114
- state.optionData = props.optionData;
114
+ if (props.optionData.length > 0) {
115
+ state.optionData = props.optionData;
116
+ }
115
117
  if (props.autoLoadData && props.basecode && props.basecode != "") {
116
118
  state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
117
119
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fmdevui/fm-dev",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "description": "Page level components developed based on Element Plus.",
5
5
  "author": "fmdevui",
6
6
  "keywords": [