leisure-core 0.4.98 → 0.4.99
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/le-button-select-media/src/main.vue +17 -4
- package/le-dialog-container/src/main.vue +5 -0
- package/le-input/src/main.vue +0 -2
- package/le-list/src/main.vue +1 -12
- package/le-list-form/src/main.vue +12 -5
- package/le-media-list/src/main.vue +0 -1
- package/le-span/src/main.vue +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="le-button-select-media">
|
|
3
|
-
<le-button type="primary" id="btnSelectMedia" @click="onClick"
|
|
4
|
-
|
|
5
|
-
>
|
|
3
|
+
<le-button type="primary" id="btnSelectMedia" @click="onClick">{{
|
|
4
|
+
btnTitle
|
|
5
|
+
}}</le-button>
|
|
6
6
|
<le-dialog-container
|
|
7
7
|
:title="title"
|
|
8
8
|
:showDialog="showDialog"
|
|
9
|
+
:showFooter="showFooter"
|
|
9
10
|
:width="width"
|
|
10
11
|
@close="closeDialog"
|
|
11
12
|
>
|
|
@@ -24,6 +25,10 @@ export default {
|
|
|
24
25
|
name: "le-button-select-media",
|
|
25
26
|
components: { LeButton },
|
|
26
27
|
props: {
|
|
28
|
+
btnTitle: {
|
|
29
|
+
type: String,
|
|
30
|
+
default: "选择素材",
|
|
31
|
+
},
|
|
27
32
|
width: {
|
|
28
33
|
type: String,
|
|
29
34
|
default: "70%",
|
|
@@ -32,10 +37,18 @@ export default {
|
|
|
32
37
|
type: String,
|
|
33
38
|
default: "选择素材",
|
|
34
39
|
},
|
|
40
|
+
param: {
|
|
41
|
+
type: [Object, String, Number],
|
|
42
|
+
default: () => {},
|
|
43
|
+
},
|
|
35
44
|
multiple: {
|
|
36
45
|
type: Boolean,
|
|
37
46
|
default: true,
|
|
38
47
|
},
|
|
48
|
+
showFooter: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false,
|
|
51
|
+
},
|
|
39
52
|
},
|
|
40
53
|
data() {
|
|
41
54
|
return {
|
|
@@ -50,7 +63,7 @@ export default {
|
|
|
50
63
|
this.showDialog = false;
|
|
51
64
|
},
|
|
52
65
|
selectContent(value) {
|
|
53
|
-
this.$emit("selectContent", value);
|
|
66
|
+
this.$emit("selectContent", value, this.param);
|
|
54
67
|
if (!this.multiple) {
|
|
55
68
|
this.closeDialog();
|
|
56
69
|
}
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:title="title"
|
|
5
5
|
:visible.sync="dialogShow"
|
|
6
6
|
:close-on-click-modal="closeMode"
|
|
7
|
+
:show-close="showCloseBtnTop"
|
|
7
8
|
append-to-body
|
|
8
9
|
@close="closeDialog"
|
|
9
10
|
v-el-drag-dialog
|
|
@@ -54,6 +55,10 @@ export default {
|
|
|
54
55
|
type: Boolean,
|
|
55
56
|
default: true,
|
|
56
57
|
},
|
|
58
|
+
showCloseBtnTop: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true,
|
|
61
|
+
},
|
|
57
62
|
saveBtnText: {
|
|
58
63
|
type: String,
|
|
59
64
|
default: "确 定",
|
package/le-input/src/main.vue
CHANGED
package/le-list/src/main.vue
CHANGED
|
@@ -105,14 +105,6 @@ export default {
|
|
|
105
105
|
type: Array,
|
|
106
106
|
default: () => [],
|
|
107
107
|
},
|
|
108
|
-
formColumns: {
|
|
109
|
-
type: Array,
|
|
110
|
-
default: () => [],
|
|
111
|
-
},
|
|
112
|
-
rules: {
|
|
113
|
-
type: Object,
|
|
114
|
-
default: () => {},
|
|
115
|
-
},
|
|
116
108
|
searchParam: {
|
|
117
109
|
type: Object,
|
|
118
110
|
default: () => {},
|
|
@@ -133,10 +125,6 @@ export default {
|
|
|
133
125
|
type: String,
|
|
134
126
|
default: "标题",
|
|
135
127
|
},
|
|
136
|
-
fieldOptions: {
|
|
137
|
-
type: Object,
|
|
138
|
-
default: () => {},
|
|
139
|
-
},
|
|
140
128
|
disBtn: {
|
|
141
129
|
type: String,
|
|
142
130
|
default: "edit",
|
|
@@ -232,6 +220,7 @@ export default {
|
|
|
232
220
|
editItem(row) {
|
|
233
221
|
this.handleStatus = 2;
|
|
234
222
|
this.$emit("handleStatus", this.handleStatus);
|
|
223
|
+
this.$emit("editCurrentRow", row);
|
|
235
224
|
this.rowItem = row;
|
|
236
225
|
this.showDialog = true;
|
|
237
226
|
},
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
:key="index"
|
|
11
11
|
:label="item.label"
|
|
12
12
|
:prop="item.prop"
|
|
13
|
+
class="leisure-form-item-class"
|
|
13
14
|
>
|
|
14
15
|
<div class="comContainerClass">
|
|
15
16
|
<component
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
v-for="(option, index) in item.options"
|
|
24
25
|
:label="option.id"
|
|
25
26
|
:key="index + '_radio'"
|
|
26
|
-
>{{ option.
|
|
27
|
+
>{{ option.lable }}</el-radio
|
|
27
28
|
>
|
|
28
29
|
</template>
|
|
29
30
|
<template v-else-if="item.type === 'select'">
|
|
@@ -81,7 +82,9 @@ export default {
|
|
|
81
82
|
watch: {
|
|
82
83
|
formData: {
|
|
83
84
|
handler(val) {
|
|
84
|
-
|
|
85
|
+
if (val) {
|
|
86
|
+
this.formPop = JSON.parse(JSON.stringify(val));
|
|
87
|
+
}
|
|
85
88
|
},
|
|
86
89
|
deep: true,
|
|
87
90
|
immediate: true,
|
|
@@ -124,7 +127,8 @@ export default {
|
|
|
124
127
|
mounted() {},
|
|
125
128
|
methods: {
|
|
126
129
|
componentType(type) {
|
|
127
|
-
|
|
130
|
+
let result = this.componentMap[type]?.component || "le-input";
|
|
131
|
+
return result;
|
|
128
132
|
},
|
|
129
133
|
|
|
130
134
|
getComponentProps(type) {
|
|
@@ -150,8 +154,11 @@ export default {
|
|
|
150
154
|
};
|
|
151
155
|
</script>
|
|
152
156
|
<style lang="scss" scoped>
|
|
157
|
+
.leisure-form-item-class {
|
|
158
|
+
}
|
|
153
159
|
.comContainerClass {
|
|
154
|
-
display: flex;
|
|
155
|
-
display: -webkit-flex;
|
|
160
|
+
// display: flex;
|
|
161
|
+
// display: -webkit-flex;
|
|
162
|
+
line-height: inherit;
|
|
156
163
|
}
|
|
157
164
|
</style>
|
package/le-span/src/main.vue
CHANGED