@peng_kai/kit 0.2.0-beta.22 → 0.2.0-beta.24
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/admin/components/filter/src/FilterDrawer.vue +153 -153
- package/admin/components/scroll-nav/index.ts +1 -1
- package/admin/components/scroll-nav/src/ScrollNav.vue +59 -59
- package/admin/components/text/index.ts +13 -13
- package/admin/components/text/src/Amount.vue +121 -121
- package/admin/components/text/src/Duration.vue +26 -26
- package/admin/components/text/src/Hash.vue +51 -51
- package/admin/components/text/src/createTagGetter.ts +13 -13
- package/admin/components/upload/index.ts +1 -0
- package/admin/components/upload/src/PictureCardUpload.vue +1 -1
- package/admin/components/upload/src/helpers.ts +37 -0
- package/admin/permission/vuePlugin.ts +1 -0
- package/admin/route-guards/index.ts +3 -3
- package/admin/route-guards/pageProgress.ts +27 -27
- package/admin/stores/createUsePageStore.ts +1 -3
- package/admin/styles/classCover.scss +17 -0
- package/admin/styles/globalCover.scss +54 -54
- package/antd/components/InputNumberRange.vue +59 -59
- package/antd/directives/formLabelAlign.ts +36 -36
- package/antd/hooks/useAntdDrawer.ts +73 -73
- package/package.json +92 -92
- package/request/helpers.ts +68 -68
- package/request/interceptors/toLogin.ts +26 -26
- package/request/type.d.ts +92 -92
- package/stylelint.config.cjs +7 -7
- package/tsconfig.json +50 -50
- package/vite/index.mjs +34 -8
- package/vue/components/infinite-query/index.ts +1 -1
- package/vue/components/infinite-query/src/InfiniteQuery.vue +199 -199
- package/vue/components/infinite-query/src/useCreateTrigger.ts +39 -39
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
// table 组件头部圆角设为 0
|
|
3
|
-
.ant-table-wrapper {
|
|
4
|
-
.ant-table .ant-table-header,
|
|
5
|
-
table,
|
|
6
|
-
.ant-table-container table > thead > tr:first-child > *:first-child,
|
|
7
|
-
.ant-table-container table > thead > tr:first-child > *:last-child {
|
|
8
|
-
border-radius: 0;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.ant-pagination {
|
|
12
|
-
margin-bottom: 0;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// 隐藏在 sticky 模式下的滚动条
|
|
18
|
-
.ant-table-sticky-scroll {
|
|
19
|
-
display: none;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// 卡片
|
|
23
|
-
.ant-card .ant-card-actions > li > span {
|
|
24
|
-
cursor: inherit;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Tab 溢出出现下列框时
|
|
28
|
-
.ant-tabs-dropdown-menu-title-content {
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: space-between;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// 表格
|
|
35
|
-
.ant-table-wrapper {
|
|
36
|
-
.ant-table-row-expand-icon-collapsed::before {
|
|
37
|
-
height: 1.5px;
|
|
38
|
-
}
|
|
39
|
-
.ant-table-row-expand-icon-collapsed::after {
|
|
40
|
-
width: 1.5px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ant-drawer {
|
|
45
|
-
&:focus {
|
|
46
|
-
outline: none;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&.ant-drawer-bottom .ant-drawer-content {
|
|
50
|
-
border-top-left-radius: 8px;
|
|
51
|
-
border-top-right-radius: 8px;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
:root {
|
|
2
|
+
// table 组件头部圆角设为 0
|
|
3
|
+
.ant-table-wrapper {
|
|
4
|
+
.ant-table .ant-table-header,
|
|
5
|
+
table,
|
|
6
|
+
.ant-table-container table > thead > tr:first-child > *:first-child,
|
|
7
|
+
.ant-table-container table > thead > tr:first-child > *:last-child {
|
|
8
|
+
border-radius: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ant-pagination {
|
|
12
|
+
margin-bottom: 0;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// 隐藏在 sticky 模式下的滚动条
|
|
18
|
+
.ant-table-sticky-scroll {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 卡片
|
|
23
|
+
.ant-card .ant-card-actions > li > span {
|
|
24
|
+
cursor: inherit;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Tab 溢出出现下列框时
|
|
28
|
+
.ant-tabs-dropdown-menu-title-content {
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 表格
|
|
35
|
+
.ant-table-wrapper {
|
|
36
|
+
.ant-table-row-expand-icon-collapsed::before {
|
|
37
|
+
height: 1.5px;
|
|
38
|
+
}
|
|
39
|
+
.ant-table-row-expand-icon-collapsed::after {
|
|
40
|
+
width: 1.5px;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.ant-drawer {
|
|
45
|
+
&:focus {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.ant-drawer-bottom .ant-drawer-content {
|
|
50
|
+
border-top-left-radius: 8px;
|
|
51
|
+
border-top-right-radius: 8px;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
<script lang="ts">
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
import { InputNumber as AInputNumber, Form } from 'ant-design-vue';
|
|
4
|
-
</script>
|
|
5
|
-
|
|
6
|
-
<script setup lang="ts">
|
|
7
|
-
const props = withDefaults(
|
|
8
|
-
defineProps<{
|
|
9
|
-
value: [number | undefined, number | undefined]
|
|
10
|
-
placeholder?: [string, string]
|
|
11
|
-
min?: number
|
|
12
|
-
max?: number
|
|
13
|
-
}>(),
|
|
14
|
-
{
|
|
15
|
-
min: Number.NEGATIVE_INFINITY,
|
|
16
|
-
max: Number.POSITIVE_INFINITY,
|
|
17
|
-
},
|
|
18
|
-
);
|
|
19
|
-
const emits = defineEmits<{
|
|
20
|
-
(e: 'update:value', value: typeof props.value): void
|
|
21
|
-
}>();
|
|
22
|
-
|
|
23
|
-
const formItemContext = Form.useInjectFormItemContext();
|
|
24
|
-
const minValue = computed({
|
|
25
|
-
get() {
|
|
26
|
-
return props.value[0];
|
|
27
|
-
},
|
|
28
|
-
set(value) {
|
|
29
|
-
updateValue(value, maxValue.value);
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
const maxValue = computed({
|
|
33
|
-
get() {
|
|
34
|
-
return props.value[1];
|
|
35
|
-
},
|
|
36
|
-
set(value) {
|
|
37
|
-
updateValue(minValue.value, value);
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
function updateValue(...args: typeof props.value) {
|
|
42
|
-
emits('update:value', args.sort());
|
|
43
|
-
formItemContext.onFieldChange();
|
|
44
|
-
}
|
|
45
|
-
</script>
|
|
46
|
-
|
|
47
|
-
<template>
|
|
48
|
-
<div class="flex items-center">
|
|
49
|
-
<AInputNumber
|
|
50
|
-
v-model:value="minValue" class="w-full" :min="props.min"
|
|
51
|
-
:max="props.max" :placeholder="props.placeholder?.[0]"
|
|
52
|
-
/>
|
|
53
|
-
<span> - </span>
|
|
54
|
-
<AInputNumber
|
|
55
|
-
v-model:value="maxValue" class="w-full" :min="props.min"
|
|
56
|
-
:max="props.max" :placeholder="props.placeholder?.[1]"
|
|
57
|
-
/>
|
|
58
|
-
</div>
|
|
59
|
-
</template>
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import { computed } from 'vue';
|
|
3
|
+
import { InputNumber as AInputNumber, Form } from 'ant-design-vue';
|
|
4
|
+
</script>
|
|
5
|
+
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
const props = withDefaults(
|
|
8
|
+
defineProps<{
|
|
9
|
+
value: [number | undefined, number | undefined]
|
|
10
|
+
placeholder?: [string, string]
|
|
11
|
+
min?: number
|
|
12
|
+
max?: number
|
|
13
|
+
}>(),
|
|
14
|
+
{
|
|
15
|
+
min: Number.NEGATIVE_INFINITY,
|
|
16
|
+
max: Number.POSITIVE_INFINITY,
|
|
17
|
+
},
|
|
18
|
+
);
|
|
19
|
+
const emits = defineEmits<{
|
|
20
|
+
(e: 'update:value', value: typeof props.value): void
|
|
21
|
+
}>();
|
|
22
|
+
|
|
23
|
+
const formItemContext = Form.useInjectFormItemContext();
|
|
24
|
+
const minValue = computed({
|
|
25
|
+
get() {
|
|
26
|
+
return props.value[0];
|
|
27
|
+
},
|
|
28
|
+
set(value) {
|
|
29
|
+
updateValue(value, maxValue.value);
|
|
30
|
+
},
|
|
31
|
+
});
|
|
32
|
+
const maxValue = computed({
|
|
33
|
+
get() {
|
|
34
|
+
return props.value[1];
|
|
35
|
+
},
|
|
36
|
+
set(value) {
|
|
37
|
+
updateValue(minValue.value, value);
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
function updateValue(...args: typeof props.value) {
|
|
42
|
+
emits('update:value', args.sort());
|
|
43
|
+
formItemContext.onFieldChange();
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<div class="flex items-center">
|
|
49
|
+
<AInputNumber
|
|
50
|
+
v-model:value="minValue" class="w-full" :min="props.min"
|
|
51
|
+
:max="props.max" :placeholder="props.placeholder?.[0]"
|
|
52
|
+
/>
|
|
53
|
+
<span> - </span>
|
|
54
|
+
<AInputNumber
|
|
55
|
+
v-model:value="maxValue" class="w-full" :min="props.min"
|
|
56
|
+
:max="props.max" :placeholder="props.placeholder?.[1]"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { App } from 'vue';
|
|
2
|
-
|
|
3
|
-
export function formLabelAlign(app: App) {
|
|
4
|
-
const directiveName = 'antd-form-label-align';
|
|
5
|
-
const resizeObserverKey = `${directiveName}@resizeObserver`;
|
|
6
|
-
|
|
7
|
-
function init(el: HTMLElement) {
|
|
8
|
-
const labels = el.querySelectorAll('.ant-form-item .ant-form-item-label');
|
|
9
|
-
const resizeObserver = new ResizeObserver((entries) => {
|
|
10
|
-
const widths = entries.map(e => e.borderBoxSize?.[0]?.inlineSize ?? 0);
|
|
11
|
-
const maxWidth = Math.max(...widths);
|
|
12
|
-
|
|
13
|
-
if (maxWidth <= 0)
|
|
14
|
-
return;
|
|
15
|
-
|
|
16
|
-
el.style.setProperty('--max-label-width', `${maxWidth}px`);
|
|
17
|
-
entries.forEach((e) => {
|
|
18
|
-
const target = e.target as HTMLElement;
|
|
19
|
-
target.style.setProperty('width', 'var(--max-label-width)');
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
Array.from(labels).forEach(label => resizeObserver.observe(label));
|
|
24
|
-
|
|
25
|
-
return resizeObserver;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
app.directive(directiveName, {
|
|
29
|
-
mounted(el: HTMLElement) {
|
|
30
|
-
(el as any)[resizeObserverKey] = init(el);
|
|
31
|
-
},
|
|
32
|
-
updated(el) {
|
|
33
|
-
(el as any)[resizeObserverKey] = init(el);
|
|
34
|
-
},
|
|
35
|
-
});
|
|
36
|
-
}
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
|
|
3
|
+
export function formLabelAlign(app: App) {
|
|
4
|
+
const directiveName = 'antd-form-label-align';
|
|
5
|
+
const resizeObserverKey = `${directiveName}@resizeObserver`;
|
|
6
|
+
|
|
7
|
+
function init(el: HTMLElement) {
|
|
8
|
+
const labels = el.querySelectorAll('.ant-form-item .ant-form-item-label');
|
|
9
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
10
|
+
const widths = entries.map(e => e.borderBoxSize?.[0]?.inlineSize ?? 0);
|
|
11
|
+
const maxWidth = Math.max(...widths);
|
|
12
|
+
|
|
13
|
+
if (maxWidth <= 0)
|
|
14
|
+
return;
|
|
15
|
+
|
|
16
|
+
el.style.setProperty('--max-label-width', `${maxWidth}px`);
|
|
17
|
+
entries.forEach((e) => {
|
|
18
|
+
const target = e.target as HTMLElement;
|
|
19
|
+
target.style.setProperty('width', 'var(--max-label-width)');
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
Array.from(labels).forEach(label => resizeObserver.observe(label));
|
|
24
|
+
|
|
25
|
+
return resizeObserver;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
app.directive(directiveName, {
|
|
29
|
+
mounted(el: HTMLElement) {
|
|
30
|
+
(el as any)[resizeObserverKey] = init(el);
|
|
31
|
+
},
|
|
32
|
+
updated(el) {
|
|
33
|
+
(el as any)[resizeObserverKey] = init(el);
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
import { Button as AButton, Drawer as ADrawer, Space as ASpace } from 'ant-design-vue';
|
|
2
|
-
import { defineComponent, h, isProxy, reactive, toRef, toRefs } from 'vue';
|
|
3
|
-
import type { Component } from 'vue';
|
|
4
|
-
import type { ButtonProps, DrawerProps } from 'ant-design-vue';
|
|
5
|
-
import type { ComponentProps } from 'vue-component-type-helpers';
|
|
6
|
-
import type { Writable } from 'type-fest';
|
|
7
|
-
import { useComponentRef } from '../../vue';
|
|
8
|
-
|
|
9
|
-
const defaultDrawerProps: DrawerProps = { open: false, destroyOnClose: true, rootClassName: 'antd-cover__basic-drawer' };
|
|
10
|
-
|
|
11
|
-
interface IComponentConfig<Comp extends Component> {
|
|
12
|
-
is: Comp
|
|
13
|
-
props?: Writable<ComponentProps<Comp>>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export function useAntdDrawer<Comp extends Component>(
|
|
17
|
-
comp: IComponentConfig<Comp> | Comp,
|
|
18
|
-
drawerProps = defaultDrawerProps,
|
|
19
|
-
) {
|
|
20
|
-
const _comp = ({ props: {}, ...((comp as any)?.is ? comp : { is: comp }) }) as Required<IComponentConfig<Comp>>;
|
|
21
|
-
const compProps = reactive(_comp.props);
|
|
22
|
-
const compRef = useComponentRef(_comp.is);
|
|
23
|
-
const _drawerProps: DrawerProps = reactive({
|
|
24
|
-
...defaultDrawerProps,
|
|
25
|
-
...isProxy(drawerProps) ? toRefs(drawerProps) : drawerProps,
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
const open = (newBodyProps?: Partial<typeof compProps>, newAntdModalProps?: Omit<Partial<DrawerProps>, 'open'>) => {
|
|
29
|
-
Object.assign(_drawerProps, newAntdModalProps);
|
|
30
|
-
Object.assign(compProps, newBodyProps);
|
|
31
|
-
_drawerProps.open = true;
|
|
32
|
-
};
|
|
33
|
-
const close = () => {
|
|
34
|
-
_drawerProps.open = false;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
const DrawerFooter = defineComponent({
|
|
38
|
-
setup() {
|
|
39
|
-
const cancelBtnProps: ButtonProps = reactive({ onClick: close });
|
|
40
|
-
const confirmBtnProps: ButtonProps = reactive({
|
|
41
|
-
type: 'primary',
|
|
42
|
-
loading: toRef(() => (compRef as any)?.loading),
|
|
43
|
-
onClick: () => (compRef as any)?.confirm?.(),
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
return { cancelBtnProps, confirmBtnProps };
|
|
47
|
-
},
|
|
48
|
-
render() {
|
|
49
|
-
const { cancelBtnProps, confirmBtnProps } = this;
|
|
50
|
-
|
|
51
|
-
return h(ASpace, {}, () => [
|
|
52
|
-
h(AButton, cancelBtnProps, () => '取消'),
|
|
53
|
-
h(AButton, confirmBtnProps, () => '确定'),
|
|
54
|
-
]);
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
const PresetComponent = defineComponent({
|
|
58
|
-
render() {
|
|
59
|
-
return h(ADrawer, _drawerProps, {
|
|
60
|
-
default: () => h(_comp.is, compProps as any),
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
_drawerProps.footer = _drawerProps.footer === undefined ? h(DrawerFooter) : _drawerProps.footer;
|
|
66
|
-
_drawerProps['onUpdate:open'] = (visiable) => {
|
|
67
|
-
_drawerProps.open = visiable;
|
|
68
|
-
};
|
|
69
|
-
(compProps as any).ref = compRef;
|
|
70
|
-
(compProps as any).onClose = close;
|
|
71
|
-
|
|
72
|
-
return { PresetComponent, drawerProps: _drawerProps, open, close };
|
|
73
|
-
}
|
|
1
|
+
import { Button as AButton, Drawer as ADrawer, Space as ASpace } from 'ant-design-vue';
|
|
2
|
+
import { defineComponent, h, isProxy, reactive, toRef, toRefs } from 'vue';
|
|
3
|
+
import type { Component } from 'vue';
|
|
4
|
+
import type { ButtonProps, DrawerProps } from 'ant-design-vue';
|
|
5
|
+
import type { ComponentProps } from 'vue-component-type-helpers';
|
|
6
|
+
import type { Writable } from 'type-fest';
|
|
7
|
+
import { useComponentRef } from '../../vue';
|
|
8
|
+
|
|
9
|
+
const defaultDrawerProps: DrawerProps = { open: false, destroyOnClose: true, rootClassName: 'antd-cover__basic-drawer' };
|
|
10
|
+
|
|
11
|
+
interface IComponentConfig<Comp extends Component> {
|
|
12
|
+
is: Comp
|
|
13
|
+
props?: Writable<ComponentProps<Comp>>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function useAntdDrawer<Comp extends Component>(
|
|
17
|
+
comp: IComponentConfig<Comp> | Comp,
|
|
18
|
+
drawerProps = defaultDrawerProps,
|
|
19
|
+
) {
|
|
20
|
+
const _comp = ({ props: {}, ...((comp as any)?.is ? comp : { is: comp }) }) as Required<IComponentConfig<Comp>>;
|
|
21
|
+
const compProps = reactive(_comp.props);
|
|
22
|
+
const compRef = useComponentRef(_comp.is);
|
|
23
|
+
const _drawerProps: DrawerProps = reactive({
|
|
24
|
+
...defaultDrawerProps,
|
|
25
|
+
...isProxy(drawerProps) ? toRefs(drawerProps) : drawerProps,
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
const open = (newBodyProps?: Partial<typeof compProps>, newAntdModalProps?: Omit<Partial<DrawerProps>, 'open'>) => {
|
|
29
|
+
Object.assign(_drawerProps, newAntdModalProps);
|
|
30
|
+
Object.assign(compProps, newBodyProps);
|
|
31
|
+
_drawerProps.open = true;
|
|
32
|
+
};
|
|
33
|
+
const close = () => {
|
|
34
|
+
_drawerProps.open = false;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const DrawerFooter = defineComponent({
|
|
38
|
+
setup() {
|
|
39
|
+
const cancelBtnProps: ButtonProps = reactive({ onClick: close });
|
|
40
|
+
const confirmBtnProps: ButtonProps = reactive({
|
|
41
|
+
type: 'primary',
|
|
42
|
+
loading: toRef(() => (compRef as any)?.loading),
|
|
43
|
+
onClick: () => (compRef as any)?.confirm?.(),
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
return { cancelBtnProps, confirmBtnProps };
|
|
47
|
+
},
|
|
48
|
+
render() {
|
|
49
|
+
const { cancelBtnProps, confirmBtnProps } = this;
|
|
50
|
+
|
|
51
|
+
return h(ASpace, {}, () => [
|
|
52
|
+
h(AButton, cancelBtnProps, () => '取消'),
|
|
53
|
+
h(AButton, confirmBtnProps, () => '确定'),
|
|
54
|
+
]);
|
|
55
|
+
},
|
|
56
|
+
});
|
|
57
|
+
const PresetComponent = defineComponent({
|
|
58
|
+
render() {
|
|
59
|
+
return h(ADrawer, _drawerProps, {
|
|
60
|
+
default: () => h(_comp.is, compProps as any),
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
_drawerProps.footer = _drawerProps.footer === undefined ? h(DrawerFooter) : _drawerProps.footer;
|
|
66
|
+
_drawerProps['onUpdate:open'] = (visiable) => {
|
|
67
|
+
_drawerProps.open = visiable;
|
|
68
|
+
};
|
|
69
|
+
(compProps as any).ref = compRef;
|
|
70
|
+
(compProps as any).onClose = close;
|
|
71
|
+
|
|
72
|
+
return { PresetComponent, drawerProps: _drawerProps, open, close };
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,92 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@peng_kai/kit",
|
|
3
|
-
"type": "module",
|
|
4
|
-
"version": "0.2.0-beta.
|
|
5
|
-
"description": "",
|
|
6
|
-
"author": "",
|
|
7
|
-
"license": "ISC",
|
|
8
|
-
"keywords": [],
|
|
9
|
-
"main": "index.js",
|
|
10
|
-
"scripts": {
|
|
11
|
-
"dev:js": "tsx ./admin/scripts/deploy.ts",
|
|
12
|
-
"lint": "eslint .",
|
|
13
|
-
"lint:fix": "eslint . --fix"
|
|
14
|
-
},
|
|
15
|
-
"peerDependencies": {
|
|
16
|
-
"ant-design-vue": "4.1.2",
|
|
17
|
-
"vue": "3.4.19",
|
|
18
|
-
"vue-router": "4.2.5"
|
|
19
|
-
},
|
|
20
|
-
"dependencies": {
|
|
21
|
-
"@aws-sdk/client-s3": "^3.515.0",
|
|
22
|
-
"@aws-sdk/lib-storage": "^3.515.0",
|
|
23
|
-
"@babel/generator": "^7.23.6",
|
|
24
|
-
"@babel/parser": "^7.23.9",
|
|
25
|
-
"@babel/traverse": "^7.23.9",
|
|
26
|
-
"@babel/types": "^7.23.9",
|
|
27
|
-
"@ckeditor/ckeditor5-adapter-ckfinder": "^41.1.0",
|
|
28
|
-
"@ckeditor/ckeditor5-alignment": "^41.1.0",
|
|
29
|
-
"@ckeditor/ckeditor5-autoformat": "^41.1.0",
|
|
30
|
-
"@ckeditor/ckeditor5-basic-styles": "^41.1.0",
|
|
31
|
-
"@ckeditor/ckeditor5-block-quote": "^41.1.0",
|
|
32
|
-
"@ckeditor/ckeditor5-build-classic": "^41.1.0",
|
|
33
|
-
"@ckeditor/ckeditor5-code-block": "^41.1.0",
|
|
34
|
-
"@ckeditor/ckeditor5-document-outline": "^41.1.0",
|
|
35
|
-
"@ckeditor/ckeditor5-editor-classic": "^41.1.0",
|
|
36
|
-
"@ckeditor/ckeditor5-essentials": "^41.1.0",
|
|
37
|
-
"@ckeditor/ckeditor5-font": "^41.1.0",
|
|
38
|
-
"@ckeditor/ckeditor5-heading": "^41.1.0",
|
|
39
|
-
"@ckeditor/ckeditor5-highlight": "^41.1.0",
|
|
40
|
-
"@ckeditor/ckeditor5-horizontal-line": "^41.1.0",
|
|
41
|
-
"@ckeditor/ckeditor5-html-embed": "^41.1.0",
|
|
42
|
-
"@ckeditor/ckeditor5-html-support": "^41.1.0",
|
|
43
|
-
"@ckeditor/ckeditor5-image": "^41.1.0",
|
|
44
|
-
"@ckeditor/ckeditor5-import-word": "^41.1.0",
|
|
45
|
-
"@ckeditor/ckeditor5-indent": "^41.1.0",
|
|
46
|
-
"@ckeditor/ckeditor5-link": "^41.1.0",
|
|
47
|
-
"@ckeditor/ckeditor5-list": "^41.1.0",
|
|
48
|
-
"@ckeditor/ckeditor5-media-embed": "^41.1.0",
|
|
49
|
-
"@ckeditor/ckeditor5-paragraph": "^41.1.0",
|
|
50
|
-
"@ckeditor/ckeditor5-remove-format": "^41.1.0",
|
|
51
|
-
"@ckeditor/ckeditor5-show-blocks": "^41.1.0",
|
|
52
|
-
"@ckeditor/ckeditor5-source-editing": "^41.1.0",
|
|
53
|
-
"@ckeditor/ckeditor5-table": "^41.1.0",
|
|
54
|
-
"@ckeditor/ckeditor5-theme-lark": "^41.1.0",
|
|
55
|
-
"@ckeditor/ckeditor5-typing": "^41.1.0",
|
|
56
|
-
"@ckeditor/ckeditor5-upload": "^41.1.0",
|
|
57
|
-
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
|
58
|
-
"@ckeditor/ckeditor5-word-count": "^41.1.0",
|
|
59
|
-
"@tanstack/vue-query": "^5.21.4",
|
|
60
|
-
"@vueuse/components": "^10.7.2",
|
|
61
|
-
"@vueuse/core": "^10.7.2",
|
|
62
|
-
"@vueuse/router": "^10.7.2",
|
|
63
|
-
"a-calc": "^1.3.8",
|
|
64
|
-
"ant-design-vue": "^4.1.2",
|
|
65
|
-
"archiver": "^6.0.1",
|
|
66
|
-
"axios": "^1.6.7",
|
|
67
|
-
"bignumber.js": "^9.1.2",
|
|
68
|
-
"chokidar": "^3.6.0",
|
|
69
|
-
"dayjs": "^1.11.10",
|
|
70
|
-
"echarts": "^5.4.3",
|
|
71
|
-
"execa": "^8.0.1",
|
|
72
|
-
"fast-glob": "^3.3.2",
|
|
73
|
-
"localstorage-slim": "^2.7.0",
|
|
74
|
-
"lodash-es": "^4.17.21",
|
|
75
|
-
"nprogress": "^0.2.0",
|
|
76
|
-
"pinia": "^2.1.7",
|
|
77
|
-
"tsx": "^4.7.1",
|
|
78
|
-
"vue": "^3.4.19",
|
|
79
|
-
"vue-i18n": "^9.9.1",
|
|
80
|
-
"vue-router": "^4.2.5"
|
|
81
|
-
},
|
|
82
|
-
"devDependencies": {
|
|
83
|
-
"@peng_kai/lint": "^0.1.0",
|
|
84
|
-
"@types/archiver": "^6.0.2",
|
|
85
|
-
"@types/lodash-es": "^4.17.12",
|
|
86
|
-
"@types/node": "18.19.15",
|
|
87
|
-
"@types/nprogress": "^0.2.3",
|
|
88
|
-
"type-fest": "^4.10.2",
|
|
89
|
-
"typescript": "^5.3.3",
|
|
90
|
-
"vue-component-type-helpers": "^1.8.27"
|
|
91
|
-
}
|
|
92
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@peng_kai/kit",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.2.0-beta.24",
|
|
5
|
+
"description": "",
|
|
6
|
+
"author": "",
|
|
7
|
+
"license": "ISC",
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"dev:js": "tsx ./admin/scripts/deploy.ts",
|
|
12
|
+
"lint": "eslint .",
|
|
13
|
+
"lint:fix": "eslint . --fix"
|
|
14
|
+
},
|
|
15
|
+
"peerDependencies": {
|
|
16
|
+
"ant-design-vue": "4.1.2",
|
|
17
|
+
"vue": "3.4.19",
|
|
18
|
+
"vue-router": "4.2.5"
|
|
19
|
+
},
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@aws-sdk/client-s3": "^3.515.0",
|
|
22
|
+
"@aws-sdk/lib-storage": "^3.515.0",
|
|
23
|
+
"@babel/generator": "^7.23.6",
|
|
24
|
+
"@babel/parser": "^7.23.9",
|
|
25
|
+
"@babel/traverse": "^7.23.9",
|
|
26
|
+
"@babel/types": "^7.23.9",
|
|
27
|
+
"@ckeditor/ckeditor5-adapter-ckfinder": "^41.1.0",
|
|
28
|
+
"@ckeditor/ckeditor5-alignment": "^41.1.0",
|
|
29
|
+
"@ckeditor/ckeditor5-autoformat": "^41.1.0",
|
|
30
|
+
"@ckeditor/ckeditor5-basic-styles": "^41.1.0",
|
|
31
|
+
"@ckeditor/ckeditor5-block-quote": "^41.1.0",
|
|
32
|
+
"@ckeditor/ckeditor5-build-classic": "^41.1.0",
|
|
33
|
+
"@ckeditor/ckeditor5-code-block": "^41.1.0",
|
|
34
|
+
"@ckeditor/ckeditor5-document-outline": "^41.1.0",
|
|
35
|
+
"@ckeditor/ckeditor5-editor-classic": "^41.1.0",
|
|
36
|
+
"@ckeditor/ckeditor5-essentials": "^41.1.0",
|
|
37
|
+
"@ckeditor/ckeditor5-font": "^41.1.0",
|
|
38
|
+
"@ckeditor/ckeditor5-heading": "^41.1.0",
|
|
39
|
+
"@ckeditor/ckeditor5-highlight": "^41.1.0",
|
|
40
|
+
"@ckeditor/ckeditor5-horizontal-line": "^41.1.0",
|
|
41
|
+
"@ckeditor/ckeditor5-html-embed": "^41.1.0",
|
|
42
|
+
"@ckeditor/ckeditor5-html-support": "^41.1.0",
|
|
43
|
+
"@ckeditor/ckeditor5-image": "^41.1.0",
|
|
44
|
+
"@ckeditor/ckeditor5-import-word": "^41.1.0",
|
|
45
|
+
"@ckeditor/ckeditor5-indent": "^41.1.0",
|
|
46
|
+
"@ckeditor/ckeditor5-link": "^41.1.0",
|
|
47
|
+
"@ckeditor/ckeditor5-list": "^41.1.0",
|
|
48
|
+
"@ckeditor/ckeditor5-media-embed": "^41.1.0",
|
|
49
|
+
"@ckeditor/ckeditor5-paragraph": "^41.1.0",
|
|
50
|
+
"@ckeditor/ckeditor5-remove-format": "^41.1.0",
|
|
51
|
+
"@ckeditor/ckeditor5-show-blocks": "^41.1.0",
|
|
52
|
+
"@ckeditor/ckeditor5-source-editing": "^41.1.0",
|
|
53
|
+
"@ckeditor/ckeditor5-table": "^41.1.0",
|
|
54
|
+
"@ckeditor/ckeditor5-theme-lark": "^41.1.0",
|
|
55
|
+
"@ckeditor/ckeditor5-typing": "^41.1.0",
|
|
56
|
+
"@ckeditor/ckeditor5-upload": "^41.1.0",
|
|
57
|
+
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
|
58
|
+
"@ckeditor/ckeditor5-word-count": "^41.1.0",
|
|
59
|
+
"@tanstack/vue-query": "^5.21.4",
|
|
60
|
+
"@vueuse/components": "^10.7.2",
|
|
61
|
+
"@vueuse/core": "^10.7.2",
|
|
62
|
+
"@vueuse/router": "^10.7.2",
|
|
63
|
+
"a-calc": "^1.3.8",
|
|
64
|
+
"ant-design-vue": "^4.1.2",
|
|
65
|
+
"archiver": "^6.0.1",
|
|
66
|
+
"axios": "^1.6.7",
|
|
67
|
+
"bignumber.js": "^9.1.2",
|
|
68
|
+
"chokidar": "^3.6.0",
|
|
69
|
+
"dayjs": "^1.11.10",
|
|
70
|
+
"echarts": "^5.4.3",
|
|
71
|
+
"execa": "^8.0.1",
|
|
72
|
+
"fast-glob": "^3.3.2",
|
|
73
|
+
"localstorage-slim": "^2.7.0",
|
|
74
|
+
"lodash-es": "^4.17.21",
|
|
75
|
+
"nprogress": "^0.2.0",
|
|
76
|
+
"pinia": "^2.1.7",
|
|
77
|
+
"tsx": "^4.7.1",
|
|
78
|
+
"vue": "^3.4.19",
|
|
79
|
+
"vue-i18n": "^9.9.1",
|
|
80
|
+
"vue-router": "^4.2.5"
|
|
81
|
+
},
|
|
82
|
+
"devDependencies": {
|
|
83
|
+
"@peng_kai/lint": "^0.1.0",
|
|
84
|
+
"@types/archiver": "^6.0.2",
|
|
85
|
+
"@types/lodash-es": "^4.17.12",
|
|
86
|
+
"@types/node": "18.19.15",
|
|
87
|
+
"@types/nprogress": "^0.2.3",
|
|
88
|
+
"type-fest": "^4.10.2",
|
|
89
|
+
"typescript": "^5.3.3",
|
|
90
|
+
"vue-component-type-helpers": "^1.8.27"
|
|
91
|
+
}
|
|
92
|
+
}
|