leisure-core 0.4.98 → 0.5.0

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,11 +1,12 @@
1
1
  <template>
2
2
  <div class="le-button-select-media">
3
- <le-button type="primary" id="btnSelectMedia" @click="onClick"
4
- >选择素材</le-button
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: "确 定",
@@ -11,7 +11,5 @@
11
11
  export default {
12
12
  name: "le-input",
13
13
  inheritAttrs: false,
14
- props: {},
15
- methods: {},
16
14
  };
17
15
  </script>
@@ -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.label }}</el-radio
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
- this.formPop = val;
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
- return this.componentMap[type]?.component || "le-input";
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>
@@ -58,7 +58,6 @@
58
58
  <le-video v-else :src="scope.row.url"></le-video>
59
59
  </template>
60
60
  </el-table-column>
61
-
62
61
  <el-table-column prop="title" label="素材名称" align="center">
63
62
  </el-table-column>
64
63
  <el-table-column prop="types" label="素材分类" align="center">
@@ -8,7 +8,7 @@ export default {
8
8
  name: "le-span",
9
9
  props: {
10
10
  value: {
11
- type: String,
11
+ type: [String, Number],
12
12
  required: true,
13
13
  },
14
14
  customClass: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "leisure-core",
3
- "version": "0.4.98",
3
+ "version": "0.5.00",
4
4
  "description": "leisure-core是京心数据基于vue2.x开发的一套后台管理系统桌面端组件库,封装了大量实用的UI控件模板,非常方便开发者快速搭建前端应用",
5
5
  "private": false,
6
6
  "author": "北方乐逍遥(zcx7878)",