hookehuyr

fix

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