@fmdevui/fm-dev 1.0.56 → 1.0.58

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.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.56 */
1
+ /*! fm-dev v1.0.58 */
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) :
@@ -15,7 +15,7 @@
15
15
  const _hoisted_8 = { class: "fm-transfer-panel" };
16
16
  const _hoisted_9 = { class: "fm-transfer-panel__header" };
17
17
  const _hoisted_10 = { class: "fm-transfer-panel__body" };
18
- var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
18
+ var _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
19
19
  ...{
20
20
  name: "FmTransfer"
21
21
  },
@@ -374,7 +374,7 @@
374
374
 
375
375
  const _hoisted_1$3 = { class: "notice-bar-warp-text-box" };
376
376
  const _hoisted_2$1 = ["innerHTML"];
377
- var _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
377
+ var _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
378
378
  ...{
379
379
  name: "FmNoticeBar"
380
380
  },
@@ -497,7 +497,7 @@
497
497
  }
498
498
  });
499
499
 
500
- var _sfc_main$4 = {
500
+ var _sfc_main$5 = {
501
501
  name: "dragVerify",
502
502
  props: {
503
503
  isPassing: {
@@ -879,9 +879,9 @@
879
879
  )
880
880
  ]);
881
881
  }
882
- var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
882
+ var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
883
883
 
884
- var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
884
+ var _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
885
885
  ...{
886
886
  name: "Fmselect"
887
887
  },
@@ -23741,7 +23741,7 @@
23741
23741
  };
23742
23742
 
23743
23743
  const _hoisted_1$1 = { style: { "font-size": "14px", "line-height": "30px" } };
23744
- var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
23744
+ var _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
23745
23745
  ...{
23746
23746
  name: "FmAutocomplete"
23747
23747
  },
@@ -23782,6 +23782,13 @@
23782
23782
  fName: {
23783
23783
  type: String,
23784
23784
  default: "name"
23785
+ },
23786
+ /**
23787
+ * 查询业务表ID
23788
+ */
23789
+ qId: {
23790
+ type: Number,
23791
+ default: 0
23785
23792
  }
23786
23793
  }, {
23787
23794
  "name": {
@@ -23803,7 +23810,7 @@
23803
23810
  const emit = __emit;
23804
23811
  const querySearchAsync = async (queryString, cb) => {
23805
23812
  resetValue();
23806
- const res = await useBaseApi(props.apiService).post({ top: props.top, keywork: queryString }, props.apiAction);
23813
+ const res = await useBaseApi(props.apiService).post({ top: props.top, keywork: queryString, id: props.qId }, props.apiAction);
23807
23814
  const data = res.data.result ?? [];
23808
23815
  if (data.length === 0) {
23809
23816
  return cb([]);
@@ -23853,6 +23860,126 @@
23853
23860
  }
23854
23861
  });
23855
23862
 
23863
+ var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
23864
+ ...{
23865
+ name: "Fminputdropdown"
23866
+ },
23867
+ __name: "index",
23868
+ props: /* @__PURE__ */ vue.mergeModels({
23869
+ //数据
23870
+ optionData: {
23871
+ type: Array,
23872
+ default: []
23873
+ },
23874
+ /**
23875
+ * 值的属性值
23876
+ */
23877
+ bvalue: {
23878
+ type: String,
23879
+ default: "id"
23880
+ },
23881
+ /**
23882
+ * 值的属性标签
23883
+ */
23884
+ blabel: {
23885
+ type: String,
23886
+ default: "name"
23887
+ },
23888
+ placeholder: {
23889
+ type: String,
23890
+ default: "\u8BF7\u9009\u62E9"
23891
+ },
23892
+ inputWidth: {
23893
+ type: String,
23894
+ default: "40%"
23895
+ },
23896
+ dropWidth: {
23897
+ type: String,
23898
+ default: "90px"
23899
+ }
23900
+ }, {
23901
+ "id": {
23902
+ type: Number,
23903
+ default: 0
23904
+ },
23905
+ "idModifiers": {},
23906
+ "name": {
23907
+ type: String,
23908
+ default: ""
23909
+ },
23910
+ "nameModifiers": {}
23911
+ }),
23912
+ emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:id", "update:name"]),
23913
+ setup(__props, { emit: __emit }) {
23914
+ const modeValueId = vue.useModel(__props, "id");
23915
+ const modeValueName = vue.useModel(__props, "name");
23916
+ const props = __props;
23917
+ const emit = __emit;
23918
+ const handCommand = (command) => {
23919
+ const fitem = props.optionData.find((item) => item[props.bvalue] === command);
23920
+ modeValueId.value = fitem != null ? [props.bvalue] : 0;
23921
+ modeValueName.value = fitem != null ? fitem[props.blabel] : "";
23922
+ emit("change", fitem);
23923
+ };
23924
+ return (_ctx, _cache) => {
23925
+ const _component_el_input = vue.resolveComponent("el-input");
23926
+ const _component_el_dropdown_item = vue.resolveComponent("el-dropdown-item");
23927
+ const _component_el_dropdown_menu = vue.resolveComponent("el-dropdown-menu");
23928
+ const _component_el_dropdown = vue.resolveComponent("el-dropdown");
23929
+ return vue.openBlock(), vue.createBlock(_component_el_dropdown, {
23930
+ placement: "bottom",
23931
+ trigger: "click",
23932
+ style: { "width": "100%" },
23933
+ onCommand: handCommand
23934
+ }, {
23935
+ dropdown: vue.withCtx(() => [
23936
+ vue.createVNode(_component_el_dropdown_menu, {
23937
+ style: vue.normalizeStyle({ width: __props.dropWidth })
23938
+ }, {
23939
+ default: vue.withCtx(() => [
23940
+ (vue.openBlock(true), vue.createElementBlock(
23941
+ vue.Fragment,
23942
+ null,
23943
+ vue.renderList(__props.optionData, (item, index) => {
23944
+ return vue.openBlock(), vue.createBlock(_component_el_dropdown_item, {
23945
+ key: index,
23946
+ command: item[__props.bvalue],
23947
+ divided: ""
23948
+ }, {
23949
+ default: vue.withCtx(() => [
23950
+ vue.createTextVNode(
23951
+ vue.toDisplayString(item[__props.blabel]),
23952
+ 1
23953
+ /* TEXT */
23954
+ )
23955
+ ]),
23956
+ _: 2
23957
+ /* DYNAMIC */
23958
+ }, 1032, ["command"]);
23959
+ }),
23960
+ 128
23961
+ /* KEYED_FRAGMENT */
23962
+ ))
23963
+ ]),
23964
+ _: 1
23965
+ /* STABLE */
23966
+ }, 8, ["style"])
23967
+ ]),
23968
+ default: vue.withCtx(() => [
23969
+ vue.createVNode(_component_el_input, {
23970
+ modelValue: modeValueName.value,
23971
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
23972
+ placeholder: props.placeholder,
23973
+ style: vue.normalizeStyle({ width: __props.inputWidth })
23974
+ }, null, 8, ["modelValue", "placeholder", "style"])
23975
+ ]),
23976
+ _: 1
23977
+ /* STABLE */
23978
+ });
23979
+ };
23980
+ }
23981
+ });
23982
+
23856
23983
  /*! Element Plus Icons Vue v2.3.1 */
23857
23984
 
23858
23985
  var add_location_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ vue.defineComponent({
@@ -30010,11 +30137,12 @@
30010
30137
  }
30011
30138
  }
30012
30139
 
30013
- const FmTransfer = _sfc_main$6;
30014
- const FmNoticeBar = _sfc_main$5;
30140
+ const FmTransfer = _sfc_main$7;
30141
+ const FmNoticeBar = _sfc_main$6;
30015
30142
  const FmDragImg = dragimg;
30016
- const Fmselect = _sfc_main$3;
30017
- const FmAutocomplete = _sfc_main$2;
30143
+ const Fmselect = _sfc_main$4;
30144
+ const FmAutocomplete = _sfc_main$3;
30145
+ const Fminputdropdown = _sfc_main$2;
30018
30146
 
30019
30147
  const makeInstaller = (components = []) => {
30020
30148
  const install = (app) => {
@@ -30064,7 +30192,8 @@
30064
30192
  FmTransfer,
30065
30193
  FmNoticeBar,
30066
30194
  Fmselect,
30067
- FmAutocomplete
30195
+ FmAutocomplete,
30196
+ Fminputdropdown
30068
30197
  ];
30069
30198
 
30070
30199
  var installer = makeInstaller([...plugins]);
@@ -52759,6 +52888,7 @@
52759
52888
  exports.FmLogin = FmLogin;
52760
52889
  exports.FmNoticeBar = FmNoticeBar;
52761
52890
  exports.FmTransfer = FmTransfer;
52891
+ exports.Fminputdropdown = Fminputdropdown;
52762
52892
  exports.Fmselect = Fmselect;
52763
52893
  exports.HttpMethodEnum = HttpMethodEnum;
52764
52894
  exports.JobCreateTypeEnum = JobCreateTypeEnum;