hookehuyr

fix

<!--
* @Date: 2023-03-29 17:44:24
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-06-17 10:49:17
* @LastEditTime: 2024-06-17 10:52:18
* @FilePath: /data-table/src/components/SignField/MyComponent.vue
* @Description: 文件描述
-->
......@@ -71,6 +71,7 @@ let esignHeight = ref();
const wrapperRef = ref(null);
const readonly = ref(false);
const default_value = ref('');
onMounted(() => {
// 只读状态
if (props.component_props.readonly) {
......@@ -78,9 +79,9 @@ onMounted(() => {
}
// 非只读,有默认值
if (props.component_props.default) {
default_value.value = props.component_props.default?.url;
default_value.value = props.component_props.default?.url; // 默认值显示
image_url.value = props.component_props.default?.url; // 动态处理sign_value值的变化
show_control.value = false;
show_control.value = false; // 不显示控制按钮
}
if (!props.component_props.readonly) {
show_sign.value = false;
......@@ -92,7 +93,8 @@ onMounted(() => {
esignHeight.value = (window.innerHeight) / 5;
}, 100);
}
})
});
const lineWidth = ref(6);
const lineColor = ref("#000000");
const bgColor = ref("#FCFCFC");
......