Merge branch 'dev-sws' into dev-yxl

v1.0.0
于肖磊 2024-10-17 17:28:35 +08:00
commit fb878d0ea9
12 changed files with 62 additions and 6 deletions

View File

@ -2,7 +2,7 @@
<drag :data="drag_list" :space-col="20" :is-show-edit="true" @remove="remove" @on-sort="on_sort" @edit="edit" @replace="replace">
<template #default="{ row, index }">
<upload v-model="row.new_cover" :limit="1" size="40" styles="2"></upload>
<el-image :src="row.data[imgParams]" fit="contain" class="img">
<el-image :src="row.data[imgParams]" fit="contain" class="img radius-xs">
<template #error>
<div class="bg-f5 flex-row jc-c align-c radius h w">
<icon name="error-img" size="16" color="9"></icon>

View File

@ -11,7 +11,7 @@
</el-dialog>
</template>
<script setup lang="ts">
import { get_cookie } from '@/utils';
import { get_cookie, get_math } from '@/utils';
const props = defineProps({
dataId: {
type: String,
@ -40,7 +40,7 @@ watch(
() => dialog_visible.value,
(newVal) => {
if (newVal) {
new_link.value = (import.meta.env.VITE_APP_BASE_API == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_URL : pro_url) + '?s=diy/preview/id/' + props.dataId + '&system_type=default' + token.value;
new_link.value = (import.meta.env.VITE_APP_BASE_API == '/dev-api' ? import.meta.env.VITE_APP_BASE_API_URL : pro_url) + '?s=diy/preview/id/' + props.dataId + '&system_type=default' + token.value + '&uid=' + get_math();
}
}
);

View File

@ -160,7 +160,7 @@ const icon_tabs_check = () => {
opacity: 0.6;
bottom: 0.8rem;
z-index: 0;
height: 0.7rem;
height: 0.6rem;
border-radius: 0;
width: 76%;
left: 12%;

View File

@ -62,6 +62,12 @@ import { get_math } from '@/utils';
import DiyAPI from '@/api/tabbar';
import defaultFooterNav from '@/config/const/footer-nav';
const app = getCurrentInstance();
/**
* @description: 底部导航内容
* @param value{Object} 传过来的数据用于数据渲染
* @param footerStyle{Object} 底部导航样式
* @param footerDialogPositionTop{Number} 底部导航弹窗样式
*/
const props = defineProps({
value: {
type: Object,
@ -78,21 +84,26 @@ const props = defineProps({
});
const form = ref(props.value);
const emit = defineEmits(['update:value']);
// change
const nav_style_change = (style: any) => {
form.value.nav_style = style;
emit('update:value', form.value);
};
// change
const nav_type_change = (type: any) => {
form.value.nav_type = type;
emit('update:value', form.value);
};
// data_list
const nav_content_remove = (index: number) => {
form.value.nav_content.splice(index, 1);
emit('update:value', form.value);
};
//
const on_sort = (item: any) => {
form.value.nav_content = item;
};
//
const add = () => {
form.value.nav_content.push({
id: get_math(),

View File

@ -9,6 +9,12 @@
</div>
</template>
<script setup lang="ts">
/**
* @description: 底部导航切换
* @param type{String} 类型是进入内容组件还是样式组件
* @param value{Object} 底部导航样式
* @param footerDialogPositionTop{Number} 底部导航弹窗样式
*/
const props = defineProps({
type: {
type: String,
@ -25,6 +31,7 @@ const props = defineProps({
});
const form = ref(props.value);
const emit = defineEmits(['update:value']);
//
const content_update = (value: any) => {
form.value.content = value;
const new_arry = ['margin', 'margin_left', 'margin_right', 'margin_top', 'margin_bottom', 'padding', 'padding_left', 'padding_right', 'padding_top', 'padding_bottom', 'radius', 'radius_top_left', 'radius_top_right', 'radius_bottom_left', 'radius_bottom_right'];

View File

@ -16,7 +16,10 @@
</div>
</template>
<script setup lang="ts">
import { omit } from 'lodash';
/**
* @description: 底部导航样式
* @param value{Object} 传过来的数据用于数据渲染
*/
const props = defineProps({
value: {
type: Object,

View File

@ -23,6 +23,11 @@
import { common_img_computer, common_styles_computer } from '@/utils';
import { footerNavCounterStore } from '@/store';
const footer_nav_counter_store = footerNavCounterStore();
/**
* @description: 底部导航渲染
* @param showFooter{Boolean} 是否显示底部导航
* @param footerData{Object} 底部导航数据
*/
const props = defineProps({
showFooter: {
type: Boolean,

View File

@ -56,6 +56,11 @@
import { common_styles_computer, padding_computer, radius_computer, get_math, is_obj_empty, common_img_computer } from '@/utils';
import { isEmpty, cloneDeep } from 'lodash';
import ArticleAPI from '@/api/article';
/**
* @description: 文章列表渲染
* @param value{Object} 样式数据
* @param isCommonStyle{Object} 是否为通用样式
*/
const props = defineProps({
value: {
type: Object,

View File

@ -69,6 +69,12 @@
import { get_math } from '@/utils';
import { commonStore } from '@/store';
const common_store = commonStore();
/**
* @description 文章列表内容
* @param value{Object} 传过来的数据用于数据渲染
* @param styles{Object} 样式
* @param defaultConfig{Object} 默认配置
*/
const props = defineProps({
value: {
type: Object,
@ -135,6 +141,7 @@ onMounted(() => {
}
});
});
//
const theme_change = (val: any) => {
if (val == '3' || val == '4') {
form.value.field_show = ['1'];
@ -159,19 +166,23 @@ const theme_change = (val: any) => {
}
}
};
//
const data_list_remove = (index: number) => {
form.value.data_list.splice(index, 1);
};
const url_value_multiple_bool = ref(true);
const data_list_replace_index = ref(0);
//
const data_list_replace = (index: number) => {
data_list_replace_index.value = index;
url_value_multiple_bool.value = false;
url_value_dialog_visible.value = true;
};
//
const data_list_sort = (item: any) => {
form.value.data_list = item;
};
//
const add = () => {
url_value_multiple_bool.value = true;
url_value_dialog_visible.value = true;

View File

@ -9,6 +9,11 @@
</div>
</template>
<script setup lang="ts">
/**
* @description: 文章列表切换
* @param type{String} 类型是进入内容组件还是样式组件
* @param value{Object} 样式数据
*/
const props = defineProps({
type: {
type: String,

View File

@ -57,6 +57,12 @@
</div>
</template>
<script setup lang="ts">
/**
* @description: 文章列表样式
* @param value{Object} 样式数据
* @param content{Object} 内容数据
* @param defaultConfig{Object} 默认配置
*/
const props = defineProps({
value: {
type: Object,

View File

@ -11,7 +11,10 @@
<script setup lang="ts">
import { common_img_computer, common_styles_computer } from '@/utils';
import { cloneDeep } from 'lodash';
/**
* @description: 文章选项啊哭列表渲染
* @param value{Object} 样式数据
*/
const props = defineProps({
value: {
type: Object,