@jx3box/jx3box-common-ui 7.8.3 → 7.8.4
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 +1 -1
- package/src/bread/Admin.vue +21 -11
package/package.json
CHANGED
package/src/bread/Admin.vue
CHANGED
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
<el-checkbox v-for="(option, key) in mark_options" :label="key" :key="key">{{ option }}</el-checkbox>
|
|
32
32
|
</el-checkbox-group>
|
|
33
33
|
|
|
34
|
-
<el-divider content-position="left"
|
|
34
|
+
<el-divider content-position="left">高亮置顶</el-divider>
|
|
35
|
+
<el-checkbox class="c-admin-highlight-checkbox" v-model="isSticky">置顶</el-checkbox>
|
|
35
36
|
<el-checkbox class="c-admin-highlight-checkbox" v-model="isHighlight">开启高亮</el-checkbox>
|
|
36
37
|
<template v-if="isHighlight">
|
|
37
38
|
<el-color-picker
|
|
@@ -43,9 +44,6 @@
|
|
|
43
44
|
<span class="c-admin-highlight-preview" :style="{ color: color }">预览高亮效果</span>
|
|
44
45
|
</template>
|
|
45
46
|
|
|
46
|
-
<el-divider content-position="left">是否置顶</el-divider>
|
|
47
|
-
<el-switch v-model="isSticky" active-text="置顶" class="switch-post-pinned drawer-item-content"></el-switch>
|
|
48
|
-
|
|
49
47
|
<el-divider content-position="left">封面海报</el-divider>
|
|
50
48
|
<div class="c-admin-banner">
|
|
51
49
|
<el-upload
|
|
@@ -69,8 +67,15 @@
|
|
|
69
67
|
|
|
70
68
|
<el-divider content-position="left">元信息</el-divider>
|
|
71
69
|
<div class="c-admin-info">
|
|
72
|
-
<div class="c-admin-type">
|
|
73
|
-
<
|
|
70
|
+
<div class="w-select c-admin-type">
|
|
71
|
+
<div class="u-select-label">板块</div>
|
|
72
|
+
<el-select
|
|
73
|
+
v-model="post_type"
|
|
74
|
+
placeholder="请选择板块"
|
|
75
|
+
style="width: 100%"
|
|
76
|
+
class="u-select drawer-item-content"
|
|
77
|
+
:disabled="appDisabled"
|
|
78
|
+
>
|
|
74
79
|
<el-option
|
|
75
80
|
v-for="type in type_options"
|
|
76
81
|
:key="type.value"
|
|
@@ -80,11 +85,11 @@
|
|
|
80
85
|
</el-select>
|
|
81
86
|
</div>
|
|
82
87
|
<div class="c-admin-author">
|
|
83
|
-
<el-input
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
+
<el-input v-model="post_author" placeholder="请输入作者ID" class="input-author drawer-item-content">
|
|
89
|
+
<template #prepend>
|
|
90
|
+
<span class="u-keyword">作者ID</span>
|
|
91
|
+
</template>
|
|
92
|
+
</el-input>
|
|
88
93
|
</div>
|
|
89
94
|
</div>
|
|
90
95
|
|
|
@@ -123,6 +128,11 @@ export default {
|
|
|
123
128
|
type: [Number, String],
|
|
124
129
|
default: 0,
|
|
125
130
|
},
|
|
131
|
+
// 是否禁止板块选择
|
|
132
|
+
appDisabled: {
|
|
133
|
+
type: Boolean,
|
|
134
|
+
default: false,
|
|
135
|
+
},
|
|
126
136
|
},
|
|
127
137
|
data() {
|
|
128
138
|
return {
|