cosey 0.1.1-7 → 0.1.1
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/components/config-provider/override-element-plus.js +3 -3
- package/components/copy/copy.vue.js +4 -4
- package/components/field/components/week/week.vue.js +1 -1
- package/components/form/form.vue.js +4 -5
- package/components/form/useBubbleTemplate.js +4 -3
- package/components/form/useFormTemplate.d.ts +1 -1
- package/components/form-list/form-list.vue.js +3 -3
- package/components/form-list/index.d.ts +1 -1
- package/components/form-query/form-query.vue.js +4 -5
- package/components/table/table-column/table-column.vue.d.ts +2 -2
- package/components/table/table-column-editor/item.vue.js +3 -3
- package/components/table/table-column-editor/table-column-editor.vue.d.ts +2 -0
- package/components/table/table-column-editor/table-column-editor.vue.js +4 -4
- package/components/table/table.vue.js +5 -6
- package/components/table-action/item.vue.d.ts +2 -2
- package/components/table-action/item.vue.js +6 -6
- package/components/theme/extractStyle.js +14 -2
- package/components/toggle/toggle.vue.js +3 -3
- package/components/transition-group/transition-group.d.ts +1 -1
- package/components/transition-group/transition-group.vue.js +1 -1
- package/components/upload/upload-item.vue.js +4 -4
- package/config/root-config-provider.vue.js +1 -1
- package/hooks/useLockScroll.d.ts +1 -1
- package/hooks/usePersist.d.ts +1 -1
- package/hooks/useRectObserver.d.ts +1 -1
- package/hooks/useResizeObserver.d.ts +1 -1
- package/hooks/useTimeout.d.ts +6 -1
- package/hooks/useTimeout.js +17 -12
- package/index.d.ts +3 -2
- package/index.js +11 -9
- package/layout/layout-aside/layout-aside.vue.js +4 -4
- package/layout/layout-base/layout-base.vue.js +1 -1
- package/layout/layout-change-password/layout-change-password.vue.js +4 -5
- package/layout/layout-color-scheme/layout-color-scheme.vue.js +4 -4
- package/layout/layout-content/layout-content.vue.js +1 -1
- package/layout/layout-forbidden/layout-forbidden.vue.js +2 -2
- package/layout/layout-header/layout-header.vue.js +1 -1
- package/layout/layout-iframe/item.vue.js +1 -1
- package/layout/layout-iframe/layout-iframe.vue.js +1 -1
- package/layout/layout-internal-server-error/layout-internal-server-error.vue.js +2 -2
- package/layout/layout-login/layout-login.vue.js +3 -3
- package/layout/layout-main/layout-main.vue.js +1 -1
- package/layout/layout-mask/layout-mask.vue.js +1 -1
- package/layout/layout-menu/layout-menu.vue.js +2 -2
- package/layout/layout-not-found/layout-not-found.vue.js +2 -2
- package/layout/layout-search/layout-search.vue.js +8 -8
- package/layout/layout-sidebar/layout-sidebar.vue.js +1 -1
- package/layout/layout-snug-aside/layout-snug-aside.vue.js +1 -1
- package/layout/layout-snug-menu/layout-snug-menu.vue.js +1 -1
- package/layout/layout-tabbar/layout-tabbar.vue.js +1 -1
- package/layout/layout-tabbar/reload.vue.js +8 -8
- package/layout/layout-toggle/layout-toggle.vue.js +3 -3
- package/layout/layout-topbar/layout-topbar.vue.d.ts +9 -9
- package/layout/layout-topbar/layout-topbar.vue.js +1 -1
- package/layout/layout-user/layout-user.vue.js +1 -1
- package/layout/utils.d.ts +1 -1
- package/package.json +6 -6
- package/request/useRequest.js +1 -1
- package/router/guard/auth.js +2 -2
- package/router/routes/static/auth.js +3 -3
- package/router/routes/static/exception.js +3 -3
- package/store/index.d.ts +5 -5
- package/store/index.js +5 -5
- package/utils/message-box.d.ts +1 -1
- package/store/create-store.d.ts +0 -1
- package/store/create-store.js +0 -5
|
@@ -73,9 +73,9 @@ var stdin_default = getSimpleStyleHook("OverrideElementPlus", (token) => {
|
|
|
73
73
|
"--el-bg-color": token.colorBgContainer,
|
|
74
74
|
"--el-bg-color-page": token.colorBgLayout,
|
|
75
75
|
// '--el-bg-color-overlay': '#ffffff',
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
"--el-text-color-primary": token.colorText,
|
|
77
|
+
"--el-text-color-regular": token.colorText,
|
|
78
|
+
"--el-text-color-secondary": token.colorTextTertiary,
|
|
79
79
|
"--el-text-color-placeholder": token.colorTextPlaceholder,
|
|
80
80
|
"--el-text-color-disabled": token.colorTextDisabled,
|
|
81
81
|
"--el-border-color": token.colorBorder,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createBlock, openBlock, unref, normalizeStyle, normalizeClass, withCtx, createVNode } from 'vue';
|
|
2
2
|
import stdin_default$1 from './style/index.js';
|
|
3
|
-
import { useClipboard } from '@vueuse/core';
|
|
4
3
|
import stdin_default$2 from '../icon/index.js';
|
|
4
|
+
import { useClipboard } from '@vueuse/core';
|
|
5
|
+
import { ElButton } from 'element-plus';
|
|
5
6
|
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
6
7
|
|
|
7
8
|
var stdin_default = /* @__PURE__ */defineComponent({
|
|
@@ -36,8 +37,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
36
37
|
} = useClipboard();
|
|
37
38
|
__expose();
|
|
38
39
|
return (_ctx, _cache) => {
|
|
39
|
-
|
|
40
|
-
return openBlock(), createBlock(_component_el_button, {
|
|
40
|
+
return openBlock(), createBlock(unref(ElButton), {
|
|
41
41
|
link: "",
|
|
42
42
|
class: normalizeClass([unref(hashId), unref(prefixCls), {
|
|
43
43
|
"is-copied": unref(copied)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElDatePicker } from 'element-plus';
|
|
2
2
|
import { defineComponent, h, mergeProps } from 'vue';
|
|
3
3
|
import dayjs from 'dayjs';
|
|
4
|
-
import weekOfYear from 'dayjs/plugin/weekOfYear';
|
|
4
|
+
import weekOfYear from 'dayjs/plugin/weekOfYear.js';
|
|
5
5
|
import { addNullablePlaceholder } from '../../../../utils/vue.js';
|
|
6
6
|
|
|
7
7
|
dayjs.extend(weekOfYear);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, inject, reactive, toRef,
|
|
1
|
+
import { defineComponent, inject, reactive, toRef, createBlock, openBlock, unref, mergeProps, withCtx, createVNode, renderSlot, createCommentVNode, normalizeClass, createElementVNode, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { formProps, formBubbleContextSymbol } from './form.js';
|
|
3
|
-
import { ElForm } from 'element-plus';
|
|
3
|
+
import { ElForm, ElButton } from 'element-plus';
|
|
4
4
|
import { useFormTemplate } from './useFormTemplate.js';
|
|
5
5
|
import { Row as _Row } from '../row/index.js';
|
|
6
6
|
import { OptionalWrapper as _OptionalWrapper } from '../optional-wrapper/index.js';
|
|
@@ -44,7 +44,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
44
44
|
}));
|
|
45
45
|
__expose(expose);
|
|
46
46
|
return (_ctx, _cache) => {
|
|
47
|
-
const _component_el_button = resolveComponent("el-button");
|
|
48
47
|
return openBlock(), createBlock(unref(ElForm), mergeProps({
|
|
49
48
|
ref: "form"
|
|
50
49
|
}, unref(elFormProps), {
|
|
@@ -64,7 +63,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
64
63
|
reset: unref(reset),
|
|
65
64
|
submit: unref(submit),
|
|
66
65
|
submitting: unref(submitting)
|
|
67
|
-
}, () => [!_ctx.hideSubmit ? (openBlock(), createBlock(
|
|
66
|
+
}, () => [!_ctx.hideSubmit ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
68
67
|
key: 0,
|
|
69
68
|
type: "primary"
|
|
70
69
|
}, _ctx.submitProps, {
|
|
@@ -75,7 +74,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
75
74
|
/* TEXT */)]),
|
|
76
75
|
_: 1
|
|
77
76
|
/* STABLE */
|
|
78
|
-
}, 16, ["loading"])) : createCommentVNode("v-if", true), !_ctx.hideReset ? (openBlock(), createBlock(
|
|
77
|
+
}, 16, ["loading"])) : createCommentVNode("v-if", true), !_ctx.hideReset ? (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
79
78
|
key: 1
|
|
80
79
|
}, _ctx.resetProps, {
|
|
81
80
|
onClick: unref(reset)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { ref, provide, createVNode, Fragment,
|
|
1
|
+
import { ref, provide, createVNode, Fragment, mergeProps, nextTick } from 'vue';
|
|
2
2
|
import { formBubbleContextSymbol } from './form.js';
|
|
3
|
+
import { ElButton } from 'element-plus';
|
|
3
4
|
import { useTwoWayBinding } from '../../hooks/useTwoWayBinding.js';
|
|
4
5
|
import { createMergedExpose, defineTemplate } from '../../utils/vue.js';
|
|
5
6
|
|
|
@@ -63,14 +64,14 @@ function useBubbleTemplate(options) {
|
|
|
63
64
|
cancel,
|
|
64
65
|
confirm,
|
|
65
66
|
submitting: !!formBubbleData.value?.submitting
|
|
66
|
-
}) : createVNode(Fragment, null, [!props.hideConfirm && createVNode(
|
|
67
|
+
}) : createVNode(Fragment, null, [!props.hideConfirm && createVNode(ElButton, mergeProps({
|
|
67
68
|
"type": "primary"
|
|
68
69
|
}, props.confirmProps, {
|
|
69
70
|
"loading": formBubbleData.value?.submitting,
|
|
70
71
|
"onClick": confirm
|
|
71
72
|
}), {
|
|
72
73
|
default: () => [props.confirmText]
|
|
73
|
-
}), !props.hideCancel && createVNode(
|
|
74
|
+
}), !props.hideCancel && createVNode(ElButton, mergeProps(props.cancelProps, {
|
|
74
75
|
"onClick": cancel
|
|
75
76
|
}), {
|
|
76
77
|
default: () => [props.cancelText]
|
|
@@ -3,7 +3,7 @@ export interface UseFormTemplateOptions<T> {
|
|
|
3
3
|
omittedProps?: (keyof T)[];
|
|
4
4
|
}
|
|
5
5
|
export declare function useFormTemplate<T extends FormProps, U extends FormExpose = FormExpose>(props: T, options?: UseFormTemplateOptions<T>): {
|
|
6
|
-
elFormProps:
|
|
6
|
+
elFormProps: import("@vueuse/core").ReactiveOmitReturn<T, keyof T>;
|
|
7
7
|
expose: U;
|
|
8
8
|
reset: () => void;
|
|
9
9
|
resetFields: () => void;
|
|
@@ -3,7 +3,7 @@ import { ElSpace, ElButton } from 'element-plus';
|
|
|
3
3
|
import { cloneDeep, omit } from 'lodash-es';
|
|
4
4
|
import { reactiveOmit } from '@vueuse/core';
|
|
5
5
|
import { formListExposeKeys, defaultFormListProps } from './form-list.js';
|
|
6
|
-
import
|
|
6
|
+
import { Icon as _Icon } from '../icon/index.js';
|
|
7
7
|
import { FormItem as _FormItem } from '../form/index.js';
|
|
8
8
|
import { DndSort as _DndSort, DndSortItem as _DndSortItem } from '../dnd-sort/index.js';
|
|
9
9
|
import { TransitionGroup as _TransitionGroup } from '../transition-group/index.js';
|
|
@@ -304,7 +304,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
304
304
|
"type": "danger",
|
|
305
305
|
"onClick": () => remove(index)
|
|
306
306
|
}, {
|
|
307
|
-
default: () => [createVNode(
|
|
307
|
+
default: () => [createVNode(_Icon, {
|
|
308
308
|
"name": "mdi:trash-can-outline",
|
|
309
309
|
"size": "lg"
|
|
310
310
|
}, null)]
|
|
@@ -319,7 +319,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
319
319
|
"type": "primary",
|
|
320
320
|
"onClick": handleAdd
|
|
321
321
|
}, {
|
|
322
|
-
default: () => [createVNode(
|
|
322
|
+
default: () => [createVNode(_Icon, {
|
|
323
323
|
"name": "mdi:plus",
|
|
324
324
|
"class": `${prefixCls.value}-plus-icon`
|
|
325
325
|
}, null), props.addText]
|
|
@@ -20,8 +20,8 @@ declare const _FormList: (<T extends import("./form-list").FormListRow = import(
|
|
|
20
20
|
disabled?: boolean | undefined;
|
|
21
21
|
readonly prop?: import("element-plus").FormItemProp | undefined;
|
|
22
22
|
readonly error?: string | undefined;
|
|
23
|
-
readonly required?: boolean | undefined;
|
|
24
23
|
placeholder?: string | undefined;
|
|
24
|
+
readonly required?: boolean | undefined;
|
|
25
25
|
readonly?: boolean | undefined;
|
|
26
26
|
readonly labelWidth?: (string | number) | undefined;
|
|
27
27
|
readonly labelPosition?: ("" | "left" | "right" | "top") | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent, useSlots, computed, ref, Fragment, provide,
|
|
1
|
+
import { defineComponent, useSlots, computed, ref, Fragment, provide, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createVNode, resolveDynamicComponent, normalizeClass, createElementVNode, createCommentVNode, createTextVNode, isRef, cloneVNode, isVNode } from 'vue';
|
|
2
2
|
import { formQueryProps, defaultMapSizeColNumber, formQueryContextSymbol } from './form-query.js';
|
|
3
|
-
import { ElForm } from 'element-plus';
|
|
3
|
+
import { ElForm, ElButton } from 'element-plus';
|
|
4
4
|
import { FormItem as _FormItem } from '../form/index.js';
|
|
5
5
|
import { Row as _Row } from '../row/index.js';
|
|
6
6
|
import { Toggle as _Toggle } from '../toggle/index.js';
|
|
@@ -88,7 +88,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
88
88
|
});
|
|
89
89
|
__expose(expose);
|
|
90
90
|
return (_ctx, _cache) => {
|
|
91
|
-
const _component_el_button = resolveComponent("el-button");
|
|
92
91
|
return openBlock(), createBlock(unref(ElForm), mergeProps({
|
|
93
92
|
ref: "form"
|
|
94
93
|
}, unref(elFormProps), {
|
|
@@ -108,7 +107,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
108
107
|
reset: unref(reset),
|
|
109
108
|
submit: unref(submit),
|
|
110
109
|
submitting: unref(submitting)
|
|
111
|
-
}, () => [createVNode(
|
|
110
|
+
}, () => [createVNode(unref(ElButton), {
|
|
112
111
|
onClick: _cache[0] || (_cache[0] = () => unref(submit)()),
|
|
113
112
|
type: "primary",
|
|
114
113
|
loading: unref(submitting)
|
|
@@ -116,7 +115,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
116
115
|
default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode(" \u67E5\u8BE2 ")])),
|
|
117
116
|
_: 1
|
|
118
117
|
/* STABLE */
|
|
119
|
-
}, 8, ["loading"]), createVNode(
|
|
118
|
+
}, 8, ["loading"]), createVNode(unref(ElButton), {
|
|
120
119
|
onClick: unref(reset)
|
|
121
120
|
}, {
|
|
122
121
|
default: withCtx(() => _cache[3] || (_cache[3] = [createTextVNode("\u91CD\u7F6E")])),
|
|
@@ -7,9 +7,9 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
7
7
|
type?: string | undefined;
|
|
8
8
|
prop?: string | undefined;
|
|
9
9
|
resizable?: boolean | undefined;
|
|
10
|
-
filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
|
|
11
10
|
formatter?: ((row: any, column: import("element-plus/es/components/table/src/table-column/defaults.mjs").TableColumnCtx<any>, cellValue: any, index: number) => import("vue").VNode | string) | undefined;
|
|
12
11
|
className?: string | undefined;
|
|
12
|
+
filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
|
|
13
13
|
labelClassName?: string | undefined;
|
|
14
14
|
property?: string | undefined;
|
|
15
15
|
renderHeader?: ((data: {
|
|
@@ -47,9 +47,9 @@ declare const TableColumn: import("vue").DefineComponent<{
|
|
|
47
47
|
type?: string | undefined;
|
|
48
48
|
prop?: string | undefined;
|
|
49
49
|
resizable?: boolean | undefined;
|
|
50
|
-
filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
|
|
51
50
|
formatter?: ((row: any, column: import("element-plus/es/components/table/src/table-column/defaults.mjs").TableColumnCtx<any>, cellValue: any, index: number) => import("vue").VNode | string) | undefined;
|
|
52
51
|
className?: string | undefined;
|
|
52
|
+
filters?: import("element-plus/es/components/table/src/table-column/defaults.mjs").Filters | undefined;
|
|
53
53
|
labelClassName?: string | undefined;
|
|
54
54
|
property?: string | undefined;
|
|
55
55
|
renderHeader?: ((data: {
|
|
@@ -2,6 +2,7 @@ import { defineComponent, computed, reactive, toRef, resolveComponent, createEle
|
|
|
2
2
|
import '../../dnd-sort/index.js';
|
|
3
3
|
import { Icon as _Icon } from '../../icon/index.js';
|
|
4
4
|
import stdin_default$1 from './list.vue.js';
|
|
5
|
+
import { ElButton } from 'element-plus';
|
|
5
6
|
import { useDndSortItem } from '../../dnd-sort/useDndSortItem.js';
|
|
6
7
|
import { useTreeCheckInject } from '../../../hooks/useTreeCheck.js';
|
|
7
8
|
import { useComponentConfig } from '../../config-provider/config-provider.js';
|
|
@@ -49,7 +50,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
49
50
|
};
|
|
50
51
|
return (_ctx, _cache) => {
|
|
51
52
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
52
|
-
const _component_el_button = resolveComponent("el-button");
|
|
53
53
|
return openBlock(), createElementBlock("div", mergeProps({
|
|
54
54
|
ref_key: "itemRef",
|
|
55
55
|
ref: itemRef
|
|
@@ -79,7 +79,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
79
79
|
/* TEXT, CLASS */), !_ctx.isSub ? (openBlock(), createElementBlock("div", {
|
|
80
80
|
key: 1,
|
|
81
81
|
class: normalizeClass(`${unref(prefixCls)}-item-pins`)
|
|
82
|
-
}, [createVNode(
|
|
82
|
+
}, [createVNode(unref(ElButton), {
|
|
83
83
|
link: "",
|
|
84
84
|
style: {
|
|
85
85
|
border: 0
|
|
@@ -96,7 +96,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
96
96
|
}, null, 8, ["name"])]),
|
|
97
97
|
_: 1
|
|
98
98
|
/* STABLE */
|
|
99
|
-
}, 8, ["type"]), createVNode(
|
|
99
|
+
}, 8, ["type"]), createVNode(unref(ElButton), {
|
|
100
100
|
link: "",
|
|
101
101
|
style: {
|
|
102
102
|
border: 0,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type TableColumnEditorProps } from './table-column-editor';
|
|
2
2
|
import List from './list.vue';
|
|
3
3
|
import { type TableColumnProps } from '../table-column/table-column';
|
|
4
|
+
import { ElButton } from 'element-plus';
|
|
4
5
|
declare const prefixCls: import("vue").ComputedRef<string>;
|
|
5
6
|
declare const hashId: import("vue").Ref<string, string>;
|
|
6
7
|
declare const visible: import("vue").Ref<boolean, boolean>;
|
|
@@ -225,6 +226,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
|
|
|
225
226
|
}>;
|
|
226
227
|
declare const __VLS_self: import("vue").DefineComponent<TableColumnEditorProps, {
|
|
227
228
|
List: typeof List;
|
|
229
|
+
ElButton: typeof ElButton;
|
|
228
230
|
prefixCls: typeof prefixCls;
|
|
229
231
|
hashId: typeof hashId;
|
|
230
232
|
visible: typeof visible;
|
|
@@ -2,6 +2,7 @@ import { defineComponent, mergeDefaults, useTemplateRef, ref, resolveComponent,
|
|
|
2
2
|
import { defaultTableColumnEditorProps } from './table-column-editor.js';
|
|
3
3
|
import stdin_default$2 from './list.vue.js';
|
|
4
4
|
import stdin_default$1 from './style/index.js';
|
|
5
|
+
import { ElButton } from 'element-plus';
|
|
5
6
|
import { useComponentConfig } from '../../config-provider/config-provider.js';
|
|
6
7
|
import { useTreeCheck } from '../../../hooks/useTreeCheck.js';
|
|
7
8
|
import { mapTree, walkTree } from '../../../utils/tree.js';
|
|
@@ -102,7 +103,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
102
103
|
return (_ctx, _cache) => {
|
|
103
104
|
const _component_el_checkbox = resolveComponent("el-checkbox");
|
|
104
105
|
const _component_el_scrollbar = resolveComponent("el-scrollbar");
|
|
105
|
-
const _component_el_button = resolveComponent("el-button");
|
|
106
106
|
const _component_el_popover = resolveComponent("el-popover");
|
|
107
107
|
return openBlock(), createBlock(_component_el_popover, mergeProps(_ctx.$props, {
|
|
108
108
|
visible: visible.value,
|
|
@@ -142,7 +142,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
142
142
|
/* STABLE */
|
|
143
143
|
}, 8, ["max-height"]), createElementVNode("div", {
|
|
144
144
|
class: normalizeClass(`${unref(prefixCls)}-footer`)
|
|
145
|
-
}, [createVNode(
|
|
145
|
+
}, [createVNode(unref(ElButton), {
|
|
146
146
|
size: "small",
|
|
147
147
|
link: "",
|
|
148
148
|
onClick: reset
|
|
@@ -150,7 +150,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
150
150
|
default: withCtx(() => _cache[2] || (_cache[2] = [createTextVNode("\u6062\u590D\u9ED8\u8BA4")])),
|
|
151
151
|
_: 1
|
|
152
152
|
/* STABLE */
|
|
153
|
-
}), createElementVNode("div", _hoisted_1, [createVNode(
|
|
153
|
+
}), createElementVNode("div", _hoisted_1, [createVNode(unref(ElButton), {
|
|
154
154
|
size: "small",
|
|
155
155
|
link: "",
|
|
156
156
|
onClick: cancel
|
|
@@ -158,7 +158,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
158
158
|
default: withCtx(() => _cache[3] || (_cache[3] = [createTextVNode("\u53D6\u6D88")])),
|
|
159
159
|
_: 1
|
|
160
160
|
/* STABLE */
|
|
161
|
-
}), createVNode(
|
|
161
|
+
}), createVNode(unref(ElButton), {
|
|
162
162
|
size: "small",
|
|
163
163
|
link: "",
|
|
164
164
|
type: "primary",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { defineComponent, useSlots, computed, useTemplateRef, mergeProps, ref, watch, resolveComponent, resolveDirective, withDirectives, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createCommentVNode, createElementVNode, createVNode, createBlock, renderSlot, withCtx, createSlots, Fragment, renderList, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import { merge, cloneDeep, get } from 'lodash-es';
|
|
3
3
|
import { tableProps, defaultTableConfig, elSlotsName, omittedTableProps, defaultPaginationProps, tableExposeKeys } from './table.js';
|
|
4
|
+
import { useZIndex, ElButton } from 'element-plus';
|
|
4
5
|
import stdin_default$6 from './table-column/table-column.vue.js';
|
|
5
6
|
import stdin_default$5 from './table-column-editor/table-column-editor.vue.js';
|
|
6
7
|
import stdin_default$2 from './table-query/table-query.vue.js';
|
|
@@ -8,7 +9,6 @@ import stdin_default$4 from './table-export/table-export.vue.js';
|
|
|
8
9
|
import stdin_default$3 from '../icon/icon.vue.js';
|
|
9
10
|
import { reactiveOmit } from '@vueuse/core';
|
|
10
11
|
import { filterEmptyFormValue } from './utils.js';
|
|
11
|
-
import { useZIndex } from 'element-plus';
|
|
12
12
|
import stdin_default$1 from './style/index.js';
|
|
13
13
|
import { useComponentConfig, useConfig } from '../config-provider/config-provider.js';
|
|
14
14
|
import { useFetch } from '../../hooks/useFetch.js';
|
|
@@ -208,7 +208,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
208
208
|
});
|
|
209
209
|
__expose(expose);
|
|
210
210
|
return (_ctx, _cache) => {
|
|
211
|
-
const _component_el_button = resolveComponent("el-button");
|
|
212
211
|
const _component_el_tooltip = resolveComponent("el-tooltip");
|
|
213
212
|
const _component_el_table = resolveComponent("el-table");
|
|
214
213
|
const _component_el_pagination = resolveComponent("el-pagination");
|
|
@@ -251,7 +250,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
251
250
|
"show-after": 200,
|
|
252
251
|
"hide-after": 0
|
|
253
252
|
}, {
|
|
254
|
-
default: withCtx(() => [createVNode(
|
|
253
|
+
default: withCtx(() => [createVNode(unref(ElButton), {
|
|
255
254
|
link: ""
|
|
256
255
|
}, {
|
|
257
256
|
default: withCtx(() => [createVNode(stdin_default$3, {
|
|
@@ -273,7 +272,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
273
272
|
"show-after": 200,
|
|
274
273
|
"hide-after": 0
|
|
275
274
|
}, {
|
|
276
|
-
default: withCtx(() => [createVNode(
|
|
275
|
+
default: withCtx(() => [createVNode(unref(ElButton), {
|
|
277
276
|
link: "",
|
|
278
277
|
onClick: _cache[1] || (_cache[1] = $event => exportVisible.value = true)
|
|
279
278
|
}, {
|
|
@@ -298,7 +297,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
298
297
|
"show-after": 200,
|
|
299
298
|
"hide-after": 0
|
|
300
299
|
}, {
|
|
301
|
-
default: withCtx(() => [createVNode(
|
|
300
|
+
default: withCtx(() => [createVNode(unref(ElButton), {
|
|
302
301
|
link: "",
|
|
303
302
|
onClick: onFullScreen
|
|
304
303
|
}, {
|
|
@@ -317,7 +316,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
317
316
|
"show-after": 200,
|
|
318
317
|
"hide-after": 0
|
|
319
318
|
}, {
|
|
320
|
-
default: withCtx(() => [createVNode(
|
|
319
|
+
default: withCtx(() => [createVNode(unref(ElButton), {
|
|
321
320
|
link: "",
|
|
322
321
|
ref: "setting-ref"
|
|
323
322
|
}, {
|
|
@@ -161,11 +161,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
161
161
|
link: boolean;
|
|
162
162
|
tag: string | import("vue").Component;
|
|
163
163
|
plain: boolean;
|
|
164
|
-
loading: boolean;
|
|
165
|
-
autofocus: boolean;
|
|
166
164
|
nativeType: "button" | "reset" | "submit";
|
|
165
|
+
loading: boolean;
|
|
167
166
|
loadingIcon: string | import("vue").Component;
|
|
168
167
|
bg: boolean;
|
|
168
|
+
autofocus: boolean;
|
|
169
169
|
autoInsertSpace: boolean;
|
|
170
170
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
171
171
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, resolveComponent, createElementBlock, createCommentVNode, openBlock, Fragment, createBlock, normalizeProps, mergeProps, withCtx, createVNode,
|
|
1
|
+
import { defineComponent, computed, ref, resolveComponent, createElementBlock, createCommentVNode, openBlock, Fragment, createBlock, normalizeProps, mergeProps, withCtx, createVNode, unref, createTextVNode, normalizeStyle, toDisplayString } from 'vue';
|
|
2
2
|
import { omit } from 'lodash-es';
|
|
3
|
+
import { ElButton } from 'element-plus';
|
|
3
4
|
import { tableActionItemProps } from './item.js';
|
|
4
5
|
import stdin_default$1 from '../icon/icon.vue.js';
|
|
5
6
|
import { useToken } from '../theme/util/useToken.js';
|
|
@@ -33,14 +34,13 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
33
34
|
cancel(e);
|
|
34
35
|
};
|
|
35
36
|
return (_ctx, _cache) => {
|
|
36
|
-
const _component_el_button = resolveComponent("el-button");
|
|
37
37
|
const _component_el_popconfirm = resolveComponent("el-popconfirm");
|
|
38
38
|
return !_ctx.hidden ? (openBlock(), createElementBlock(Fragment, {
|
|
39
39
|
key: 0
|
|
40
40
|
}, [_ctx.popconfirm ? (openBlock(), createBlock(_component_el_popconfirm, normalizeProps(mergeProps({
|
|
41
41
|
key: 0
|
|
42
42
|
}, _ctx.popconfirm)), {
|
|
43
|
-
reference: withCtx(() => [createVNode(
|
|
43
|
+
reference: withCtx(() => [createVNode(unref(ElButton), mergeProps(unref(omit)(buttonProps.value, "popconfirm"), {
|
|
44
44
|
style: {
|
|
45
45
|
"margin": "0"
|
|
46
46
|
}
|
|
@@ -60,14 +60,14 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
60
60
|
actions: withCtx(({
|
|
61
61
|
confirm,
|
|
62
62
|
cancel
|
|
63
|
-
}) => [createVNode(
|
|
63
|
+
}) => [createVNode(unref(ElButton), {
|
|
64
64
|
size: "small",
|
|
65
65
|
onClick: event => onCancel(event, cancel)
|
|
66
66
|
}, {
|
|
67
67
|
default: withCtx(() => _cache[0] || (_cache[0] = [createTextVNode(" \u5426 ")])),
|
|
68
68
|
_: 2
|
|
69
69
|
/* DYNAMIC */
|
|
70
|
-
}, 1032, ["onClick"]), createVNode(
|
|
70
|
+
}, 1032, ["onClick"]), createVNode(unref(ElButton), {
|
|
71
71
|
type: "danger",
|
|
72
72
|
size: "small",
|
|
73
73
|
loading: loading.value,
|
|
@@ -80,7 +80,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
80
80
|
_: 1
|
|
81
81
|
/* STABLE */
|
|
82
82
|
}, 16
|
|
83
|
-
/* FULL_PROPS */)) : (openBlock(), createBlock(
|
|
83
|
+
/* FULL_PROPS */)) : (openBlock(), createBlock(unref(ElButton), mergeProps({
|
|
84
84
|
key: 1
|
|
85
85
|
}, buttonProps.value, {
|
|
86
86
|
style: {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { renderToString } from 'vue/server-renderer';
|
|
2
2
|
import { StyleProvider, StyleCache } from './StyleContext.js';
|
|
3
|
-
import { h } from 'vue';
|
|
3
|
+
import { createSSRApp, h } from 'vue';
|
|
4
|
+
import ElementPlus, { ID_INJECTION_KEY, ZINDEX_INJECTION_KEY } from 'element-plus';
|
|
4
5
|
import { isString } from '../../utils/is.js';
|
|
5
6
|
|
|
6
7
|
function extractCacheStyle(cache) {
|
|
@@ -14,7 +15,18 @@ function extractCacheStyle(cache) {
|
|
|
14
15
|
}
|
|
15
16
|
function extractStyle(node) {
|
|
16
17
|
const cache = new StyleCache();
|
|
17
|
-
|
|
18
|
+
const app = createSSRApp({
|
|
19
|
+
setup() {
|
|
20
|
+
return () => {
|
|
21
|
+
return h(StyleProvider, { cache }, () => node);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
app.use(ElementPlus);
|
|
26
|
+
app.provide(ID_INJECTION_KEY, { prefix: 1024, current: 0 });
|
|
27
|
+
app.provide(ZINDEX_INJECTION_KEY, { current: 0 });
|
|
28
|
+
app.config.warnHandler = () => null;
|
|
29
|
+
renderToString(app);
|
|
18
30
|
const styleText = extractCacheStyle(cache);
|
|
19
31
|
return styleText;
|
|
20
32
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { defineComponent, ref, watch, computed,
|
|
1
|
+
import { defineComponent, ref, watch, computed, createBlock, openBlock, unref, withCtx, createTextVNode, createVNode, toDisplayString } from 'vue';
|
|
2
|
+
import { ElButton } from 'element-plus';
|
|
2
3
|
import stdin_default$1 from '../icon/icon.vue.js';
|
|
3
4
|
|
|
4
5
|
var stdin_default = /* @__PURE__ */defineComponent({
|
|
@@ -30,8 +31,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
30
31
|
emit("update:modelValue", innerValue.value);
|
|
31
32
|
};
|
|
32
33
|
return (_ctx, _cache) => {
|
|
33
|
-
|
|
34
|
-
return openBlock(), createBlock(_component_el_button, {
|
|
34
|
+
return openBlock(), createBlock(unref(ElButton), {
|
|
35
35
|
type: "primary",
|
|
36
36
|
link: "",
|
|
37
37
|
onClick: handleClick
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TransitionGroupProps as VueTransitionGroupProps } from 'vue';
|
|
2
2
|
export interface TransitionGroupProps extends VueTransitionGroupProps {
|
|
3
|
-
effect
|
|
3
|
+
effect?: 'slide' | 'flip' | 'fade' | (string & {});
|
|
4
4
|
}
|
|
5
5
|
export interface TransitionGroupSlots {
|
|
6
6
|
default?: (props: Record<string, any>) => any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { defineComponent, computed, resolveComponent, createElementBlock, openBlock, normalizeClass, unref, createVNode, createCommentVNode, Transition, withCtx, createElementVNode, createBlock, toDisplayString, createTextVNode } from 'vue';
|
|
2
|
+
import { ElButton } from 'element-plus';
|
|
2
3
|
import { MediaCard as _MediaCard } from '../media-card/index.js';
|
|
3
4
|
import stdin_default$1 from '../icon/icon.vue.js';
|
|
4
5
|
import { useComponentConfig } from '../config-provider/config-provider.js';
|
|
@@ -46,7 +47,6 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
46
47
|
const mergedTitle = computed(() => isString(props.file.url) ? props.file.url : "");
|
|
47
48
|
return (_ctx, _cache) => {
|
|
48
49
|
const _component_el_progress = resolveComponent("el-progress");
|
|
49
|
-
const _component_el_button = resolveComponent("el-button");
|
|
50
50
|
return openBlock(), createElementBlock("div", {
|
|
51
51
|
class: normalizeClass(`${unref(prefixCls)}-item`)
|
|
52
52
|
}, [createVNode(unref(_MediaCard), {
|
|
@@ -83,7 +83,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
83
83
|
/* STABLE */
|
|
84
84
|
}, 8, ["percentage", "status"]), createElementVNode("div", {
|
|
85
85
|
class: normalizeClass(`${unref(prefixCls)}-actions`)
|
|
86
|
-
}, [_ctx.file.status === "loading" ? (openBlock(), createBlock(
|
|
86
|
+
}, [_ctx.file.status === "loading" ? (openBlock(), createBlock(unref(ElButton), {
|
|
87
87
|
key: 0,
|
|
88
88
|
link: "",
|
|
89
89
|
size: "small",
|
|
@@ -93,7 +93,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
93
93
|
default: withCtx(() => _cache[4] || (_cache[4] = [createTextVNode(" \u53D6\u6D88\u4E0A\u4F20 ")])),
|
|
94
94
|
_: 1
|
|
95
95
|
/* STABLE */
|
|
96
|
-
})) : createCommentVNode("v-if", true), _ctx.file.status === "error" ? (openBlock(), createBlock(
|
|
96
|
+
})) : createCommentVNode("v-if", true), _ctx.file.status === "error" ? (openBlock(), createBlock(unref(ElButton), {
|
|
97
97
|
key: 1,
|
|
98
98
|
link: "",
|
|
99
99
|
size: "small",
|
|
@@ -106,7 +106,7 @@ var stdin_default = /* @__PURE__ */defineComponent({
|
|
|
106
106
|
default: withCtx(() => _cache[5] || (_cache[5] = [createTextVNode(" \u91CD\u65B0\u4E0A\u4F20 ")])),
|
|
107
107
|
_: 1
|
|
108
108
|
/* STABLE */
|
|
109
|
-
})) : createCommentVNode("v-if", true), createVNode(
|
|
109
|
+
})) : createCommentVNode("v-if", true), createVNode(unref(ElButton), {
|
|
110
110
|
link: "",
|
|
111
111
|
size: "small",
|
|
112
112
|
type: "primary",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, computed, provide, reactive, resolveComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createVNode, renderSlot } from 'vue';
|
|
2
2
|
import { getAlgorithm } from './root-config-provider.js';
|
|
3
|
+
import { useLayoutStore } from '../store/layout.js';
|
|
3
4
|
import { useGlobalConfig } from './index.js';
|
|
4
5
|
import 'element-plus/dist/index.css';
|
|
5
6
|
import 'element-plus/theme-chalk/dark/css-vars.css';
|
|
@@ -8,7 +9,6 @@ import { useLocaleProvide } from '../hooks/useLocale.js';
|
|
|
8
9
|
import { useUploadProvide } from '../components/upload-context.js';
|
|
9
10
|
import { containerContextKey } from '../components/container/container.js';
|
|
10
11
|
import { ConfigProvider as _ConfigProvider } from '../components/config-provider/index.js';
|
|
11
|
-
import { useLayoutStore } from '../store/layout.js';
|
|
12
12
|
|
|
13
13
|
var stdin_default = /* @__PURE__ */defineComponent({
|
|
14
14
|
...{
|
package/hooks/useLockScroll.d.ts
CHANGED
package/hooks/usePersist.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Persist from '@gunny/persist';
|
|
2
|
-
import { InjectionKey } from 'vue';
|
|
2
|
+
import { type InjectionKey } from 'vue';
|
|
3
3
|
export declare const persistContextKey: InjectionKey<Persist>;
|
|
4
4
|
export declare const createPersist: (name: string, type: "local" | "session") => Persist;
|
|
5
5
|
/**
|
package/hooks/useTimeout.d.ts
CHANGED
|
@@ -1 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import { type MaybeRefOrGetter } from 'vue';
|
|
2
|
+
export declare function useTimeout<Callback extends (...args: any[]) => any>(callback: Callback, interval: MaybeRefOrGetter<number>): {
|
|
3
|
+
isPending: Readonly<import("vue").ShallowRef<boolean, boolean>>;
|
|
4
|
+
start: (...args: Parameters<Callback> | []) => void;
|
|
5
|
+
stop: () => void;
|
|
6
|
+
};
|
package/hooks/useTimeout.js
CHANGED
|
@@ -1,27 +1,32 @@
|
|
|
1
|
-
import { onUnmounted } from 'vue';
|
|
1
|
+
import { shallowRef, onUnmounted, shallowReadonly, toValue } from 'vue';
|
|
2
2
|
|
|
3
|
-
function useTimeout(callback) {
|
|
3
|
+
function useTimeout(callback, interval) {
|
|
4
4
|
let timer;
|
|
5
|
-
const
|
|
5
|
+
const isPending = shallowRef(false);
|
|
6
|
+
const stop = () => {
|
|
6
7
|
if (timer) {
|
|
7
8
|
clearTimeout(timer);
|
|
8
9
|
timer = null;
|
|
10
|
+
isPending.value = false;
|
|
9
11
|
}
|
|
10
12
|
};
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
+
const start = (...args) => {
|
|
14
|
+
stop();
|
|
15
|
+
isPending.value = true;
|
|
13
16
|
timer = setTimeout(() => {
|
|
14
17
|
timer = null;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const isWaitingToDoSomething = () => {
|
|
19
|
-
return !!timer;
|
|
18
|
+
isPending.value = false;
|
|
19
|
+
callback(...args);
|
|
20
|
+
}, toValue(interval));
|
|
20
21
|
};
|
|
21
22
|
onUnmounted(() => {
|
|
22
|
-
|
|
23
|
+
stop();
|
|
23
24
|
});
|
|
24
|
-
return
|
|
25
|
+
return {
|
|
26
|
+
isPending: shallowReadonly(isPending),
|
|
27
|
+
start,
|
|
28
|
+
stop
|
|
29
|
+
};
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
export { useTimeout };
|