@mc20230601/keep-up 1.0.30 → 1.0.31
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.
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref
|
|
2
|
-
import { ElDrawer, ElEmpty } from 'element-plus';
|
|
3
|
-
import styles from './index.module.mjs';
|
|
1
|
+
import { defineComponent, ref } from 'vue';
|
|
4
2
|
|
|
5
3
|
const props = {
|
|
6
4
|
/** 默认标题 */
|
|
@@ -36,31 +34,27 @@ const commonDrawer = defineComponent({
|
|
|
36
34
|
open,
|
|
37
35
|
close
|
|
38
36
|
});
|
|
39
|
-
return () =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
title: (_a = slots.title) == null ? void 0 : _a.call(slots),
|
|
61
|
-
footer: (_b = slots.footer) == null ? void 0 : _b.call(slots)
|
|
62
|
-
});
|
|
63
|
-
};
|
|
37
|
+
return () => (
|
|
38
|
+
// <ElDrawer
|
|
39
|
+
// class={styles.container}
|
|
40
|
+
// v-model={visible.value}
|
|
41
|
+
// {...attrs}
|
|
42
|
+
// title={props.title}
|
|
43
|
+
// size={props.size}
|
|
44
|
+
// destroyOnClose
|
|
45
|
+
// appendToBody
|
|
46
|
+
// onClose={() => {
|
|
47
|
+
// emit('close')
|
|
48
|
+
// }}
|
|
49
|
+
// v-slots={{
|
|
50
|
+
// title: slots.title?.(),
|
|
51
|
+
// footer: slots.footer?.(),
|
|
52
|
+
// }}
|
|
53
|
+
// >
|
|
54
|
+
// {slots.default?.() || <ElEmpty description='No Data' />}
|
|
55
|
+
// </ElDrawer>
|
|
56
|
+
2
|
|
57
|
+
);
|
|
64
58
|
}
|
|
65
59
|
});
|
|
66
60
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonDrawer/index.tsx"],"sourcesContent":["import { defineComponent, ref } from 'vue'\nimport { ElDrawer, ElEmpty } from 'element-plus'\nimport styles from './index.module.scss'\n\nimport type { ExtractPropTypes, DefineComponent } from 'vue'\nimport type { DrawerProps } from 'element-plus'\nimport type { ICommonDrawerExpose } from './interfaces'\n\nconst props = {\n /** 默认标题 */\n title: {\n type: String,\n default: '默认标题',\n },\n /** 宽度 */\n size: {\n type: String,\n default: '70%',\n },\n}\n\nexport type CardProps = ExtractPropTypes<typeof props> &\n Omit<Partial<DrawerProps>, 'title' | 'size'>\n\nexport * from './interfaces'\nconst commonDrawer = defineComponent({\n name: 'CommonEditor',\n inheritAttrs: false,\n props,\n emits: ['close'],\n setup(props, { expose, slots, attrs, emit }) {\n const visible = ref(false)\n /** 打开抽屉 */\n const open = () => {\n visible.value = true\n }\n /** 关闭抽屉 */\n const close = () => {\n visible.value = false\n }\n expose<ICommonDrawerExpose>({\n open,\n close,\n })\n return () => (\n <ElDrawer\n
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/commonDrawer/index.tsx"],"sourcesContent":["import { defineComponent, ref } from 'vue'\nimport { ElDrawer, ElEmpty } from 'element-plus'\nimport styles from './index.module.scss'\n\nimport type { ExtractPropTypes, DefineComponent } from 'vue'\nimport type { DrawerProps } from 'element-plus'\nimport type { ICommonDrawerExpose } from './interfaces'\n\nconst props = {\n /** 默认标题 */\n title: {\n type: String,\n default: '默认标题',\n },\n /** 宽度 */\n size: {\n type: String,\n default: '70%',\n },\n}\n\nexport type CardProps = ExtractPropTypes<typeof props> &\n Omit<Partial<DrawerProps>, 'title' | 'size'>\n\nexport * from './interfaces'\nconst commonDrawer = defineComponent({\n name: 'CommonEditor',\n inheritAttrs: false,\n props,\n emits: ['close'],\n setup(props, { expose, slots, attrs, emit }) {\n const visible = ref(false)\n /** 打开抽屉 */\n const open = () => {\n visible.value = true\n }\n /** 关闭抽屉 */\n const close = () => {\n visible.value = false\n }\n expose<ICommonDrawerExpose>({\n open,\n close,\n })\n return () => (\n // <ElDrawer\n // class={styles.container}\n // v-model={visible.value}\n // {...attrs}\n // title={props.title}\n // size={props.size}\n // destroyOnClose\n // appendToBody\n // onClose={() => {\n // emit('close')\n // }}\n // v-slots={{\n // title: slots.title?.(),\n // footer: slots.footer?.(),\n // }}\n // >\n // {slots.default?.() || <ElEmpty description='No Data' />}\n // </ElDrawer>\n 2\n )\n },\n})\n\nexport default commonDrawer as unknown as DefineComponent<\n /** props */\n CardProps,\n /** setup return */\n {},\n /** 没人用,vue2的data */\n {},\n /** 没人用,vue2的computed */\n {},\n /** 没人用,vue2的method */\n {},\n /** 没人用,mixin */\n {},\n /** 没人用,extends */\n {},\n /** emits */\n { close: () => void }\n>\n"],"names":["props","title","type","String","default","size","commonDrawer","defineComponent","name","inheritAttrs","emits","setup","expose","slots","attrs","emit","visible","ref","open","value","close"],"mappings":";;AAQA,MAAMA,KAAQ,GAAA;AAAA;AAAA,EAEZC,KAAO,EAAA;AAAA,IACLC,IAAMC,EAAAA,MAAAA;AAAAA,IACNC,OAAS,EAAA,0BAAA;AAAA,GACX;AAAA;AAAA,EAEAC,IAAM,EAAA;AAAA,IACJH,IAAMC,EAAAA,MAAAA;AAAAA,IACNC,OAAS,EAAA,KAAA;AAAA,GACX;AACF,CAAA,CAAA;AAMA,MAAME,eAAeC,eAAgB,CAAA;AAAA,EACnCC,IAAM,EAAA,cAAA;AAAA,EACNC,YAAc,EAAA,KAAA;AAAA,EACdT,KAAAA;AAAAA,EACAU,KAAAA,EAAO,CAAC,OAAO,CAAA;AAAA,EACfC,MAAMX,MAAO,EAAA;AAAA,IAAEY,MAAAA;AAAAA,IAAQC,KAAAA;AAAAA,IAAOC,KAAAA;AAAAA,IAAOC,IAAAA;AAAAA,GAAQ,EAAA;AAC3C,IAAMC,MAAAA,OAAAA,GAAUC,IAAI,KAAK,CAAA,CAAA;AAEzB,IAAA,MAAMC,OAAOA,MAAM;AACjBF,MAAAA,OAAAA,CAAQG,KAAQ,GAAA,IAAA,CAAA;AAAA,KAClB,CAAA;AAEA,IAAA,MAAMC,QAAQA,MAAM;AAClBJ,MAAAA,OAAAA,CAAQG,KAAQ,GAAA,KAAA,CAAA;AAAA,KAClB,CAAA;AACAP,IAA4B,MAAA,CAAA;AAAA,MAC1BM,IAAAA;AAAAA,MACAE,KAAAA;AAAAA,KACD,CAAA,CAAA;AACD,IAAO,OAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,MAmBL,CAAA;AAAA,KAAA,CAAA;AAAA,GAEJ;AACF,CAAC;;;;"}
|
package/es/styles/index.css
CHANGED
|
@@ -113,12 +113,6 @@
|
|
|
113
113
|
.index-module_container__bsvsi .el-table__empty-block {
|
|
114
114
|
min-height: 334px;
|
|
115
115
|
}
|
|
116
|
-
.index-module_container__pOL02 .el-drawer__header {
|
|
117
|
-
margin-bottom: 10px;
|
|
118
|
-
}
|
|
119
|
-
.index-module_container__pOL02 .el-drawer__title {
|
|
120
|
-
text-align: left;
|
|
121
|
-
}
|
|
122
116
|
.index-module_container__m2VYe {
|
|
123
117
|
overflow: hidden;
|
|
124
118
|
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|