Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
data-table
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2024-06-17 10:52:41 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6bd58b3d31aba5ce09b52dea92364057b12a838e
6bd58b3d
1 parent
883450b1
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
src/components/SignField/MyComponent.vue
src/components/SignField/MyComponent.vue
View file @
6bd58b3
<!--
* @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");
...
...
Please
register
or
login
to post a comment