@mc20230601/keep-up 1.0.23 → 1.0.26
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/components/codeEditor/index.d.ts +8 -8
- package/es/components/commonDrawer/index.d.ts +28 -15
- package/es/components/commonDrawer/index.mjs +11 -4
- package/es/components/commonDrawer/index.mjs.map +1 -1
- package/es/components/commonEditor/constants.d.ts +17 -0
- package/es/components/commonEditor/constants.mjs +16 -0
- package/es/components/commonEditor/constants.mjs.map +1 -0
- package/es/components/commonEditor/index.d.ts +181 -0
- package/es/components/commonEditor/index.mjs +193 -0
- package/es/components/commonEditor/index.mjs.map +1 -0
- package/es/components/commonEditor/index.module.mjs +4 -0
- package/es/components/commonEditor/index.module.mjs.map +1 -0
- package/es/components/commonEditor/interfaces.d.ts +46 -0
- package/es/components/commonEditor/interfaces.mjs +2 -0
- package/es/components/commonEditor/interfaces.mjs.map +1 -0
- package/es/components/commonEditor/useModeMap.d.ts +4 -0
- package/es/components/commonEditor/useModeMap.mjs +17 -0
- package/es/components/commonEditor/useModeMap.mjs.map +1 -0
- package/es/components/commonFilter/constants.d.ts +2 -0
- package/es/components/commonFilter/constants.mjs +4 -0
- package/es/components/commonFilter/constants.mjs.map +1 -0
- package/es/components/commonFilter/index.d.ts +107 -0
- package/es/components/commonFilter/index.mjs +103 -0
- package/es/components/commonFilter/index.mjs.map +1 -0
- package/es/components/commonFilter/index.module.mjs +4 -0
- package/es/components/commonFilter/index.module.mjs.map +1 -0
- package/es/components/commonFilter/interfaces.d.ts +75 -0
- package/es/components/commonFilter/interfaces.mjs +2 -0
- package/es/components/commonFilter/interfaces.mjs.map +1 -0
- package/es/components/commonFilter/props.d.ts +31 -0
- package/es/components/commonFilter/props.mjs +30 -0
- package/es/components/commonFilter/props.mjs.map +1 -0
- package/es/components/commonFilter/useCollapse.d.ts +2 -0
- package/es/components/commonFilter/useCollapse.mjs +29 -0
- package/es/components/commonFilter/useCollapse.mjs.map +1 -0
- package/es/components/commonFilter/useFieldsParser.d.ts +5 -0
- package/es/components/commonFilter/useFieldsParser.mjs +34 -0
- package/es/components/commonFilter/useFieldsParser.mjs.map +1 -0
- package/es/components/commonFilter/useKeepFilter.d.ts +3 -0
- package/es/components/commonFilter/useKeepFilter.mjs +36 -0
- package/es/components/commonFilter/useKeepFilter.mjs.map +1 -0
- package/es/components/commonFilter/utils.d.ts +3 -0
- package/es/components/commonFilter/utils.mjs +14 -0
- package/es/components/commonFilter/utils.mjs.map +1 -0
- package/es/components/commonJsonPretty/index.d.ts +31 -0
- package/es/components/commonJsonPretty/index.mjs +26 -0
- package/es/components/commonJsonPretty/index.mjs.map +1 -0
- package/es/components/commonLocations/index.d.ts +1 -1
- package/es/components/commonModal/index.d.ts +30 -0
- package/es/components/commonModal/index.mjs +56 -0
- package/es/components/commonModal/index.mjs.map +1 -0
- package/es/components/commonModal/index.module.mjs +4 -0
- package/es/components/commonModal/index.module.mjs.map +1 -0
- package/es/components/commonModal/interfaces.d.ts +7 -0
- package/es/components/commonModal/interfaces.mjs +2 -0
- package/es/components/commonModal/interfaces.mjs.map +1 -0
- package/es/components/commonPage/constants.d.ts +18 -0
- package/es/components/commonPage/constants.mjs +16 -0
- package/es/components/commonPage/constants.mjs.map +1 -0
- package/es/components/commonPage/index.d.ts +256 -0
- package/es/components/commonPage/index.mjs +461 -0
- package/es/components/commonPage/index.mjs.map +1 -0
- package/es/components/commonPage/index.module.mjs +4 -0
- package/es/components/commonPage/index.module.mjs.map +1 -0
- package/es/components/commonPage/interfaces.d.ts +113 -0
- package/es/components/commonPage/interfaces.mjs +2 -0
- package/es/components/commonPage/interfaces.mjs.map +1 -0
- package/es/components/commonPage/useAsyncDataSource.d.ts +4 -0
- package/es/components/commonPage/useAsyncDataSource.mjs +39 -0
- package/es/components/commonPage/useAsyncDataSource.mjs.map +1 -0
- package/es/components/commonPage/useLayout.d.ts +6 -0
- package/es/components/commonPage/useLayout.mjs +37 -0
- package/es/components/commonPage/useLayout.mjs.map +1 -0
- package/es/components/commonPage/usePage.d.ts +4 -0
- package/es/components/commonPage/usePage.mjs +64 -0
- package/es/components/commonPage/usePage.mjs.map +1 -0
- package/es/components/commonPage/usePageActions.d.ts +2 -0
- package/es/components/commonPage/usePageActions.mjs +66 -0
- package/es/components/commonPage/usePageActions.mjs.map +1 -0
- package/es/components/commonPage/usePagePreferences.d.ts +3 -0
- package/es/components/commonPage/usePagePreferences.mjs +54 -0
- package/es/components/commonPage/usePagePreferences.mjs.map +1 -0
- package/es/components/commonPage/utils.d.ts +4 -0
- package/es/components/commonPage/utils.mjs +11 -0
- package/es/components/commonPage/utils.mjs.map +1 -0
- package/es/components/commonSetter/components/draggableList/index.d.ts +31 -0
- package/es/components/commonSetter/components/draggableList/index.mjs +113 -0
- package/es/components/commonSetter/components/draggableList/index.mjs.map +1 -0
- package/es/components/commonSetter/components/draggableList/index.module.mjs +4 -0
- package/es/components/commonSetter/components/draggableList/index.module.mjs.map +1 -0
- package/es/components/commonSetter/constants.d.ts +7 -0
- package/es/components/commonSetter/constants.mjs +10 -0
- package/es/components/commonSetter/constants.mjs.map +1 -0
- package/es/components/commonSetter/index.d.ts +31 -0
- package/es/components/commonSetter/index.mjs +108 -0
- package/es/components/commonSetter/index.mjs.map +1 -0
- package/es/components/commonSetter/index.module.mjs +4 -0
- package/es/components/commonSetter/index.module.mjs.map +1 -0
- package/es/components/commonTable/constants.d.ts +11 -0
- package/es/components/commonTable/constants.mjs +14 -0
- package/es/components/commonTable/constants.mjs.map +1 -0
- package/es/components/commonTable/index.d.ts +132 -0
- package/es/components/commonTable/index.mjs +140 -0
- package/es/components/commonTable/index.mjs.map +1 -0
- package/es/components/commonTable/index.module.mjs +4 -0
- package/es/components/commonTable/index.module.mjs.map +1 -0
- package/es/components/commonTable/interfaces.d.ts +54 -0
- package/es/components/commonTable/interfaces.mjs +2 -0
- package/es/components/commonTable/interfaces.mjs.map +1 -0
- package/es/components/commonTable/props.d.ts +71 -0
- package/es/components/commonTable/props.mjs +72 -0
- package/es/components/commonTable/props.mjs.map +1 -0
- package/es/components/commonTable/usePagination.d.ts +3 -0
- package/es/components/commonTable/usePagination.mjs +41 -0
- package/es/components/commonTable/usePagination.mjs.map +1 -0
- package/es/components/commonTable/utils.d.ts +3 -0
- package/es/components/commonTable/utils.mjs +17 -0
- package/es/components/commonTable/utils.mjs.map +1 -0
- package/es/components/elIconPlus/index.d.ts +15 -0
- package/es/components/elIconPlus/index.mjs +31 -0
- package/es/components/elIconPlus/index.mjs.map +1 -0
- package/es/components/formTabs/index.d.ts +35 -0
- package/es/components/formTabs/index.mjs +60 -0
- package/es/components/formTabs/index.mjs.map +1 -0
- package/es/components/formilyCmps/formilyForm/index.d.ts +1 -1
- package/es/components/formilyCmps/formilyForm/index.mjs +2 -2
- package/es/components/formilyCmps/formilyForm/index.mjs.map +1 -1
- package/es/components/fragment/index.d.ts +4 -0
- package/es/components/fragment/index.mjs +16 -0
- package/es/components/fragment/index.mjs.map +1 -0
- package/es/components/iconFont/index.d.ts +36 -0
- package/es/components/iconFont/index.mjs +44 -0
- package/es/components/iconFont/index.mjs.map +1 -0
- package/es/components/index.d.ts +19 -0
- package/es/components/index.mjs +14 -0
- package/es/components/index.mjs.map +1 -1
- package/es/components/radioGroup/index.d.ts +9 -9
- package/es/components/space/index.d.ts +4 -4
- package/es/components/space/index.mjs +2 -2
- package/es/components/space/index.mjs.map +1 -1
- package/es/components/upload/formilyUpload.d.ts +73 -0
- package/es/components/upload/formilyUpload.mjs +90 -0
- package/es/components/upload/formilyUpload.mjs.map +1 -0
- package/es/components/upload/index.d.ts +271 -0
- package/es/components/upload/index.mjs +22 -0
- package/es/components/upload/index.mjs.map +1 -0
- package/es/components/upload/index.module.mjs +4 -0
- package/es/components/upload/index.module.mjs.map +1 -0
- package/es/components/upload/modalUpload.d.ts +36 -0
- package/es/components/upload/modalUpload.mjs +67 -0
- package/es/components/upload/modalUpload.mjs.map +1 -0
- package/es/components/upload/upload.d.ts +76 -0
- package/es/components/upload/upload.mjs +91 -0
- package/es/components/upload/upload.mjs.map +1 -0
- package/es/index.d.ts +13 -1
- package/es/index.mjs +14 -0
- package/es/index.mjs.map +1 -1
- package/es/styles/index.css +257 -11
- package/package.json +1 -1
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { defineComponent, ref, createVNode, Fragment, mergeProps, createTextVNode } from 'vue';
|
|
2
|
+
import { UploadFilled } from '@element-plus/icons-vue';
|
|
3
|
+
import ElIconPlus from '../elIconPlus/index.mjs';
|
|
4
|
+
import CommonModal from '../commonModal/index.mjs';
|
|
5
|
+
import Upload from './upload.mjs';
|
|
6
|
+
import styles from './index.module.mjs';
|
|
7
|
+
|
|
8
|
+
const props = {
|
|
9
|
+
/** 上传文件列表 */
|
|
10
|
+
fileList: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
title: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: "\u9ED8\u8BA4\u6807\u9898"
|
|
17
|
+
},
|
|
18
|
+
tip: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: ""
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var ModalUpload = defineComponent({
|
|
24
|
+
name: "Upload",
|
|
25
|
+
inheritAttrs: false,
|
|
26
|
+
props,
|
|
27
|
+
setup(props2, {
|
|
28
|
+
slots,
|
|
29
|
+
emit,
|
|
30
|
+
attrs
|
|
31
|
+
}) {
|
|
32
|
+
const commonModal = ref();
|
|
33
|
+
const open = () => {
|
|
34
|
+
var _a, _b;
|
|
35
|
+
(_b = (_a = commonModal.value) == null ? void 0 : _a.open) == null ? void 0 : _b.call(_a);
|
|
36
|
+
};
|
|
37
|
+
return () => {
|
|
38
|
+
var _a, _b;
|
|
39
|
+
return createVNode(Fragment, null, [createVNode(CommonModal, {
|
|
40
|
+
"class": styles.container,
|
|
41
|
+
"ref": commonModal,
|
|
42
|
+
"title": props2.title
|
|
43
|
+
}, {
|
|
44
|
+
default: () => createVNode(Upload, mergeProps({
|
|
45
|
+
"fileList": props2.fileList,
|
|
46
|
+
"onUpdate:fileList": (val) => {
|
|
47
|
+
emit("update:fileList", val);
|
|
48
|
+
}
|
|
49
|
+
}, attrs), {
|
|
50
|
+
...slots,
|
|
51
|
+
default: () => createVNode(Fragment, null, [createVNode(ElIconPlus, {
|
|
52
|
+
"icon": UploadFilled,
|
|
53
|
+
"class": "el-icon--upload"
|
|
54
|
+
}, null), createVNode("div", {
|
|
55
|
+
"class": "el-upload__text"
|
|
56
|
+
}, [props2.tip, createTextVNode(" "), createVNode("em", null, [createTextVNode("\u70B9\u51FB\u4E0A\u4F20")])])])
|
|
57
|
+
}),
|
|
58
|
+
footer: (_a = slots.footer) == null ? void 0 : _a.call(slots)
|
|
59
|
+
}), createVNode("div", {
|
|
60
|
+
"onClick": open
|
|
61
|
+
}, [((_b = slots.reference) == null ? void 0 : _b.call(slots)) || "\u6253\u5F00\u5F39\u7A97"])]);
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
export { ModalUpload as default };
|
|
67
|
+
//# sourceMappingURL=modalUpload.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modalUpload.mjs","sources":["../../../../../packages/components/upload/modalUpload.tsx"],"sourcesContent":["import { defineComponent, ref } from 'vue'\nimport { UploadFilled } from '@element-plus/icons-vue'\nimport ElIconPlus from '../elIconPlus'\nimport CommonModal from '../commonModal'\nimport Upload from './upload'\nimport styles from './index.module.scss'\n\nimport type { PropType } from 'vue'\nimport type { UploadFile } from 'element-plus'\nimport type { ICommonModalExpose } from '../commonModal'\n\nconst props = {\n /** 上传文件列表 */\n fileList: {\n type: Array as PropType<UploadFile[]>,\n default: () => ([]),\n },\n title: {\n type: String,\n default: '默认标题',\n },\n tip: {\n type: String,\n default: '',\n },\n}\n\nexport default defineComponent({\n name: 'Upload',\n inheritAttrs: false,\n props,\n setup(props, { slots, emit, attrs }) {\n const commonModal = ref<ICommonModalExpose>()\n const open = () => {\n commonModal.value?.open?.()\n }\n return () => (\n <>\n <CommonModal\n class={styles.container}\n ref={commonModal}\n title={props.title}\n v-slots={{\n default: () => (\n <Upload\n fileList={props.fileList}\n onUpdate:fileList={(val: any[]) => { emit('update:fileList', val) }}\n {...attrs}\n v-slots={{\n ...slots,\n default: () => (\n <>\n <ElIconPlus icon={UploadFilled} class='el-icon--upload'/>\n <div class='el-upload__text'>\n {props.tip} <em>点击上传</em>\n </div>\n </>\n )\n }}\n />\n ),\n footer: slots.footer?.(),\n }}\n />\n <div onClick={open}>{slots.reference?.() || '打开弹窗'}</div>\n </>\n )\n }\n})\n"],"names":["props","fileList","type","Array","default","title","String","tip","defineComponent","name","inheritAttrs","setup","slots","emit","attrs","commonModal","ref","open","value","_createVNode","_Fragment","CommonModal","styles","container","Upload","_mergeProps","val","ElIconPlus","UploadFilled","_createTextVNode","footer","reference"],"mappings":";;;;;;;AAWA,MAAMA,KAAQ,GAAA;AAAA;AAAA,EAEZC,QAAU,EAAA;AAAA,IACRC,IAAMC,EAAAA,KAAAA;AAAAA,IACNC,OAAAA,EAASA,MAAO,EAAA;AAAA,GAClB;AAAA,EACAC,KAAO,EAAA;AAAA,IACLH,IAAMI,EAAAA,MAAAA;AAAAA,IACNF,OAAS,EAAA,0BAAA;AAAA,GACX;AAAA,EACAG,GAAK,EAAA;AAAA,IACHL,IAAMI,EAAAA,MAAAA;AAAAA,IACNF,OAAS,EAAA,EAAA;AAAA,GACX;AACF,CAAA,CAAA;AAEA,kBAAeI,eAAgB,CAAA;AAAA,EAC7BC,IAAM,EAAA,QAAA;AAAA,EACNC,YAAc,EAAA,KAAA;AAAA,EACdV,KAAAA;AAAAA,EACAW,MAAMX,MAAO,EAAA;AAAA,IAAEY,KAAAA;AAAAA,IAAOC,IAAAA;AAAAA,IAAMC,KAAAA;AAAAA,GAAS,EAAA;AACnC,IAAA,MAAMC,cAAcC,GAAwB,EAAA,CAAA;AA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,CAAA,CAAA,CAAA,CAAA,CAAA;AAAA,SAIjB,CAAA;AAAA,QAGLC,MAAAA,EAAAA,CAAQlB,WAAMkB,MAANlB,KAAAA,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAAA;AAAAA,OACT,CAAAO,EAAAA,WAAAA,CAAA,KAAA,EAAA;AAAA,QAAA,SAEWF,EAAAA,IAAAA;AAAAA,OAAI,EAAA,GAAGL,EAAMmB,GAAAA,KAAAA,CAAAA,SAAAA,KAANnB,mCAAuB,0BAAM,CAErD,CAAA,CAAA,CAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GACH;AACF,CAAC,CAAA;;;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { UploadFile } from 'element-plus';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
|
+
/** 上传文件列表 */
|
|
5
|
+
fileList: {
|
|
6
|
+
type: PropType<UploadFile[]>;
|
|
7
|
+
default: () => any[];
|
|
8
|
+
};
|
|
9
|
+
/** 上传api */
|
|
10
|
+
uploadApi: {
|
|
11
|
+
type: PropType<(p: any) => Promise<any>>;
|
|
12
|
+
default: any;
|
|
13
|
+
};
|
|
14
|
+
/** 最大上传数量 */
|
|
15
|
+
limit: {
|
|
16
|
+
type: NumberConstructor;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
/** 样式 */
|
|
20
|
+
style: {
|
|
21
|
+
type: ObjectConstructor;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
/** 禁用 */
|
|
25
|
+
disabled: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: boolean;
|
|
28
|
+
};
|
|
29
|
+
/** 只读 */
|
|
30
|
+
readonly: {
|
|
31
|
+
type: BooleanConstructor;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
}>, () => import("vue/jsx-runtime").JSX.Element | import("vue/jsx-runtime").JSX.Element[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("remove" | "update:fileList")[], "remove" | "update:fileList", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
/** 上传文件列表 */
|
|
36
|
+
fileList: {
|
|
37
|
+
type: PropType<UploadFile[]>;
|
|
38
|
+
default: () => any[];
|
|
39
|
+
};
|
|
40
|
+
/** 上传api */
|
|
41
|
+
uploadApi: {
|
|
42
|
+
type: PropType<(p: any) => Promise<any>>;
|
|
43
|
+
default: any;
|
|
44
|
+
};
|
|
45
|
+
/** 最大上传数量 */
|
|
46
|
+
limit: {
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
/** 样式 */
|
|
51
|
+
style: {
|
|
52
|
+
type: ObjectConstructor;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
/** 禁用 */
|
|
56
|
+
disabled: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
/** 只读 */
|
|
61
|
+
readonly: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
}>> & Readonly<{
|
|
66
|
+
onRemove?: (...args: any[]) => any;
|
|
67
|
+
"onUpdate:fileList"?: (...args: any[]) => any;
|
|
68
|
+
}>, {
|
|
69
|
+
disabled: boolean;
|
|
70
|
+
fileList: UploadFile[];
|
|
71
|
+
style: Record<string, any>;
|
|
72
|
+
uploadApi: (p: any) => Promise<any>;
|
|
73
|
+
limit: number;
|
|
74
|
+
readonly: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
76
|
+
export default _default;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { defineComponent, computed, createVNode } from 'vue';
|
|
2
|
+
import { ElLink, ElUpload } from 'element-plus';
|
|
3
|
+
|
|
4
|
+
const props = {
|
|
5
|
+
/** 上传文件列表 */
|
|
6
|
+
fileList: {
|
|
7
|
+
type: Array,
|
|
8
|
+
default: () => []
|
|
9
|
+
},
|
|
10
|
+
/** 上传api */
|
|
11
|
+
uploadApi: {
|
|
12
|
+
type: Function,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
/** 最大上传数量 */
|
|
16
|
+
limit: {
|
|
17
|
+
type: Number,
|
|
18
|
+
default: 1
|
|
19
|
+
},
|
|
20
|
+
/** 样式 */
|
|
21
|
+
style: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({})
|
|
24
|
+
},
|
|
25
|
+
/** 禁用 */
|
|
26
|
+
disabled: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: false
|
|
29
|
+
},
|
|
30
|
+
/** 只读 */
|
|
31
|
+
readonly: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: false
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
var Upload = defineComponent({
|
|
37
|
+
name: "Upload",
|
|
38
|
+
inheritAttrs: false,
|
|
39
|
+
props,
|
|
40
|
+
emits: ["update:fileList", "remove"],
|
|
41
|
+
setup(props2, {
|
|
42
|
+
slots,
|
|
43
|
+
emit,
|
|
44
|
+
attrs
|
|
45
|
+
}) {
|
|
46
|
+
const isView = computed(() => props2.disabled || props2.readonly);
|
|
47
|
+
const fileList = computed({
|
|
48
|
+
set(val) {
|
|
49
|
+
var _a;
|
|
50
|
+
emit("update:fileList", val);
|
|
51
|
+
(_a = attrs == null ? void 0 : attrs.onChange) == null ? void 0 : _a.call(attrs, val);
|
|
52
|
+
},
|
|
53
|
+
get() {
|
|
54
|
+
return props2.fileList;
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const customUpload = async (options) => {
|
|
58
|
+
var _a;
|
|
59
|
+
try {
|
|
60
|
+
const {
|
|
61
|
+
file
|
|
62
|
+
} = options;
|
|
63
|
+
const res = await ((_a = props2.uploadApi) == null ? void 0 : _a.call(props2, {
|
|
64
|
+
file
|
|
65
|
+
})) || file;
|
|
66
|
+
fileList.value = props2.limit === 1 ? [res] : [...fileList.value || [], res];
|
|
67
|
+
} catch (error) {
|
|
68
|
+
console.error(`\u4E0A\u4F20\u6587\u4EF6\u5931\u8D25\uFF0C\u5931\u8D25\u539F\u56E0\uFF1A${error}`);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const onRemove = (uploadFile, uploadFiles) => {
|
|
72
|
+
fileList.value = uploadFiles;
|
|
73
|
+
emit("remove", uploadFile, uploadFiles);
|
|
74
|
+
};
|
|
75
|
+
return () => isView.value ? (fileList.value || []).map((v) => createVNode(ElLink, {
|
|
76
|
+
"type": "primary",
|
|
77
|
+
"href": v.url,
|
|
78
|
+
"target": "_blank"
|
|
79
|
+
}, {
|
|
80
|
+
default: () => [v.name]
|
|
81
|
+
})) : createVNode(ElUpload, {
|
|
82
|
+
"style": props2.style,
|
|
83
|
+
"fileList": fileList.value,
|
|
84
|
+
"httpRequest": customUpload,
|
|
85
|
+
"onRemove": onRemove
|
|
86
|
+
}, slots);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
export { Upload as default };
|
|
91
|
+
//# sourceMappingURL=upload.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.mjs","sources":["../../../../../packages/components/upload/upload.tsx"],"sourcesContent":["import { defineComponent, computed } from 'vue'\nimport { ElUpload, ElLink } from 'element-plus'\n\nimport type { PropType } from 'vue'\nimport type { UploadRequestOptions, UploadFile, UploadFiles } from 'element-plus'\nimport type { ICommonObj } from '@mc20230601/keep-up/interfaces'\n\nconst props = {\n /** 上传文件列表 */\n fileList: {\n type: Array as PropType<UploadFile[]>,\n default: () => ([]),\n },\n /** 上传api */\n uploadApi: {\n type: Function as PropType<(p: any) => Promise<any>>,\n default: undefined,\n },\n /** 最大上传数量 */\n limit: {\n type: Number,\n default: 1,\n },\n /** 样式 */\n style: {\n type: Object,\n default: () => ({}),\n },\n /** 禁用 */\n disabled: {\n type: Boolean,\n default: false,\n },\n /** 只读 */\n readonly: {\n type: Boolean,\n default: false,\n },\n}\n\nexport default defineComponent({\n name: 'Upload',\n inheritAttrs: false,\n props,\n emits: ['update:fileList', 'remove'],\n setup(props, { slots, emit, attrs }) {\n const isView = computed(() => props.disabled || props.readonly)\n const fileList = computed<UploadFile[]>({\n set(val) {\n emit('update:fileList', val)\n ;(attrs?.onChange as (p: ICommonObj) => void)?.(val)\n },\n get() {\n return props.fileList\n },\n })\n const customUpload = async (options: UploadRequestOptions) => {\n try {\n const { file } = options\n const res: UploadFile = await props.uploadApi?.({ file }) || file\n fileList.value = props.limit === 1\n ? [res]\n : [...(fileList.value || []), res]\n } catch (error: any) {\n console.error(`上传文件失败,失败原因:${error}`)\n }\n }\n const onRemove = (uploadFile: UploadFile, uploadFiles: UploadFiles) => {\n fileList.value = uploadFiles\n emit('remove', uploadFile, uploadFiles)\n }\n return () => (\n isView.value\n ? (fileList.value || []).map(v => <ElLink type=\"primary\" href={v.url} target='_blank'>{v.name}</ElLink>)\n : <ElUpload\n style={props.style}\n fileList={fileList.value}\n httpRequest={customUpload}\n onRemove={onRemove}\n v-slots={slots}\n />\n )\n }\n})\n"],"names":["props","fileList","type","Array","default","uploadApi","Function","undefined","limit","Number","style","Object","disabled","Boolean","readonly","defineComponent","name","inheritAttrs","emits","setup","slots","emit","attrs","isView","computed","set","val","onChange","get","customUpload","options","file","res","value","error","console","onRemove","uploadFile","uploadFiles","map","v","_createVNode","ElLink","url","ElUpload"],"mappings":";;;AAOA,MAAMA,KAAQ,GAAA;AAAA;AAAA,EAEZC,QAAU,EAAA;AAAA,IACRC,IAAMC,EAAAA,KAAAA;AAAAA,IACNC,OAAAA,EAASA,MAAO,EAAA;AAAA,GAClB;AAAA;AAAA,EAEAC,SAAW,EAAA;AAAA,IACT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AAAC,MAAA,EAAA;AAAA,MAAA,MAAA,EAAA,SAAA;AAAA,MAAA,QAAiCF,CAAEG,CAAAA,GAAAA;AAAAA,MAAG,QAAA,EAAA,QAAA;AAAA,KAAA,EAAA;AAAA,MAAAvC,OAAAA,EAAAA,MAAmBoC,CAAAA,CAAAA,CAAExB,IAAI,CAAA;AAAA,KAAA,CAAU,CAACyB,GAAAA,WAAAA,CAAAG,QAAA,EAAA;AAAA,MAAA,SAE/F5C,MAAMU,CAAAA,KAAAA;AAAAA,MAAK,YACRT,QAASgC,CAAAA,KAAAA;AAAAA,MAAK,aACXJ,EAAAA,YAAAA;AAAAA,MAAY,UACfO,EAAAA,QAAAA;AAAAA,OACDhB,KAAK,CAAA,CAAA;AAAA,GAGtB;AACF,CAAC,CAAA;;;;"}
|
package/es/index.d.ts
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
export { default as CodeEditor } from './components/codeEditor';
|
|
2
2
|
export { default as CommonDrawer } from './components/commonDrawer';
|
|
3
|
+
export { default as CommonEditor } from './components/commonEditor';
|
|
4
|
+
export { default as CommonFilter } from './components/commonFilter';
|
|
5
|
+
export { default as CommonJsonPretty } from './components/commonJsonPretty';
|
|
3
6
|
export { default as CommonLocations } from './components/commonLocations';
|
|
7
|
+
export { default as CommonModal } from './components/commonModal';
|
|
8
|
+
export { default as CommonPage } from './components/commonPage';
|
|
9
|
+
export { default as CommonSetter } from './components/commonSetter';
|
|
10
|
+
export { default as CommonTable } from './components/commonTable';
|
|
11
|
+
export { default as ElIconPlus } from './components/elIconPlus';
|
|
12
|
+
export { default as FormTabs } from './components/formTabs';
|
|
4
13
|
export { default as FormilyCmps } from './components/formilyCmps';
|
|
14
|
+
export { default as Fragment } from './components/fragment';
|
|
15
|
+
export { default as IconFont } from './components/iconFont';
|
|
5
16
|
export { default as RadioGroup } from './components/radioGroup';
|
|
6
|
-
export { default as Space } from './components/space';
|
|
17
|
+
export { default as Space } from './components/space';
|
|
18
|
+
export { default as Upload } from './components/upload';
|
package/es/index.mjs
CHANGED
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
export { default as CommonFilter } from './components/commonFilter/index.mjs';
|
|
2
|
+
export { default as CommonPage } from './components/commonPage/index.mjs';
|
|
3
|
+
export { default as CommonTable } from './components/commonTable/index.mjs';
|
|
4
|
+
export { default as CommonEditor } from './components/commonEditor/index.mjs';
|
|
5
|
+
export { default as CommonModal } from './components/commonModal/index.mjs';
|
|
1
6
|
export { default as CommonDrawer } from './components/commonDrawer/index.mjs';
|
|
7
|
+
export { default as CommonLocations } from './components/commonLocations/index.mjs';
|
|
8
|
+
export { CommonJsonPretty, FormilyCommonJsonPretty } from './components/commonJsonPretty/index.mjs';
|
|
9
|
+
export { default as ElIconPlus } from './components/elIconPlus/index.mjs';
|
|
2
10
|
export { default as FormilyForm } from './components/formilyCmps/formilyForm/index.mjs';
|
|
3
11
|
export { composeFormTab as FormTab, composeFormTab } from './components/formilyCmps/formTab/index.mjs';
|
|
4
12
|
export { default as CodeEditor } from './components/codeEditor/index.mjs';
|
|
13
|
+
export { default as Fragment } from './components/fragment/index.mjs';
|
|
14
|
+
export { default as FormTabs } from './components/formTabs/index.mjs';
|
|
15
|
+
export { default as IconFont } from './components/iconFont/index.mjs';
|
|
5
16
|
export { default as RadioGroup } from './components/radioGroup/index.mjs';
|
|
6
17
|
export { default as Space } from './components/space/index.mjs';
|
|
18
|
+
export { default as Upload } from './components/upload/index.mjs';
|
|
19
|
+
export { COMMON_FILTER_INJECTION_KEY, Common_Page_Preferences_Type, PAGE_PREFERENCES_KEY, pagePreferencesToKeyMap } from './components/commonPage/constants.mjs';
|
|
20
|
+
export { MODE, defaultLayout } from './components/commonEditor/constants.mjs';
|
|
7
21
|
//# sourceMappingURL=index.mjs.map
|
package/es/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;"}
|
package/es/styles/index.css
CHANGED
|
@@ -1,6 +1,66 @@
|
|
|
1
1
|
.index-module_container__VGtEq {
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
|
+
.index-module_container__pOL02 .el-drawer__title {
|
|
5
|
+
text-align: left;
|
|
6
|
+
}
|
|
7
|
+
.index-module_container__bsvsi {
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 100%;
|
|
10
|
+
}
|
|
11
|
+
.index-module_container__bsvsi > .el-space__item {
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: auto;
|
|
14
|
+
}
|
|
15
|
+
.index-module_container__bsvsi > .el-space__item:nth-child(2) {
|
|
16
|
+
justify-content: flex-end;
|
|
17
|
+
}
|
|
18
|
+
.index-module_container__bsvsi .el-pagination {
|
|
19
|
+
flex: none !important;
|
|
20
|
+
}
|
|
21
|
+
.index-module_container__D46b- {
|
|
22
|
+
padding: 16px 20px !important;
|
|
23
|
+
box-sizing: border-box !important;
|
|
24
|
+
}
|
|
25
|
+
.index-module_container__Kf-LD {
|
|
26
|
+
width: 100%;
|
|
27
|
+
height: auto;
|
|
28
|
+
}
|
|
29
|
+
.index-module_container__Kf-LD .formily-element-plus-form-item-feedback-layout-loose {
|
|
30
|
+
margin: 0;
|
|
31
|
+
}
|
|
32
|
+
.index-module_container__Kf-LD .index-module_btn__4DJ6R {
|
|
33
|
+
margin-left: 0 !important;
|
|
34
|
+
}
|
|
35
|
+
.index-module_container__m2VYe {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
}
|
|
38
|
+
.index-module_container__m2VYe .formily-element-plus-form-item-label {
|
|
39
|
+
width: var(--common-editor-label-width);
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: flex-start;
|
|
42
|
+
margin-bottom: 5px;
|
|
43
|
+
}
|
|
44
|
+
.index-module_container__m2VYe .formily-element-plus-form-item {
|
|
45
|
+
margin: var(--common-editor-label-margin);
|
|
46
|
+
}
|
|
47
|
+
.index-module_container__m2VYe .el-drawer__footer {
|
|
48
|
+
box-shadow: 0 0 10px #eee;
|
|
49
|
+
}
|
|
50
|
+
.index-module_container__m2VYe.index-module_editMode__AaUsL .formily-element-plus-form-item-label {
|
|
51
|
+
justify-content: end;
|
|
52
|
+
padding-right: 10px;
|
|
53
|
+
box-sizing: border-box;
|
|
54
|
+
}
|
|
55
|
+
.index-module_container__m2VYe.index-module_editMode__AaUsL .formily-element-plus-form-item-colon {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
.index-module_container__m2VYe .index-module_footer__WU6ip {
|
|
59
|
+
width: 100%;
|
|
60
|
+
height: auto;
|
|
61
|
+
box-sizing: border-box;
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
}
|
|
4
64
|
@charset "UTF-8";
|
|
5
65
|
/* 全局 css 变量 */
|
|
6
66
|
:root {
|
|
@@ -17,21 +77,142 @@
|
|
|
17
77
|
--el-fill-color-lighter: #f5f7fa;
|
|
18
78
|
}
|
|
19
79
|
|
|
20
|
-
.index-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
80
|
+
.index-module_container__i8ob4 {
|
|
81
|
+
margin: 0;
|
|
82
|
+
padding: 0;
|
|
83
|
+
border-radius: 4px;
|
|
84
|
+
overflow: hidden;
|
|
85
|
+
}
|
|
86
|
+
.index-module_container__i8ob4.el-dialog {
|
|
87
|
+
padding: 0;
|
|
88
|
+
margin-top: 7vh;
|
|
89
|
+
}
|
|
90
|
+
.index-module_container__i8ob4 .el-dialog__header {
|
|
91
|
+
text-align: left;
|
|
92
|
+
padding: 16px 24px;
|
|
24
93
|
box-sizing: border-box;
|
|
25
|
-
background-color: #
|
|
94
|
+
background-color: #F6F8FA;
|
|
26
95
|
}
|
|
27
|
-
.index-
|
|
28
|
-
|
|
96
|
+
.index-module_container__i8ob4 .el-dialog__title {
|
|
97
|
+
font-family: PingFang SC;
|
|
98
|
+
font-weight: 500;
|
|
99
|
+
font-size: 18px;
|
|
100
|
+
line-height: 100%;
|
|
101
|
+
vertical-align: middle;
|
|
29
102
|
}
|
|
30
|
-
.index-
|
|
31
|
-
|
|
103
|
+
.index-module_container__i8ob4 .el-dialog__headerbtn {
|
|
104
|
+
padding-right: 10px;
|
|
105
|
+
top: 4px;
|
|
32
106
|
}
|
|
33
|
-
.index-
|
|
34
|
-
|
|
107
|
+
.index-module_container__i8ob4 .el-dialog__body {
|
|
108
|
+
padding: 16px 24px;
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
}
|
|
111
|
+
.index-module_container__i8ob4 .el-dialog__footer {
|
|
112
|
+
padding: 16px 24px;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
background-color: #F6F8FA;
|
|
115
|
+
}
|
|
116
|
+
.index-module_container__i8ob4 .index-module_content__LREdw {
|
|
117
|
+
max-height: 80vh;
|
|
118
|
+
overflow-y: auto;
|
|
119
|
+
}
|
|
120
|
+
@charset "UTF-8";
|
|
121
|
+
/* 全局 css 变量 */
|
|
122
|
+
:root {
|
|
123
|
+
--el-color-primary: #007dff;
|
|
124
|
+
--el-color-success: #67c23a;
|
|
125
|
+
--el-color-warning: #e6a23c;
|
|
126
|
+
--el-color-danger: #f56c6c;
|
|
127
|
+
--el-color-info: #909399;
|
|
128
|
+
--el-border-radius-base: 8px;
|
|
129
|
+
--el-border-radius-small: 4px;
|
|
130
|
+
--el-border-radius-round: 8px;
|
|
131
|
+
--el-border-radius-circle: 8px;
|
|
132
|
+
--el-dialog-margin-top: 5vh;
|
|
133
|
+
--el-fill-color-lighter: #f5f7fa;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.index-module_container__JA4Ki {
|
|
137
|
+
width: 100%;
|
|
138
|
+
height: 100%;
|
|
139
|
+
background-color: #fff;
|
|
140
|
+
box-sizing: border-box;
|
|
141
|
+
padding-top: 12px;
|
|
142
|
+
border-radius: 16px;
|
|
143
|
+
}
|
|
144
|
+
.index-module_container__JA4Ki > .el-space__item {
|
|
145
|
+
width: 100%;
|
|
146
|
+
height: auto;
|
|
147
|
+
}
|
|
148
|
+
.index-module_container__JA4Ki > .el-space__item:nth-child(3) {
|
|
149
|
+
flex: 1;
|
|
150
|
+
}
|
|
151
|
+
.index-module_container__JA4Ki .index-module_extraPane__bGn22 {
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: auto;
|
|
154
|
+
}
|
|
155
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 {
|
|
156
|
+
width: 100%;
|
|
157
|
+
padding: 0 12px;
|
|
158
|
+
box-sizing: border-box;
|
|
159
|
+
}
|
|
160
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 > .el-space:nth-child(1) {
|
|
161
|
+
flex: 1;
|
|
162
|
+
}
|
|
163
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 > .el-space__item {
|
|
164
|
+
width: fit-content;
|
|
165
|
+
height: auto;
|
|
166
|
+
}
|
|
167
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 > .el-space__item:nth-child(1) {
|
|
168
|
+
flex: 1;
|
|
169
|
+
}
|
|
170
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 > .el-space__item:nth-child(1) > button {
|
|
171
|
+
flex: none;
|
|
172
|
+
}
|
|
173
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 > .index-module_end__IkaJT {
|
|
174
|
+
justify-content: end;
|
|
175
|
+
}
|
|
176
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 .index-module_line__PeHqv {
|
|
177
|
+
width: 2px;
|
|
178
|
+
height: 17px;
|
|
179
|
+
margin: 7px 0 0 0;
|
|
180
|
+
}
|
|
181
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 .index-module_commonFilterContainer__yiOoN {
|
|
182
|
+
width: 80% !important;
|
|
183
|
+
flex-shrink: 0;
|
|
184
|
+
}
|
|
185
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 .index-module_collapse__2DAL1 {
|
|
186
|
+
cursor: pointer;
|
|
187
|
+
height: 32px;
|
|
188
|
+
padding: 8px 0;
|
|
189
|
+
color: #007dff;
|
|
190
|
+
}
|
|
191
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 .index-module_collapse__2DAL1 .index-module_collapseIcon__q4Avi {
|
|
192
|
+
color: #007dff;
|
|
193
|
+
}
|
|
194
|
+
.index-module_container__JA4Ki .index-module_setter__KQO76 .index-module_collapse__2DAL1 .index-module_collapseText__s4JMy {
|
|
195
|
+
font-family: "PingFangSC-Regular", "PingFang SC", sans-serif;
|
|
196
|
+
font-weight: 400;
|
|
197
|
+
font-style: normal;
|
|
198
|
+
font-size: 14px;
|
|
199
|
+
color: #007dff;
|
|
200
|
+
white-space: nowrap;
|
|
201
|
+
}
|
|
202
|
+
.index-module_container__JA4Ki .index-module_tableContainer__xl-q- {
|
|
203
|
+
width: 100%;
|
|
204
|
+
padding: 0;
|
|
205
|
+
box-sizing: border-box;
|
|
206
|
+
}
|
|
207
|
+
.index-module_container__qa31T .el-upload--text {
|
|
208
|
+
flex-direction: column;
|
|
209
|
+
width: 100%;
|
|
210
|
+
}
|
|
211
|
+
.index-module_container__qa31T .el-icon--upload {
|
|
212
|
+
font-size: 67px;
|
|
213
|
+
color: #a8abb2;
|
|
214
|
+
margin-bottom: 16px;
|
|
215
|
+
line-height: 50px;
|
|
35
216
|
}
|
|
36
217
|
@charset "UTF-8";
|
|
37
218
|
.index-module_container__u57hI {
|
|
@@ -52,4 +233,69 @@
|
|
|
52
233
|
}
|
|
53
234
|
.index-module_container__u57hI .el-step__title {
|
|
54
235
|
margin-top: 30px;
|
|
236
|
+
}
|
|
237
|
+
@charset "UTF-8";
|
|
238
|
+
/* 全局 css 变量 */
|
|
239
|
+
:root {
|
|
240
|
+
--el-color-primary: #007dff;
|
|
241
|
+
--el-color-success: #67c23a;
|
|
242
|
+
--el-color-warning: #e6a23c;
|
|
243
|
+
--el-color-danger: #f56c6c;
|
|
244
|
+
--el-color-info: #909399;
|
|
245
|
+
--el-border-radius-base: 8px;
|
|
246
|
+
--el-border-radius-small: 4px;
|
|
247
|
+
--el-border-radius-round: 8px;
|
|
248
|
+
--el-border-radius-circle: 8px;
|
|
249
|
+
--el-dialog-margin-top: 5vh;
|
|
250
|
+
--el-fill-color-lighter: #f5f7fa;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
.index-module_wrapper__o-ooH {
|
|
254
|
+
line-height: 16px;
|
|
255
|
+
font-weight: bold;
|
|
256
|
+
padding: 6px 6px 6px 10px;
|
|
257
|
+
box-sizing: border-box;
|
|
258
|
+
background-color: #f5f5f5;
|
|
259
|
+
}
|
|
260
|
+
.index-module_wrapper__o-ooH.index-module_primary__-O491 {
|
|
261
|
+
border-left: 6px solid #007dff;
|
|
262
|
+
}
|
|
263
|
+
.index-module_wrapper__o-ooH.index-module_danger__8-OdG {
|
|
264
|
+
border-left: 6px solid #f56c6c;
|
|
265
|
+
}
|
|
266
|
+
.index-module_container__cwKyU {
|
|
267
|
+
width: 140px;
|
|
268
|
+
border-radius: 5px;
|
|
269
|
+
}
|
|
270
|
+
.index-module_container__cwKyU .el-checkbox {
|
|
271
|
+
width: 100%;
|
|
272
|
+
}
|
|
273
|
+
.index-module_container__cwKyU .el-checkbox__label {
|
|
274
|
+
width: calc(100% - 22px);
|
|
275
|
+
}
|
|
276
|
+
.index-module_container__cwKyU .index-module_allCheckbox__gnca9 {
|
|
277
|
+
width: 100%;
|
|
278
|
+
}
|
|
279
|
+
.index-module_container__cwKyU .index-module_allCheckbox__gnca9:hover {
|
|
280
|
+
background-color: #f5f5f5 !important;
|
|
281
|
+
}
|
|
282
|
+
.index-module_container__cwKyU .index-module_divider__Si8Gr {
|
|
283
|
+
margin: 0;
|
|
284
|
+
}
|
|
285
|
+
.index-module_container__cwKyU .index-module_childBox__B2OiA {
|
|
286
|
+
width: 100%;
|
|
287
|
+
height: 300px;
|
|
288
|
+
overflow-y: auto;
|
|
289
|
+
}
|
|
290
|
+
.index-module_container__cwKyU .index-module_childBox__B2OiA .index-module_draggle__G85gE {
|
|
291
|
+
display: flex;
|
|
292
|
+
flex-direction: column;
|
|
293
|
+
}
|
|
294
|
+
.index-module_container__cwKyU .index-module_childBox__B2OiA .index-module_child__Y1jP- {
|
|
295
|
+
width: 100%;
|
|
296
|
+
margin: 0;
|
|
297
|
+
flex-shrink: 0;
|
|
298
|
+
}
|
|
299
|
+
.index-module_container__cwKyU .index-module_childBox__B2OiA .index-module_child__Y1jP-:hover {
|
|
300
|
+
background-color: #f5f5f5 !important;
|
|
55
301
|
}
|