Skip to content

Commit

Permalink
Merge pull request #9 from cloudhao1999/master
Browse files Browse the repository at this point in the history
合并源代码
  • Loading branch information
luoqiz committed Aug 18, 2022
2 parents f6f2df8 + 6b2ec2d commit 512a3db
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/components/Table/src/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ watchEffect(() => {
:filter-columns="filterColumns"
:move-column="moveColumn"
>
<span class="mr-4">
<span class="mr-4 float-right">
<slot name="options" />
</span>
</table-head>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/src/components/TableHead.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import TableOption from "./TableOption.vue";
<template>
<div class="h-[40px] w-full border-b border-base border-solid">
<slot name="title" />
<slot />
<table-option v-bind="$attrs" />
<slot />
</div>
</template>

Expand Down
7 changes: 4 additions & 3 deletions src/hooks/useWaterMark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ export function useWatermark(
const watermarkEl = shallowRef<HTMLElement>();

onMounted(() => {
if (!isNull(document.getElementById(id))) {
watermarkEl.value = document.getElementById(id)!;
const watermarkMask = document.getElementById(id);
if (!isNull(watermarkMask)) {
watermarkEl.value = watermarkMask!;
}
});

Expand All @@ -47,7 +48,7 @@ export function useWatermark(
if (cans) {
cans.rotate((-20 * Math.PI) / 120);
cans.font = "15px Vedana";
cans.fillStyle = "rgba(0, 0, 0, 0.15)";
cans.fillStyle = "rgba(209, 213, 219, 0.5)";
cans.textAlign = "left";
cans.textBaseline = "middle";
cans.fillText(str, width / 20, height);
Expand Down
1 change: 0 additions & 1 deletion src/views/dashboard/ActivityCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const { activityColumns, activityTableData } = setupDashobardAttributes();
<c-table
:table-data="activityTableData"
:columns="activityColumns"
align="right"
header-align="right"
stripe
style="width: 100%"
Expand Down
1 change: 0 additions & 1 deletion src/views/design/ArticlePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const {
:table-data="dataSource"
:show-header="true"
:columns="articleColumns"
align="right"
header-align="right"
stripe
style="width: 100%"
Expand Down

0 comments on commit 512a3db

Please sign in to comment.