|
|
@@ -94,15 +94,15 @@ The ConfigProvider component provides the ability to override CSS variables. You
|
|
|
</nut-config-provider>
|
|
|
</template>
|
|
|
<script lang="ts">
|
|
|
- import { ref } from 'vue';
|
|
|
+ import { ref, reactive } from 'vue';
|
|
|
export default {
|
|
|
setup() {
|
|
|
const range = ref(30);
|
|
|
- const themeVars = {
|
|
|
+ const themeVars = reactive({
|
|
|
primaryColor:'green',
|
|
|
primaryColorEnd:'green',
|
|
|
activeColor:'rgba(0,128,0,0.15)'
|
|
|
- };
|
|
|
+ });
|
|
|
// Of course, you can also choose to use component variables to replace. If both basic variables and component variables are set, the component variables will overwrite the basic variables
|
|
|
// const themeVars = {
|
|
|
// rangeBgColor: 'rgba(25,137,250,0.15)',
|