Skip to content

Commit

Permalink
fix(configprovide): demo修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjingfubo committed Jan 13, 2023
1 parent d830c66 commit b89b05b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
13 changes: 5 additions & 8 deletions src/packages/__VUE/configprovider/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,15 @@ export default create({
const primaryColor = props?.themeVars?.primaryColor;
// 为了处理一些组件的rgba透明颜色
if (primaryColor) {
cssVars[`--nut-calendar-choose-color`] = `rgba(${colorRgb(primaryColor)},0.09)`;
cssVars[`--nut-range-bg-color`] = `rgba(${colorRgb(primaryColor)},0.5)`;
cssVars[`--nut-address-region-tab-line`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
primaryColor
)},0.15) 100%) `;
cssVars[`--nut-radio-label-button-background`] = `rgba(${colorRgb(primaryColor)},0.05)`;
cssVars[`--nut-timeselect-timedetail-item-cur-bg-color`] = `rgba(${colorRgb(primaryColor)},0.15)`;
cssVars[`--nut-tabs-horizontal-tab-line-color`] = `rgba(${colorRgb(primaryColor)},0.15)`;
)},0.15) 100%) `;
cssVars[`--nut-tabs-horizontal-tab-line-color`] = `linear-gradient(90deg, ${primaryColor} 0%, rgba(${colorRgb(
primaryColor
)},0.15)100%)`;
cssVars[`--nut-tabs-vertical-tab-line-color`] = `linear-gradient(180deg, ${primaryColor} 0%, rgba(${colorRgb(
primaryColor
)},0.15) 100%) `;
cssVars[`--nut-sku-item-active-bg`] = `rgba(${colorRgb(primaryColor)},0.15)`;
)},0.15) 100%) `;
}
Object.keys(themeVars).forEach((key) => {
cssVars[`--nut-${kebabCase(key)}`] = themeVars[key];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,8 @@ export default {
}
});
let color = reactive({
primaryColor: 'green',
primaryColorEnd: 'green',
primaryColorActive: 'rgba(0,128,0,0.15)'
primaryColor: '#008000',
primaryColorEnd: '#008000'
});
const themeVars = color;
Expand Down

0 comments on commit b89b05b

Please sign in to comment.