@elementplus-kit/uikit 1.0.1 → 1.0.3
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/button/index.ts +4 -0
- package/components/button/src/constants.ts +50 -0
- package/components/button/src/index.ts +91 -0
- package/components/dictLabel/index.ts +4 -0
- package/components/dictLabel/src/index.vue +21 -0
- package/components/form/src/index.ts +18 -3
- package/components/form/style/index.scss +5 -0
- package/components/{index.js → index.ts} +6 -0
- package/components/search/index.ts +2 -2
- package/components/search/src/{index.vue → index-/346/272/220.vue} +67 -64
- package/components/search/src/index.tsx +172 -0
- package/components/search/style/index.scss +93 -0
- package/components/{table2 → table}/src/TableColumn.ts +1 -1
- package/components/table/src/index.ts +245 -7
- package/components/table/src/tableDictLabel.vue +21 -0
- package/components/table2/src/index.ts +7 -205
- package/components/{table → table2}/src/types.ts +39 -39
- package/components/table2/style/index.scss +0 -0
- package/components//346/250/241/346/235/277/index.tsx +57 -0
- package/components//346/250/241/346/235/277/ttt.ts +3 -2
- package/components//346/250/241/346/235/277/ttt.vue +18 -0
- package/package.json +2 -2
- /package/components/{table → button}/style/index.scss +0 -0
- /package/components/{table2 → table}/src/constants.ts +0 -0
- /package/components/{table2 → table}/src/index2.ts +0 -0
- /package/components/{table2 → table}/src/index3.ts +0 -0
- /package/components/{table2 → table}/src/tableaa.ts +0 -0
- /package/components/{table2 → table}/src/type.ts +0 -0
- /package/components/{table2 → table}/type/index.scss +0 -0
- /package/components/{table → table2}/src/config.ts +0 -0
- /package/components/{table → table2}/src/render.ts +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ref,
|
|
3
|
+
computed,
|
|
4
|
+
defineComponent,
|
|
5
|
+
} from "vue";
|
|
6
|
+
|
|
7
|
+
// import { CForm, CDrawer } from "@elementplus-kit/uikit";
|
|
8
|
+
// import '../style/index.scss';
|
|
9
|
+
|
|
10
|
+
export default defineComponent({
|
|
11
|
+
props: {
|
|
12
|
+
// modelValue: {
|
|
13
|
+
// type: Object,
|
|
14
|
+
// default: {}
|
|
15
|
+
// },
|
|
16
|
+
// formOptions: {
|
|
17
|
+
// type: Array,
|
|
18
|
+
// default: () => []
|
|
19
|
+
// },
|
|
20
|
+
// isDrawer: {
|
|
21
|
+
// type: Boolean,
|
|
22
|
+
// default: false
|
|
23
|
+
// },
|
|
24
|
+
},
|
|
25
|
+
// emits: ['update:modelValue', 'search', 'reset', 'close'],
|
|
26
|
+
|
|
27
|
+
setup(props, { emit, slots, attrs, expose }) {
|
|
28
|
+
// 自己的 slot
|
|
29
|
+
// const slotsList = ["active", "btn-left", "btn-right"];
|
|
30
|
+
// console.log('slots', slots);
|
|
31
|
+
// console.log('attrs', attrs);
|
|
32
|
+
// 解析 attrs 中的事件
|
|
33
|
+
// const getEvent = () => {
|
|
34
|
+
// let formObj: any = {};
|
|
35
|
+
// Object.keys(attrs)?.forEach((name) => {
|
|
36
|
+
// if (name.indexOf("on") === 0) {
|
|
37
|
+
// formObj[name] = attrs[name];
|
|
38
|
+
// }
|
|
39
|
+
// })
|
|
40
|
+
// return formObj
|
|
41
|
+
// };
|
|
42
|
+
|
|
43
|
+
// 解析插槽
|
|
44
|
+
// const getSlot = () => {
|
|
45
|
+
// let formObj = {};
|
|
46
|
+
// Object.keys(slots).forEach((key) => {
|
|
47
|
+
// if (!slotsList.includes(key)) {
|
|
48
|
+
// formObj[key] = slots[key];
|
|
49
|
+
// }
|
|
50
|
+
// });
|
|
51
|
+
// return formObj
|
|
52
|
+
// };
|
|
53
|
+
return () => (
|
|
54
|
+
<div className="xxxxxxx">xxxxxxx</div>
|
|
55
|
+
)
|
|
56
|
+
},
|
|
57
|
+
})
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
toRefs,
|
|
6
6
|
getCurrentInstance,
|
|
7
7
|
provide,
|
|
8
|
+
defineComponent,
|
|
8
9
|
type ExtractPropTypes,
|
|
9
10
|
type PropType,
|
|
10
11
|
} from 'vue'
|
|
@@ -22,7 +23,7 @@ const propsAttrs = {
|
|
|
22
23
|
|
|
23
24
|
export type PropsAttrs = ExtractPropTypes<typeof propsAttrs>
|
|
24
25
|
|
|
25
|
-
export default {
|
|
26
|
+
export default defineComponent({
|
|
26
27
|
props: propsAttrs,
|
|
27
28
|
emits: [...getEmits()],
|
|
28
29
|
setup(props: PropsAttrs, { attrs: $attrs, emit, slots, expose }) {
|
|
@@ -62,4 +63,4 @@ export default {
|
|
|
62
63
|
// 返回渲染函数
|
|
63
64
|
return () => renderForm()
|
|
64
65
|
},
|
|
65
|
-
}
|
|
66
|
+
})
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="xxx">
|
|
3
|
+
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
<script setup lang="ts">
|
|
7
|
+
import { ref, computed, useAttrs, useSlots, defineModel } from 'vue'
|
|
8
|
+
import { ArrowUpBold } from '@element-plus/icons-vue'
|
|
9
|
+
const props = defineProps({
|
|
10
|
+
formOptions: {
|
|
11
|
+
type: Array,
|
|
12
|
+
default: () => []
|
|
13
|
+
},
|
|
14
|
+
})
|
|
15
|
+
const emit = defineEmits(['search', 'reset', 'close'])
|
|
16
|
+
|
|
17
|
+
</script>
|
|
18
|
+
<style scoped lang="scss"></style>
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|