Skip to content

Commit 476c652

Browse files
authored
Merge branch 'main' into patch-1
2 parents 87cdabb + 3c4af23 commit 476c652

File tree

8 files changed

+30
-4
lines changed

8 files changed

+30
-4
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ body:
6262
description: Before submitting the issue, please make sure you do the following
6363
# description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com).
6464
options:
65-
- label: Read the [docs](https://anncwb.github.io/vue-vben-admin-doc/)
65+
- label: Read the [docs](https://doc.vben.pro/)
6666
required: true
6767
- label: Ensure the code is up to date. (Some issues have been fixed in the latest version)
6868
required: true

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ body:
6262
label: Validations
6363
description: Before submitting the issue, please make sure you do the following
6464
options:
65-
- label: Read the [docs](https://anncwb.github.io/vue-vben-admin-doc/)
65+
- label: Read the [docs](https://doc.vben.pro/)
6666
required: true
6767
- label: Ensure the code is up to date. (Some issues have been fixed in the latest version)
6868
required: true

apps/web-ele/src/views/demos/element/index.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
<script lang="ts" setup>
2+
import { ref } from 'vue';
3+
24
import { Page } from '@vben/common-ui';
35
46
import {
57
ElButton,
68
ElCard,
79
ElMessage,
810
ElNotification,
11+
ElSegmented,
912
ElSpace,
1013
ElTable,
1114
} from 'element-plus';
@@ -47,6 +50,10 @@ const tableData = [
4750
{ prop1: '5', prop2: 'E' },
4851
{ prop1: '6', prop2: 'F' },
4952
];
53+
54+
const segmentedValue = ref('Mon');
55+
56+
const segmentedOptions = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
5057
</script>
5158

5259
<template>
@@ -84,6 +91,14 @@ const tableData = [
8491
<ElButton type="success" @click="notify('success')"> 成功 </ElButton>
8592
</ElSpace>
8693
</ElCard>
94+
<ElCard class="mb-5">
95+
<template #header> Segmented </template>
96+
<ElSegmented
97+
v-model="segmentedValue"
98+
:options="segmentedOptions"
99+
size="large"
100+
/>
101+
</ElCard>
87102
<ElCard class="mb-5">
88103
<ElTable :data="tableData" stripe>
89104
<ElTable.TableColumn label="测试列1" prop="prop1" />

packages/@core/base/design/src/design-tokens/dark.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858

5959
/* Used for accents such as hover effects on <DropdownMenuItem>, <SelectItem>...etc */
6060
--accent: 216 5% 19%;
61+
--accent-dark: 240 0% 22%;
62+
--accent-darker: 240 0% 26%;
6163
--accent-lighter: 216 5% 12%;
6264
--accent-hover: 216 5% 24%;
6365
--accent-foreground: 0 0% 98%;

packages/@core/base/design/src/design-tokens/default.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@
5858

5959
/* Used for accents such as hover effects on <DropdownMenuItem>, <SelectItem>...etc */
6060
--accent: 240 5% 96%;
61+
--accent-dark: 216 14% 93%;
62+
--accent-darker: 216 11% 91%;
6163
--accent-lighter: 240 0% 98%;
6264
--accent-hover: 200deg 10% 90%;
6365
--accent-foreground: 240 6% 10%;

packages/@core/ui-kit/form-ui/src/form-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class FormApi {
185185
const fieldSet = new Set(fields);
186186
const schema = this.state?.schema ?? [];
187187

188-
const filterSchema = schema.filter((item) => fieldSet.has(item.fieldName));
188+
const filterSchema = schema.filter((item) => !fieldSet.has(item.fieldName));
189189

190190
this.setState({
191191
schema: filterSchema,

packages/effects/hooks/src/use-design-tokens.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ export function useElementPlusDesignTokens() {
260260
'--el-fill-color-light': getCssVariableValue('--accent'),
261261
'--el-fill-color-lighter': getCssVariableValue('--accent-lighter'),
262262

263+
'--el-fill-color-dark': getCssVariableValue('--accent-dark'),
264+
'--el-fill-color-darker': getCssVariableValue('--accent-darker'),
265+
263266
// 解决ElLoading背景色问题
264267
'--el-mask-color': isDark.value
265268
? 'rgba(0,0,0,.8)'

packages/effects/plugins/src/vxe-table/extends.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ function extendProxyOption(
4343
const data = await configFn(
4444
params,
4545
{
46-
...customValues,
46+
/**
47+
* 开启toolbarConfig.refresh功能
48+
* 点击刷新按钮 这里的值为PointerEvent 会携带错误参数
49+
*/
50+
...(customValues instanceof PointerEvent ? {} : customValues),
4751
...formValues,
4852
},
4953
...args,

0 commit comments

Comments
 (0)