@fmdevui/fm-dev 1.0.79 → 1.0.81

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 (48) hide show
  1. package/es/component.mjs +3 -2
  2. package/es/core/hook/useVxeTableOptionsHook.d.ts +2 -2
  3. package/es/core/ui/components/fmbutton/index.vue.d.ts +30 -0
  4. package/es/core/ui/components/fmbutton/style/css.d.ts +1 -0
  5. package/es/core/ui/components/fmbutton/style/index.d.ts +1 -0
  6. package/es/core/ui/components/fmbutton/type.d.ts +10 -0
  7. package/es/core/ui/components/index.d.ts +53 -5
  8. package/es/core/ui/components/querycondition/style/css.d.ts +1 -1
  9. package/es/core/ui/components/selecttable/index.vue.d.ts +3 -3
  10. package/es/core/ui/components/selecttable/type.d.ts +1 -1
  11. package/es/index.mjs +1 -1
  12. package/es/packages/core/hook/useVxeTableOptionsHook.mjs +5 -1
  13. package/es/packages/core/index.mjs +1 -1
  14. package/es/packages/core/ui/components/fmbutton/index.vue.mjs +5 -0
  15. package/es/packages/core/ui/components/fmbutton/index.vue2.mjs +73 -0
  16. package/es/packages/core/ui/components/fmbutton/style/css.mjs +1 -0
  17. package/es/packages/core/ui/components/fmbutton/style/index.mjs +1 -0
  18. package/es/packages/core/ui/components/fmbutton/type.mjs +1 -0
  19. package/es/packages/core/ui/components/index.mjs +5 -1
  20. package/es/packages/core/ui/components/querycondition/style/css.mjs +1 -1
  21. package/index.js +110 -33
  22. package/index.min.js +25 -25
  23. package/index.min.mjs +26 -26
  24. package/index.mjs +110 -34
  25. package/lib/component.js +2 -1
  26. package/lib/core/hook/useVxeTableOptionsHook.d.ts +2 -2
  27. package/lib/core/ui/components/fmbutton/index.vue.d.ts +30 -0
  28. package/lib/core/ui/components/fmbutton/style/css.d.ts +1 -0
  29. package/lib/core/ui/components/fmbutton/style/index.d.ts +1 -0
  30. package/lib/core/ui/components/fmbutton/type.d.ts +10 -0
  31. package/lib/core/ui/components/index.d.ts +53 -5
  32. package/lib/core/ui/components/querycondition/style/css.d.ts +1 -1
  33. package/lib/core/ui/components/selecttable/index.vue.d.ts +3 -3
  34. package/lib/core/ui/components/selecttable/type.d.ts +1 -1
  35. package/lib/index.js +1 -0
  36. package/lib/packages/core/hook/useVxeTableOptionsHook.js +5 -1
  37. package/lib/packages/core/index.js +1 -0
  38. package/lib/packages/core/ui/components/fmbutton/index.vue.js +9 -0
  39. package/lib/packages/core/ui/components/fmbutton/index.vue2.js +77 -0
  40. package/lib/packages/core/ui/components/fmbutton/style/css.js +4 -0
  41. package/lib/packages/core/ui/components/fmbutton/style/index.js +4 -0
  42. package/lib/packages/core/ui/components/fmbutton/type.js +2 -0
  43. package/lib/packages/core/ui/components/index.js +5 -0
  44. package/lib/packages/core/ui/components/querycondition/style/css.js +1 -1
  45. package/package.json +1 -1
  46. package/theme-chalk/src/button.scss +23 -0
  47. package/theme-chalk/t-button.css +1 -0
  48. /package/es/{defaults.css → component.css} +0 -0
package/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.79 */
1
+ /*! fm-dev v1.0.81 */
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, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, resolveDynamicComponent, useSlots, mergeProps, createSlots, renderSlot, toHandlers, onBeforeUnmount, onUpdated, useAttrs, normalizeProps, guardReactiveProps } from 'vue';
3
3
  import crypto from 'crypto';
4
4
  import require$$0 from 'url';
@@ -20,7 +20,7 @@ const _hoisted_7 = { class: "fm-transfer-buttons__item" };
20
20
  const _hoisted_8 = { class: "fm-transfer-panel" };
21
21
  const _hoisted_9 = { class: "fm-transfer-panel__header" };
22
22
  const _hoisted_10 = { class: "fm-transfer-panel__body" };
23
- var _sfc_main$e = /* @__PURE__ */ defineComponent({
23
+ var _sfc_main$f = /* @__PURE__ */ defineComponent({
24
24
  ...{
25
25
  name: "FmTransfer"
26
26
  },
@@ -379,7 +379,7 @@ var _sfc_main$e = /* @__PURE__ */ defineComponent({
379
379
 
380
380
  const _hoisted_1$6 = { class: "notice-bar-warp-text-box" };
381
381
  const _hoisted_2$4 = ["innerHTML"];
382
- var _sfc_main$d = /* @__PURE__ */ defineComponent({
382
+ var _sfc_main$e = /* @__PURE__ */ defineComponent({
383
383
  ...{
384
384
  name: "FmNoticeBar"
385
385
  },
@@ -502,7 +502,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
502
502
  }
503
503
  });
504
504
 
505
- var _sfc_main$c = {
505
+ var _sfc_main$d = {
506
506
  name: "dragVerify",
507
507
  props: {
508
508
  isPassing: {
@@ -884,9 +884,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
884
884
  )
885
885
  ]);
886
886
  }
887
- var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
887
+ var dragimg = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render], ["__scopeId", "data-v-9e8c9ed2"]]);
888
888
 
889
- var _sfc_main$b = /* @__PURE__ */ defineComponent({
889
+ var _sfc_main$c = /* @__PURE__ */ defineComponent({
890
890
  ...{
891
891
  name: "Fmselect"
892
892
  },
@@ -23785,7 +23785,7 @@ const useApi = (url, options = {}) => {
23785
23785
  };
23786
23786
 
23787
23787
  const _hoisted_1$4 = { style: { "font-size": "14px", "line-height": "30px" } };
23788
- var _sfc_main$a = /* @__PURE__ */ defineComponent({
23788
+ var _sfc_main$b = /* @__PURE__ */ defineComponent({
23789
23789
  ...{
23790
23790
  name: "FmAutocomplete"
23791
23791
  },
@@ -36160,7 +36160,7 @@ const usefminputdropdownstore = defineStore("fminputdropdownstore", () => {
36160
36160
  };
36161
36161
  });
36162
36162
 
36163
- var _sfc_main$9 = /* @__PURE__ */ defineComponent({
36163
+ var _sfc_main$a = /* @__PURE__ */ defineComponent({
36164
36164
  ...{
36165
36165
  name: "Fminputdropdown"
36166
36166
  },
@@ -36338,7 +36338,7 @@ const _hoisted_2$2 = { style: { "display": "flex", "align-items": "center", "gap
36338
36338
  const _hoisted_3$2 = { style: { "flex": "1 1 200px", "min-width": "0", "overflow": "hidden" } };
36339
36339
  const _hoisted_4$2 = { style: { "display": "flex", "align-items": "center", "flex-shrink": "0", "white-space": "nowrap" } };
36340
36340
  const _hoisted_5$1 = { style: { "margin-bottom": "45px" } };
36341
- var _sfc_main$8 = /* @__PURE__ */ defineComponent({
36341
+ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
36342
36342
  ...{
36343
36343
  name: "FmTree"
36344
36344
  },
@@ -36569,7 +36569,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
36569
36569
  }
36570
36570
  });
36571
36571
 
36572
- var _sfc_main$7 = /* @__PURE__ */ defineComponent({
36572
+ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
36573
36573
  ...{
36574
36574
  name: "Fmdatepicker"
36575
36575
  },
@@ -36618,7 +36618,7 @@ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
36618
36618
  }
36619
36619
  });
36620
36620
 
36621
- var _sfc_main$6 = /* @__PURE__ */ defineComponent({
36621
+ var _sfc_main$7 = /* @__PURE__ */ defineComponent({
36622
36622
  ...{
36623
36623
  name: "RenderComp"
36624
36624
  },
@@ -36643,7 +36643,7 @@ const _hoisted_2$1 = { class: "inside_box_title" };
36643
36643
  const _hoisted_3$1 = { class: "check-box" };
36644
36644
  const _hoisted_4$1 = { class: "more_dropdown_icon" };
36645
36645
  const _hoisted_5 = { class: "out_box" };
36646
- var _sfc_main$5 = /* @__PURE__ */ defineComponent({
36646
+ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
36647
36647
  ...{
36648
36648
  name: "MoreChoose"
36649
36649
  },
@@ -36972,7 +36972,7 @@ function useComputed() {
36972
36972
  };
36973
36973
  }
36974
36974
 
36975
- var _sfc_main$4 = /* @__PURE__ */ defineComponent({
36975
+ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
36976
36976
  ...{
36977
36977
  name: "FmQueryCondition"
36978
36978
  },
@@ -37363,7 +37363,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
37363
37363
  opt.labelRender ? {
37364
37364
  name: "label",
37365
37365
  fn: withCtx(() => [
37366
- createVNode(_sfc_main$6, {
37366
+ createVNode(_sfc_main$7, {
37367
37367
  form: unref(queryState).form,
37368
37368
  render: opt.labelRender
37369
37369
  }, null, 8, ["form", "render"])
@@ -37458,7 +37458,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
37458
37458
  _: 1
37459
37459
  /* STABLE */
37460
37460
  })) : createCommentVNode("v-if", true),
37461
- createVNode(_sfc_main$5, {
37461
+ createVNode(_sfc_main$6, {
37462
37462
  isDropDownSelectMore: _ctx.isDropDownSelectMore,
37463
37463
  moreCheckList: _ctx.moreCheckList,
37464
37464
  popoverAttrsBind: popoverAttrsBind.value,
@@ -37484,7 +37484,7 @@ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
37484
37484
  }
37485
37485
  });
37486
37486
 
37487
- var _sfc_main$3 = /* @__PURE__ */ defineComponent({
37487
+ var _sfc_main$4 = /* @__PURE__ */ defineComponent({
37488
37488
  ...{
37489
37489
  name: "RenderCol"
37490
37490
  },
@@ -37652,7 +37652,7 @@ const _hoisted_4 = {
37652
37652
  key: 0,
37653
37653
  class: "fm-table-select__page"
37654
37654
  };
37655
- var _sfc_main$2 = /* @__PURE__ */ defineComponent({
37655
+ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
37656
37656
  ...{
37657
37657
  name: "FmSelectTable"
37658
37658
  },
@@ -38257,7 +38257,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
38257
38257
  [
38258
38258
  _ctx.isShowQuery ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
38259
38259
  createVNode(
38260
- _sfc_main$4,
38260
+ _sfc_main$5,
38261
38261
  mergeProps({
38262
38262
  ref_key: "tQueryConditionRef",
38263
38263
  ref: tQueryConditionRef,
@@ -38384,7 +38384,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
38384
38384
  }, { ref_for: true }, { "show-overflow-tooltip": true, ...item.bind }), {
38385
38385
  default: withCtx((scope) => [
38386
38386
  createCommentVNode(" render\u65B9\u5F0F "),
38387
- item.render ? (openBlock(), createBlock(_sfc_main$3, {
38387
+ item.render ? (openBlock(), createBlock(_sfc_main$4, {
38388
38388
  key: 0,
38389
38389
  column: item,
38390
38390
  row: scope.row,
@@ -38448,6 +38448,76 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
38448
38448
  }
38449
38449
  });
38450
38450
 
38451
+ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
38452
+ ...{
38453
+ name: "FmButton"
38454
+ },
38455
+ __name: "index",
38456
+ props: {
38457
+ time: { default: 1e3 },
38458
+ tip: { default: "" },
38459
+ placement: { default: "top" },
38460
+ tipProps: { default: () => ({}) },
38461
+ isDebounce: { type: Boolean, default: true }
38462
+ },
38463
+ emits: ["click"],
38464
+ setup(__props, { emit: __emit }) {
38465
+ const props = __props;
38466
+ const emits = __emit;
38467
+ const record = ref(0);
38468
+ const handleClick = () => {
38469
+ if (!props.isDebounce) return emits("click");
38470
+ const newTime = /* @__PURE__ */ new Date();
38471
+ if (newTime.getTime() - record.value > props.time) {
38472
+ emits("click");
38473
+ }
38474
+ record.value = newTime.getTime();
38475
+ };
38476
+ return (_ctx, _cache) => {
38477
+ const _component_el_button = resolveComponent("el-button");
38478
+ const _component_el_tooltip = resolveComponent("el-tooltip");
38479
+ return _ctx.tip ? (openBlock(), createBlock(_component_el_tooltip, mergeProps({
38480
+ key: 0,
38481
+ content: _ctx.tip,
38482
+ placement: _ctx.placement
38483
+ }, _ctx.tipProps), {
38484
+ default: withCtx(() => [
38485
+ createVNode(
38486
+ _component_el_button,
38487
+ mergeProps(_ctx.$attrs, {
38488
+ class: "fm-button-tip",
38489
+ onClick: handleClick
38490
+ }),
38491
+ {
38492
+ default: withCtx(() => [
38493
+ renderSlot(_ctx.$slots, "default")
38494
+ ]),
38495
+ _: 3
38496
+ /* FORWARDED */
38497
+ },
38498
+ 16
38499
+ /* FULL_PROPS */
38500
+ )
38501
+ ]),
38502
+ _: 3
38503
+ /* FORWARDED */
38504
+ }, 16, ["content", "placement"])) : (openBlock(), createBlock(
38505
+ _component_el_button,
38506
+ mergeProps({ key: 1 }, _ctx.$attrs, { onClick: handleClick }),
38507
+ {
38508
+ default: withCtx(() => [
38509
+ renderSlot(_ctx.$slots, "default")
38510
+ ]),
38511
+ _: 3
38512
+ /* FORWARDED */
38513
+ },
38514
+ 16
38515
+ /* FULL_PROPS */
38516
+ ));
38517
+ };
38518
+ }
38519
+ });
38520
+
38451
38521
  const _hoisted_1 = ["src"];
38452
38522
  var _sfc_main$1 = /* @__PURE__ */ defineComponent({
38453
38523
  ...{
@@ -38547,19 +38617,20 @@ function elSvg(app) {
38547
38617
  }
38548
38618
  }
38549
38619
 
38550
- const FmTransfer = _sfc_main$e;
38551
- const FmNoticeBar = _sfc_main$d;
38620
+ const FmTransfer = _sfc_main$f;
38621
+ const FmNoticeBar = _sfc_main$e;
38552
38622
  const FmDragImg = dragimg;
38553
- const Fmselect = _sfc_main$b;
38554
- const FmAutocomplete = _sfc_main$a;
38555
- const Fminputdropdown = _sfc_main$9;
38556
- const Fmdatepicker = _sfc_main$7;
38557
- const FmTree = _sfc_main$8;
38558
- const FmQueryCondition = _sfc_main$4;
38559
- const FmMoreChoose = _sfc_main$5;
38560
- const FmRenderComp = _sfc_main$6;
38561
- const FmSelectTable = _sfc_main$2;
38562
- const FmRenderCol = _sfc_main$3;
38623
+ const Fmselect = _sfc_main$c;
38624
+ const FmAutocomplete = _sfc_main$b;
38625
+ const Fminputdropdown = _sfc_main$a;
38626
+ const Fmdatepicker = _sfc_main$8;
38627
+ const FmTree = _sfc_main$9;
38628
+ const FmQueryCondition = _sfc_main$5;
38629
+ const FmMoreChoose = _sfc_main$6;
38630
+ const FmRenderComp = _sfc_main$7;
38631
+ const FmSelectTable = _sfc_main$3;
38632
+ const FmRenderCol = _sfc_main$4;
38633
+ const FmButton = _sfc_main$2;
38563
38634
 
38564
38635
  const makeInstaller = (components = []) => {
38565
38636
  const install = (app) => {
@@ -38617,7 +38688,8 @@ const plugins = [
38617
38688
  FmMoreChoose,
38618
38689
  FmRenderComp,
38619
38690
  FmSelectTable,
38620
- FmRenderCol
38691
+ FmRenderCol,
38692
+ FmButton
38621
38693
  ];
38622
38694
 
38623
38695
  var installer = makeInstaller([...plugins]);
@@ -55409,8 +55481,12 @@ const useVxeTable = (opt, extras) => {
55409
55481
  // 是否启用 localStorage 本地保存,会将列操作状态保留在本地(需要有 id)
55410
55482
  visible: true,
55411
55483
  // 启用显示/隐藏列状态
55412
- resizable: true
55484
+ resizable: true,
55413
55485
  // 启用列宽状态
55486
+ sort: true,
55487
+ // 启用列顺序缓存
55488
+ fixed: true
55489
+ // 启用冻结列状态缓存
55414
55490
  }
55415
55491
  }
55416
55492
  });
@@ -55443,4 +55519,4 @@ const version = "1.0.0";
55443
55519
 
55444
55520
  const install = installer.install;
55445
55521
 
55446
- export { AccountTypeEnum, AppItem, FmAutocomplete, FmDragImg, FmLogin, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getAppItemData, getAppItemText, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
55522
+ export { AccountTypeEnum, AppItem, FmAutocomplete, FmButton, FmDragImg, FmLogin, FmMoreChoose, FmNoticeBar, FmQueryCondition, FmRenderCol, FmRenderComp, FmSelectTable, FmTransfer, FmTree, Fmdatepicker, Fminputdropdown, Fmselect, HttpMethodEnum, JobCreateTypeEnum, Local, NextLoading, PUB, Session, Watermark, accessTokenKey, auth, authAll, auths, axiosInstance, base64ToFile, blobToFile, cancelAllRequest, cancelRequest, clearAccessTokens, clearTokens, clone, commonFunction, commonFunctionObj, dataURLtoBlob, decryptJWT, installer as default, directive, downloadByBase64, downloadByData, downloadByOnlineUrl, downloadByUrl, downloadStreamFile, elSvg, emitter, feature, fileToBase64, formatAxis, formatDate, formatPast, getAppItemData, getAppItemText, getBdate, getCountryCode, getEdate, getFileName, getFileUrl, getJWTDate, getToken, getWeek, hAuth, hAuthAll, hAuths, i18n, install, isObjectValueEqual, iso_3166_1_CountryList, judgementIdCard, judgementSameArr, languageList, mergMessage, openWindow, pinia, refreshAccessTokenKey, removeDuplicate, request2, service, setIntroduction, setupI18n, showFileUrl, signatureByKSort, tansParams, urlToBase64, useApi, useBaseApi, useChangeColor, useDateTimeShortCust, useKeepALiveNames, useLoginApi, useRequestOldRoutes, useRoutesList, useSysApi, useTagsViewRoutes, useThemeConfig, useUserInfo, useVxeTable, verifiyNumberInteger, verifyAccount, verifyAndSpace, verifyCarNum, verifyCnAndSpace, verifyEmail, verifyEnAndSpace, verifyFullName, verifyIPAddress, verifyIdCard, verifyNumberCnUppercase, verifyNumberComma, verifyNumberIntegerAndFloat, verifyNumberPercentage, verifyNumberPercentageFloat, verifyPassword, verifyPasswordPowerful, verifyPasswordStrength, verifyPhone, verifyPostalCode, verifyTelPhone, verifyTextColor, verifyUrl, version };
package/lib/component.js CHANGED
@@ -18,7 +18,8 @@ const plugins = [
18
18
  index$1.FmMoreChoose,
19
19
  index$1.FmRenderComp,
20
20
  index$1.FmSelectTable,
21
- index$1.FmRenderCol
21
+ index$1.FmRenderCol,
22
+ index$1.FmButton
22
23
  ];
23
24
 
24
25
  exports.default = plugins;
@@ -729,8 +729,8 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
729
729
  round?: import("vxe-pc-ui").VxeButtonPropTypes.Round | undefined;
730
730
  loading?: import("vxe-pc-ui").VxeButtonPropTypes.Loading | undefined;
731
731
  align?: import("vxe-pc-ui").VxeButtonPropTypes.Align | undefined;
732
- className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
733
732
  content?: import("vxe-pc-ui").VxeButtonPropTypes.Content | undefined;
733
+ className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
734
734
  routerLink?: {
735
735
  path?: string | undefined;
736
736
  name?: string | number | null | undefined;
@@ -844,8 +844,8 @@ export declare const useVxeTable: <T>(opt: iVxeOption, extras?: VxeGridProps<T>)
844
844
  round?: import("vxe-pc-ui").VxeButtonPropTypes.Round | undefined;
845
845
  loading?: import("vxe-pc-ui").VxeButtonPropTypes.Loading | undefined;
846
846
  align?: import("vxe-pc-ui").VxeButtonPropTypes.Align | undefined;
847
- className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
848
847
  content?: import("vxe-pc-ui").VxeButtonPropTypes.Content | undefined;
848
+ className?: import("vxe-pc-ui").VxeButtonPropTypes.ClassName | undefined;
849
849
  routerLink?: {
850
850
  path?: string | undefined;
851
851
  name?: string | number | null | undefined;
@@ -0,0 +1,30 @@
1
+ import { FmButtonSelfProps as FmButtonProps } from './type';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ default?(_: {}): any;
7
+ default?(_: {}): any;
8
+ };
9
+ refs: {};
10
+ rootEl: any;
11
+ };
12
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
13
+ declare const __VLS_component: DefineComponent<FmButtonProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
14
+ click: (...args: any[]) => void;
15
+ }, string, PublicProps, Readonly<FmButtonProps> & Readonly<{
16
+ onClick?: ((...args: any[]) => any) | undefined;
17
+ }>, {
18
+ time: number;
19
+ placement: string;
20
+ tip: string;
21
+ tipProps: Record<string, any>;
22
+ isDebounce: boolean;
23
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -0,0 +1 @@
1
+ import "fm-dev/theme-chalk/t-button.css";
@@ -0,0 +1 @@
1
+ import "fm-dev/theme-chalk/src/button.scss";
@@ -0,0 +1,10 @@
1
+ import { ButtonProps } from 'element-plus';
2
+ import { Mutable } from 'element-plus/es/utils';
3
+ export interface FmButtonSelfProps {
4
+ time?: number;
5
+ tip?: string;
6
+ placement?: string;
7
+ tipProps?: Record<string, any>;
8
+ isDebounce?: boolean;
9
+ }
10
+ export type FmButtonProps = FmButtonSelfProps & Partial<Mutable<ButtonProps>>;
@@ -3,9 +3,11 @@ import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps,
3
3
  import { TreeKey } from 'element-plus';
4
4
  import { TreeKey } from 'element-plus/es/components/tree/src/tree.type';
5
5
  import { TQueryConditionProps } from './querycondition/type';
6
- import { TSelectTableProps } from './selecttable/type';
6
+ import { FmSelectTableProps } from './selecttable/type';
7
+ import { FmButtonSelfProps } from './fmbutton/type';
7
8
  export * from './selecttable/type';
8
9
  export * from './selecttable/ClickOutside';
10
+ export * from './fmbutton/type';
9
11
  declare const FmTransfer: DefineComponent<ExtractPropTypes<{
10
12
  leftTitle: StringConstructor;
11
13
  rightTitle: StringConstructor;
@@ -1100,7 +1102,7 @@ declare const FmRenderComp: DefineComponent<ExtractPropTypes<{
1100
1102
  form: ObjectConstructor;
1101
1103
  }>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1102
1104
  declare const FmSelectTable: {
1103
- new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< TSelectTableProps> & Readonly<{
1105
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FmSelectTableProps> & Readonly<{
1104
1106
  "onPage-change"?: ((val: any) => any) | undefined;
1105
1107
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1106
1108
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1275,7 +1277,7 @@ declare const FmSelectTable: {
1275
1277
  C: {};
1276
1278
  M: {};
1277
1279
  Defaults: {};
1278
- }, Readonly< TSelectTableProps> & Readonly<{
1280
+ }, Readonly< FmSelectTableProps> & Readonly<{
1279
1281
  "onPage-change"?: ((val: any) => any) | undefined;
1280
1282
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1281
1283
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1438,7 +1440,7 @@ declare const FmSelectTable: {
1438
1440
  __isFragment?: never;
1439
1441
  __isTeleport?: never;
1440
1442
  __isSuspense?: never;
1441
- } & ComponentOptionsBase<Readonly< TSelectTableProps> & Readonly<{
1443
+ } & ComponentOptionsBase<Readonly< FmSelectTableProps> & Readonly<{
1442
1444
  "onPage-change"?: ((val: any) => any) | undefined;
1443
1445
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
1444
1446
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1628,4 +1630,50 @@ declare const FmRenderCol: DefineComponent<ExtractPropTypes<{
1628
1630
  }>> & Readonly<{}>, {
1629
1631
  column: Record<string, any>;
1630
1632
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
1631
- export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, elSvg };
1633
+ declare const FmButton: {
1634
+ new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly< FmButtonSelfProps> & Readonly<{
1635
+ onClick?: ((...args: any[]) => any) | undefined;
1636
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1637
+ click: (...args: any[]) => void;
1638
+ }, PublicProps, {
1639
+ time: number;
1640
+ placement: string;
1641
+ tip: string;
1642
+ tipProps: Record<string, any>;
1643
+ isDebounce: boolean;
1644
+ }, false, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
1645
+ P: {};
1646
+ B: {};
1647
+ D: {};
1648
+ C: {};
1649
+ M: {};
1650
+ Defaults: {};
1651
+ }, Readonly< FmButtonSelfProps> & Readonly<{
1652
+ onClick?: ((...args: any[]) => any) | undefined;
1653
+ }>, {}, {}, {}, {}, {
1654
+ time: number;
1655
+ placement: string;
1656
+ tip: string;
1657
+ tipProps: Record<string, any>;
1658
+ isDebounce: boolean;
1659
+ }>;
1660
+ __isFragment?: never;
1661
+ __isTeleport?: never;
1662
+ __isSuspense?: never;
1663
+ } & ComponentOptionsBase<Readonly< FmButtonSelfProps> & Readonly<{
1664
+ onClick?: ((...args: any[]) => any) | undefined;
1665
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1666
+ click: (...args: any[]) => void;
1667
+ }, string, {
1668
+ time: number;
1669
+ placement: string;
1670
+ tip: string;
1671
+ tipProps: Record<string, any>;
1672
+ isDebounce: boolean;
1673
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
1674
+ $slots: {
1675
+ default?(_: {}): any;
1676
+ default?(_: {}): any;
1677
+ };
1678
+ });
1679
+ export { FmTransfer, FmNoticeBar, FmDragImg, Fmselect, FmAutocomplete, Fminputdropdown, FmTree, Fmdatepicker, FmQueryCondition, FmMoreChoose, FmRenderComp, FmSelectTable, FmRenderCol, FmButton, elSvg };
@@ -1 +1 @@
1
- import "fm-dev/theme-chalk/query-condition.css";
1
+ import "fm-dev/theme-chalk/t-query-condition.css";
@@ -1,4 +1,4 @@
1
- import { TSelectTableProps } from './type';
1
+ import { FmSelectTableProps } from './type';
2
2
  import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
3
  export type Emits = {
4
4
  (event: "page-change", val: any): void;
@@ -12,7 +12,7 @@ export type Emits = {
12
12
  };
13
13
  declare function __VLS_template(): any;
14
14
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
- declare const __VLS_component: DefineComponent<TSelectTableProps, {
15
+ declare const __VLS_component: DefineComponent<FmSelectTableProps, {
16
16
  focus: () => void;
17
17
  blur: () => void;
18
18
  clear: () => void;
@@ -117,7 +117,7 @@ declare const __VLS_component: DefineComponent<TSelectTableProps, {
117
117
  "input-blur": () => any;
118
118
  "input-clear": () => any;
119
119
  "input-click": () => any;
120
- }, string, PublicProps, Readonly<TSelectTableProps> & Readonly<{
120
+ }, string, PublicProps, Readonly<FmSelectTableProps> & Readonly<{
121
121
  "onPage-change"?: ((val: any) => any) | undefined;
122
122
  onSelectionChange?: ((val: any[], ids: any[]) => any) | undefined;
123
123
  onRadioChange?: ((row: any, value: any) => any) | undefined;
@@ -1,4 +1,4 @@
1
- export interface TSelectTableProps {
1
+ export interface FmSelectTableProps {
2
2
  modelValue?: any;
3
3
  inputValue?: any;
4
4
  defaultSelectVal?: any[];
package/lib/index.js CHANGED
@@ -50,6 +50,7 @@ exports.emitter = index.default;
50
50
  exports.setIntroduction = setIconfont.default;
51
51
  exports.version = version.version;
52
52
  exports.FmAutocomplete = index$1.FmAutocomplete;
53
+ exports.FmButton = index$1.FmButton;
53
54
  exports.FmDragImg = index$1.FmDragImg;
54
55
  exports.FmMoreChoose = index$1.FmMoreChoose;
55
56
  exports.FmNoticeBar = index$1.FmNoticeBar;
@@ -82,8 +82,12 @@ const useVxeTable = (opt, extras) => {
82
82
  // 是否启用 localStorage 本地保存,会将列操作状态保留在本地(需要有 id)
83
83
  visible: true,
84
84
  // 启用显示/隐藏列状态
85
- resizable: true
85
+ resizable: true,
86
86
  // 启用列宽状态
87
+ sort: true,
88
+ // 启用列顺序缓存
89
+ fixed: true
90
+ // 启用冻结列状态缓存
87
91
  }
88
92
  }
89
93
  });
@@ -42,6 +42,7 @@ var index$f = require('./utils/const/index.js');
42
42
 
43
43
 
44
44
  exports.FmAutocomplete = index.FmAutocomplete;
45
+ exports.FmButton = index.FmButton;
45
46
  exports.FmDragImg = index.FmDragImg;
46
47
  exports.FmMoreChoose = index.FmMoreChoose;
47
48
  exports.FmNoticeBar = index.FmNoticeBar;
@@ -0,0 +1,9 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var index_vue_vue_type_script_setup_true_lang = require('./index.vue2.js');
6
+
7
+
8
+
9
+ exports.default = index_vue_vue_type_script_setup_true_lang.default;
@@ -0,0 +1,77 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue = require('vue');
6
+
7
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
8
+ ...{
9
+ name: "FmButton"
10
+ },
11
+ __name: "index",
12
+ props: {
13
+ time: { default: 1e3 },
14
+ tip: { default: "" },
15
+ placement: { default: "top" },
16
+ tipProps: { default: () => ({}) },
17
+ isDebounce: { type: Boolean, default: true }
18
+ },
19
+ emits: ["click"],
20
+ setup(__props, { emit: __emit }) {
21
+ const props = __props;
22
+ const emits = __emit;
23
+ const record = vue.ref(0);
24
+ const handleClick = () => {
25
+ if (!props.isDebounce) return emits("click");
26
+ const newTime = /* @__PURE__ */ new Date();
27
+ if (newTime.getTime() - record.value > props.time) {
28
+ emits("click");
29
+ }
30
+ record.value = newTime.getTime();
31
+ };
32
+ return (_ctx, _cache) => {
33
+ const _component_el_button = vue.resolveComponent("el-button");
34
+ const _component_el_tooltip = vue.resolveComponent("el-tooltip");
35
+ return _ctx.tip ? (vue.openBlock(), vue.createBlock(_component_el_tooltip, vue.mergeProps({
36
+ key: 0,
37
+ content: _ctx.tip,
38
+ placement: _ctx.placement
39
+ }, _ctx.tipProps), {
40
+ default: vue.withCtx(() => [
41
+ vue.createVNode(
42
+ _component_el_button,
43
+ vue.mergeProps(_ctx.$attrs, {
44
+ class: "fm-button-tip",
45
+ onClick: handleClick
46
+ }),
47
+ {
48
+ default: vue.withCtx(() => [
49
+ vue.renderSlot(_ctx.$slots, "default")
50
+ ]),
51
+ _: 3
52
+ /* FORWARDED */
53
+ },
54
+ 16
55
+ /* FULL_PROPS */
56
+ )
57
+ ]),
58
+ _: 3
59
+ /* FORWARDED */
60
+ }, 16, ["content", "placement"])) : (vue.openBlock(), vue.createBlock(
61
+ _component_el_button,
62
+ vue.mergeProps({ key: 1 }, _ctx.$attrs, { onClick: handleClick }),
63
+ {
64
+ default: vue.withCtx(() => [
65
+ vue.renderSlot(_ctx.$slots, "default")
66
+ ]),
67
+ _: 3
68
+ /* FORWARDED */
69
+ },
70
+ 16
71
+ /* FULL_PROPS */
72
+ ));
73
+ };
74
+ }
75
+ });
76
+
77
+ exports.default = _sfc_main;
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ require('fm-dev/theme-chalk/t-button.css');
4
+
@@ -0,0 +1,4 @@
1
+ 'use strict';
2
+
3
+ require('fm-dev/theme-chalk/src/button.scss');
4
+
@@ -0,0 +1,2 @@
1
+ 'use strict';
2
+