fix: 修复 eslint 报错
This commit is contained in:
7
components.d.ts
vendored
7
components.d.ts
vendored
@@ -11,6 +11,7 @@ declare module 'vue' {
|
|||||||
ElInput: typeof import('element-plus/es')['ElInput']
|
ElInput: typeof import('element-plus/es')['ElInput']
|
||||||
ElOption: typeof import('element-plus/es')['ElOption']
|
ElOption: typeof import('element-plus/es')['ElOption']
|
||||||
ElSelect: typeof import('element-plus/es')['ElSelect']
|
ElSelect: typeof import('element-plus/es')['ElSelect']
|
||||||
|
ElText: typeof import('element-plus/es')['ElText']
|
||||||
RichText: typeof import('./src/components/RichText.vue')['default']
|
RichText: typeof import('./src/components/RichText.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
@@ -20,18 +21,20 @@ declare module 'vue' {
|
|||||||
VanCellGroup: typeof import('vant/es')['CellGroup']
|
VanCellGroup: typeof import('vant/es')['CellGroup']
|
||||||
VanCheckbox: typeof import('vant/es')['Checkbox']
|
VanCheckbox: typeof import('vant/es')['Checkbox']
|
||||||
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
|
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
|
||||||
|
VanCol: typeof import('vant/es')['Col']
|
||||||
VanDivider: typeof import('vant/es')['Divider']
|
VanDivider: typeof import('vant/es')['Divider']
|
||||||
VanField: typeof import('vant/es')['Field']
|
VanField: typeof import('vant/es')['Field']
|
||||||
|
VanGrid: typeof import('vant/es')['Grid']
|
||||||
|
VanGridItem: typeof import('vant/es')['GridItem']
|
||||||
VanIcon: typeof import('vant/es')['Icon']
|
VanIcon: typeof import('vant/es')['Icon']
|
||||||
VanNavBar: typeof import('vant/es')['NavBar']
|
VanNavBar: typeof import('vant/es')['NavBar']
|
||||||
VanPicker: typeof import('vant/es')['Picker']
|
VanPicker: typeof import('vant/es')['Picker']
|
||||||
VanPopup: typeof import('vant/es')['Popup']
|
VanPopup: typeof import('vant/es')['Popup']
|
||||||
VanRadio: typeof import('vant/es')['Radio']
|
VanRadio: typeof import('vant/es')['Radio']
|
||||||
VanRadioGroup: typeof import('vant/es')['RadioGroup']
|
VanRadioGroup: typeof import('vant/es')['RadioGroup']
|
||||||
|
VanRow: typeof import('vant/es')['Row']
|
||||||
VanStepper: typeof import('vant/es')['Stepper']
|
VanStepper: typeof import('vant/es')['Stepper']
|
||||||
VanSwitch: typeof import('vant/es')['Switch']
|
VanSwitch: typeof import('vant/es')['Switch']
|
||||||
VanTab: typeof import('vant/es')['Tab']
|
|
||||||
VanTabs: typeof import('vant/es')['Tabs']
|
|
||||||
YLCascader: typeof import('./src/components/YLCascader.vue')['default']
|
YLCascader: typeof import('./src/components/YLCascader.vue')['default']
|
||||||
YLInput: typeof import('./src/components/YLInput.vue')['default']
|
YLInput: typeof import('./src/components/YLInput.vue')['default']
|
||||||
YLPicker: typeof import('./src/components/YLPicker.vue')['default']
|
YLPicker: typeof import('./src/components/YLPicker.vue')['default']
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ const rows = ref(question.value?.options[0] ?? []);
|
|||||||
// 列标签
|
// 列标签
|
||||||
const cols = ref(question.value?.options[1] ?? []);
|
const cols = ref(question.value?.options[1] ?? []);
|
||||||
|
|
||||||
console.log(rows.value, cols.value);
|
// console.log(rows.value, cols.value);
|
||||||
// const columnLabels = useTemplateRef<HTMLElement[]>('columnLabels');
|
// const columnLabels = useTemplateRef<HTMLElement[]>('columnLabels');
|
||||||
|
|
||||||
// 注意, element.options 里面的东西是数组,第一项内容是行标签内容,第二项内容是列标签内容
|
// 注意, element.options 里面的东西是数组,第一项内容是行标签内容,第二项内容是列标签内容
|
||||||
@@ -40,7 +40,7 @@ console.log(rows.value, cols.value);
|
|||||||
|
|
||||||
const emit = defineEmits(['update:element']);
|
const emit = defineEmits(['update:element']);
|
||||||
const emitValue = () => {
|
const emitValue = () => {
|
||||||
console.log(question.value);
|
// console.log(question.value);
|
||||||
emit('update:element', question.value);
|
emit('update:element', question.value);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ const rowRecord = defineModel<number[][]>('rowRecord', { required: false, defaul
|
|||||||
// 检查 rowRecord 是否存在
|
// 检查 rowRecord 是否存在
|
||||||
// console.log(`rowRecord:`, rowRecord.value);
|
// console.log(`rowRecord:`, rowRecord.value);
|
||||||
|
|
||||||
const active = defineModel('active', { required: false, default: true });
|
const active = defineModel<boolean>('active', { required: false, default: true });
|
||||||
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
||||||
const rows = defineModel('rows', { required: false, default: () => [] });
|
const rows = defineModel<number[]>('rows', { required: false, default: () => [] });
|
||||||
const cols = defineModel('cols', { required: false, default: () => [] });
|
const cols = defineModel<number[]>('cols', { required: false, default: () => [] });
|
||||||
|
|
||||||
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
||||||
|
|
||||||
|
|||||||
@@ -48,10 +48,10 @@ const rowRecord = defineModel<number[]>('rowRecord', { required: false, default:
|
|||||||
|
|
||||||
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
||||||
|
|
||||||
const rows = defineModel('rows', { required: false, default: () => [] });
|
const rows = defineModel<number[]>('rows', { required: false, default: () => [] });
|
||||||
const cols = defineModel('cols', { required: false, default: () => [] });
|
const cols = defineModel<number[]>('cols', { required: false, default: () => [] });
|
||||||
const active = defineModel('active', { required: false, default: true });
|
const active = defineModel<boolean>('active', { required: false, default: true });
|
||||||
console.log(rows.value, cols.value);
|
// console.log(rows.value, cols.value);
|
||||||
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
||||||
|
|
||||||
// 判断是否选中
|
// 判断是否选中
|
||||||
|
|||||||
@@ -43,11 +43,11 @@ const rowRecord = defineModel<string[][]>('rowRecord', { required: false, defaul
|
|||||||
// const matrixAnswer = defineModel<{ [key: string]: 1 }>('matrixAnswer', { required: false, default: () => ({}) });
|
// const matrixAnswer = defineModel<{ [key: string]: 1 }>('matrixAnswer', { required: false, default: () => ({}) });
|
||||||
// 检查 rowRecord 是否存在
|
// 检查 rowRecord 是否存在
|
||||||
// console.log(`rowRecord:`, rowRecord.value);
|
// console.log(`rowRecord:`, rowRecord.value);
|
||||||
const active = defineModel('active', { required: false, default: true });
|
const active = defineModel<boolean>('active', { required: false, default: true });
|
||||||
|
|
||||||
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
/* const isPreview = */ defineModel<boolean>('isPreview', { required: false, default: false });
|
||||||
const rows = defineModel('rows', { required: false, default: () => [] });
|
const rows = defineModel<number[]>('rows', { required: false, default: () => [] });
|
||||||
const cols = defineModel('cols', { required: false, default: () => [] });
|
const cols = defineModel<number[]>('cols', { required: false, default: () => [] });
|
||||||
|
|
||||||
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
// const emits = defineEmits(['update:matrixAnswer', 'update:rowRecord']);
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import appBridge from '@/assets/js/appBridge';
|
|||||||
const contentShow = ref(false);
|
const contentShow = ref(false);
|
||||||
const show = ref(false);
|
const show = ref(false);
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async() => {
|
||||||
if (appBridge.isInReactNative()) {
|
if (appBridge.isInReactNative()) {
|
||||||
const appToken = utils.getSessionStorage('xToken');
|
const appToken = utils.getSessionStorage('xToken');
|
||||||
getUserInfo(appToken)
|
getUserInfo(appToken)
|
||||||
@@ -36,7 +36,7 @@ onMounted(async () => {
|
|||||||
contentShow.value = true;
|
contentShow.value = true;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
function create () {
|
function create() {
|
||||||
show.value = true;
|
show.value = true;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1339,7 +1339,8 @@ function jumpImmediately() {
|
|||||||
|
|
||||||
// 跳转链接
|
// 跳转链接
|
||||||
if (countTime <= 0 && url) {
|
if (countTime <= 0 && url) {
|
||||||
questionsData.value.action.code = -1 * code; // 防止 AnswerMob AnswerPc 组件里显示最后一页
|
// 防止 AnswerMob AnswerPc 组件里显示最后一页
|
||||||
|
questionsData.value.action.code = -1 * code;
|
||||||
|
|
||||||
url = url.replaceAll('#sn#', questionsData.value.answer.sn);
|
url = url.replaceAll('#sn#', questionsData.value.answer.sn);
|
||||||
url = url.replaceAll('#user#', questionsData.value.answer.respondent);
|
url = url.replaceAll('#user#', questionsData.value.answer.respondent);
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ export default defineComponent({
|
|||||||
// props.page < props.pages - 1 &&
|
// props.page < props.pages - 1 &&
|
||||||
&& props.page > 1
|
&& props.page > 1
|
||||||
);
|
);
|
||||||
console.log(`pages-page`, props.page, props.pages);
|
// console.log(`pages-page`, props.page, props.pages);
|
||||||
return {
|
return {
|
||||||
prevButtonText,
|
prevButtonText,
|
||||||
nextButtonText,
|
nextButtonText,
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ watch(
|
|||||||
res[key] = '1';
|
res[key] = '1';
|
||||||
});
|
});
|
||||||
answer.value = res;
|
answer.value = res;
|
||||||
console.log(res);
|
// console.log(res);
|
||||||
emit('changeAnswer', res);
|
emit('changeAnswer', res);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user