feat(survey): 问卷列表页面添加搜索功能

- 在问卷列表页面添加搜索框
- 优化页面布局,调整搜索框位置- 更新样式,确保搜索框与页面其他元素协调
This commit is contained in:
陈昱达
2025-03-18 11:34:42 +08:00
parent b91850c508
commit 1f0ffa679b
34 changed files with 371 additions and 355 deletions

View File

@@ -102,7 +102,7 @@
</template>
<script setup>
import OptionAction from '@/views/Design/components/ActionCompoents/OptionAction.vue';
import { defineAsyncComponent, toRefs, ref } from 'vue';
import { defineAsyncComponent, ref } from 'vue';
// 是否是预览
const isPreview = defineModel('isPreview', { default: false, type: Boolean });
@@ -111,15 +111,7 @@ const choiceValue = defineModel('answer', { default: '1', type: String });
// console.log(`choiceValue.value`, choiceValue.value);
const Contenteditable = defineAsyncComponent(() => import('@/components/contenteditable.vue'));
const props = defineProps({
element: {
type: Object,
default: () => {
return {
stem: ''
};
}
},
defineProps({
active: {
type: Boolean,
default: false
@@ -129,7 +121,14 @@ const props = defineProps({
default: 0
}
});
const { element } = toRefs(props);
const element = defineModel('element', {
type: Object,
default: () => {
return {
stem: ''
};
}
});
const value = ref([]);
const emit = defineEmits(['update:element']);
const emitValue = () => {