@dt-frames/ui 1.0.3 → 1.0.4

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 (58) hide show
  1. package/es/components/iframe/index.d.ts +2 -2
  2. package/es/components/index.d.ts +2 -2
  3. package/es/index.css +1 -1
  4. package/es/index.js +34 -393
  5. package/{src/components/forms/src → es/style/components/forms}/index.less +2 -0
  6. package/{src/components/iframe/src → es/style/components/iframe}/index.less +0 -0
  7. package/{src/components/modal/src → es/style/components/modal}/index.less +3 -0
  8. package/{src/components/table/src → es/style/components/table}/index.less +0 -0
  9. package/es/style/theme/theme.less +2 -1
  10. package/es/theme/header/components/notify.d.ts +0 -1
  11. package/es/theme/header/components/user-info.d.ts +1 -1
  12. package/package.json +2 -5
  13. package/src/components/forms/index.less +84 -0
  14. package/src/components/forms/src/components/formButton.vue +1 -1
  15. package/src/components/icons/{src/index.less → index.less} +0 -0
  16. package/src/components/iframe/index.less +3 -0
  17. package/src/components/iframe/index.ts +2 -2
  18. package/src/components/index.ts +2 -2
  19. package/src/components/modal/index.less +63 -0
  20. package/src/components/table/index.less +162 -0
  21. package/src/directives/index.ts +0 -1
  22. package/src/directives/permission.ts +2 -3
  23. package/src/theme/footer/index.vue +1 -1
  24. package/src/theme/header/components/bread-crumb.vue +1 -1
  25. package/src/theme/header/components/fullscreen.vue +0 -2
  26. package/src/theme/header/components/notify.vue +1 -2
  27. package/src/theme/header/components/user-info.vue +4 -4
  28. package/src/theme/header/helper/menu-tree.ts +3 -6
  29. package/src/theme/sider/helper/split-menu.ts +1 -2
  30. package/src/theme/tabs/components/TabContent.vue +0 -1
  31. package/src/theme/tabs/index.vue +1 -1
  32. package/src/theme/theme.less +2 -1
  33. package/src/theme/theme.vue +4 -3
  34. package/es/assets/app-antd-dark-theme-style.e3b0c442.css +0 -0
  35. package/es/assets/app-theme-style.e3b0c442.css +0 -0
  36. package/es/assets/data/icon.d.ts +0 -4
  37. package/es/assets/data/icon.ts +0 -69
  38. package/es/assets/data/icon11.ts +0 -69
  39. package/es/assets/style/var.less +0 -42
  40. package/es/components/icons/pick-icon.d.ts +0 -529
  41. package/es/components/icons/svg-icon.d.ts +0 -44
  42. package/es/components/table/src/hooks/useFormat.d.ts +0 -2
  43. package/es/components/table/src/hooks/useVirtualScroll.d.ts +0 -5
  44. package/es/components/table/src/utils/format.d.ts +0 -1
  45. package/es/style/assets/style/var.less +0 -42
  46. package/es/theme/content/index.d.ts +0 -27
  47. package/es/theme/header/components/menu-search.d.ts +0 -528
  48. package/es/theme/header/components/setting-theme.d.ts +0 -2580
  49. package/es/theme/header/index.d.ts +0 -4369
  50. package/es/theme/header/multiple-header.d.ts +0 -2001
  51. package/es/theme/styles/hooks/changeTheme.d.ts +0 -1
  52. package/es/theme/styles/hooks/generate.d.ts +0 -13
  53. package/es/theme/styles/index.d.ts +0 -2
  54. package/es/theme/tabs/components/TabRedo.d.ts +0 -7
  55. package/es/theme/tabs/index.d.ts +0 -2478
  56. package/es/theme/theme/initTheme.d.ts +0 -3
  57. package/es/theme/theme/util.d.ts +0 -5
  58. package/es/theme/theme.d.ts +0 -22
package/es/index.js CHANGED
@@ -1,11 +1,12 @@
1
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, onUnmounted, toRefs, isVNode, inject, h, provide, onMounted, onBeforeUnmount, resolveDynamicComponent, renderSlot, createCommentVNode, mergeProps, readonly, isRef, withDirectives, resolveDirective, render, normalizeProps, guardReactiveProps, createSlots, useAttrs as useAttrs$1, vShow, toRef, withModifiers, Transition } from "vue";
2
- import { isString, isArray as isArray$1, isObject, isFunction, error, useTimeoutFn, useAttrs, useSlots, BAR_MAP, off, renderThumbStyle, on, useAppStore, addResizeListener, removeResizeListener, windowResizeFn, isNumber, isBoolean, isNull, useAuthStore, deepMerge, dateFormat, getDynamicProps, isNullAndUnDef, getPopupContainer, getDictValueByCode, formatNumber, isVnode, http, useTheme, useMenu, useHeader, localeList, DtCache, CacheKey, changeLocale, Theme, MenuMode, MenuType, useThemeStore, ContentMode, useMultipleTab, copyText, MenuSplitTye, useGo, isUrl, openWindow, RouteReuseStore, menuList2Map, useApp } from "@dt-frames/core";
2
+ import { isString, isArray as isArray$1, isObject, isFunction, error, useTimeoutFn, useAttrs, useSlots, BAR_MAP, off, renderThumbStyle, on, useAppStore, addResizeListener, removeResizeListener, windowResizeFn, isNumber, isBoolean, isNull, DtCache, CacheKey, deepMerge, dateFormat, getDynamicProps, isNullAndUnDef, getPopupContainer, getDictValueByCode, formatNumber, isVnode, http, useTheme, useMenu, useHeader, localeList, changeLocale, Theme, MenuMode, MenuType, useThemeStore, ContentMode, useMultipleTab, copyText, MenuSplitTye, useGo, 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, CheckboxGroup, Dropdown, Menu, MenuItem, Table, message, Spin, BackTop, Breadcrumb, Avatar, Drawer, Empty, SubMenu, LayoutHeader, LayoutSider, MenuDivider, Tabs, TabPane, LayoutFooter, LayoutContent, ConfigProvider, Layout } from "ant-design-vue";
4
4
  import { isEqual, cloneDeep, upperFirst, set, uniqBy, omit, trim } from "lodash-es";
5
5
  import { tryOnUnmounted, isFunction as isFunction$1, useFullscreen, useDebounceFn, useThrottleFn } from "@vueuse/core";
6
+ import { nextTick as nextTick$1 } from "process";
6
7
  import Sortablejs from "sortablejs";
8
+ import dayjs from "dayjs";
7
9
  import * as xlsx from "xlsx";
8
- import "@iconify/iconify";
9
10
  import { useRouter } from "vue-router";
10
11
  import zhCN from "ant-design-vue/es/locale/zh_CN";
11
12
  var _export_sfc = (sfc, props) => {
@@ -3249,8 +3250,7 @@ function hasAuth(el, binding) {
3249
3250
  const value = binding.value;
3250
3251
  if (!value)
3251
3252
  return;
3252
- let { getAuths } = useAuthStore();
3253
- if (!getAuths.includes(value)) {
3253
+ if (!DtCache.getLocal(CacheKey.AUTHS).includes(value)) {
3254
3254
  (_a = el.parentNode) == null ? void 0 : _a.removeChild(el);
3255
3255
  }
3256
3256
  }
@@ -3456,213 +3456,6 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
3456
3456
  }
3457
3457
  var FormButtons = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["render", _sfc_render$4]]);
3458
3458
  const isArray = Array.isArray;
3459
- var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
3460
- var dayjs_min = { exports: {} };
3461
- (function(module, exports) {
3462
- !function(t, e) {
3463
- module.exports = e();
3464
- }(commonjsGlobal, function() {
3465
- var t = 1e3, e = 6e4, n = 36e5, r = "millisecond", i = "second", s = "minute", u = "hour", a = "day", o = "week", f = "month", h2 = "quarter", c = "year", d = "date", $ = "Invalid Date", l = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_") }, m = function(t2, e2, n2) {
3466
- var r2 = String(t2);
3467
- return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
3468
- }, g = { s: m, z: function(t2) {
3469
- var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
3470
- return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
3471
- }, m: function t2(e2, n2) {
3472
- if (e2.date() < n2.date())
3473
- return -t2(n2, e2);
3474
- var r2 = 12 * (n2.year() - e2.year()) + (n2.month() - e2.month()), i2 = e2.clone().add(r2, f), s2 = n2 - i2 < 0, u2 = e2.clone().add(r2 + (s2 ? -1 : 1), f);
3475
- return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
3476
- }, a: function(t2) {
3477
- return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
3478
- }, p: function(t2) {
3479
- return { M: f, y: c, w: o, d: a, D: d, h: u, m: s, s: i, ms: r, Q: h2 }[t2] || String(t2 || "").toLowerCase().replace(/s$/, "");
3480
- }, u: function(t2) {
3481
- return t2 === void 0;
3482
- } }, v = "en", D = {};
3483
- D[v] = M;
3484
- var p = function(t2) {
3485
- return t2 instanceof _;
3486
- }, S = function t2(e2, n2, r2) {
3487
- var i2;
3488
- if (!e2)
3489
- return v;
3490
- if (typeof e2 == "string") {
3491
- var s2 = e2.toLowerCase();
3492
- D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
3493
- var u2 = e2.split("-");
3494
- if (!i2 && u2.length > 1)
3495
- return t2(u2[0]);
3496
- } else {
3497
- var a2 = e2.name;
3498
- D[a2] = e2, i2 = a2;
3499
- }
3500
- return !r2 && i2 && (v = i2), i2 || !r2 && v;
3501
- }, w = function(t2, e2) {
3502
- if (p(t2))
3503
- return t2.clone();
3504
- var n2 = typeof e2 == "object" ? e2 : {};
3505
- return n2.date = t2, n2.args = arguments, new _(n2);
3506
- }, O = g;
3507
- O.l = S, O.i = p, O.w = function(t2, e2) {
3508
- return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
3509
- };
3510
- var _ = function() {
3511
- function M2(t2) {
3512
- this.$L = S(t2.locale, null, true), this.parse(t2);
3513
- }
3514
- var m2 = M2.prototype;
3515
- return m2.parse = function(t2) {
3516
- this.$d = function(t3) {
3517
- var e2 = t3.date, n2 = t3.utc;
3518
- if (e2 === null)
3519
- return new Date(NaN);
3520
- if (O.u(e2))
3521
- return new Date();
3522
- if (e2 instanceof Date)
3523
- return new Date(e2);
3524
- if (typeof e2 == "string" && !/Z$/i.test(e2)) {
3525
- var r2 = e2.match(l);
3526
- if (r2) {
3527
- var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
3528
- return n2 ? new Date(Date.UTC(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2)) : new Date(r2[1], i2, r2[3] || 1, r2[4] || 0, r2[5] || 0, r2[6] || 0, s2);
3529
- }
3530
- }
3531
- return new Date(e2);
3532
- }(t2), this.$x = t2.x || {}, this.init();
3533
- }, m2.init = function() {
3534
- var t2 = this.$d;
3535
- this.$y = t2.getFullYear(), this.$M = t2.getMonth(), this.$D = t2.getDate(), this.$W = t2.getDay(), this.$H = t2.getHours(), this.$m = t2.getMinutes(), this.$s = t2.getSeconds(), this.$ms = t2.getMilliseconds();
3536
- }, m2.$utils = function() {
3537
- return O;
3538
- }, m2.isValid = function() {
3539
- return !(this.$d.toString() === $);
3540
- }, m2.isSame = function(t2, e2) {
3541
- var n2 = w(t2);
3542
- return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
3543
- }, m2.isAfter = function(t2, e2) {
3544
- return w(t2) < this.startOf(e2);
3545
- }, m2.isBefore = function(t2, e2) {
3546
- return this.endOf(e2) < w(t2);
3547
- }, m2.$g = function(t2, e2, n2) {
3548
- return O.u(t2) ? this[e2] : this.set(n2, t2);
3549
- }, m2.unix = function() {
3550
- return Math.floor(this.valueOf() / 1e3);
3551
- }, m2.valueOf = function() {
3552
- return this.$d.getTime();
3553
- }, m2.startOf = function(t2, e2) {
3554
- var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), $2 = function(t3, e3) {
3555
- var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
3556
- return r2 ? i2 : i2.endOf(a);
3557
- }, l2 = function(t3, e3) {
3558
- return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
3559
- }, y2 = this.$W, M3 = this.$M, m3 = this.$D, g2 = "set" + (this.$u ? "UTC" : "");
3560
- switch (h3) {
3561
- case c:
3562
- return r2 ? $2(1, 0) : $2(31, 11);
3563
- case f:
3564
- return r2 ? $2(1, M3) : $2(0, M3 + 1);
3565
- case o:
3566
- var v2 = this.$locale().weekStart || 0, D2 = (y2 < v2 ? y2 + 7 : y2) - v2;
3567
- return $2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
3568
- case a:
3569
- case d:
3570
- return l2(g2 + "Hours", 0);
3571
- case u:
3572
- return l2(g2 + "Minutes", 1);
3573
- case s:
3574
- return l2(g2 + "Seconds", 2);
3575
- case i:
3576
- return l2(g2 + "Milliseconds", 3);
3577
- default:
3578
- return this.clone();
3579
- }
3580
- }, m2.endOf = function(t2) {
3581
- return this.startOf(t2, false);
3582
- }, m2.$set = function(t2, e2) {
3583
- var n2, o2 = O.p(t2), h3 = "set" + (this.$u ? "UTC" : ""), $2 = (n2 = {}, n2[a] = h3 + "Date", n2[d] = h3 + "Date", n2[f] = h3 + "Month", n2[c] = h3 + "FullYear", n2[u] = h3 + "Hours", n2[s] = h3 + "Minutes", n2[i] = h3 + "Seconds", n2[r] = h3 + "Milliseconds", n2)[o2], l2 = o2 === a ? this.$D + (e2 - this.$W) : e2;
3584
- if (o2 === f || o2 === c) {
3585
- var y2 = this.clone().set(d, 1);
3586
- y2.$d[$2](l2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
3587
- } else
3588
- $2 && this.$d[$2](l2);
3589
- return this.init(), this;
3590
- }, m2.set = function(t2, e2) {
3591
- return this.clone().$set(t2, e2);
3592
- }, m2.get = function(t2) {
3593
- return this[O.p(t2)]();
3594
- }, m2.add = function(r2, h3) {
3595
- var d2, $2 = this;
3596
- r2 = Number(r2);
3597
- var l2 = O.p(h3), y2 = function(t2) {
3598
- var e2 = w($2);
3599
- return O.w(e2.date(e2.date() + Math.round(t2 * r2)), $2);
3600
- };
3601
- if (l2 === f)
3602
- return this.set(f, this.$M + r2);
3603
- if (l2 === c)
3604
- return this.set(c, this.$y + r2);
3605
- if (l2 === a)
3606
- return y2(1);
3607
- if (l2 === o)
3608
- return y2(7);
3609
- var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[l2] || 1, m3 = this.$d.getTime() + r2 * M3;
3610
- return O.w(m3, this);
3611
- }, m2.subtract = function(t2, e2) {
3612
- return this.add(-1 * t2, e2);
3613
- }, m2.format = function(t2) {
3614
- var e2 = this, n2 = this.$locale();
3615
- if (!this.isValid())
3616
- return n2.invalidDate || $;
3617
- var r2 = t2 || "YYYY-MM-DDTHH:mm:ssZ", i2 = O.z(this), s2 = this.$H, u2 = this.$m, a2 = this.$M, o2 = n2.weekdays, f2 = n2.months, h3 = function(t3, n3, i3, s3) {
3618
- return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
3619
- }, c2 = function(t3) {
3620
- return O.s(s2 % 12 || 12, t3, "0");
3621
- }, d2 = n2.meridiem || function(t3, e3, n3) {
3622
- var r3 = t3 < 12 ? "AM" : "PM";
3623
- return n3 ? r3.toLowerCase() : r3;
3624
- }, l2 = { YY: String(this.$y).slice(-2), YYYY: this.$y, M: a2 + 1, MM: O.s(a2 + 1, 2, "0"), MMM: h3(n2.monthsShort, a2, f2, 3), MMMM: h3(f2, a2), D: this.$D, DD: O.s(this.$D, 2, "0"), d: String(this.$W), dd: h3(n2.weekdaysMin, this.$W, o2, 2), ddd: h3(n2.weekdaysShort, this.$W, o2, 3), dddd: o2[this.$W], H: String(s2), HH: O.s(s2, 2, "0"), h: c2(1), hh: c2(2), a: d2(s2, u2, true), A: d2(s2, u2, false), m: String(u2), mm: O.s(u2, 2, "0"), s: String(this.$s), ss: O.s(this.$s, 2, "0"), SSS: O.s(this.$ms, 3, "0"), Z: i2 };
3625
- return r2.replace(y, function(t3, e3) {
3626
- return e3 || l2[t3] || i2.replace(":", "");
3627
- });
3628
- }, m2.utcOffset = function() {
3629
- return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
3630
- }, m2.diff = function(r2, d2, $2) {
3631
- var l2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, g2 = this - M3, v2 = O.m(this, M3);
3632
- return v2 = (l2 = {}, l2[c] = v2 / 12, l2[f] = v2, l2[h2] = v2 / 3, l2[o] = (g2 - m3) / 6048e5, l2[a] = (g2 - m3) / 864e5, l2[u] = g2 / n, l2[s] = g2 / e, l2[i] = g2 / t, l2)[y2] || g2, $2 ? v2 : O.a(v2);
3633
- }, m2.daysInMonth = function() {
3634
- return this.endOf(f).$D;
3635
- }, m2.$locale = function() {
3636
- return D[this.$L];
3637
- }, m2.locale = function(t2, e2) {
3638
- if (!t2)
3639
- return this.$L;
3640
- var n2 = this.clone(), r2 = S(t2, e2, true);
3641
- return r2 && (n2.$L = r2), n2;
3642
- }, m2.clone = function() {
3643
- return O.w(this.$d, this);
3644
- }, m2.toDate = function() {
3645
- return new Date(this.valueOf());
3646
- }, m2.toJSON = function() {
3647
- return this.isValid() ? this.toISOString() : null;
3648
- }, m2.toISOString = function() {
3649
- return this.$d.toISOString();
3650
- }, m2.toString = function() {
3651
- return this.$d.toUTCString();
3652
- }, M2;
3653
- }(), T = _.prototype;
3654
- return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
3655
- T[t2[1]] = function(e2) {
3656
- return this.$g(e2, t2[0], t2[1]);
3657
- };
3658
- }), w.extend = function(t2, e2) {
3659
- return t2.$i || (t2(e2, _, w), t2.$i = true), w;
3660
- }, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
3661
- return w(1e3 * t2);
3662
- }, w.en = D[v], w.Ls = D, w.p = {}, w;
3663
- });
3664
- })(dayjs_min);
3665
- var dayjs = dayjs_min.exports;
3666
3459
  function useFormValues({
3667
3460
  defaultValue,
3668
3461
  getSchema,
@@ -4885,163 +4678,6 @@ function createTableInstance(instance) {
4885
4678
  function getTableInstance() {
4886
4679
  return inject(tableKey);
4887
4680
  }
4888
- var browser = { exports: {} };
4889
- var process = browser.exports = {};
4890
- var cachedSetTimeout;
4891
- var cachedClearTimeout;
4892
- function defaultSetTimout() {
4893
- throw new Error("setTimeout has not been defined");
4894
- }
4895
- function defaultClearTimeout() {
4896
- throw new Error("clearTimeout has not been defined");
4897
- }
4898
- (function() {
4899
- try {
4900
- if (typeof setTimeout === "function") {
4901
- cachedSetTimeout = setTimeout;
4902
- } else {
4903
- cachedSetTimeout = defaultSetTimout;
4904
- }
4905
- } catch (e) {
4906
- cachedSetTimeout = defaultSetTimout;
4907
- }
4908
- try {
4909
- if (typeof clearTimeout === "function") {
4910
- cachedClearTimeout = clearTimeout;
4911
- } else {
4912
- cachedClearTimeout = defaultClearTimeout;
4913
- }
4914
- } catch (e) {
4915
- cachedClearTimeout = defaultClearTimeout;
4916
- }
4917
- })();
4918
- function runTimeout(fun) {
4919
- if (cachedSetTimeout === setTimeout) {
4920
- return setTimeout(fun, 0);
4921
- }
4922
- if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
4923
- cachedSetTimeout = setTimeout;
4924
- return setTimeout(fun, 0);
4925
- }
4926
- try {
4927
- return cachedSetTimeout(fun, 0);
4928
- } catch (e) {
4929
- try {
4930
- return cachedSetTimeout.call(null, fun, 0);
4931
- } catch (e2) {
4932
- return cachedSetTimeout.call(this, fun, 0);
4933
- }
4934
- }
4935
- }
4936
- function runClearTimeout(marker) {
4937
- if (cachedClearTimeout === clearTimeout) {
4938
- return clearTimeout(marker);
4939
- }
4940
- if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
4941
- cachedClearTimeout = clearTimeout;
4942
- return clearTimeout(marker);
4943
- }
4944
- try {
4945
- return cachedClearTimeout(marker);
4946
- } catch (e) {
4947
- try {
4948
- return cachedClearTimeout.call(null, marker);
4949
- } catch (e2) {
4950
- return cachedClearTimeout.call(this, marker);
4951
- }
4952
- }
4953
- }
4954
- var queue = [];
4955
- var draining = false;
4956
- var currentQueue;
4957
- var queueIndex = -1;
4958
- function cleanUpNextTick() {
4959
- if (!draining || !currentQueue) {
4960
- return;
4961
- }
4962
- draining = false;
4963
- if (currentQueue.length) {
4964
- queue = currentQueue.concat(queue);
4965
- } else {
4966
- queueIndex = -1;
4967
- }
4968
- if (queue.length) {
4969
- drainQueue();
4970
- }
4971
- }
4972
- function drainQueue() {
4973
- if (draining) {
4974
- return;
4975
- }
4976
- var timeout = runTimeout(cleanUpNextTick);
4977
- draining = true;
4978
- var len = queue.length;
4979
- while (len) {
4980
- currentQueue = queue;
4981
- queue = [];
4982
- while (++queueIndex < len) {
4983
- if (currentQueue) {
4984
- currentQueue[queueIndex].run();
4985
- }
4986
- }
4987
- queueIndex = -1;
4988
- len = queue.length;
4989
- }
4990
- currentQueue = null;
4991
- draining = false;
4992
- runClearTimeout(timeout);
4993
- }
4994
- process.nextTick = function(fun) {
4995
- var args = new Array(arguments.length - 1);
4996
- if (arguments.length > 1) {
4997
- for (var i = 1; i < arguments.length; i++) {
4998
- args[i - 1] = arguments[i];
4999
- }
5000
- }
5001
- queue.push(new Item(fun, args));
5002
- if (queue.length === 1 && !draining) {
5003
- runTimeout(drainQueue);
5004
- }
5005
- };
5006
- function Item(fun, array) {
5007
- this.fun = fun;
5008
- this.array = array;
5009
- }
5010
- Item.prototype.run = function() {
5011
- this.fun.apply(null, this.array);
5012
- };
5013
- process.title = "browser";
5014
- process.browser = true;
5015
- process.env = {};
5016
- process.argv = [];
5017
- process.version = "";
5018
- process.versions = {};
5019
- function noop() {
5020
- }
5021
- process.on = noop;
5022
- process.addListener = noop;
5023
- process.once = noop;
5024
- process.off = noop;
5025
- process.removeListener = noop;
5026
- process.removeAllListeners = noop;
5027
- process.emit = noop;
5028
- process.prependListener = noop;
5029
- process.prependOnceListener = noop;
5030
- process.listeners = function(name) {
5031
- return [];
5032
- };
5033
- process.binding = function(name) {
5034
- throw new Error("process.binding is not supported");
5035
- };
5036
- process.cwd = function() {
5037
- return "/";
5038
- };
5039
- process.chdir = function(dir) {
5040
- throw new Error("process.chdir is not supported");
5041
- };
5042
- process.umask = function() {
5043
- return 0;
5044
- };
5045
4681
  const _hoisted_1$n = /* @__PURE__ */ createElementVNode("span", null, "\u5217\u63A7\u5236", -1);
5046
4682
  const _hoisted_2$h = /* @__PURE__ */ createTextVNode(" \u5217\u5C55\u793A ");
5047
4683
  const _hoisted_3$9 = /* @__PURE__ */ createTextVNode(" \u5E8F\u5217\u53F7 ");
@@ -5099,7 +4735,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
5099
4735
  function handleVisibleChange() {
5100
4736
  if (inited)
5101
4737
  return;
5102
- browser.exports.nextTick(() => {
4738
+ nextTick$1(() => {
5103
4739
  const columnListEl = unref(columnListRef);
5104
4740
  if (!columnListEl)
5105
4741
  return;
@@ -6845,8 +6481,7 @@ function deleteChildrenProp(menu) {
6845
6481
  return obj;
6846
6482
  }
6847
6483
  function getBreadCrumb(path, menus) {
6848
- const { getMenus: getMenus2 } = useAuthStore();
6849
- const _menus = menus || getMenus2;
6484
+ const _menus = menus || DtCache.getLocal(CacheKey.MENUS) || [];
6850
6485
  let routes = [];
6851
6486
  let getParentByPath = (menu, path2 = "") => {
6852
6487
  if (menu.children && menu.children.length) {
@@ -6866,7 +6501,6 @@ function getBreadCrumb(path, menus) {
6866
6501
  return routes;
6867
6502
  }
6868
6503
  function getFilterMenu(filter = "", flag = false) {
6869
- const { getMenus: getMenus2 } = useAuthStore();
6870
6504
  let _menus = [];
6871
6505
  if (!trim(filter) && !flag)
6872
6506
  return _menus;
@@ -6879,7 +6513,7 @@ function getFilterMenu(filter = "", flag = false) {
6879
6513
  }
6880
6514
  });
6881
6515
  };
6882
- getTargetMenus(getMenus2);
6516
+ getTargetMenus(DtCache.getLocal(CacheKey.MENUS));
6883
6517
  return _menus;
6884
6518
  }
6885
6519
  const _hoisted_1$e = { class: "dt-breadcrumb" };
@@ -6910,7 +6544,6 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
6910
6544
  const _hoisted_1$d = /* @__PURE__ */ createElementVNode("span", { class: "red-dot" }, null, -1);
6911
6545
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
6912
6546
  setup(__props) {
6913
- ref("1");
6914
6547
  const { getShowNotice } = useHeader();
6915
6548
  return (_ctx, _cache) => {
6916
6549
  const _directive_icon = resolveDirective("icon");
@@ -6965,7 +6598,7 @@ const _hoisted_8 = { class: "userInfo" };
6965
6598
  const _hoisted_9 = { class: "name" };
6966
6599
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
6967
6600
  setup(__props) {
6968
- const { getUserInfo } = useAuthStore();
6601
+ const getUserInfo = DtCache.getLocal(CacheKey.USER_INFO);
6969
6602
  const { getUserActions } = useHeader();
6970
6603
  return (_ctx, _cache) => {
6971
6604
  const _directive_icon = resolveDirective("icon");
@@ -7013,15 +6646,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
7013
6646
  ])
7014
6647
  ])
7015
6648
  ]),
7016
- default: withCtx(() => [
7017
- createElementVNode("div", _hoisted_8, [
7018
- createVNode(unref(Avatar), {
7019
- src: unref(getUserInfo).avatar,
7020
- size: 28
7021
- }, null, 8, ["src"]),
7022
- createElementVNode("span", _hoisted_9, toDisplayString(unref(getUserInfo).realName), 1)
7023
- ])
7024
- ]),
6649
+ default: withCtx(() => {
6650
+ var _a, _b;
6651
+ return [
6652
+ createElementVNode("div", _hoisted_8, [
6653
+ createVNode(unref(Avatar), {
6654
+ src: (_a = unref(getUserInfo)) == null ? void 0 : _a.avatar,
6655
+ size: 28
6656
+ }, null, 8, ["src"]),
6657
+ createElementVNode("span", _hoisted_9, toDisplayString((_b = unref(getUserInfo)) == null ? void 0 : _b.realName), 1)
6658
+ ])
6659
+ ];
6660
+ }),
7025
6661
  _: 1
7026
6662
  });
7027
6663
  };
@@ -7604,8 +7240,7 @@ function useSplitMenu(splitType) {
7604
7240
  }
7605
7241
  async function getMenus2() {
7606
7242
  if (unref(normalType)) {
7607
- const { getMenus: getMenus3 } = useAuthStore();
7608
- menusRef.value = getMenus3;
7243
+ menusRef.value = DtCache.getLocal(CacheKey.MENUS);
7609
7244
  return;
7610
7245
  }
7611
7246
  if (unref(getSplitTop)) {
@@ -8762,10 +8397,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
8762
8397
  };
8763
8398
  }
8764
8399
  });
8400
+ var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
8765
8401
  var zhCn = { exports: {} };
8766
8402
  (function(module, exports) {
8767
8403
  !function(e, _) {
8768
- module.exports = _(dayjs_min.exports);
8404
+ module.exports = _(dayjs);
8769
8405
  }(commonjsGlobal, function(e) {
8770
8406
  function _(e2) {
8771
8407
  return e2 && typeof e2 == "object" && "default" in e2 ? e2 : { default: e2 };
@@ -8779,7 +8415,10 @@ var zhCn = { exports: {} };
8779
8415
  return t.default.locale(d, null, true), d;
8780
8416
  });
8781
8417
  })(zhCn);
8782
- const _hoisted_1 = { class: "dt-theme" };
8418
+ const _hoisted_1 = {
8419
+ key: 0,
8420
+ class: "dt-theme"
8421
+ };
8783
8422
  const _sfc_main = /* @__PURE__ */ defineComponent({
8784
8423
  setup(__props) {
8785
8424
  dayjs.locale("zh-cn");
@@ -8788,6 +8427,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8788
8427
  const { getShowFullHeaderRef, getFixed, getHeaderHeight } = useHeader();
8789
8428
  const { getSplit, getShowMenu, getShowSidebar } = useMenu();
8790
8429
  const { getFooter, getShowFooter } = useTheme();
8430
+ const { getAppConf } = useAppStore();
8791
8431
  const { height } = unref(getFooter);
8792
8432
  const layoutClass = computed(() => {
8793
8433
  let cls = "ant-layout";
@@ -8810,13 +8450,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8810
8450
  };
8811
8451
  });
8812
8452
  return (_ctx, _cache) => {
8453
+ var _a;
8813
8454
  const _component_router_view = resolveComponent("router-view");
8814
- return openBlock(), createElementBlock("div", _hoisted_1, [
8455
+ return unref(currentRoute).fullPath && ((_a = unref(getAppConf)) == null ? void 0 : _a.router.unRequireAuthPage.length) ? (openBlock(), createElementBlock("div", _hoisted_1, [
8815
8456
  createVNode(unref(ConfigProvider), { locale: unref(zhCN) }, {
8816
8457
  default: withCtx(() => {
8817
- var _a;
8458
+ var _a2;
8818
8459
  return [
8819
- ((_a = unref(currentRoute).meta) == null ? void 0 : _a.requiresAuth) === false ? (openBlock(), createBlock(_component_router_view, { key: 0 })) : (openBlock(), createBlock(unref(Layout), {
8460
+ ((_a2 = unref(getAppConf)) == null ? void 0 : _a2.router.unRequireAuthPage.includes(unref(currentRoute).fullPath)) ? (openBlock(), createBlock(_component_router_view, { key: 0 })) : (openBlock(), createBlock(unref(Layout), {
8820
8461
  key: 1,
8821
8462
  class: "dt-theme"
8822
8463
  }, {
@@ -8861,8 +8502,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8861
8502
  }),
8862
8503
  _: 1
8863
8504
  }, 8, ["locale"])
8864
- ]);
8505
+ ])) : createCommentVNode("", true);
8865
8506
  };
8866
8507
  }
8867
8508
  });
8868
- export { DtBaseRouter, DtForm, _sfc_main$v as DtIFrame, DtIcon, _sfc_main$G as DtModal, _sfc_main$R as DtPickIcon, index as DtTable, _sfc_main as DtTheme, FormButtons, authMounted, export2Excel, iconMounted, initComponents, initDirectives, useCurd, useForm, useModal, useModalOut, useSource, useTable };
8509
+ export { DtBaseRouter, DtForm, DtIcon, _sfc_main$v as DtIframe, _sfc_main$G as DtModal, _sfc_main$R as DtPickIcon, index as DtTable, _sfc_main as DtTheme, FormButtons, authMounted, export2Excel, iconMounted, initComponents, initDirectives, useCurd, useForm, useModal, useModalOut, useSource, useTable };
@@ -1,3 +1,5 @@
1
+ @import '../modal/index.less';
2
+
1
3
  .text-secondary{
2
4
  color: #666;
3
5
  }
@@ -1,3 +1,6 @@
1
+
2
+ // @import 'ant-design-vue/es/modal/style/index.less';
3
+
1
4
  .fullscreen-modal {
2
5
  overflow: hidden;
3
6
 
@@ -3,7 +3,8 @@
3
3
  @import './tabs/index.less';
4
4
  @import './footer/index.less';
5
5
  @import './transition.less';
6
-
6
+ @import '../components/icons/index.less';
7
+ @import '../components/container/index.less';
7
8
 
8
9
  @page-bg-color: #f0f2f5;
9
10
 
@@ -1,5 +1,4 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- activeKey: import("vue").Ref<string>;
3
2
  getShowNotice: import("vue").ComputedRef<boolean | JSX.Element | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
4
3
  [key: string]: any;
5
4
  }>>;
@@ -1,5 +1,5 @@
1
1
  declare const _sfc_main: import("vue").DefineComponent<{}, {
2
- getUserInfo: import("@dt-frames/core").UserInfo;
2
+ getUserInfo: any;
3
3
  getUserActions: import("vue").ComputedRef<import("@dt-frames/core/es/types/theme.type").UserOptions[]>;
4
4
  Popover: {
5
5
  new (...args: any[]): {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-frames/ui",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "keywords": [
5
5
  "ui",
6
6
  "dt-ui"
@@ -28,7 +28,6 @@
28
28
  "types": "./es/index.d.ts",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@iconify/iconify": "^2.1.2",
32
31
  "@vueuse/core": "^7.5.2",
33
32
  "lodash-es": "^4.17.21",
34
33
  "sortablejs": "^1.15.0",
@@ -43,8 +42,6 @@
43
42
  "devDependencies": {
44
43
  "@iconify/json": "^1.1.460",
45
44
  "@vitejs/plugin-vue": "^2.0.0",
46
- "vite": "^2.7.2",
47
- "vite-plugin-purge-icons": "^0.7.0",
48
- "vite-plugin-theme": "^0.8.6"
45
+ "vite": "^2.7.2"
49
46
  }
50
47
  }