@jx3box/jx3box-common-ui 8.4.9 → 8.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.
- package/package.json +2 -2
- package/src/bread/DesignTask.vue +16 -4
- package/vue.config.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jx3box/jx3box-common-ui",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.5.0",
|
|
4
4
|
"description": "JX3BOX UI",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
"type": "git",
|
|
69
69
|
"url": "git+https://github.com/JX3BOX/jx3box-common-ui.git"
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|
package/src/bread/DesignTask.vue
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dialog custom-class="m-design-task" :width="isPhone ? '95%' : '600px'" :visible="modelValue" @close="close" title="快捷推送" append-to-body>
|
|
3
|
-
<el-form :model="form" ref="form" :label-position="isPhone ? 'top' : 'left'" label-width="80px">
|
|
4
|
-
<el-form-item label="标题">
|
|
3
|
+
<el-form :model="form" ref="form" :rules="rules" :label-position="isPhone ? 'top' : 'left'" label-width="80px">
|
|
4
|
+
<el-form-item label="标题" prop="title">
|
|
5
5
|
<el-input v-model="form.title" placeholder="请输入标题"></el-input>
|
|
6
6
|
</el-form-item>
|
|
7
|
-
<el-form-item label="类型">
|
|
7
|
+
<el-form-item label="类型" prop="type">
|
|
8
8
|
<el-select v-model="form.type" placeholder="请选择类型" style="width:100%;" filterable>
|
|
9
9
|
<el-option v-for="item in config" :key="item.id" :label="item.label" :value="item.name"></el-option>
|
|
10
10
|
</el-select>
|
|
@@ -92,7 +92,16 @@ export default {
|
|
|
92
92
|
"std": "旗舰",
|
|
93
93
|
"origin": "缘起",
|
|
94
94
|
"wujie": "无界",
|
|
95
|
-
"test": "
|
|
95
|
+
"test": "体服"
|
|
96
|
+
},
|
|
97
|
+
|
|
98
|
+
rules: {
|
|
99
|
+
title: [
|
|
100
|
+
{ required: true, message: "请输入标题", trigger: "blur"}
|
|
101
|
+
],
|
|
102
|
+
type: [
|
|
103
|
+
{ required: true, message: "请选择类型", trigger: "change"}
|
|
104
|
+
]
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
},
|
|
@@ -101,6 +110,9 @@ export default {
|
|
|
101
110
|
if (val) {
|
|
102
111
|
if (this.post) {
|
|
103
112
|
this.form.title = this.post.post_title;
|
|
113
|
+
if (this.post?.post_type) {
|
|
114
|
+
this.form.type = this.post.post_type;
|
|
115
|
+
}
|
|
104
116
|
}
|
|
105
117
|
this.loadLogs();
|
|
106
118
|
|
package/vue.config.js
CHANGED
|
@@ -98,7 +98,7 @@ module.exports = {
|
|
|
98
98
|
.rule("images")
|
|
99
99
|
.use("url-loader")
|
|
100
100
|
.loader("url-loader")
|
|
101
|
-
.tap((options) => Object.assign(options, { limit: 10240
|
|
101
|
+
.tap((options) => Object.assign(options, { limit: 10240 }));
|
|
102
102
|
|
|
103
103
|
//💝 in-line svg imgs ~
|
|
104
104
|
config.module
|