|
@@ -79,20 +79,7 @@
|
|
</el-icon>
|
|
</el-icon>
|
|
</div>
|
|
</div>
|
|
<div v-if="imgFlag" class="card_second_level">
|
|
<div v-if="imgFlag" class="card_second_level">
|
|
- <div class="same_row_in upAndDown_padding">
|
|
|
|
- <span class="title_12 w_60 default_size" style="flex: none;">大小</span>
|
|
|
|
- <div class="images_card center_in">
|
|
|
|
- <el-image style="width: 16px; height: 16px"
|
|
|
|
- src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg" fit="fill" />
|
|
|
|
- </div>
|
|
|
|
- <div class="grey_input_bgc w_60_index">
|
|
|
|
- <el-input-number class="card_number" v-model="config.config.size" :min="1" size="small"
|
|
|
|
- controls-position="right" />
|
|
|
|
- </div>
|
|
|
|
- <div class="card_slider" style="width: 100%;">
|
|
|
|
- <el-slider v-model="config.config.size" size="small" />
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <iconSize v-model:num="config.config.size" @childEvent="childEvent"></iconSize>
|
|
<colorSelection v-model:iconColor="config.css.iconColor" title="选择颜色"></colorSelection>
|
|
<colorSelection v-model:iconColor="config.css.iconColor" title="选择颜色"></colorSelection>
|
|
<textAlignment v-model:align="config.css.textAlign"></textAlignment>
|
|
<textAlignment v-model:align="config.css.textAlign"></textAlignment>
|
|
<lineNumber v-model:num="config.config.lineNum"></lineNumber>
|
|
<lineNumber v-model:num="config.config.lineNum"></lineNumber>
|
|
@@ -104,6 +91,7 @@
|
|
import { ref, watch } from "vue";
|
|
import { ref, watch } from "vue";
|
|
import color from 'color';
|
|
import color from 'color';
|
|
import layout from '../components/maskedbox/layout.vue';
|
|
import layout from '../components/maskedbox/layout.vue';
|
|
|
|
+import iconSize from '../components/maskedbox/iconSize.vue';
|
|
import colorSelection from '../components/maskedbox/colorSelection.vue';
|
|
import colorSelection from '../components/maskedbox/colorSelection.vue';
|
|
import textAlignment from '../components/maskedbox/textAlignment.vue';
|
|
import textAlignment from '../components/maskedbox/textAlignment.vue';
|
|
import lineNumber from '../components/maskedbox/lineNumber.vue';
|
|
import lineNumber from '../components/maskedbox/lineNumber.vue';
|
|
@@ -181,7 +169,11 @@ const colorNum = (value: any) => {
|
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+const emit = defineEmits(['childEvent'])
|
|
|
|
+// 选择图标抽屉
|
|
|
|
+function childEvent() {
|
|
|
|
+ emit('childEvent');
|
|
|
|
+}
|
|
watch(() => props.config, (newValue) => {
|
|
watch(() => props.config, (newValue) => {
|
|
if (newValue.css) {
|
|
if (newValue.css) {
|
|
// 初始化hex颜色
|
|
// 初始化hex颜色
|
|
@@ -226,11 +218,6 @@ watch(() => props.config, (newValue) => {
|
|
border-radius: 4px;
|
|
border-radius: 4px;
|
|
}
|
|
}
|
|
|
|
|
|
-.w_60_index {
|
|
|
|
- width: 60px !important;
|
|
|
|
- margin-right: 5px;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
.card_slider :deep(.el-slider__button-wrapper) {
|
|
.card_slider :deep(.el-slider__button-wrapper) {
|
|
top: -17px;
|
|
top: -17px;
|
|
}
|
|
}
|
|
@@ -248,22 +235,4 @@ watch(() => props.config, (newValue) => {
|
|
height: 13px;
|
|
height: 13px;
|
|
}
|
|
}
|
|
|
|
|
|
-.cKnghd {
|
|
|
|
- flex: none;
|
|
|
|
- border: 1px solid rgba(0, 0, 0, 0.2);
|
|
|
|
- width: 46px;
|
|
|
|
- height: 24px;
|
|
|
|
- cursor: pointer;
|
|
|
|
- border-radius: 3px;
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-.images_card {
|
|
|
|
- margin-right: 5px;
|
|
|
|
- flex: none;
|
|
|
|
- width: 28px;
|
|
|
|
- height: 28px;
|
|
|
|
- cursor: pointer;
|
|
|
|
- background-color: rgb(243, 243, 248);
|
|
|
|
- border-radius: 4px;
|
|
|
|
-}
|
|
|
|
</style>
|
|
</style>
|