feat(survey): 问卷列表页面添加搜索功能
- 在问卷列表页面添加搜索框 - 优化页面布局,调整搜索框位置- 更新样式,确保搜索框与页面其他元素协调
This commit is contained in:
@@ -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 = () => {
|
||||
|
||||
Reference in New Issue
Block a user