@fmdeui/fmui 1.0.114 → 1.0.115

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.
Files changed (41) hide show
  1. package/es/component.mjs +3 -1
  2. package/es/components/fm-datepicker/index.d.ts +33 -0
  3. package/es/components/fm-datepicker/index.vue.d.ts +34 -0
  4. package/es/components/index.d.ts +1 -0
  5. package/es/index.mjs +1 -1
  6. package/es/packages/components/fm-autocomplete/index2.vue.mjs +46 -41
  7. package/es/packages/components/fm-datepicker/index.mjs +6 -0
  8. package/es/packages/components/fm-datepicker/index.vue.mjs +5 -0
  9. package/es/packages/components/fm-datepicker/index2.vue.mjs +56 -0
  10. package/es/packages/components/index.mjs +1 -0
  11. package/es/packages/utils/formatTime.mjs +12 -1
  12. package/es/packages/utils/index.mjs +1 -1
  13. package/es/utils/formatTime.d.ts +10 -0
  14. package/index.js +161 -89
  15. package/index.min.js +7 -7
  16. package/index.min.mjs +7 -7
  17. package/index.mjs +160 -90
  18. package/lib/component.js +3 -1
  19. package/lib/components/fm-datepicker/index.d.ts +33 -0
  20. package/lib/components/fm-datepicker/index.vue.d.ts +34 -0
  21. package/lib/components/index.d.ts +1 -0
  22. package/lib/index.js +2 -0
  23. package/lib/packages/components/fm-autocomplete/index2.vue.js +45 -40
  24. package/lib/packages/components/fm-datepicker/index.js +8 -0
  25. package/lib/packages/components/fm-datepicker/index.vue.js +9 -0
  26. package/lib/packages/components/fm-datepicker/index2.vue.js +60 -0
  27. package/lib/packages/components/index.js +6 -4
  28. package/lib/packages/utils/formatTime.js +13 -0
  29. package/lib/packages/utils/index.js +2 -0
  30. package/lib/utils/formatTime.d.ts +10 -0
  31. package/locale/en.js +1 -1
  32. package/locale/en.min.js +1 -1
  33. package/locale/en.min.mjs +1 -1
  34. package/locale/en.mjs +1 -1
  35. package/locale/zh-cn.js +1 -1
  36. package/locale/zh-cn.min.js +1 -1
  37. package/locale/zh-cn.min.mjs +1 -1
  38. package/locale/zh-cn.mjs +1 -1
  39. package/package.json +1 -1
  40. /package/es/{index.css → make-installer.css} +0 -0
  41. /package/lib/{version.css → component.css} +0 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fmdeui-fmui v1.0.114 */
1
+ /*! fmdeui-fmui v1.0.115 */
2
2
  import VxeUITable from 'vxe-table';
3
3
  import VxeUIPluginRenderElement from '@vxe-ui/plugin-render-element';
4
4
  import VxeUIPluginExportXLSX from '@vxe-ui/plugin-export-xlsx';
@@ -755,6 +755,17 @@ function formatAxis(param, t) {
755
755
  else if (hour < 22) return getMessage("eveningGreeting");
756
756
  else return getMessage("nightGreeting");
757
757
  }
758
+ function getBdate(num = 1) {
759
+ const firstDay = /* @__PURE__ */ new Date();
760
+ firstDay.setDate(num);
761
+ return formatDate(firstDay, "YYYY-mm-dd");
762
+ }
763
+ function getEdate(num = 0) {
764
+ const lastDay = /* @__PURE__ */ new Date();
765
+ lastDay.setMonth(lastDay.getMonth() + 1, 0);
766
+ if (num > 0) lastDay.setDate(num);
767
+ return formatDate(lastDay, "YYYY-mm-dd");
768
+ }
758
769
 
759
770
  const TRIGGER_INPUT = "change";
760
771
  const TRIGGER_BLUR = "blur";
@@ -20295,7 +20306,7 @@ const setupVXETable = (app) => {
20295
20306
  app.use(VxeUITable);
20296
20307
  };
20297
20308
 
20298
- var _sfc_main$M = /* @__PURE__ */ defineComponent({
20309
+ var _sfc_main$N = /* @__PURE__ */ defineComponent({
20299
20310
  ...{
20300
20311
  name: "FButton"
20301
20312
  },
@@ -20365,7 +20376,7 @@ var _sfc_main$M = /* @__PURE__ */ defineComponent({
20365
20376
  }
20366
20377
  });
20367
20378
 
20368
- const FButton = _sfc_main$M;
20379
+ const FButton = _sfc_main$N;
20369
20380
 
20370
20381
  const buildTranslator = (locale) => (path, option) => translate(path, option, unref(locale));
20371
20382
  const translate = (path, option, locale) => get(locale, path, path).replace(
@@ -21081,7 +21092,7 @@ function getShowColumnWidth(flag, field, defaultValue = "", isJson = false) {
21081
21092
 
21082
21093
  const _hoisted_1$w = { key: 0 };
21083
21094
  const _hoisted_2$k = { key: 0 };
21084
- var _sfc_main$L = /* @__PURE__ */ defineComponent({
21095
+ var _sfc_main$M = /* @__PURE__ */ defineComponent({
21085
21096
  ...{
21086
21097
  name: "FInput"
21087
21098
  },
@@ -21334,13 +21345,13 @@ var _sfc_main$L = /* @__PURE__ */ defineComponent({
21334
21345
  }
21335
21346
  });
21336
21347
 
21337
- const FInput = _sfc_main$L;
21348
+ const FInput = _sfc_main$M;
21338
21349
 
21339
21350
  const _hoisted_1$v = {
21340
21351
  key: 0,
21341
21352
  class: "back_to_top"
21342
21353
  };
21343
- var _sfc_main$K = /* @__PURE__ */ defineComponent({
21354
+ var _sfc_main$L = /* @__PURE__ */ defineComponent({
21344
21355
  ...{
21345
21356
  name: "FLayoutPage"
21346
21357
  },
@@ -21430,9 +21441,9 @@ var _sfc_main$K = /* @__PURE__ */ defineComponent({
21430
21441
  }
21431
21442
  });
21432
21443
 
21433
- const FLayoutPage = _sfc_main$K;
21444
+ const FLayoutPage = _sfc_main$L;
21434
21445
 
21435
- var _sfc_main$J = /* @__PURE__ */ defineComponent({
21446
+ var _sfc_main$K = /* @__PURE__ */ defineComponent({
21436
21447
  ...{
21437
21448
  name: "FLayoutPageItem"
21438
21449
  },
@@ -21460,7 +21471,7 @@ var _sfc_main$J = /* @__PURE__ */ defineComponent({
21460
21471
  }
21461
21472
  });
21462
21473
 
21463
- const FLayoutPageItem = _sfc_main$J;
21474
+ const FLayoutPageItem = _sfc_main$K;
21464
21475
 
21465
21476
  function debounce(func, delay = 500, immediate, resultCallback) {
21466
21477
  let timer = null;
@@ -21504,7 +21515,7 @@ function toLine(name) {
21504
21515
  }
21505
21516
 
21506
21517
  const _hoisted_1$u = ["id"];
21507
- var _sfc_main$I = /* @__PURE__ */ defineComponent({
21518
+ var _sfc_main$J = /* @__PURE__ */ defineComponent({
21508
21519
  ...{
21509
21520
  name: "FChart"
21510
21521
  },
@@ -21603,13 +21614,13 @@ var _sfc_main$I = /* @__PURE__ */ defineComponent({
21603
21614
  }
21604
21615
  });
21605
21616
 
21606
- const FChart = _sfc_main$I;
21617
+ const FChart = _sfc_main$J;
21607
21618
 
21608
21619
  const _hoisted_1$t = {
21609
21620
  key: 1,
21610
21621
  class: "f_select__pagination"
21611
21622
  };
21612
- var _sfc_main$H = /* @__PURE__ */ defineComponent({
21623
+ var _sfc_main$I = /* @__PURE__ */ defineComponent({
21613
21624
  ...{
21614
21625
  name: "FSelect"
21615
21626
  },
@@ -21860,9 +21871,9 @@ var _sfc_main$H = /* @__PURE__ */ defineComponent({
21860
21871
  }
21861
21872
  });
21862
21873
 
21863
- const FSelect = _sfc_main$H;
21874
+ const FSelect = _sfc_main$I;
21864
21875
 
21865
- var _sfc_main$G = /* @__PURE__ */ defineComponent({
21876
+ var _sfc_main$H = /* @__PURE__ */ defineComponent({
21866
21877
  ...{
21867
21878
  name: "RenderComp"
21868
21879
  },
@@ -21887,7 +21898,7 @@ const _hoisted_2$j = { class: "inside_box_title" };
21887
21898
  const _hoisted_3$c = { class: "check-box" };
21888
21899
  const _hoisted_4$8 = { class: "more_dropdown_icon" };
21889
21900
  const _hoisted_5$7 = { class: "out_box" };
21890
- var _sfc_main$F = /* @__PURE__ */ defineComponent({
21901
+ var _sfc_main$G = /* @__PURE__ */ defineComponent({
21891
21902
  ...{
21892
21903
  name: "MoreChoose"
21893
21904
  },
@@ -22202,7 +22213,7 @@ function useComputed() {
22202
22213
  };
22203
22214
  }
22204
22215
 
22205
- var _sfc_main$E = /* @__PURE__ */ defineComponent({
22216
+ var _sfc_main$F = /* @__PURE__ */ defineComponent({
22206
22217
  ...{
22207
22218
  name: "FQueryCondition"
22208
22219
  },
@@ -22621,7 +22632,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
22621
22632
  opt.labelRender ? {
22622
22633
  name: "label",
22623
22634
  fn: withCtx(() => [
22624
- createVNode(_sfc_main$G, {
22635
+ createVNode(_sfc_main$H, {
22625
22636
  form: unref(queryState).form,
22626
22637
  render: opt.labelRender
22627
22638
  }, null, 8, ["form", "render"])
@@ -22717,7 +22728,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
22717
22728
  _: 1
22718
22729
  /* STABLE */
22719
22730
  })) : createCommentVNode("v-if", true),
22720
- createVNode(_sfc_main$F, {
22731
+ createVNode(_sfc_main$G, {
22721
22732
  isDropDownSelectMore: __props.isDropDownSelectMore,
22722
22733
  moreCheckList: __props.moreCheckList,
22723
22734
  popoverAttrsBind: popoverAttrsBind.value,
@@ -22743,7 +22754,7 @@ var _sfc_main$E = /* @__PURE__ */ defineComponent({
22743
22754
  }
22744
22755
  });
22745
22756
 
22746
- var _sfc_main$D = /* @__PURE__ */ defineComponent({
22757
+ var _sfc_main$E = /* @__PURE__ */ defineComponent({
22747
22758
  ...{
22748
22759
  name: "RenderCol"
22749
22760
  },
@@ -22909,7 +22920,7 @@ const _hoisted_4$7 = {
22909
22920
  key: 0,
22910
22921
  class: "f-table-select__page"
22911
22922
  };
22912
- var _sfc_main$C = /* @__PURE__ */ defineComponent({
22923
+ var _sfc_main$D = /* @__PURE__ */ defineComponent({
22913
22924
  ...{
22914
22925
  name: "FSelectTable"
22915
22926
  },
@@ -23533,7 +23544,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
23533
23544
  [
23534
23545
  __props.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$r, [
23535
23546
  createVNode(
23536
- _sfc_main$E,
23547
+ _sfc_main$F,
23537
23548
  mergeProps({
23538
23549
  ref_key: "fQueryConditionRef",
23539
23550
  ref: fQueryConditionRef,
@@ -23659,7 +23670,7 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
23659
23670
  fixed: item.fixed
23660
23671
  }, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
23661
23672
  default: withCtx((scope) => [
23662
- item.render ? (openBlock(), createBlock(_sfc_main$D, {
23673
+ item.render ? (openBlock(), createBlock(_sfc_main$E, {
23663
23674
  key: 0,
23664
23675
  column: item,
23665
23676
  row: scope.row,
@@ -23722,11 +23733,11 @@ var _sfc_main$C = /* @__PURE__ */ defineComponent({
23722
23733
  }
23723
23734
  });
23724
23735
 
23725
- const FSelectTable = _sfc_main$C;
23736
+ const FSelectTable = _sfc_main$D;
23726
23737
 
23727
- const FQueryCondition = _sfc_main$E;
23738
+ const FQueryCondition = _sfc_main$F;
23728
23739
 
23729
- var _sfc_main$B = /* @__PURE__ */ defineComponent({
23740
+ var _sfc_main$C = /* @__PURE__ */ defineComponent({
23730
23741
  ...{
23731
23742
  name: "RenderComp"
23732
23743
  },
@@ -23746,7 +23757,7 @@ var _sfc_main$B = /* @__PURE__ */ defineComponent({
23746
23757
  }
23747
23758
  });
23748
23759
 
23749
- var _sfc_main$A = /* @__PURE__ */ defineComponent({
23760
+ var _sfc_main$B = /* @__PURE__ */ defineComponent({
23750
23761
  ...{
23751
23762
  name: "RenderBtn"
23752
23763
  },
@@ -23771,7 +23782,7 @@ const _hoisted_1$q = {
23771
23782
  class: "text_show"
23772
23783
  };
23773
23784
  const _hoisted_2$h = { class: "footer_btn flex-box flex-ver f-margin-top-5" };
23774
- var _sfc_main$z = /* @__PURE__ */ defineComponent({
23785
+ var _sfc_main$A = /* @__PURE__ */ defineComponent({
23775
23786
  ...{
23776
23787
  name: "FForm"
23777
23788
  },
@@ -24142,7 +24153,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
24142
24153
  item.labelSlotName || item.labelRender ? {
24143
24154
  name: "label",
24144
24155
  fn: withCtx(() => [
24145
- item.labelRender ? (openBlock(), createBlock(_sfc_main$B, {
24156
+ item.labelRender ? (openBlock(), createBlock(_sfc_main$C, {
24146
24157
  key: 0,
24147
24158
  render: item.labelRender,
24148
24159
  item
@@ -24174,7 +24185,7 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
24174
24185
  Fragment,
24175
24186
  null,
24176
24187
  [
24177
- val.render ? (openBlock(), createBlock(_sfc_main$A, {
24188
+ val.render ? (openBlock(), createBlock(_sfc_main$B, {
24178
24189
  key: index,
24179
24190
  item: val,
24180
24191
  render: val.render
@@ -24221,10 +24232,10 @@ var _sfc_main$z = /* @__PURE__ */ defineComponent({
24221
24232
  }
24222
24233
  });
24223
24234
 
24224
- const FForm = _sfc_main$z;
24235
+ const FForm = _sfc_main$A;
24225
24236
 
24226
24237
  const _hoisted_1$p = ["src"];
24227
- var _sfc_main$y = /* @__PURE__ */ defineComponent({
24238
+ var _sfc_main$z = /* @__PURE__ */ defineComponent({
24228
24239
  ...{
24229
24240
  name: "svgIcon"
24230
24241
  },
@@ -24322,13 +24333,13 @@ function elSvg(app) {
24322
24333
  }
24323
24334
  }
24324
24335
  if (!app._context.components[`SvgIcon`]) {
24325
- app.component("SvgIcon", _sfc_main$y);
24336
+ app.component("SvgIcon", _sfc_main$z);
24326
24337
  }
24327
24338
  }
24328
24339
 
24329
24340
  const emitter = mitt();
24330
24341
 
24331
- var _sfc_main$x = /* @__PURE__ */ defineComponent({
24342
+ var _sfc_main$y = /* @__PURE__ */ defineComponent({
24332
24343
  ...{
24333
24344
  name: "FLayout"
24334
24345
  },
@@ -24414,7 +24425,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
24414
24425
  }
24415
24426
  });
24416
24427
 
24417
- const FLayout = _sfc_main$x;
24428
+ const FLayout = _sfc_main$y;
24418
24429
 
24419
24430
  function commonFunction() {
24420
24431
  const { copy, isSupported } = useClipboard();
@@ -24816,7 +24827,7 @@ const _hoisted_119 = {
24816
24827
  class: "traditionalColors-chines",
24817
24828
  style: { "cursor": "grab", "color": "gray" }
24818
24829
  };
24819
- var _sfc_main$w = /* @__PURE__ */ defineComponent({
24830
+ var _sfc_main$x = /* @__PURE__ */ defineComponent({
24820
24831
  ...{
24821
24832
  name: "FSettings"
24822
24833
  },
@@ -26579,9 +26590,9 @@ var _sfc_main$w = /* @__PURE__ */ defineComponent({
26579
26590
  }
26580
26591
  });
26581
26592
 
26582
- const FSettings = _sfc_main$w;
26593
+ const FSettings = _sfc_main$x;
26583
26594
 
26584
- var _sfc_main$v = /* @__PURE__ */ defineComponent({
26595
+ var _sfc_main$w = /* @__PURE__ */ defineComponent({
26585
26596
  ...{
26586
26597
  name: "FModifyRecord"
26587
26598
  },
@@ -26844,10 +26855,10 @@ var _sfc_main$v = /* @__PURE__ */ defineComponent({
26844
26855
  }
26845
26856
  });
26846
26857
 
26847
- const FModifyRecord = _sfc_main$v;
26858
+ const FModifyRecord = _sfc_main$w;
26848
26859
 
26849
26860
  const _hoisted_1$n = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
26850
- var _sfc_main$u = /* @__PURE__ */ defineComponent({
26861
+ var _sfc_main$v = /* @__PURE__ */ defineComponent({
26851
26862
  ...{
26852
26863
  name: "FmSelect"
26853
26864
  },
@@ -27048,9 +27059,9 @@ var _sfc_main$u = /* @__PURE__ */ defineComponent({
27048
27059
  }
27049
27060
  });
27050
27061
 
27051
- const FmSelect = _sfc_main$u;
27062
+ const FmSelect = _sfc_main$v;
27052
27063
 
27053
- var _sfc_main$t = /* @__PURE__ */ defineComponent({
27064
+ var _sfc_main$u = /* @__PURE__ */ defineComponent({
27054
27065
  ...{
27055
27066
  name: "Fminputdropdown"
27056
27067
  },
@@ -27248,9 +27259,9 @@ var _sfc_main$t = /* @__PURE__ */ defineComponent({
27248
27259
  }
27249
27260
  });
27250
27261
 
27251
- const Fminputdropdown = _sfc_main$t;
27262
+ const Fminputdropdown = _sfc_main$u;
27252
27263
 
27253
- var _sfc_main$s = /* @__PURE__ */ defineComponent({
27264
+ var _sfc_main$t = /* @__PURE__ */ defineComponent({
27254
27265
  ...{ name: "FmInputNumber" },
27255
27266
  __name: "index",
27256
27267
  props: /* @__PURE__ */ mergeModels({
@@ -27359,14 +27370,14 @@ var _sfc_main$s = /* @__PURE__ */ defineComponent({
27359
27370
  }
27360
27371
  });
27361
27372
 
27362
- const FmInputNumber = _sfc_main$s;
27373
+ const FmInputNumber = _sfc_main$t;
27363
27374
 
27364
27375
  const _hoisted_1$m = { style: { "color": "#fff" } };
27365
27376
  const _hoisted_2$f = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27366
27377
  const _hoisted_3$9 = { style: { "padding": "8px 16px", "background-color": "var(--el-color-primary-light-9)", "border-left": "5px solid var(--el-color-primary)", "margin-bottom": "5px" } };
27367
27378
  const _hoisted_4$5 = { style: { "margin-top": "10px" } };
27368
27379
  const _hoisted_5$5 = { class: "dialog-footer" };
27369
- var _sfc_main$r = /* @__PURE__ */ defineComponent({
27380
+ var _sfc_main$s = /* @__PURE__ */ defineComponent({
27370
27381
  __name: "userSelectDialog",
27371
27382
  props: {
27372
27383
  visible: {
@@ -27758,7 +27769,7 @@ var _sfc_main$r = /* @__PURE__ */ defineComponent({
27758
27769
  const _hoisted_1$l = { style: { "color": "#fff" } };
27759
27770
  const _hoisted_2$e = { style: { "margin-top": "10px" } };
27760
27771
  const _hoisted_3$8 = { class: "dialog-footer" };
27761
- var _sfc_main$q = /* @__PURE__ */ defineComponent({
27772
+ var _sfc_main$r = /* @__PURE__ */ defineComponent({
27762
27773
  __name: "supplierSelectDialog",
27763
27774
  props: {
27764
27775
  visible: {
@@ -28121,7 +28132,7 @@ var _sfc_main$q = /* @__PURE__ */ defineComponent({
28121
28132
  });
28122
28133
 
28123
28134
  const _hoisted_1$k = { style: { "font-size": "14px", "line-height": "30px" } };
28124
- var _sfc_main$p = /* @__PURE__ */ defineComponent({
28135
+ var _sfc_main$q = /* @__PURE__ */ defineComponent({
28125
28136
  ...{
28126
28137
  name: "FmAutocomplete"
28127
28138
  },
@@ -28270,7 +28281,7 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
28270
28281
  "trigger-on-focus": false,
28271
28282
  onSelect: handleSelect,
28272
28283
  style: { "margin-top": "-2px" }
28273
- }, {
28284
+ }, createSlots({
28274
28285
  default: withCtx(({ item }) => [
28275
28286
  createElementVNode(
28276
28287
  "div",
@@ -28280,50 +28291,108 @@ var _sfc_main$p = /* @__PURE__ */ defineComponent({
28280
28291
  /* TEXT */
28281
28292
  )
28282
28293
  ]),
28283
- suffix: withCtx(() => [
28284
- createVNode(_component_el_icon, {
28285
- color: "#E6A23C",
28286
- size: __props.searchsize,
28287
- onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
28288
- }, {
28289
- default: withCtx(() => [
28290
- createVNode(unref(Search))
28291
- ]),
28292
- _: 1
28293
- /* STABLE */
28294
- }, 8, ["size"]),
28295
- __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$r, {
28296
- key: 0,
28297
- visible: visibleopenDialog.value,
28298
- "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
28299
- orgService: __props.orgService,
28300
- orgAction: __props.orgAction,
28301
- orgparas: __props.params,
28302
- title: __props.title,
28303
- userService: __props.userService,
28304
- userAction: __props.userAction,
28305
- userParams: __props.params,
28306
- onChange: handleSelectDialogChange
28307
- }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
28308
- __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$q, {
28309
- key: 1,
28310
- visible: visibleopenDialog.value,
28311
- "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
28312
- title: __props.title,
28313
- userService: __props.userService,
28314
- userAction: __props.userAction,
28315
- userParams: __props.params,
28316
- onChange: handleSelectDialogChange
28317
- }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
28318
- ]),
28319
- _: 1
28320
- /* STABLE */
28321
- }, 8, ["modelValue", "placeholder"]);
28294
+ _: 2
28295
+ /* DYNAMIC */
28296
+ }, [
28297
+ __props.openType > -1 ? {
28298
+ name: "suffix",
28299
+ fn: withCtx(() => [
28300
+ createVNode(_component_el_icon, {
28301
+ color: "#E6A23C",
28302
+ size: __props.searchsize,
28303
+ onClick: _cache[0] || (_cache[0] = withModifiers(() => visibleopenDialog.value = true, ["stop"]))
28304
+ }, {
28305
+ default: withCtx(() => [
28306
+ createVNode(unref(Search))
28307
+ ]),
28308
+ _: 1
28309
+ /* STABLE */
28310
+ }, 8, ["size"]),
28311
+ __props.openType == 0 ? (openBlock(), createBlock(_sfc_main$s, {
28312
+ key: 0,
28313
+ visible: visibleopenDialog.value,
28314
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visibleopenDialog.value = $event),
28315
+ orgService: __props.orgService,
28316
+ orgAction: __props.orgAction,
28317
+ orgparas: __props.params,
28318
+ title: __props.title,
28319
+ userService: __props.userService,
28320
+ userAction: __props.userAction,
28321
+ userParams: __props.params,
28322
+ onChange: handleSelectDialogChange
28323
+ }, null, 8, ["visible", "orgService", "orgAction", "orgparas", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true),
28324
+ __props.openType == 2 ? (openBlock(), createBlock(_sfc_main$r, {
28325
+ key: 1,
28326
+ visible: visibleopenDialog.value,
28327
+ "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visibleopenDialog.value = $event),
28328
+ title: __props.title,
28329
+ userService: __props.userService,
28330
+ userAction: __props.userAction,
28331
+ userParams: __props.params,
28332
+ onChange: handleSelectDialogChange
28333
+ }, null, 8, ["visible", "title", "userService", "userAction", "userParams"])) : createCommentVNode("v-if", true)
28334
+ ]),
28335
+ key: "0"
28336
+ } : void 0
28337
+ ]), 1032, ["modelValue", "placeholder"]);
28338
+ };
28339
+ }
28340
+ });
28341
+
28342
+ const FmAutocomplete = _sfc_main$q;
28343
+
28344
+ var _sfc_main$p = /* @__PURE__ */ defineComponent({
28345
+ ...{
28346
+ name: "Fmdatepicker"
28347
+ },
28348
+ __name: "index",
28349
+ props: /* @__PURE__ */ mergeModels({
28350
+ dateType: {
28351
+ type: String,
28352
+ default: "bdate"
28353
+ },
28354
+ adddaynum: {
28355
+ type: Number,
28356
+ default: 0
28357
+ }
28358
+ }, {
28359
+ "modelValue": {},
28360
+ "modelModifiers": {}
28361
+ }),
28362
+ emits: ["update:modelValue"],
28363
+ setup(__props) {
28364
+ const modeValue = useModel(__props, "modelValue");
28365
+ const props = __props;
28366
+ onMounted(() => {
28367
+ nextTick(() => {
28368
+ initdate();
28369
+ });
28370
+ });
28371
+ const initdate = () => {
28372
+ if (props.dateType === "bdate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
28373
+ modeValue.value = getBdate(props.adddaynum);
28374
+ } else if (props.dateType === "edate" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
28375
+ modeValue.value = getEdate(props.adddaynum);
28376
+ } else if (props.dateType === "curday" && (modeValue.value == null || modeValue.value == void 0 || modeValue.value == "")) {
28377
+ modeValue.value = formatDate(/* @__PURE__ */ new Date(), "YYYY-mm-dd");
28378
+ }
28379
+ };
28380
+ initdate();
28381
+ return (_ctx, _cache) => {
28382
+ const _component_el_date_picker = resolveComponent("el-date-picker");
28383
+ return openBlock(), createBlock(_component_el_date_picker, {
28384
+ class: "fmdatepicker",
28385
+ modelValue: modeValue.value,
28386
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValue.value = $event),
28387
+ type: "date",
28388
+ format: "YYYY-MM-DD",
28389
+ "value-format": "YYYY-MM-DD"
28390
+ }, null, 8, ["modelValue"]);
28322
28391
  };
28323
28392
  }
28324
28393
  });
28325
28394
 
28326
- const FmAutocomplete = _sfc_main$p;
28395
+ const Fmdatepicker = _sfc_main$p;
28327
28396
 
28328
28397
  const makeInstaller = (components = []) => {
28329
28398
  const install = (app) => {
@@ -28855,7 +28924,8 @@ const plugins = [
28855
28924
  FmCascader,
28856
28925
  FmInputNumber,
28857
28926
  FmAutocomplete,
28858
- FmSelect
28927
+ FmSelect,
28928
+ Fmdatepicker
28859
28929
  ];
28860
28930
 
28861
28931
  var installer = makeInstaller([...plugins]);
@@ -32725,4 +32795,4 @@ var upgradeInfo = /*#__PURE__*/Object.freeze({
32725
32795
  default: _sfc_main
32726
32796
  });
32727
32797
 
32728
- export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getCountryCode, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, usefminputdropdownstore, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
32798
+ export { AccountTypeEnum, AppSysTypeData, AppSysTypeEnum, CurrencyData, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PowerAreaData, Session, StringToObj, watermark as Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, buildLocaleContext, buildTranslator, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, cmpId, commonFun, commonFunction, dataURLtoBlob, decryptJWT, installer as default, depId, destroyIdleTimeout, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, en, exportExcel, feature, fileToBase64, flowLoading, formatAxis, formatDate, formatPast, gcj02ToBd09, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getFormItemLabel, getFormItemProp, getHeader, getJWTDate, getOpOrg, getRules, getShowColumn, getShowColumnWidth, getSubFormFields, getToken, getWeek, getlimit, getpower, groupId, hAuth, hAuthAll, hAuths, hasPrivilege, hasRoleCode, i18n, initIconfont, initIdleTimeout, install, isAdmin, isMember, isNormalUser, isObjectValueEqual, isSupperAdmin, isTenantAdmin, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, loadRemoteMessages, loadSysInfo, mergMessage, emitter as mittBus, openWindow, orgId, orgName, other, pinia, posId, posName, powerAuthDel, provideFormEvents, reLoadLoginAccessToken, refreshAccessTokenKey, removeDuplicate, request2, restartSignalR, roles, saulVModel, service, setCssCdn, setIntroduction, setJsCdn, setupI18n, showFileUrl, showTabelColumn, signalR, signatureByKSort, sleep, tansParams, tenantId, translate, updateFavicon, updateIdleTimeout, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useFormEvents, useFormRulePresets, useKeepALiveNames, useLocale, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, usefminputdropdownstore, userAccount, userEmail, userFriendName, userId, userName, userPhone, validateFormWithScroll, validateFormWithScrollCallback, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version, wgs84ToBd09, wgs84ToGcj02, plusZhCn as zhCn };
package/lib/component.js CHANGED
@@ -20,6 +20,7 @@ var index$e = require('./packages/components/fmcascader/index.js');
20
20
  var index$f = require('./packages/components/fm-inputnumber/index.js');
21
21
  var index$g = require('./packages/components/fm-autocomplete/index.js');
22
22
  var index$h = require('./packages/components/fm-select/index.js');
23
+ var index$i = require('./packages/components/fm-datepicker/index.js');
23
24
 
24
25
  const plugins = [
25
26
  index.FButton,
@@ -39,7 +40,8 @@ const plugins = [
39
40
  index$e.FmCascader,
40
41
  index$f.FmInputNumber,
41
42
  index$g.FmAutocomplete,
42
- index$h.FmSelect
43
+ index$h.FmSelect,
44
+ index$i.Fmdatepicker
43
45
  ];
44
46
 
45
47
  exports.default = plugins;
@@ -0,0 +1,33 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ export declare const Fmdatepicker: DefineComponent<ExtractPropTypes<{
3
+ dateType: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ adddaynum: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ modelValue: {
12
+ type: PropType<any>;
13
+ };
14
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "update:modelValue": (value: any) => any;
16
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
17
+ dateType: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ adddaynum: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ modelValue: {
26
+ type: PropType<any>;
27
+ };
28
+ }>> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ }>, {
31
+ dateType: string;
32
+ adddaynum: number;
33
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,34 @@
1
+ import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ declare const _default: DefineComponent<ExtractPropTypes<{
3
+ dateType: {
4
+ type: StringConstructor;
5
+ default: string;
6
+ };
7
+ adddaynum: {
8
+ type: NumberConstructor;
9
+ default: number;
10
+ };
11
+ modelValue: {
12
+ type: PropType<any>;
13
+ };
14
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ "update:modelValue": (value: any) => any;
16
+ }, string, PublicProps, Readonly< ExtractPropTypes<{
17
+ dateType: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ adddaynum: {
22
+ type: NumberConstructor;
23
+ default: number;
24
+ };
25
+ modelValue: {
26
+ type: PropType<any>;
27
+ };
28
+ }>> & Readonly<{
29
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
30
+ }>, {
31
+ dateType: string;
32
+ adddaynum: number;
33
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
34
+ export default _default;
@@ -15,3 +15,4 @@ export * from './fm-select';
15
15
  export * from './fm-inputdropdown';
16
16
  export * from './fm-inputnumber';
17
17
  export * from './fm-autocomplete';
18
+ export * from './fm-datepicker';
package/lib/index.js CHANGED
@@ -165,6 +165,8 @@ exports.flowLoading = flowLoading.flowLoading;
165
165
  exports.formatAxis = formatTime.formatAxis;
166
166
  exports.formatDate = formatTime.formatDate;
167
167
  exports.formatPast = formatTime.formatPast;
168
+ exports.getBdate = formatTime.getBdate;
169
+ exports.getEdate = formatTime.getEdate;
168
170
  exports.getWeek = formatTime.getWeek;
169
171
  exports.gcj02ToBd09 = gpsConvertor.gcj02ToBd09;
170
172
  exports.wgs84ToBd09 = gpsConvertor.wgs84ToBd09;