@jx3box/jx3box-editor 3.0.1 → 3.0.2
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
CHANGED
package/src/Upload.vue
CHANGED
|
@@ -90,6 +90,7 @@ import { showImgPreview } from "./assets/js/renderImgPreview";
|
|
|
90
90
|
const { __cms } = JX3BOX;
|
|
91
91
|
const API = __cms + "api/cms/upload";
|
|
92
92
|
const imgtypes = ["jpg", "png", "gif", "bmp", "webp", "jpeg", "svg"];
|
|
93
|
+
const DEFAULT_ACCEPT = `${allow_types.accept},image/svg+xml,.svg`;
|
|
93
94
|
|
|
94
95
|
export default {
|
|
95
96
|
name: "Upload",
|
|
@@ -111,7 +112,7 @@ export default {
|
|
|
111
112
|
},
|
|
112
113
|
accept: {
|
|
113
114
|
type: String,
|
|
114
|
-
default:
|
|
115
|
+
default: DEFAULT_ACCEPT,
|
|
115
116
|
},
|
|
116
117
|
enable: {
|
|
117
118
|
type: Boolean,
|
|
@@ -69,12 +69,12 @@
|
|
|
69
69
|
display:flex;
|
|
70
70
|
justify-content: space-between;
|
|
71
71
|
.c-article-directory-title-label {
|
|
72
|
-
font-weight:
|
|
73
|
-
font-size:
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
font-size: 15px;
|
|
74
74
|
line-height: 18px;
|
|
75
75
|
display: inline-flex;
|
|
76
76
|
align-items: center;
|
|
77
|
-
gap:
|
|
77
|
+
gap:5px;
|
|
78
78
|
.u-icon{
|
|
79
79
|
font-size: 18px;
|
|
80
80
|
}
|
|
@@ -86,6 +86,8 @@
|
|
|
86
86
|
line-height: 18px;
|
|
87
87
|
color: darken(#dcdfe6, 5%);
|
|
88
88
|
cursor: pointer;
|
|
89
|
+
.flex;
|
|
90
|
+
align-items: center;
|
|
89
91
|
&:hover {
|
|
90
92
|
color: darken(#dcdfe6, 20%);
|
|
91
93
|
}
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
transition: border-color 0.2s ease, background-color 0.2s ease;
|
|
20
20
|
|
|
21
21
|
&.is-dragover {
|
|
22
|
-
border-color:
|
|
22
|
+
border-color: var(--el-color-primary);
|
|
23
23
|
background: #f0f9ff;
|
|
24
24
|
}
|
|
25
25
|
|
|
@@ -120,6 +120,7 @@
|
|
|
120
120
|
gap: 6px;
|
|
121
121
|
padding: 0 16px;
|
|
122
122
|
background: #fafafa;
|
|
123
|
+
font-size: 14px;
|
|
123
124
|
|
|
124
125
|
&.is-empty {
|
|
125
126
|
width: 100%;
|
|
@@ -133,7 +134,8 @@
|
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
.u-drop-link {
|
|
136
|
-
color:
|
|
137
|
+
color: var(--el-color-primary);
|
|
138
|
+
font-weight: 500;
|
|
137
139
|
}
|
|
138
140
|
}
|
|
139
141
|
|
|
@@ -157,8 +159,8 @@
|
|
|
157
159
|
}
|
|
158
160
|
|
|
159
161
|
&:hover {
|
|
160
|
-
border-color:
|
|
161
|
-
color:
|
|
162
|
+
border-color: var(--el-color-primary);
|
|
163
|
+
color: var(--el-color-primary);
|
|
162
164
|
}
|
|
163
165
|
}
|
|
164
166
|
}
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
</div>
|
|
44
44
|
<!-- <div class="u-honor" :style="honorStyle" v-if="honor">{{ honor }}</div> -->
|
|
45
45
|
<div class="u-trophy" v-if="hasTrophy">
|
|
46
|
-
<div class="
|
|
46
|
+
<div class="m-medals" v-if="medals && medals.length">
|
|
47
47
|
<div class="m-medal">
|
|
48
48
|
<a
|
|
49
49
|
v-for="item in medals"
|