@dt-frames/ui 1.0.20 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +10738 -0
- package/dist/index.umd.js +1 -0
- package/es/{style/components → components}/container/index.less +0 -0
- package/es/{style/components → components}/forms/index.less +0 -0
- package/es/{style/components → components}/icons/index.less +0 -0
- package/es/{style/components → components}/iframe/index.less +0 -0
- package/es/{style/components → components}/iframe/src/index.less +0 -0
- package/es/{style/components → components}/modal/index.less +0 -0
- package/es/{style/components → components}/table/index.less +0 -0
- package/es/{style/components → components}/tree/index.less +0 -0
- package/es/{style/components → components}/upload/index.less +0 -0
- package/es/index.js +52 -271
- package/es/{style/theme → theme}/footer/index.less +0 -0
- package/es/{style/theme → theme}/header/index.less +0 -0
- package/es/{style/theme → theme}/header/set-theme.less +0 -0
- package/es/{style/theme → theme}/sider/index.less +0 -0
- package/es/{style/theme → theme}/tabs/index.less +0 -0
- package/es/{style/theme → theme}/theme.less +0 -0
- package/es/{style/theme → theme}/transition.less +0 -0
- package/index.html +13 -0
- package/package.json +2 -5
- package/es/style/assets/style/index.less +0 -10
- package/es/style/assets/style/reset.less +0 -17
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/es/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
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,
|
|
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
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";
|
|
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";
|
|
6
|
+
import dayjs from "dayjs";
|
|
6
7
|
import Sortablejs from "sortablejs";
|
|
7
8
|
import * as xlsx from "xlsx";
|
|
8
9
|
import { useRouter } from "vue-router";
|
|
@@ -2001,13 +2002,6 @@ function useModalOut() {
|
|
|
2001
2002
|
throw new Error("useModal\u53EA\u80FD\u5728setup()\u6216\u8005\u51FD\u6570\u4E2D\u4F7F\u7528");
|
|
2002
2003
|
}
|
|
2003
2004
|
uid.value = uuid;
|
|
2004
|
-
onUnmounted(() => {
|
|
2005
|
-
modal.value = null;
|
|
2006
|
-
loaded.value = false;
|
|
2007
|
-
dataTransfer[unref(uid)] = null;
|
|
2008
|
-
cbTransfer[unref(uid)] = (rsp) => {
|
|
2009
|
-
};
|
|
2010
|
-
});
|
|
2011
2005
|
if (unref(loaded) && modalMethod === unref(modal))
|
|
2012
2006
|
return;
|
|
2013
2007
|
modal.value = modalMethod;
|
|
@@ -3534,213 +3528,6 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
3534
3528
|
}
|
|
3535
3529
|
var FormButtons = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$5]]);
|
|
3536
3530
|
const isArray = Array.isArray;
|
|
3537
|
-
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
3538
|
-
var dayjs_min = { exports: {} };
|
|
3539
|
-
(function(module, exports) {
|
|
3540
|
-
!function(t, e) {
|
|
3541
|
-
module.exports = e();
|
|
3542
|
-
}(commonjsGlobal, function() {
|
|
3543
|
-
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) {
|
|
3544
|
-
var r2 = String(t2);
|
|
3545
|
-
return !r2 || r2.length >= e2 ? t2 : "" + Array(e2 + 1 - r2.length).join(n2) + t2;
|
|
3546
|
-
}, g = { s: m, z: function(t2) {
|
|
3547
|
-
var e2 = -t2.utcOffset(), n2 = Math.abs(e2), r2 = Math.floor(n2 / 60), i2 = n2 % 60;
|
|
3548
|
-
return (e2 <= 0 ? "+" : "-") + m(r2, 2, "0") + ":" + m(i2, 2, "0");
|
|
3549
|
-
}, m: function t2(e2, n2) {
|
|
3550
|
-
if (e2.date() < n2.date())
|
|
3551
|
-
return -t2(n2, e2);
|
|
3552
|
-
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);
|
|
3553
|
-
return +(-(r2 + (n2 - i2) / (s2 ? i2 - u2 : u2 - i2)) || 0);
|
|
3554
|
-
}, a: function(t2) {
|
|
3555
|
-
return t2 < 0 ? Math.ceil(t2) || 0 : Math.floor(t2);
|
|
3556
|
-
}, p: function(t2) {
|
|
3557
|
-
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$/, "");
|
|
3558
|
-
}, u: function(t2) {
|
|
3559
|
-
return void 0 === t2;
|
|
3560
|
-
} }, v = "en", D = {};
|
|
3561
|
-
D[v] = M;
|
|
3562
|
-
var p = function(t2) {
|
|
3563
|
-
return t2 instanceof _;
|
|
3564
|
-
}, S = function t2(e2, n2, r2) {
|
|
3565
|
-
var i2;
|
|
3566
|
-
if (!e2)
|
|
3567
|
-
return v;
|
|
3568
|
-
if ("string" == typeof e2) {
|
|
3569
|
-
var s2 = e2.toLowerCase();
|
|
3570
|
-
D[s2] && (i2 = s2), n2 && (D[s2] = n2, i2 = s2);
|
|
3571
|
-
var u2 = e2.split("-");
|
|
3572
|
-
if (!i2 && u2.length > 1)
|
|
3573
|
-
return t2(u2[0]);
|
|
3574
|
-
} else {
|
|
3575
|
-
var a2 = e2.name;
|
|
3576
|
-
D[a2] = e2, i2 = a2;
|
|
3577
|
-
}
|
|
3578
|
-
return !r2 && i2 && (v = i2), i2 || !r2 && v;
|
|
3579
|
-
}, w = function(t2, e2) {
|
|
3580
|
-
if (p(t2))
|
|
3581
|
-
return t2.clone();
|
|
3582
|
-
var n2 = "object" == typeof e2 ? e2 : {};
|
|
3583
|
-
return n2.date = t2, n2.args = arguments, new _(n2);
|
|
3584
|
-
}, O = g;
|
|
3585
|
-
O.l = S, O.i = p, O.w = function(t2, e2) {
|
|
3586
|
-
return w(t2, { locale: e2.$L, utc: e2.$u, x: e2.$x, $offset: e2.$offset });
|
|
3587
|
-
};
|
|
3588
|
-
var _ = function() {
|
|
3589
|
-
function M2(t2) {
|
|
3590
|
-
this.$L = S(t2.locale, null, true), this.parse(t2);
|
|
3591
|
-
}
|
|
3592
|
-
var m2 = M2.prototype;
|
|
3593
|
-
return m2.parse = function(t2) {
|
|
3594
|
-
this.$d = function(t3) {
|
|
3595
|
-
var e2 = t3.date, n2 = t3.utc;
|
|
3596
|
-
if (null === e2)
|
|
3597
|
-
return new Date(NaN);
|
|
3598
|
-
if (O.u(e2))
|
|
3599
|
-
return new Date();
|
|
3600
|
-
if (e2 instanceof Date)
|
|
3601
|
-
return new Date(e2);
|
|
3602
|
-
if ("string" == typeof e2 && !/Z$/i.test(e2)) {
|
|
3603
|
-
var r2 = e2.match(l);
|
|
3604
|
-
if (r2) {
|
|
3605
|
-
var i2 = r2[2] - 1 || 0, s2 = (r2[7] || "0").substring(0, 3);
|
|
3606
|
-
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);
|
|
3607
|
-
}
|
|
3608
|
-
}
|
|
3609
|
-
return new Date(e2);
|
|
3610
|
-
}(t2), this.$x = t2.x || {}, this.init();
|
|
3611
|
-
}, m2.init = function() {
|
|
3612
|
-
var t2 = this.$d;
|
|
3613
|
-
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();
|
|
3614
|
-
}, m2.$utils = function() {
|
|
3615
|
-
return O;
|
|
3616
|
-
}, m2.isValid = function() {
|
|
3617
|
-
return !(this.$d.toString() === $);
|
|
3618
|
-
}, m2.isSame = function(t2, e2) {
|
|
3619
|
-
var n2 = w(t2);
|
|
3620
|
-
return this.startOf(e2) <= n2 && n2 <= this.endOf(e2);
|
|
3621
|
-
}, m2.isAfter = function(t2, e2) {
|
|
3622
|
-
return w(t2) < this.startOf(e2);
|
|
3623
|
-
}, m2.isBefore = function(t2, e2) {
|
|
3624
|
-
return this.endOf(e2) < w(t2);
|
|
3625
|
-
}, m2.$g = function(t2, e2, n2) {
|
|
3626
|
-
return O.u(t2) ? this[e2] : this.set(n2, t2);
|
|
3627
|
-
}, m2.unix = function() {
|
|
3628
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
3629
|
-
}, m2.valueOf = function() {
|
|
3630
|
-
return this.$d.getTime();
|
|
3631
|
-
}, m2.startOf = function(t2, e2) {
|
|
3632
|
-
var n2 = this, r2 = !!O.u(e2) || e2, h3 = O.p(t2), $2 = function(t3, e3) {
|
|
3633
|
-
var i2 = O.w(n2.$u ? Date.UTC(n2.$y, e3, t3) : new Date(n2.$y, e3, t3), n2);
|
|
3634
|
-
return r2 ? i2 : i2.endOf(a);
|
|
3635
|
-
}, l2 = function(t3, e3) {
|
|
3636
|
-
return O.w(n2.toDate()[t3].apply(n2.toDate("s"), (r2 ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(e3)), n2);
|
|
3637
|
-
}, y2 = this.$W, M3 = this.$M, m3 = this.$D, g2 = "set" + (this.$u ? "UTC" : "");
|
|
3638
|
-
switch (h3) {
|
|
3639
|
-
case c:
|
|
3640
|
-
return r2 ? $2(1, 0) : $2(31, 11);
|
|
3641
|
-
case f:
|
|
3642
|
-
return r2 ? $2(1, M3) : $2(0, M3 + 1);
|
|
3643
|
-
case o:
|
|
3644
|
-
var v2 = this.$locale().weekStart || 0, D2 = (y2 < v2 ? y2 + 7 : y2) - v2;
|
|
3645
|
-
return $2(r2 ? m3 - D2 : m3 + (6 - D2), M3);
|
|
3646
|
-
case a:
|
|
3647
|
-
case d:
|
|
3648
|
-
return l2(g2 + "Hours", 0);
|
|
3649
|
-
case u:
|
|
3650
|
-
return l2(g2 + "Minutes", 1);
|
|
3651
|
-
case s:
|
|
3652
|
-
return l2(g2 + "Seconds", 2);
|
|
3653
|
-
case i:
|
|
3654
|
-
return l2(g2 + "Milliseconds", 3);
|
|
3655
|
-
default:
|
|
3656
|
-
return this.clone();
|
|
3657
|
-
}
|
|
3658
|
-
}, m2.endOf = function(t2) {
|
|
3659
|
-
return this.startOf(t2, false);
|
|
3660
|
-
}, m2.$set = function(t2, e2) {
|
|
3661
|
-
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;
|
|
3662
|
-
if (o2 === f || o2 === c) {
|
|
3663
|
-
var y2 = this.clone().set(d, 1);
|
|
3664
|
-
y2.$d[$2](l2), y2.init(), this.$d = y2.set(d, Math.min(this.$D, y2.daysInMonth())).$d;
|
|
3665
|
-
} else
|
|
3666
|
-
$2 && this.$d[$2](l2);
|
|
3667
|
-
return this.init(), this;
|
|
3668
|
-
}, m2.set = function(t2, e2) {
|
|
3669
|
-
return this.clone().$set(t2, e2);
|
|
3670
|
-
}, m2.get = function(t2) {
|
|
3671
|
-
return this[O.p(t2)]();
|
|
3672
|
-
}, m2.add = function(r2, h3) {
|
|
3673
|
-
var d2, $2 = this;
|
|
3674
|
-
r2 = Number(r2);
|
|
3675
|
-
var l2 = O.p(h3), y2 = function(t2) {
|
|
3676
|
-
var e2 = w($2);
|
|
3677
|
-
return O.w(e2.date(e2.date() + Math.round(t2 * r2)), $2);
|
|
3678
|
-
};
|
|
3679
|
-
if (l2 === f)
|
|
3680
|
-
return this.set(f, this.$M + r2);
|
|
3681
|
-
if (l2 === c)
|
|
3682
|
-
return this.set(c, this.$y + r2);
|
|
3683
|
-
if (l2 === a)
|
|
3684
|
-
return y2(1);
|
|
3685
|
-
if (l2 === o)
|
|
3686
|
-
return y2(7);
|
|
3687
|
-
var M3 = (d2 = {}, d2[s] = e, d2[u] = n, d2[i] = t, d2)[l2] || 1, m3 = this.$d.getTime() + r2 * M3;
|
|
3688
|
-
return O.w(m3, this);
|
|
3689
|
-
}, m2.subtract = function(t2, e2) {
|
|
3690
|
-
return this.add(-1 * t2, e2);
|
|
3691
|
-
}, m2.format = function(t2) {
|
|
3692
|
-
var e2 = this, n2 = this.$locale();
|
|
3693
|
-
if (!this.isValid())
|
|
3694
|
-
return n2.invalidDate || $;
|
|
3695
|
-
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) {
|
|
3696
|
-
return t3 && (t3[n3] || t3(e2, r2)) || i3[n3].slice(0, s3);
|
|
3697
|
-
}, c2 = function(t3) {
|
|
3698
|
-
return O.s(s2 % 12 || 12, t3, "0");
|
|
3699
|
-
}, d2 = n2.meridiem || function(t3, e3, n3) {
|
|
3700
|
-
var r3 = t3 < 12 ? "AM" : "PM";
|
|
3701
|
-
return n3 ? r3.toLowerCase() : r3;
|
|
3702
|
-
}, 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 };
|
|
3703
|
-
return r2.replace(y, function(t3, e3) {
|
|
3704
|
-
return e3 || l2[t3] || i2.replace(":", "");
|
|
3705
|
-
});
|
|
3706
|
-
}, m2.utcOffset = function() {
|
|
3707
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
3708
|
-
}, m2.diff = function(r2, d2, $2) {
|
|
3709
|
-
var l2, y2 = O.p(d2), M3 = w(r2), m3 = (M3.utcOffset() - this.utcOffset()) * e, g2 = this - M3, v2 = O.m(this, M3);
|
|
3710
|
-
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);
|
|
3711
|
-
}, m2.daysInMonth = function() {
|
|
3712
|
-
return this.endOf(f).$D;
|
|
3713
|
-
}, m2.$locale = function() {
|
|
3714
|
-
return D[this.$L];
|
|
3715
|
-
}, m2.locale = function(t2, e2) {
|
|
3716
|
-
if (!t2)
|
|
3717
|
-
return this.$L;
|
|
3718
|
-
var n2 = this.clone(), r2 = S(t2, e2, true);
|
|
3719
|
-
return r2 && (n2.$L = r2), n2;
|
|
3720
|
-
}, m2.clone = function() {
|
|
3721
|
-
return O.w(this.$d, this);
|
|
3722
|
-
}, m2.toDate = function() {
|
|
3723
|
-
return new Date(this.valueOf());
|
|
3724
|
-
}, m2.toJSON = function() {
|
|
3725
|
-
return this.isValid() ? this.toISOString() : null;
|
|
3726
|
-
}, m2.toISOString = function() {
|
|
3727
|
-
return this.$d.toISOString();
|
|
3728
|
-
}, m2.toString = function() {
|
|
3729
|
-
return this.$d.toUTCString();
|
|
3730
|
-
}, M2;
|
|
3731
|
-
}(), T = _.prototype;
|
|
3732
|
-
return w.prototype = T, [["$ms", r], ["$s", i], ["$m", s], ["$H", u], ["$W", a], ["$M", f], ["$y", c], ["$D", d]].forEach(function(t2) {
|
|
3733
|
-
T[t2[1]] = function(e2) {
|
|
3734
|
-
return this.$g(e2, t2[0], t2[1]);
|
|
3735
|
-
};
|
|
3736
|
-
}), w.extend = function(t2, e2) {
|
|
3737
|
-
return t2.$i || (t2(e2, _, w), t2.$i = true), w;
|
|
3738
|
-
}, w.locale = S, w.isDayjs = p, w.unix = function(t2) {
|
|
3739
|
-
return w(1e3 * t2);
|
|
3740
|
-
}, w.en = D[v], w.Ls = D, w.p = {}, w;
|
|
3741
|
-
});
|
|
3742
|
-
})(dayjs_min);
|
|
3743
|
-
var dayjs = dayjs_min.exports;
|
|
3744
3531
|
function useFormValues({
|
|
3745
3532
|
defaultValue,
|
|
3746
3533
|
getSchema,
|
|
@@ -3825,6 +3612,7 @@ function useFormValues({
|
|
|
3825
3612
|
initDefault
|
|
3826
3613
|
};
|
|
3827
3614
|
}
|
|
3615
|
+
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
3828
3616
|
var weekday$1 = { exports: {} };
|
|
3829
3617
|
(function(module, exports) {
|
|
3830
3618
|
!function(e, t) {
|
|
@@ -7150,9 +6938,9 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
7150
6938
|
var _a;
|
|
7151
6939
|
if (props.curd && isFunction((_a = props.curd) == null ? void 0 : _a.onAdd)) {
|
|
7152
6940
|
let obj = Object.assign({}, props.formsVal.value || {}, getFormValues());
|
|
7153
|
-
validate().then((
|
|
6941
|
+
validate().then(() => {
|
|
7154
6942
|
let pro = obj.id ? props.curd.onUpdate(obj) : props.curd.onAdd(obj);
|
|
7155
|
-
pro == null ? void 0 : pro.then((
|
|
6943
|
+
pro == null ? void 0 : pro.then((rsp) => closeModal());
|
|
7156
6944
|
}).catch((err) => {
|
|
7157
6945
|
});
|
|
7158
6946
|
}
|
|
@@ -10831,7 +10619,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
10831
10619
|
var zhCn = { exports: {} };
|
|
10832
10620
|
(function(module, exports) {
|
|
10833
10621
|
!function(e, _) {
|
|
10834
|
-
module.exports = _(
|
|
10622
|
+
module.exports = _(dayjs);
|
|
10835
10623
|
}(commonjsGlobal, function(e) {
|
|
10836
10624
|
function _(e2) {
|
|
10837
10625
|
return e2 && "object" == typeof e2 && "default" in e2 ? e2 : { default: e2 };
|
|
@@ -10845,10 +10633,7 @@ var zhCn = { exports: {} };
|
|
|
10845
10633
|
return t.default.locale(d, null, true), d;
|
|
10846
10634
|
});
|
|
10847
10635
|
})(zhCn);
|
|
10848
|
-
const _hoisted_1 = {
|
|
10849
|
-
key: 0,
|
|
10850
|
-
class: "dt-theme"
|
|
10851
|
-
};
|
|
10636
|
+
const _hoisted_1 = { class: "dt-theme" };
|
|
10852
10637
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
10853
10638
|
__name: "theme",
|
|
10854
10639
|
setup(__props) {
|
|
@@ -10881,59 +10666,55 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
10881
10666
|
};
|
|
10882
10667
|
});
|
|
10883
10668
|
return (_ctx, _cache) => {
|
|
10884
|
-
var _a;
|
|
10885
10669
|
const _component_router_view = resolveComponent("router-view");
|
|
10886
|
-
return
|
|
10670
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
10887
10671
|
createVNode(unref(ConfigProvider), { locale: unref(zhCN) }, {
|
|
10888
|
-
default: withCtx(() =>
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
}))
|
|
10932
|
-
];
|
|
10933
|
-
}),
|
|
10672
|
+
default: withCtx(() => [
|
|
10673
|
+
unref(currentRoute).name && !unref(getAppConf).router.unRequireAuthPage.includes(unref(currentRoute).fullPath) ? (openBlock(), createBlock(unref(Layout), {
|
|
10674
|
+
key: 0,
|
|
10675
|
+
class: "dt-theme"
|
|
10676
|
+
}, {
|
|
10677
|
+
default: withCtx(() => [
|
|
10678
|
+
createVNode(_sfc_main$t),
|
|
10679
|
+
unref(getShowFullHeaderRef) ? (openBlock(), createBlock(_sfc_main$a, {
|
|
10680
|
+
key: 0,
|
|
10681
|
+
fixed: ""
|
|
10682
|
+
})) : createCommentVNode("", true),
|
|
10683
|
+
createVNode(unref(Layout), {
|
|
10684
|
+
class: normalizeClass(unref(layoutClass)),
|
|
10685
|
+
style: normalizeStyle(unref(layoutOption))
|
|
10686
|
+
}, {
|
|
10687
|
+
default: withCtx(() => [
|
|
10688
|
+
unref(getShowSidebar) ? (openBlock(), createBlock(_sfc_main$7, { key: 0 })) : createCommentVNode("", true),
|
|
10689
|
+
createVNode(unref(_sfc_main$U), {
|
|
10690
|
+
ref_key: "wrapperRef",
|
|
10691
|
+
ref: wrapperRef,
|
|
10692
|
+
class: normalizeClass({ "fixedWrap": unref(getFixed) })
|
|
10693
|
+
}, {
|
|
10694
|
+
default: withCtx(() => [
|
|
10695
|
+
createVNode(unref(Layout), { class: "dt-theme-main" }, {
|
|
10696
|
+
default: withCtx(() => [
|
|
10697
|
+
createVNode(_sfc_main$3),
|
|
10698
|
+
createVNode(_sfc_main$1, {
|
|
10699
|
+
style: normalizeStyle(unref(getContentStyle))
|
|
10700
|
+
}, null, 8, ["style"]),
|
|
10701
|
+
unref(getFooter) && unref(getFooter)["show"] ? (openBlock(), createBlock(_sfc_main$2, { key: 0 })) : createCommentVNode("", true)
|
|
10702
|
+
]),
|
|
10703
|
+
_: 1
|
|
10704
|
+
})
|
|
10705
|
+
]),
|
|
10706
|
+
_: 1
|
|
10707
|
+
}, 8, ["class"])
|
|
10708
|
+
]),
|
|
10709
|
+
_: 1
|
|
10710
|
+
}, 8, ["class", "style"])
|
|
10711
|
+
]),
|
|
10712
|
+
_: 1
|
|
10713
|
+
})) : (openBlock(), createBlock(_component_router_view, { key: 1 }))
|
|
10714
|
+
]),
|
|
10934
10715
|
_: 1
|
|
10935
10716
|
}, 8, ["locale"])
|
|
10936
|
-
])
|
|
10717
|
+
]);
|
|
10937
10718
|
};
|
|
10938
10719
|
}
|
|
10939
10720
|
});
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>dt-ui</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/index.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dt-frames/ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"ui",
|
|
6
6
|
"dt-ui"
|
|
@@ -28,14 +28,11 @@
|
|
|
28
28
|
"vue-router": "^4.0.12",
|
|
29
29
|
"xlsx": "^0.18.5"
|
|
30
30
|
},
|
|
31
|
-
"peerDependencies": {
|
|
32
|
-
"@dt-frames/core": "1.0.0",
|
|
33
|
-
"@dt-frames/plugins": "1.0.0"
|
|
34
|
-
},
|
|
35
31
|
"devDependencies": {
|
|
36
32
|
"@iconify/json": "^1.1.460",
|
|
37
33
|
"@vitejs/plugin-vue": "^2.2.0",
|
|
38
34
|
"vite": "^2.8.0",
|
|
35
|
+
"vite-plugin-build": "^0.6.0",
|
|
39
36
|
"vite-plugin-purge-icons": "^0.7.0",
|
|
40
37
|
"vite-plugin-theme": "^0.8.6"
|
|
41
38
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
@import './reset.less';
|
|
2
|
-
|
|
3
|
-
@import '../../theme/theme.less';
|
|
4
|
-
|
|
5
|
-
@import '../../components/container/index.less';
|
|
6
|
-
@import '../../components/modal/src/index.less';
|
|
7
|
-
@import '../../components/forms/src/index.less';
|
|
8
|
-
@import '../../components/table/src/index.less';
|
|
9
|
-
@import '../../components/icons/src/index.less';
|
|
10
|
-
@import '../../components/iframe/src/index.less';
|