@dt-frames/ui 1.0.23 → 1.0.26

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.
@@ -4,6 +4,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
4
4
  getBind: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
5
5
  }, "getBind"> & {
6
6
  getBind: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
7
+ getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
7
8
  };
8
9
  wrapEl: any;
9
10
  toggle: () => Promise<void>;
@@ -7,6 +7,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
7
7
  getBind: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
8
8
  }, "getBind"> & {
9
9
  getBind: import("vue").ComputedRef<import("../../types/table.type").BasicTableProps>;
10
+ getProps: import("vue").ComputedRef<import("@dt-frames/core").Recordable<any>>;
10
11
  };
11
12
  selectedKeysRef: import("vue").Ref<SizeType[]>;
12
13
  handleTitleClick: ({ key }: MenuInfo) => void;
@@ -7,6 +7,7 @@ declare type Instance = TableActionType & {
7
7
  };
8
8
  declare type RetInstance = Omit<Instance, 'getBind'> & {
9
9
  getBind: ComputedRef<BasicTableProps>;
10
+ getProps: ComputedRef<Recordable>;
10
11
  };
11
12
  export declare function createTableInstance(instance: Instance): void;
12
13
  export declare function getTableInstance(): RetInstance;
package/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent, resolveComponent, openBlock, createBlock, computed, unref, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, ref, watch, Fragment, renderList, createTextVNode, toDisplayString, KeepAlive, createVNode, withCtx, reactive, toRaw, getCurrentInstance, watchEffect, nextTick, toRefs, isVNode, inject, onUnmounted, h, provide, onMounted, onBeforeUnmount, resolveDynamicComponent, renderSlot, createCommentVNode, mergeProps, readonly, isRef, useAttrs as useAttrs$1, normalizeProps, guardReactiveProps, withDirectives, resolveDirective, render, createSlots, useSlots as useSlots$1, withModifiers, vShow, toRef, Transition } from "vue";
2
- import { isString, isArray as isArray$1, isObject, isFunction, error, useTimeoutFn, useAttrs, useSlots, dispatchResize, BAR_MAP, off, renderThumbStyle, on, useAppStore, addResizeListener, removeResizeListener, windowResizeFn, isNumber, isBoolean, isNull, DtCache, CacheKey, deepMerge, http, getDynamicProps, getDictValueByCode, formatNumber, isVnode, getPopupContainer, isNullAndUnDef, dateFormat, useMessage, isEmpty, useTheme, useMenu, useHeader, useGo, Pages, localeList, changeLocale, Theme, MenuMode, MenuType, useThemeStore, ContentMode, useMultipleTab, copyText, MenuSplitTye, isUrl, openWindow, RouteReuseStore, menuList2Map, useApp } from "@dt-frames/core";
1
+ import { defineComponent, resolveComponent, openBlock, createBlock, computed, unref, createElementBlock, normalizeClass, normalizeStyle, createElementVNode, ref, watch, Fragment, renderList, createTextVNode, toDisplayString, KeepAlive, createVNode, withCtx, reactive, toRaw, getCurrentInstance, watchEffect, nextTick, toRefs, isVNode, inject, onUnmounted, h, provide, onMounted, onBeforeUnmount, resolveDynamicComponent, renderSlot, createCommentVNode, mergeProps, readonly, isRef, useAttrs as useAttrs$1, normalizeProps, guardReactiveProps, withDirectives, resolveDirective, render, withKeys, createSlots, useSlots as useSlots$1, withModifiers, vShow, toRef, Transition } from "vue";
2
+ import { isString, isArray as isArray$1, isObject, isFunction, error, useTimeoutFn, useAttrs, useSlots, dispatchResize, BAR_MAP, off, renderThumbStyle, on, useAppStore, addResizeListener, removeResizeListener, windowResizeFn, isNumber, isBoolean, isNull, DtCache, CacheKey, deepMerge, http, getDynamicProps, getDictValueByCode, formatNumber, isVnode, getPopupContainer, isNullAndUnDef, useMessage, isEmpty, useTheme, useMenu, useHeader, useGo, Pages, localeList, changeLocale, Theme, MenuMode, MenuType, useThemeStore, ContentMode, useMultipleTab, copyText, MenuSplitTye, isUrl, openWindow, RouteReuseStore, menuList2Map, useApp } from "@dt-frames/core";
3
3
  import { InputSearch, Tooltip, Modal as Modal$1, RadioGroup, RadioButton, InputGroup, Input, Button, Select, TreeSelect, Radio, Checkbox, AutoComplete, Cascader, DatePicker, InputNumber, Switch, TimePicker, Slider, Rate, Divider, Col, Form, FormItem, Row, Popover, Spin, Dropdown, Menu, MenuItem, CheckboxGroup, Table, Upload, Image, MenuDivider, Tree, Empty, BackTop, Breadcrumb, Avatar, Drawer, SubMenu, LayoutHeader, LayoutSider, Tabs, TabPane, LayoutFooter, LayoutContent, ConfigProvider, Layout } from "ant-design-vue";
4
4
  import { isEqual, omit, cloneDeep, upperFirst, set, uniqBy, difference, get, trim } from "lodash-es";
5
5
  import { tryOnUnmounted, isFunction as isFunction$1, useFullscreen, useDebounceFn, useThrottleFn } from "@vueuse/core";
@@ -3101,7 +3101,7 @@ var _sfc_main$Q = defineComponent({
3101
3101
  default: () => [createVNode("div", {
3102
3102
  "style": "display:flex"
3103
3103
  }, [createVNode("div", {
3104
- "style": "flex:1;"
3104
+ "style": "flex:1; width: 100%;"
3105
3105
  }, [getContent()]), !!suffix && createVNode("span", {
3106
3106
  "class": "suffix"
3107
3107
  }, [getSuffix()])])]
@@ -3466,6 +3466,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
3466
3466
  const _component_FormItem = resolveComponent("FormItem");
3467
3467
  const _component_Col = resolveComponent("Col");
3468
3468
  const _directive_icon = resolveDirective("icon");
3469
+ const _directive_auth = resolveDirective("auth");
3469
3470
  return _ctx.show ? (openBlock(), createBlock(_component_Col, normalizeProps(mergeProps({ key: 0 }, _ctx.colOpt)), {
3470
3471
  default: withCtx(() => [
3471
3472
  createVNode(_component_FormItem, {
@@ -3477,12 +3478,12 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
3477
3478
  default: withCtx(() => [
3478
3479
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.buttonList, (button) => {
3479
3480
  return openBlock(), createElementBlock(Fragment, null, [
3480
- (button.show === void 0 ? true : button.show) ? (openBlock(), createBlock(_component_Button, {
3481
+ createTextVNode(toDisplayString(button.auth) + " ", 1),
3482
+ (button.show === void 0 ? true : button.show) ? withDirectives((openBlock(), createBlock(_component_Button, {
3481
3483
  key: 0,
3482
3484
  type: button.type,
3483
3485
  class: normalizeClass(button.class),
3484
3486
  disabled: button.disabled,
3485
- permission: button.auth,
3486
3487
  loading: button.loading,
3487
3488
  onClick: ($event) => _ctx.handleBtnClick(button)
3488
3489
  }, {
@@ -3498,7 +3499,9 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
3498
3499
  ]) : createCommentVNode("", true)
3499
3500
  ]),
3500
3501
  _: 2
3501
- }, 1032, ["type", "class", "disabled", "permission", "loading", "onClick"])) : createCommentVNode("", true)
3502
+ }, 1032, ["type", "class", "disabled", "loading", "onClick"])), [
3503
+ [_directive_auth, button.auth]
3504
+ ]) : createCommentVNode("", true)
3502
3505
  ], 64);
3503
3506
  }), 256)),
3504
3507
  _ctx.showAdvanceRef ? (openBlock(), createBlock(_component_Button, {
@@ -3968,6 +3971,11 @@ const _sfc_main$O = defineComponent({
3968
3971
  });
3969
3972
  }
3970
3973
  }
3974
+ function handleEnterPress() {
3975
+ if (unref(getProps).mode === "search") {
3976
+ handleMethod(SEARCH_BTNS.filter((it) => it.name === SEARCH_BTN_NAME)[0]);
3977
+ }
3978
+ }
3971
3979
  const {
3972
3980
  updateSchema,
3973
3981
  resetSchema,
@@ -4079,6 +4087,7 @@ const _sfc_main$O = defineComponent({
4079
4087
  props,
4080
4088
  setFormModel,
4081
4089
  handleMethod,
4090
+ handleEnterPress,
4082
4091
  getActionsProps
4083
4092
  };
4084
4093
  }
@@ -4092,7 +4101,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
4092
4101
  ref: "formElRef",
4093
4102
  class: _ctx.getFormClass,
4094
4103
  model: _ctx.formModel,
4095
- layout: _ctx.getLayout
4104
+ layout: _ctx.getLayout,
4105
+ onKeypress: withKeys(_ctx.handleEnterPress, ["enter"])
4096
4106
  }), {
4097
4107
  default: withCtx(() => [
4098
4108
  createVNode(_component_Row, normalizeProps(guardReactiveProps(_ctx.getProps.rowProps)), {
@@ -4126,7 +4136,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
4126
4136
  }, 16)
4127
4137
  ]),
4128
4138
  _: 3
4129
- }, 16, ["class", "model", "layout"]);
4139
+ }, 16, ["class", "model", "layout", "onKeypress"]);
4130
4140
  }
4131
4141
  var DtForm = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$4]]);
4132
4142
  function useForm(props) {
@@ -4518,7 +4528,7 @@ function useHeaderCode(code, templates = {}, changeColumns) {
4518
4528
  error(`\u672A\u627E\u5230structure: ${ctx} !`);
4519
4529
  return {};
4520
4530
  }
4521
- return { dict: appConf.structure[ctx] };
4531
+ return { dict: { ...appConf.structure[ctx], struCode: ctx } };
4522
4532
  case 10:
4523
4533
  return templates[ctx];
4524
4534
  case 11:
@@ -4615,6 +4625,12 @@ function useTable(tableProps) {
4615
4625
  },
4616
4626
  getSelectRows: () => {
4617
4627
  return getTableInstance2().getSelectRows();
4628
+ },
4629
+ updateTableDataRecord: (rowKey, record) => {
4630
+ return getTableInstance2().updateTableDataRecord(rowKey, record);
4631
+ },
4632
+ findTableDataRecord: (rowKey) => {
4633
+ return getTableInstance2().findTableDataRecord(rowKey);
4618
4634
  }
4619
4635
  };
4620
4636
  return [registerTable, methods];
@@ -4768,7 +4784,7 @@ function usePagination(props) {
4768
4784
  pageSize: defaultPageSize,
4769
4785
  size: size === "small" ? "small" : "default",
4770
4786
  defaultPageSize,
4771
- showTotal: (total, range) => `\u603B\u5171${total}\u9875`,
4787
+ showTotal: (total, range) => `\u603B\u5171${Math.ceil(total / unref(props).pagination.pageSize)}\u9875`,
4772
4788
  showSizeChanger: true,
4773
4789
  pageSizeOptions,
4774
4790
  showQuickJumper: true,
@@ -6102,27 +6118,44 @@ const _hoisted_2$f = /* @__PURE__ */ createTextVNode("\u5168\u9009");
6102
6118
  const _sfc_main$E = /* @__PURE__ */ defineComponent({
6103
6119
  __name: "DownloadCtrl",
6104
6120
  setup(__props) {
6121
+ const { message } = useMessage();
6105
6122
  const state = reactive({
6106
6123
  indeterminate: false,
6107
- checkAll: false,
6108
- checkedList: []
6124
+ checkAll: false
6109
6125
  });
6110
6126
  const outRow = ref();
6111
6127
  const onCheckAllChange = (e) => {
6112
6128
  var _a;
6113
- Object.assign(state, {
6114
- checkedList: e.target.checked ? (_a = outRow.value) == null ? void 0 : _a.columns.map((it, index) => `${index}`) : [],
6115
- indeterminate: false
6116
- });
6129
+ (_a = outRow.value) == null ? void 0 : _a.columns.map((it) => it.ifShow = e.target.checked);
6117
6130
  };
6118
6131
  const [registerDialog, { closeModal }] = useModal({
6119
6132
  width: "60%",
6120
6133
  title: "\u8BBE\u7F6E\u5BFC\u51FA\u5217"
6121
6134
  }, (data) => {
6122
6135
  outRow.value = data;
6123
- console.log(data);
6136
+ });
6137
+ watch(() => {
6138
+ var _a;
6139
+ return (_a = unref(outRow)) == null ? void 0 : _a.columns;
6140
+ }, (v) => {
6141
+ if (isArray$1(v)) {
6142
+ let showLens = v.filter((it) => it.ifShow).length;
6143
+ Object.assign(state, {
6144
+ checkAll: showLens === v.length,
6145
+ indeterminate: showLens !== v.length && showLens > 0
6146
+ });
6147
+ }
6148
+ }, {
6149
+ deep: true
6124
6150
  });
6125
6151
  function save() {
6152
+ var _a;
6153
+ let columns = (_a = unref(outRow)) == null ? void 0 : _a.columns.filter((it) => it.ifShow);
6154
+ if (!columns.length) {
6155
+ message.error("\u6682\u65E0\u53EF\u5BFC\u51FA\u7684\u5217\uFF01");
6156
+ return;
6157
+ }
6158
+ closeModal(columns);
6126
6159
  }
6127
6160
  return (_ctx, _cache) => {
6128
6161
  return openBlock(), createBlock(unref(_sfc_main$L), {
@@ -6143,35 +6176,30 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
6143
6176
  _: 1
6144
6177
  }, 8, ["checked", "indeterminate"]),
6145
6178
  createVNode(unref(Divider), { dashed: "" }),
6146
- createVNode(unref(CheckboxGroup), {
6147
- value: state.checkedList,
6148
- "onUpdate:value": _cache[1] || (_cache[1] = ($event) => state.checkedList = $event)
6149
- }, {
6150
- default: withCtx(() => [
6151
- createVNode(unref(Row), null, {
6152
- default: withCtx(() => {
6153
- var _a;
6154
- return [
6155
- (openBlock(true), createElementBlock(Fragment, null, renderList((_a = outRow.value) == null ? void 0 : _a.columns, (it, index) => {
6156
- return openBlock(), createBlock(unref(Col), { span: 8 }, {
6179
+ createVNode(unref(Row), null, {
6180
+ default: withCtx(() => {
6181
+ var _a;
6182
+ return [
6183
+ (openBlock(true), createElementBlock(Fragment, null, renderList((_a = outRow.value) == null ? void 0 : _a.columns, (it, index) => {
6184
+ return openBlock(), createBlock(unref(Col), { span: 8 }, {
6185
+ default: withCtx(() => [
6186
+ createVNode(unref(Checkbox), {
6187
+ checked: it.ifShow,
6188
+ "onUpdate:checked": ($event) => it.ifShow = $event
6189
+ }, {
6157
6190
  default: withCtx(() => [
6158
- createVNode(unref(Checkbox), { value: "index" }, {
6159
- default: withCtx(() => [
6160
- createTextVNode(toDisplayString(it.title), 1)
6161
- ]),
6162
- _: 2
6163
- }, 1024)
6191
+ createTextVNode(toDisplayString(it.title), 1)
6164
6192
  ]),
6165
6193
  _: 2
6166
- }, 1024);
6167
- }), 256))
6168
- ];
6169
- }),
6170
- _: 1
6171
- })
6172
- ]),
6194
+ }, 1032, ["checked", "onUpdate:checked"])
6195
+ ]),
6196
+ _: 2
6197
+ }, 1024);
6198
+ }), 256))
6199
+ ];
6200
+ }),
6173
6201
  _: 1
6174
- }, 8, ["value"])
6202
+ })
6175
6203
  ])
6176
6204
  ]),
6177
6205
  _: 1
@@ -6196,10 +6224,10 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
6196
6224
  data: {
6197
6225
  columns
6198
6226
  },
6199
- afterClose(columns2) {
6227
+ afterClose(selectColumns) {
6200
6228
  onDownload({
6201
6229
  type: key,
6202
- columns: columns2,
6230
+ columns: selectColumns,
6203
6231
  rows: key === "select" ? table.getSelectRows() : key === "current" ? dataSource : []
6204
6232
  });
6205
6233
  }
@@ -6727,7 +6755,7 @@ const _sfc_main$A = defineComponent({
6727
6755
  customRow
6728
6756
  };
6729
6757
  });
6730
- createTableInstance({ ...tableAction, tableElRef, getBind });
6758
+ createTableInstance({ ...tableAction, tableElRef, getBind, getProps });
6731
6759
  const handlers = {
6732
6760
  onColumnsChange: (data) => {
6733
6761
  var _a, _b;
@@ -6812,28 +6840,85 @@ function useFetch(api, baseUrl = "") {
6812
6840
  fetch
6813
6841
  };
6814
6842
  }
6815
- function handleDownloadPage({
6816
- columns = [],
6817
- rows = []
6818
- }, exportName = "") {
6819
- const titles = columns.map((it) => it.title);
6820
- const content = rows.reduce((total, it) => {
6821
- const rowData = columns.map((column) => it[column.dataIndex.toString()]);
6822
- total.push(rowData);
6823
- return total;
6824
- }, []);
6825
- export2Excel([titles].concat(content), exportName);
6826
- }
6827
- function export2Excel(data = [], exportName = "") {
6828
- const worksheet = xlsx.utils.aoa_to_sheet(data);
6829
- const fileName = exportName + "_" + dateFormat(new Date(), "yyyyMMdd") + ".xlsx";
6830
- const workbook = {
6831
- SheetNames: [fileName],
6832
- Sheets: {
6833
- [fileName]: worksheet
6843
+ function useDownload(exportUrl, exportName) {
6844
+ function download(excelData) {
6845
+ const { params: searchDTO, type, columns } = excelData;
6846
+ switch (type) {
6847
+ case "all":
6848
+ http.exportFile(exportUrl, {
6849
+ fields: setDownloadAllHeaders(columns),
6850
+ tableName: exportName,
6851
+ fileType: "xlsx",
6852
+ searchDTO
6853
+ }, `${exportName}.xlsx`);
6854
+ break;
6855
+ case "current":
6856
+ case "select":
6857
+ handleDownloadPage(excelData, exportName);
6858
+ break;
6834
6859
  }
6860
+ }
6861
+ function setDownloadAllHeaders(columns) {
6862
+ return columns.map((it) => {
6863
+ let column = {
6864
+ propertyName: it.dataIndex,
6865
+ head: it.title
6866
+ };
6867
+ if (it.render && isObject(it.render)) {
6868
+ const { dict, date, number } = it.render;
6869
+ if (isString(dict)) {
6870
+ column.dictCode = dict;
6871
+ } else if (isObject(dict)) {
6872
+ column.struCode = dict.struCode;
6873
+ column.struKey = dict.label;
6874
+ } else if (date) {
6875
+ column.format = date;
6876
+ } else if (number) {
6877
+ column.format = number;
6878
+ }
6879
+ }
6880
+ return column;
6881
+ });
6882
+ }
6883
+ function handleDownloadPage({ columns = [], rows = [] }, exportName2 = "") {
6884
+ const titles = columns.map((it) => it.title);
6885
+ const content = rows.reduce((total, it) => {
6886
+ const rowData = columns.map((column) => {
6887
+ let value = it[column.dataIndex.toString()];
6888
+ if (column.render && isObject(column.render) && value !== void 0) {
6889
+ const { dict, date, number, percent } = column.render;
6890
+ if (date) {
6891
+ return dayjs(value).format(date);
6892
+ } else if (dict) {
6893
+ console.log(getDictValueByCode(value, dict));
6894
+ return unref(getDictValueByCode(value, dict));
6895
+ } else if (percent) {
6896
+ return (value * 100).toFixed(2) + "%";
6897
+ } else if (number) {
6898
+ return (value * 100).toFixed(number || 2);
6899
+ }
6900
+ }
6901
+ return value;
6902
+ });
6903
+ total.push(rowData);
6904
+ return total;
6905
+ }, []);
6906
+ export2Excel([titles].concat(content), exportName2);
6907
+ }
6908
+ function export2Excel(data = [], exportName2 = "") {
6909
+ const worksheet = xlsx.utils.aoa_to_sheet(data);
6910
+ const fileName = exportName2 + "_" + dayjs(new Date()).format("YYYYMMDD") + ".xlsx";
6911
+ const workbook = {
6912
+ SheetNames: [fileName],
6913
+ Sheets: {
6914
+ [fileName]: worksheet
6915
+ }
6916
+ };
6917
+ xlsx.writeFile(workbook, fileName, { bookType: "xlsx" });
6918
+ }
6919
+ return {
6920
+ download
6835
6921
  };
6836
- xlsx.writeFile(workbook, fileName, { bookType: "xlsx" });
6837
6922
  }
6838
6923
  function useSource(opt) {
6839
6924
  var _a, _b, _c, _d;
@@ -6969,8 +7054,12 @@ function useSource(opt) {
6969
7054
  }
6970
7055
  });
6971
7056
  }
7057
+ const { download } = useDownload(apiFul.export, exportName);
6972
7058
  function onDownload(excelData) {
6973
- handleDownloadPage(excelData, exportName);
7059
+ download({
7060
+ ...excelData,
7061
+ params: baseData
7062
+ });
6974
7063
  }
6975
7064
  const form = {
6976
7065
  onSearch,
@@ -7102,7 +7191,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
7102
7191
  function useCurd(curdOpt) {
7103
7192
  const formsVal = ref();
7104
7193
  const [register, {
7105
- openModal
7194
+ openModal,
7195
+ closeModal
7106
7196
  }] = useModalOut();
7107
7197
  const {
7108
7198
  confirm
@@ -7182,6 +7272,8 @@ function useCurd(curdOpt) {
7182
7272
  del,
7183
7273
  dels,
7184
7274
  update,
7275
+ closeModal,
7276
+ openModal,
7185
7277
  setFormValues
7186
7278
  };
7187
7279
  }
@@ -7783,7 +7875,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
7783
7875
  historyFilesRef.value = props.defaultFiles.map((file, index) => {
7784
7876
  return {
7785
7877
  ...file,
7786
- fileId: file.id || index,
7878
+ fileId: file.fileId || index,
7787
7879
  fileName: file.fileName,
7788
7880
  status: 0,
7789
7881
  fileStatue: "\u5386\u53F2\u4E0A\u4F20"
@@ -8996,10 +9088,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
8996
9088
  setup(__props) {
8997
9089
  const props = __props;
8998
9090
  const visible = ref(false);
8999
- function toggleLang(lang) {
9091
+ async function toggleLang(lang) {
9000
9092
  visible.value = false;
9001
9093
  if (DtCache.getLocal(CacheKey.LOCALE) !== lang) {
9002
- changeLocale(lang);
9094
+ await changeLocale(lang);
9003
9095
  props.reload && location.reload();
9004
9096
  }
9005
9097
  }
@@ -10060,7 +10152,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
10060
10152
  unref(getShowFullScreen) ? (openBlock(), createBlock(unref(_sfc_main$o), { key: 2 })) : createCommentVNode("", true),
10061
10153
  unref(getShowLocale) ? (openBlock(), createBlock(unref(_sfc_main$m), {
10062
10154
  key: 3,
10063
- reload: false
10155
+ reload: true
10064
10156
  })) : createCommentVNode("", true),
10065
10157
  createVNode(unref(_sfc_main$n)),
10066
10158
  unref(getShowSettingTheme) ? (openBlock(), createBlock(unref(_sfc_main$h), { key: 4 })) : createCommentVNode("", true)
@@ -10844,4 +10936,4 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10844
10936
  };
10845
10937
  }
10846
10938
  });
10847
- export { DtBaseRouter, DtForm, DtIcon, _sfc_main$y as DtIframe, _sfc_main$L as DtModal, _sfc_main$X as DtPickIcon, DtTable, _sfc_main as DtTheme, _sfc_main$v as DtTree, _sfc_main$x as DtUpload, FormButtons, authMounted, export2Excel, iconMounted, initComponents, initDirectives, useCurd, useForm, useModal, useModalOut, useSource, useTable };
10939
+ export { DtBaseRouter, DtForm, DtIcon, _sfc_main$y as DtIframe, _sfc_main$L as DtModal, _sfc_main$X as DtPickIcon, DtTable, _sfc_main as DtTheme, _sfc_main$v as DtTree, _sfc_main$x as DtUpload, FormButtons, authMounted, iconMounted, initComponents, initDirectives, useCurd, useForm, useModal, useModalOut, useSource, useTable };
@@ -12,7 +12,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
12
12
  }>> & {
13
13
  [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any);
14
14
  }>>;
15
- toggleLang: (lang: Language) => void;
15
+ toggleLang: (lang: Language) => Promise<void>;
16
16
  Popover: {
17
17
  new (...args: any[]): {
18
18
  $: import("vue").ComponentInternalInstance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.23",
3
+ "version": "1.0.26",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"
@@ -1,2 +0,0 @@
1
- import { handleDownloadPage, export2Excel } from './src/export2Excel';
2
- export { handleDownloadPage, export2Excel };
@@ -1,3 +0,0 @@
1
- import { DownloadType } from "../../table/src/types/tableHeader.type";
2
- export declare function handleDownloadPage({ columns, rows }: DownloadType, exportName?: string): void;
3
- export declare function export2Excel(data?: string[][], exportName?: string): void;