qtsk-vue3 0.0.32 → 0.0.33
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/package/component.js +3 -1
- package/package/components/Dialog/index.vue +1 -1
- package/package/components/Skeleton/index.vue +19 -0
- package/package/components/Timeline/index.vue +8 -0
- package/package/components/Tooltip/index.vue +1 -1
- package/package/style/root.css +1 -1
- package/package.json +1 -1
package/package/component.js
CHANGED
@@ -23,6 +23,7 @@ import Number from './components/Number/index.vue'
|
|
23
23
|
import Checkbox from './components/CheckBox/index.vue'
|
24
24
|
import Upload from './components/Upload/index.vue'
|
25
25
|
import Tooltip from './components/Tooltip/index.vue'
|
26
|
+
import Skeleton from './components/Skeleton/index.vue'
|
26
27
|
const components =
|
27
28
|
[
|
28
29
|
CommonButton,
|
@@ -49,6 +50,7 @@ const components =
|
|
49
50
|
Number,
|
50
51
|
Checkbox,
|
51
52
|
Upload,
|
52
|
-
Tooltip
|
53
|
+
Tooltip,
|
54
|
+
Skeleton
|
53
55
|
]
|
54
56
|
export default components
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<template>
|
2
|
-
<el-dialog v-model="modelValue" :title="title" :width="width" align-center>
|
2
|
+
<el-dialog v-model="modelValue" :title="title" :width="width" align-center :close-on-click-modal="false">
|
3
3
|
<slot>内容</slot>
|
4
4
|
<template #footer v-if="showFooter">
|
5
5
|
<div class="dialog-footer">
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<template>
|
2
|
+
<el-skeleton :rows="rows" />
|
3
|
+
</template>
|
4
|
+
|
5
|
+
<script setup>
|
6
|
+
import { ElSkeleton } from 'element-plus'
|
7
|
+
|
8
|
+
defineOptions({
|
9
|
+
name: 'Skeleton',
|
10
|
+
})
|
11
|
+
|
12
|
+
const props = defineProps({
|
13
|
+
rows: Number,
|
14
|
+
})
|
15
|
+
|
16
|
+
</script>
|
17
|
+
|
18
|
+
<style lang="less" scoped>
|
19
|
+
</style>
|
@@ -4,8 +4,10 @@
|
|
4
4
|
<el-timeline-item
|
5
5
|
v-for="(activity, index) in activities"
|
6
6
|
:key="index"
|
7
|
+
:size="activity.size"
|
7
8
|
:timestamp="activity[timeKey]"
|
8
9
|
:color="activity.color"
|
10
|
+
:icon="renderCustomIcon(activity.icon)"
|
9
11
|
>
|
10
12
|
<div class="content">{{ activity[contentKey] }}</div>
|
11
13
|
<div class="address">{{ activity[addressKey] }}</div>
|
@@ -15,6 +17,7 @@
|
|
15
17
|
</template>
|
16
18
|
|
17
19
|
<script setup>
|
20
|
+
import { h } from 'vue'
|
18
21
|
import { ElTimeline, ElTimelineItem} from 'element-plus'
|
19
22
|
|
20
23
|
defineOptions({
|
@@ -39,6 +42,11 @@ defineProps({
|
|
39
42
|
default: 'address'
|
40
43
|
}
|
41
44
|
})
|
45
|
+
|
46
|
+
|
47
|
+
const renderCustomIcon = (iconSrc) => {
|
48
|
+
return h('img',{ src:iconSrc,class:'custom-icon' });
|
49
|
+
};
|
42
50
|
</script>
|
43
51
|
|
44
52
|
<style lang="less" scoped>
|
package/package/style/root.css
CHANGED