qtsk-vue3 0.0.31 → 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.
@@ -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>
@@ -32,7 +32,7 @@ defineProps({
32
32
 
33
33
  <style lang="less" scoped>
34
34
  .normalClass {
35
- margin: 0 0 0 10px;
35
+ margin: 0;
36
36
  display: flex;
37
37
  align-items: center;
38
38
  }
@@ -11,6 +11,7 @@
11
11
  :on-success="handleSuccess"
12
12
  :on-change="handleChange"
13
13
  :headers="headers"
14
+ :data="data"
14
15
  :disabled="fileListRef.length === 0 ? false : true"
15
16
  :auto-upload="false"
16
17
  :action="url">
@@ -42,7 +43,11 @@ defineProps({
42
43
  type: Object,
43
44
  default: () => ({})
44
45
  },
45
- limit: Number
46
+ limit: Number,
47
+ data: {
48
+ type: Object,
49
+ default: () => ({})
50
+ }
46
51
  })
47
52
 
48
53
  const fileListRef = ref([])
@@ -1,5 +1,5 @@
1
1
  /* 标准化样式定义 */
2
2
  :root{
3
3
  --main-color: #4d4398;
4
- --main-background-color: #F5EFE9;
4
+ --main-background-color: #ECECF3;
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qtsk-vue3",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "description": "vue3版组件库",
5
5
  "main": "./package/index.js",
6
6
  "scripts": {