@fmdeui/fmui 1.0.90 → 1.0.92

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
- /*! fmdeui-fmui v1.0.90 */
1
+ /*! fmdeui-fmui v1.0.92 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vxe-table'), require('@vxe-ui/plugin-render-element'), require('@vxe-ui/plugin-export-xlsx'), require('vxe-pc-ui'), require('exceljs'), require('@element-plus/icons-vue'), require('vue'), require('element-plus'), require('lodash-es'), require('js-cookie'), require('pinia'), require('vue-router'), require('@vueuse/core'), require('crypto-js'), require('xlsx-js-style'), require('vue-i18n'), require('sortablejs'), require('screenfull'), require('push.js'), require('mitt'), require('@microsoft/signalr'), require('axios')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vxe-table', '@vxe-ui/plugin-render-element', '@vxe-ui/plugin-export-xlsx', 'vxe-pc-ui', 'exceljs', '@element-plus/icons-vue', 'vue', 'element-plus', 'lodash-es', 'js-cookie', 'pinia', 'vue-router', '@vueuse/core', 'crypto-js', 'xlsx-js-style', 'vue-i18n', 'sortablejs', 'screenfull', 'push.js', 'mitt', '@microsoft/signalr', 'axios'], factory) :
@@ -20167,7 +20167,7 @@
20167
20167
  app.use(VxeUITable);
20168
20168
  };
20169
20169
 
20170
- var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20170
+ var _sfc_main$I = /* @__PURE__ */ vue.defineComponent({
20171
20171
  ...{
20172
20172
  name: "FButton"
20173
20173
  },
@@ -20237,7 +20237,7 @@
20237
20237
  }
20238
20238
  });
20239
20239
 
20240
- const FButton = _sfc_main$H;
20240
+ const FButton = _sfc_main$I;
20241
20241
 
20242
20242
  const buildTranslator = (locale) => (path, option) => translate(path, option, vue.unref(locale));
20243
20243
  const translate = (path, option, locale) => lodashEs.get(locale, path, path).replace(
@@ -20884,7 +20884,7 @@
20884
20884
 
20885
20885
  const _hoisted_1$s = { key: 0 };
20886
20886
  const _hoisted_2$i = { key: 0 };
20887
- var _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
20887
+ var _sfc_main$H = /* @__PURE__ */ vue.defineComponent({
20888
20888
  ...{
20889
20889
  name: "FInput"
20890
20890
  },
@@ -21137,13 +21137,13 @@
21137
21137
  }
21138
21138
  });
21139
21139
 
21140
- const FInput = _sfc_main$G;
21140
+ const FInput = _sfc_main$H;
21141
21141
 
21142
21142
  const _hoisted_1$r = {
21143
21143
  key: 0,
21144
21144
  class: "back_to_top"
21145
21145
  };
21146
- var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
21146
+ var _sfc_main$G = /* @__PURE__ */ vue.defineComponent({
21147
21147
  ...{
21148
21148
  name: "FLayoutPage"
21149
21149
  },
@@ -21233,9 +21233,9 @@
21233
21233
  }
21234
21234
  });
21235
21235
 
21236
- const FLayoutPage = _sfc_main$F;
21236
+ const FLayoutPage = _sfc_main$G;
21237
21237
 
21238
- var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
21238
+ var _sfc_main$F = /* @__PURE__ */ vue.defineComponent({
21239
21239
  ...{
21240
21240
  name: "FLayoutPageItem"
21241
21241
  },
@@ -21263,7 +21263,7 @@
21263
21263
  }
21264
21264
  });
21265
21265
 
21266
- const FLayoutPageItem = _sfc_main$E;
21266
+ const FLayoutPageItem = _sfc_main$F;
21267
21267
 
21268
21268
  function debounce(func, delay = 500, immediate, resultCallback) {
21269
21269
  let timer = null;
@@ -21307,7 +21307,7 @@
21307
21307
  }
21308
21308
 
21309
21309
  const _hoisted_1$q = ["id"];
21310
- var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
21310
+ var _sfc_main$E = /* @__PURE__ */ vue.defineComponent({
21311
21311
  ...{
21312
21312
  name: "FChart"
21313
21313
  },
@@ -21406,13 +21406,13 @@
21406
21406
  }
21407
21407
  });
21408
21408
 
21409
- const FChart = _sfc_main$D;
21409
+ const FChart = _sfc_main$E;
21410
21410
 
21411
21411
  const _hoisted_1$p = {
21412
21412
  key: 1,
21413
21413
  class: "f_select__pagination"
21414
21414
  };
21415
- var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
21415
+ var _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
21416
21416
  ...{
21417
21417
  name: "FSelect"
21418
21418
  },
@@ -21663,9 +21663,9 @@
21663
21663
  }
21664
21664
  });
21665
21665
 
21666
- const FSelect = _sfc_main$C;
21666
+ const FSelect = _sfc_main$D;
21667
21667
 
21668
- var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
21668
+ var _sfc_main$C = /* @__PURE__ */ vue.defineComponent({
21669
21669
  ...{
21670
21670
  name: "RenderComp"
21671
21671
  },
@@ -21690,7 +21690,7 @@
21690
21690
  const _hoisted_3$a = { class: "check-box" };
21691
21691
  const _hoisted_4$7 = { class: "more_dropdown_icon" };
21692
21692
  const _hoisted_5$6 = { class: "out_box" };
21693
- var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
21693
+ var _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
21694
21694
  ...{
21695
21695
  name: "MoreChoose"
21696
21696
  },
@@ -22005,7 +22005,7 @@
22005
22005
  };
22006
22006
  }
22007
22007
 
22008
- var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
22008
+ var _sfc_main$A = /* @__PURE__ */ vue.defineComponent({
22009
22009
  ...{
22010
22010
  name: "FQueryCondition"
22011
22011
  },
@@ -22424,7 +22424,7 @@
22424
22424
  opt.labelRender ? {
22425
22425
  name: "label",
22426
22426
  fn: vue.withCtx(() => [
22427
- vue.createVNode(_sfc_main$B, {
22427
+ vue.createVNode(_sfc_main$C, {
22428
22428
  form: vue.unref(queryState).form,
22429
22429
  render: opt.labelRender
22430
22430
  }, null, 8, ["form", "render"])
@@ -22520,7 +22520,7 @@
22520
22520
  _: 1
22521
22521
  /* STABLE */
22522
22522
  })) : vue.createCommentVNode("v-if", true),
22523
- vue.createVNode(_sfc_main$A, {
22523
+ vue.createVNode(_sfc_main$B, {
22524
22524
  isDropDownSelectMore: __props.isDropDownSelectMore,
22525
22525
  moreCheckList: __props.moreCheckList,
22526
22526
  popoverAttrsBind: popoverAttrsBind.value,
@@ -22546,7 +22546,7 @@
22546
22546
  }
22547
22547
  });
22548
22548
 
22549
- var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
22549
+ var _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
22550
22550
  ...{
22551
22551
  name: "RenderCol"
22552
22552
  },
@@ -22712,7 +22712,7 @@
22712
22712
  key: 0,
22713
22713
  class: "f-table-select__page"
22714
22714
  };
22715
- var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
22715
+ var _sfc_main$y = /* @__PURE__ */ vue.defineComponent({
22716
22716
  ...{
22717
22717
  name: "FSelectTable"
22718
22718
  },
@@ -23336,7 +23336,7 @@
23336
23336
  [
23337
23337
  __props.isShowQuery ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$n, [
23338
23338
  vue.createVNode(
23339
- _sfc_main$z,
23339
+ _sfc_main$A,
23340
23340
  vue.mergeProps({
23341
23341
  ref_key: "fQueryConditionRef",
23342
23342
  ref: fQueryConditionRef,
@@ -23462,7 +23462,7 @@
23462
23462
  fixed: item.fixed
23463
23463
  }, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
23464
23464
  default: vue.withCtx((scope) => [
23465
- item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$y, {
23465
+ item.render ? (vue.openBlock(), vue.createBlock(_sfc_main$z, {
23466
23466
  key: 0,
23467
23467
  column: item,
23468
23468
  row: scope.row,
@@ -23525,11 +23525,11 @@
23525
23525
  }
23526
23526
  });
23527
23527
 
23528
- const FSelectTable = _sfc_main$x;
23528
+ const FSelectTable = _sfc_main$y;
23529
23529
 
23530
- const FQueryCondition = _sfc_main$z;
23530
+ const FQueryCondition = _sfc_main$A;
23531
23531
 
23532
- var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
23532
+ var _sfc_main$x = /* @__PURE__ */ vue.defineComponent({
23533
23533
  ...{
23534
23534
  name: "RenderComp"
23535
23535
  },
@@ -23549,7 +23549,7 @@
23549
23549
  }
23550
23550
  });
23551
23551
 
23552
- var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
23552
+ var _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
23553
23553
  ...{
23554
23554
  name: "RenderBtn"
23555
23555
  },
@@ -23574,7 +23574,7 @@
23574
23574
  class: "text_show"
23575
23575
  };
23576
23576
  const _hoisted_2$f = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
23577
- var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
23577
+ var _sfc_main$v = /* @__PURE__ */ vue.defineComponent({
23578
23578
  ...{
23579
23579
  name: "FForm"
23580
23580
  },
@@ -23945,7 +23945,7 @@
23945
23945
  item.labelSlotName || item.labelRender ? {
23946
23946
  name: "label",
23947
23947
  fn: vue.withCtx(() => [
23948
- item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
23948
+ item.labelRender ? (vue.openBlock(), vue.createBlock(_sfc_main$x, {
23949
23949
  key: 0,
23950
23950
  render: item.labelRender,
23951
23951
  item
@@ -23977,7 +23977,7 @@
23977
23977
  vue.Fragment,
23978
23978
  null,
23979
23979
  [
23980
- val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$v, {
23980
+ val.render ? (vue.openBlock(), vue.createBlock(_sfc_main$w, {
23981
23981
  key: index,
23982
23982
  item: val,
23983
23983
  render: val.render
@@ -24024,10 +24024,10 @@
24024
24024
  }
24025
24025
  });
24026
24026
 
24027
- const FForm = _sfc_main$u;
24027
+ const FForm = _sfc_main$v;
24028
24028
 
24029
24029
  const _hoisted_1$l = ["src"];
24030
- var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
24030
+ var _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
24031
24031
  ...{
24032
24032
  name: "svgIcon"
24033
24033
  },
@@ -24125,13 +24125,13 @@
24125
24125
  }
24126
24126
  }
24127
24127
  if (!app._context.components[`SvgIcon`]) {
24128
- app.component("SvgIcon", _sfc_main$t);
24128
+ app.component("SvgIcon", _sfc_main$u);
24129
24129
  }
24130
24130
  }
24131
24131
 
24132
24132
  const emitter = mitt();
24133
24133
 
24134
- var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
24134
+ var _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
24135
24135
  ...{
24136
24136
  name: "FLayout"
24137
24137
  },
@@ -24217,7 +24217,7 @@
24217
24217
  }
24218
24218
  });
24219
24219
 
24220
- const FLayout = _sfc_main$s;
24220
+ const FLayout = _sfc_main$t;
24221
24221
 
24222
24222
  function commonFunction() {
24223
24223
  const { copy, isSupported } = core.useClipboard();
@@ -24619,7 +24619,7 @@
24619
24619
  class: "traditionalColors-chines",
24620
24620
  style: { "cursor": "grab", "color": "gray" }
24621
24621
  };
24622
- var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
24622
+ var _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
24623
24623
  ...{
24624
24624
  name: "FSettings"
24625
24625
  },
@@ -26382,9 +26382,9 @@
26382
26382
  }
26383
26383
  });
26384
26384
 
26385
- const FSettings = _sfc_main$r;
26385
+ const FSettings = _sfc_main$s;
26386
26386
 
26387
- var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
26387
+ var _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
26388
26388
  ...{
26389
26389
  name: "FModifyRecord"
26390
26390
  },
@@ -26647,9 +26647,9 @@
26647
26647
  }
26648
26648
  });
26649
26649
 
26650
- const FModifyRecord = _sfc_main$q;
26650
+ const FModifyRecord = _sfc_main$r;
26651
26651
 
26652
- var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
26652
+ var _sfc_main$q = /* @__PURE__ */ vue.defineComponent({
26653
26653
  ...{
26654
26654
  name: "Fminputdropdown"
26655
26655
  },
@@ -26841,7 +26841,111 @@
26841
26841
  }
26842
26842
  });
26843
26843
 
26844
- const Fminputdropdown = _sfc_main$p;
26844
+ const Fminputdropdown = _sfc_main$q;
26845
+
26846
+ var _sfc_main$p = /* @__PURE__ */ vue.defineComponent({
26847
+ ...{ name: "FmInputNumber" },
26848
+ __name: "index",
26849
+ props: /* @__PURE__ */ vue.mergeModels({
26850
+ placeholder: {
26851
+ type: String,
26852
+ default: "\u8BF7\u8F93\u5165\u91D1\u989D"
26853
+ },
26854
+ defaultValue: {
26855
+ type: Number,
26856
+ default: -1
26857
+ },
26858
+ bType: {
26859
+ type: String,
26860
+ default: "money"
26861
+ }
26862
+ }, {
26863
+ "modelValue": { required: true, default: 0 },
26864
+ "modelModifiers": {}
26865
+ }),
26866
+ emits: ["update:modelValue"],
26867
+ setup(__props) {
26868
+ const modelValue = vue.useModel(__props, "modelValue");
26869
+ const props = __props;
26870
+ const handleInput = (val) => {
26871
+ if (val === "" || val === null || val === void 0) {
26872
+ modelValue.value = props.defaultValue !== -1 ? props.defaultValue : 0;
26873
+ return;
26874
+ }
26875
+ if (props.bType == "number") {
26876
+ const num = parseInt(val, 10);
26877
+ modelValue.value = Number.isNaN(num) ? props.defaultValue : num;
26878
+ return;
26879
+ }
26880
+ let cleaned = String(val).replace(/[^\d.]/g, "");
26881
+ const dotIndex = cleaned.indexOf(".");
26882
+ if (dotIndex !== -1) {
26883
+ const before = cleaned.substring(0, dotIndex + 1);
26884
+ const after = cleaned.substring(dotIndex + 1).replace(/\./g, "");
26885
+ cleaned = before + after;
26886
+ }
26887
+ if (cleaned.startsWith(".")) {
26888
+ cleaned = "0" + cleaned;
26889
+ }
26890
+ const parts = cleaned.split(".");
26891
+ parts[0] = parts[0].replace(/^0+/, "") || "0";
26892
+ cleaned = parts.join(".");
26893
+ if (cleaned.includes(".")) {
26894
+ const [intPart, decPart] = cleaned.split(".");
26895
+ cleaned = `${intPart}.${decPart.substring(0, 2)}`;
26896
+ }
26897
+ modelValue.value = cleaned;
26898
+ };
26899
+ vue.watch(() => modelValue.value, (newvalue, oldValue) => {
26900
+ if (newvalue == "") {
26901
+ modelValue.value = props.defaultValue == -1 ? 0 : props.defaultValue;
26902
+ }
26903
+ });
26904
+ return (_ctx, _cache) => {
26905
+ const _component_el_input = vue.resolveComponent("el-input");
26906
+ return vue.openBlock(), vue.createBlock(_component_el_input, {
26907
+ modelValue: modelValue.value,
26908
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
26909
+ placeholder: __props.placeholder,
26910
+ onInput: handleInput
26911
+ }, vue.createSlots({
26912
+ _: 2
26913
+ /* DYNAMIC */
26914
+ }, [
26915
+ _ctx.$slots.prepend ? {
26916
+ name: "prepend",
26917
+ fn: vue.withCtx(() => [
26918
+ vue.renderSlot(_ctx.$slots, "prepend")
26919
+ ]),
26920
+ key: "0"
26921
+ } : void 0,
26922
+ _ctx.$slots.append ? {
26923
+ name: "append",
26924
+ fn: vue.withCtx(() => [
26925
+ vue.renderSlot(_ctx.$slots, "append")
26926
+ ]),
26927
+ key: "1"
26928
+ } : void 0,
26929
+ _ctx.$slots.prefix ? {
26930
+ name: "prefix",
26931
+ fn: vue.withCtx(() => [
26932
+ vue.renderSlot(_ctx.$slots, "prefix")
26933
+ ]),
26934
+ key: "2"
26935
+ } : void 0,
26936
+ _ctx.$slots.suffix ? {
26937
+ name: "suffix",
26938
+ fn: vue.withCtx(() => [
26939
+ vue.renderSlot(_ctx.$slots, "suffix")
26940
+ ]),
26941
+ key: "3"
26942
+ } : void 0
26943
+ ]), 1032, ["modelValue", "placeholder"]);
26944
+ };
26945
+ }
26946
+ });
26947
+
26948
+ const FmInputNumber = _sfc_main$p;
26845
26949
 
26846
26950
  const makeInstaller = (components = []) => {
26847
26951
  const install = (app) => {
@@ -27345,7 +27449,8 @@
27345
27449
  FSettings,
27346
27450
  FModifyRecord,
27347
27451
  FmTree,
27348
- FmCascader
27452
+ FmCascader,
27453
+ FmInputNumber
27349
27454
  ];
27350
27455
 
27351
27456
  var installer = makeInstaller([...plugins]);