@dt-frames/ui 1.0.50 → 1.0.52
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/es/index.js +26 -15
- package/es/theme/header/components/user-info.d.ts +4 -0
- package/package.json +1 -1
- package/es/components/upload/index.d.ts +0 -2
- package/es/components/upload/index.less +0 -37
- package/es/components/upload/src/helper.d.ts +0 -5
- package/es/components/upload/src/props.d.ts +0 -47
- package/es/components/upload/src/upload.d.ts +0 -1794
- package/es/style/assets/style/index.less +0 -10
- package/es/style/assets/style/reset.less +0 -17
- package/es/style/components/container/index.less +0 -85
- package/es/style/components/forms/index.less +0 -107
- package/es/style/components/icons/index.less +0 -108
- package/es/style/components/iframe/index.less +0 -3
- package/es/style/components/iframe/src/index.less +0 -3
- package/es/style/components/modal/index.less +0 -60
- package/es/style/components/table/index.less +0 -217
- package/es/style/components/tree/index.less +0 -53
- package/es/style/theme/footer/index.less +0 -16
- package/es/style/theme/header/index.less +0 -451
- package/es/style/theme/header/set-theme.less +0 -68
- package/es/style/theme/sider/index.less +0 -212
- package/es/style/theme/tabs/index.less +0 -165
- package/es/style/theme/theme.less +0 -73
- package/es/style/theme/transition.less +0 -105
- package/es/theme/content/index.d.ts +0 -44
- package/es/theme/header/components/setting-theme.d.ts +0 -2604
- package/es/theme/tabs/components/TabRedo.d.ts +0 -64
- package/es/theme/tabs/index.d.ts +0 -1429
package/es/index.js
CHANGED
|
@@ -3761,14 +3761,20 @@ function useFormEvents({
|
|
|
3761
3761
|
console.error("\u6240\u6709\u7684\u5143\u7D20\u90FD\u5FC5\u987B\u8BBE\u7F6Ename\u5C5E\u6027");
|
|
3762
3762
|
return;
|
|
3763
3763
|
}
|
|
3764
|
+
let schema = [];
|
|
3764
3765
|
updateItems.forEach((it) => {
|
|
3766
|
+
let isMerge = false;
|
|
3765
3767
|
unref(getSchema).forEach((val) => {
|
|
3766
3768
|
if (val.name === it.name) {
|
|
3767
|
-
deepMerge(val, it);
|
|
3769
|
+
const newSchema = deepMerge(val, it);
|
|
3770
|
+
schema.push(newSchema);
|
|
3771
|
+
isMerge = true;
|
|
3768
3772
|
}
|
|
3769
3773
|
});
|
|
3774
|
+
if (!isMerge)
|
|
3775
|
+
schema.push(it);
|
|
3770
3776
|
});
|
|
3771
|
-
schemaRef.value = uniqBy(
|
|
3777
|
+
schemaRef.value = uniqBy(schema, "name");
|
|
3772
3778
|
}
|
|
3773
3779
|
function resetSchema(data) {
|
|
3774
3780
|
let updateItems = [];
|
|
@@ -5645,7 +5651,7 @@ function useColumns(propsRef, getPaginationRef, tableElRef) {
|
|
|
5645
5651
|
var _a, _b;
|
|
5646
5652
|
let els = (_a = unref(tableElRef)) == null ? void 0 : _a.$el.querySelectorAll(".__column");
|
|
5647
5653
|
let allWidth = 0;
|
|
5648
|
-
for (let i = 0; i < els.length; i++) {
|
|
5654
|
+
for (let i = 0; i < (els == null ? void 0 : els.length); i++) {
|
|
5649
5655
|
allWidth += (_b = els[i].offsetWidth) != null ? _b : 0;
|
|
5650
5656
|
}
|
|
5651
5657
|
let columnAllWidth = 0, noWidthNum = 0;
|
|
@@ -5818,7 +5824,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5818
5824
|
columns.splice(oldIndex, 1);
|
|
5819
5825
|
}
|
|
5820
5826
|
plainSortOptions.value = columns;
|
|
5821
|
-
setColumns(columns);
|
|
5827
|
+
setColumns(columns.map((col) => col.value).filter((value) => state.checkedList.includes(value)));
|
|
5822
5828
|
}
|
|
5823
5829
|
});
|
|
5824
5830
|
sortableOrder = sortable.toArray();
|
|
@@ -6940,7 +6946,7 @@ function useDownload(exportUrl, exportName) {
|
|
|
6940
6946
|
};
|
|
6941
6947
|
}
|
|
6942
6948
|
function useSource(opt) {
|
|
6943
|
-
var _a, _b, _c, _d;
|
|
6949
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6944
6950
|
const { t } = useI18n("UI");
|
|
6945
6951
|
const loading = {
|
|
6946
6952
|
onSearch: ref(false),
|
|
@@ -6967,7 +6973,7 @@ function useSource(opt) {
|
|
|
6967
6973
|
const { appConf } = useAppStore();
|
|
6968
6974
|
const pagination = ref({
|
|
6969
6975
|
current: ((_b = (_a = appConf == null ? void 0 : appConf.ui) == null ? void 0 : _a.table) == null ? void 0 : _b.defaultPageNo) || 1,
|
|
6970
|
-
pageSize: ((_d = (_c = appConf == null ? void 0 : appConf.ui) == null ? void 0 : _c.table) == null ? void 0 : _d.defaultPageSize) ||
|
|
6976
|
+
pageSize: ((_d = (_c = appConf == null ? void 0 : appConf.ui) == null ? void 0 : _c.table) == null ? void 0 : _d.defaultPageSize) || 20,
|
|
6971
6977
|
total: 0
|
|
6972
6978
|
});
|
|
6973
6979
|
const dataSource = ref([]);
|
|
@@ -6975,7 +6981,7 @@ function useSource(opt) {
|
|
|
6975
6981
|
entityDTO: {},
|
|
6976
6982
|
pageDTO: {
|
|
6977
6983
|
pageNo: 0,
|
|
6978
|
-
pageSize:
|
|
6984
|
+
pageSize: (_f = (_e = appConf == null ? void 0 : appConf.ui) == null ? void 0 : _e.table) == null ? void 0 : _f.defaultPageSize
|
|
6979
6985
|
},
|
|
6980
6986
|
orderDTOs: []
|
|
6981
6987
|
});
|
|
@@ -7016,7 +7022,7 @@ function useSource(opt) {
|
|
|
7016
7022
|
const { fetch } = useFetch(queryPage, baseUrl);
|
|
7017
7023
|
loading.onQuerypage.value = true;
|
|
7018
7024
|
fetch(toRaw(baseData)).then((rsp) => {
|
|
7019
|
-
var _a2, _b2, _c2;
|
|
7025
|
+
var _a2, _b2, _c2, _d2, _e2;
|
|
7020
7026
|
if (isArray$1(rsp)) {
|
|
7021
7027
|
dataSource.value.splice(0, dataSource.value.length, ...rsp);
|
|
7022
7028
|
return;
|
|
@@ -7025,8 +7031,8 @@ function useSource(opt) {
|
|
|
7025
7031
|
dataSource.value.splice(0, dataSource.value.length, ...records);
|
|
7026
7032
|
pagination.value = {
|
|
7027
7033
|
current: ((_a2 = pageDTO == null ? void 0 : pageDTO.pageNo) != null ? _a2 : 0) + 1,
|
|
7028
|
-
pageSize: (
|
|
7029
|
-
total: (
|
|
7034
|
+
pageSize: (_d2 = pageDTO == null ? void 0 : pageDTO.pageSize) != null ? _d2 : (_c2 = (_b2 = appConf == null ? void 0 : appConf.ui) == null ? void 0 : _b2.table) == null ? void 0 : _c2.defaultPageSize,
|
|
7035
|
+
total: (_e2 = pageDTO == null ? void 0 : pageDTO.totalCount) != null ? _e2 : 0
|
|
7030
7036
|
};
|
|
7031
7037
|
}).finally(() => {
|
|
7032
7038
|
loading.onSearch.value = false;
|
|
@@ -8957,11 +8963,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8957
8963
|
const menuList = ref([]);
|
|
8958
8964
|
const router = useRouter();
|
|
8959
8965
|
const filter2 = ref("");
|
|
8966
|
+
const visible = ref(false);
|
|
8960
8967
|
const { getShowSearch, getIsZH } = useHeader();
|
|
8961
8968
|
const isUseDef = computed(() => {
|
|
8962
8969
|
return isBoolean(getShowSearch.value);
|
|
8963
8970
|
});
|
|
8964
8971
|
function visibleChange(e) {
|
|
8972
|
+
visible.value = e;
|
|
8965
8973
|
if (e) {
|
|
8966
8974
|
filterMenu();
|
|
8967
8975
|
} else {
|
|
@@ -8971,25 +8979,28 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
8971
8979
|
function filterMenu() {
|
|
8972
8980
|
menuList.value = getFilterMenu(filter2.value, true);
|
|
8973
8981
|
}
|
|
8974
|
-
function
|
|
8982
|
+
function goPage(url) {
|
|
8975
8983
|
router.push(url);
|
|
8984
|
+
visible.value = false;
|
|
8976
8985
|
setTimeout(() => {
|
|
8977
8986
|
filter2.value = "";
|
|
8978
8987
|
menuList.value = [];
|
|
8979
|
-
});
|
|
8988
|
+
}, 500);
|
|
8980
8989
|
}
|
|
8981
8990
|
return (_ctx, _cache) => {
|
|
8982
8991
|
return unref(isUseDef) ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
8983
8992
|
createVNode(unref(Popover), {
|
|
8984
8993
|
placement: "bottom",
|
|
8985
8994
|
overlayClassName: "menu_search__popover",
|
|
8986
|
-
trigger: "
|
|
8995
|
+
trigger: "click",
|
|
8996
|
+
visible: visible.value,
|
|
8997
|
+
"onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
|
|
8987
8998
|
onVisibleChange: visibleChange
|
|
8988
8999
|
}, {
|
|
8989
9000
|
content: withCtx(() => [
|
|
8990
9001
|
(openBlock(true), createElementBlock(Fragment, null, renderList(menuList.value, (menu) => {
|
|
8991
9002
|
return openBlock(), createElementBlock("p", {
|
|
8992
|
-
onClick: ($event) =>
|
|
9003
|
+
onClick: ($event) => goPage(menu.url)
|
|
8993
9004
|
}, toDisplayString(unref(getIsZH) ? menu.label : menu.enLabel), 9, _hoisted_2$3);
|
|
8994
9005
|
}), 256)),
|
|
8995
9006
|
!menuList.value.length ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
|
|
@@ -9008,7 +9019,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
9008
9019
|
}, null, 8, ["value", "placeholder"])
|
|
9009
9020
|
]),
|
|
9010
9021
|
_: 1
|
|
9011
|
-
})
|
|
9022
|
+
}, 8, ["visible"])
|
|
9012
9023
|
])) : (openBlock(), createBlock(unref(getShowSearch), { key: 1 }));
|
|
9013
9024
|
};
|
|
9014
9025
|
}
|
|
@@ -14,8 +14,10 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
14
14
|
router?: {
|
|
15
15
|
useHashRoute?: boolean;
|
|
16
16
|
unRequireAuthPage?: string[];
|
|
17
|
+
whiteUrls?: string[];
|
|
17
18
|
useAuthRoute?: boolean;
|
|
18
19
|
strictRoute?: false;
|
|
20
|
+
defaultRedictPath?: string;
|
|
19
21
|
virtualRoute?: ({
|
|
20
22
|
component: import("vue").FunctionalComponent<any, any> | {
|
|
21
23
|
new (...args: any[]): any;
|
|
@@ -7805,6 +7807,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
7805
7807
|
locales?: {
|
|
7806
7808
|
show?: boolean;
|
|
7807
7809
|
defaultLocale?: import("@dt-frames/core").Language | "navigator";
|
|
7810
|
+
message?: (lang: import("@dt-frames/core").Language) => Promise<import("@dt-frames/core").Recordable<any>>;
|
|
7808
7811
|
};
|
|
7809
7812
|
ui?: {
|
|
7810
7813
|
global?: {
|
|
@@ -7857,6 +7860,7 @@ declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
|
7857
7860
|
params?: string | import("@dt-frames/core").Recordable<any>;
|
|
7858
7861
|
listName?: string;
|
|
7859
7862
|
label?: string | ((item: import("@dt-frames/core").Recordable<any>) => string);
|
|
7863
|
+
enLabel?: string | ((item: import("@dt-frames/core").Recordable<any>) => string);
|
|
7860
7864
|
value?: string;
|
|
7861
7865
|
numberToString?: boolean;
|
|
7862
7866
|
setOptions?: (list: any[]) => any[];
|
package/package.json
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
.dt-file {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
td.orange{
|
|
5
|
-
color: orange;
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.file-header{
|
|
10
|
-
display: flex;
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
justify-content: space-between;
|
|
13
|
-
&>div{
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
button{
|
|
17
|
-
margin-right: 10px;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.file-type-tips{
|
|
23
|
-
line-height: 24px;
|
|
24
|
-
padding: 5px 10px;
|
|
25
|
-
font-size: 12px;
|
|
26
|
-
display: flex;
|
|
27
|
-
margin: 10px 0;
|
|
28
|
-
border: 1px dashed @primary-color;
|
|
29
|
-
cursor: inherit;
|
|
30
|
-
span i{
|
|
31
|
-
color: @primary-color;
|
|
32
|
-
margin-right: 7px;
|
|
33
|
-
}
|
|
34
|
-
i{
|
|
35
|
-
color: #666;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Ref } from "vue";
|
|
2
|
-
export declare function useHelpers(acceptRef: Ref<string[]>, helpTextRef: Ref<string | boolean>, maxNumberRef: Ref<number>, maxSizeRef: Ref<number>): {
|
|
3
|
-
getStringAccept: import("vue").ComputedRef<string>;
|
|
4
|
-
getHelpText: import("vue").ComputedRef<string | boolean>;
|
|
5
|
-
};
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Fn } from "@vueuse/core";
|
|
2
|
-
import { PropType } from "vue";
|
|
3
|
-
export declare type FileType = {
|
|
4
|
-
fileName: String;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
};
|
|
7
|
-
export declare const basicUploadProps: {
|
|
8
|
-
uploadText: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default: string;
|
|
11
|
-
};
|
|
12
|
-
showTemplateDownload: {
|
|
13
|
-
type: BooleanConstructor;
|
|
14
|
-
default: boolean;
|
|
15
|
-
};
|
|
16
|
-
templateDownload: {
|
|
17
|
-
type: PropType<Fn>;
|
|
18
|
-
default: () => void;
|
|
19
|
-
};
|
|
20
|
-
helpText: {
|
|
21
|
-
type: PropType<string | boolean>;
|
|
22
|
-
default: string;
|
|
23
|
-
};
|
|
24
|
-
multiple: {
|
|
25
|
-
type: PropType<boolean>;
|
|
26
|
-
default: boolean;
|
|
27
|
-
};
|
|
28
|
-
accept: {
|
|
29
|
-
type: PropType<string[]>;
|
|
30
|
-
default: () => any[];
|
|
31
|
-
};
|
|
32
|
-
maxSize: {
|
|
33
|
-
type: PropType<number>;
|
|
34
|
-
};
|
|
35
|
-
maxNumber: {
|
|
36
|
-
type: PropType<number>;
|
|
37
|
-
default: number;
|
|
38
|
-
};
|
|
39
|
-
defaultFiles: {
|
|
40
|
-
type: PropType<FileType[]>;
|
|
41
|
-
default: any[];
|
|
42
|
-
};
|
|
43
|
-
showView: {
|
|
44
|
-
type: BooleanConstructor;
|
|
45
|
-
default: boolean;
|
|
46
|
-
};
|
|
47
|
-
};
|