@fmdevui/fm-dev 1.0.53 → 1.0.54

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.
@@ -83,7 +83,6 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
83
83
  emit("select", item);
84
84
  };
85
85
  const resetValue = () => {
86
- autoName.value = "";
87
86
  autoId.value = 0;
88
87
  emit("reset");
89
88
  };
@@ -44,7 +44,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
44
44
  const props = __props;
45
45
  const emit = __emit;
46
46
  const handleSelectChange = () => {
47
- const fitem = props.optionData.find((item) => item.id == modeValueId.value);
47
+ const fitem = props.optionData.find((item) => item[props.bvalue] == modeValueId.value);
48
48
  modeValueName.value = fitem[props.blabel];
49
49
  emit("change", fitem);
50
50
  };
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.53 */
1
+ /*! fm-dev v1.0.54 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
@@ -925,7 +925,7 @@
925
925
  const props = __props;
926
926
  const emit = __emit;
927
927
  const handleSelectChange = () => {
928
- const fitem = props.optionData.find((item) => item.id == modeValueId.value);
928
+ const fitem = props.optionData.find((item) => item[props.bvalue] == modeValueId.value);
929
929
  modeValueName.value = fitem[props.blabel];
930
930
  emit("change", fitem);
931
931
  };
@@ -23822,7 +23822,6 @@
23822
23822
  emit("select", item);
23823
23823
  };
23824
23824
  const resetValue = () => {
23825
- autoName.value = "";
23826
23825
  autoId.value = 0;
23827
23826
  emit("reset");
23828
23827
  };