mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-24 12:45:18 +08:00
refactor(progress): use cssr, wip
This commit is contained in:
parent
6f4642f3c6
commit
4315dbdb36
@ -1,5 +1,5 @@
|
||||
/* istanbul ignore file */
|
||||
import Progress from './src/main.vue'
|
||||
import Progress from './src/Progress.vue'
|
||||
|
||||
Progress.install = function (Vue) {
|
||||
Vue.component(Progress.name, Progress)
|
||||
|
0
src/progress/src/styles/index.js
Normal file
0
src/progress/src/styles/index.js
Normal file
0
src/progress/src/styles/themed-base.cssr.js
Normal file
0
src/progress/src/styles/themed-base.cssr.js
Normal file
0
src/progress/src/styles/themed-type.cssr.js
Normal file
0
src/progress/src/styles/themed-type.cssr.js
Normal file
27
src/styles/progress/dark.js
Normal file
27
src/styles/progress/dark.js
Normal file
@ -0,0 +1,27 @@
|
||||
import create from '../_utils/create-component-base'
|
||||
|
||||
export default create({
|
||||
getDerivedVariables ({ derived }) {
|
||||
return {
|
||||
railColor: derived.railOverlayBackgroundColor,
|
||||
default: {
|
||||
fillColor: derived.infoColor
|
||||
},
|
||||
info: {
|
||||
fillColor: derived.infoColor
|
||||
},
|
||||
success: {
|
||||
fillColor: derived.successColor
|
||||
},
|
||||
warning: {
|
||||
fillColor: derived.warningColor
|
||||
},
|
||||
error: {
|
||||
fillColor: derived.errorColor
|
||||
},
|
||||
insideIndicatorTextColor: derived.secondaryTextOverlayColor,
|
||||
outsideIndicatorTextColor: 'rgb(0, 0, 0)',
|
||||
processingLineBackgroundImage: 'linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)'
|
||||
}
|
||||
}
|
||||
})
|
27
src/styles/progress/light.js
Normal file
27
src/styles/progress/light.js
Normal file
@ -0,0 +1,27 @@
|
||||
import create from '../_utils/create-component-base'
|
||||
|
||||
export default create({
|
||||
getDerivedVariables ({ derived }) {
|
||||
return {
|
||||
railColor: derived.railOverlayBackgroundColor,
|
||||
default: {
|
||||
fillColor: derived.infoColor
|
||||
},
|
||||
info: {
|
||||
fillColor: derived.infoColor
|
||||
},
|
||||
success: {
|
||||
fillColor: derived.successColor
|
||||
},
|
||||
warning: {
|
||||
fillColor: derived.warningColor
|
||||
},
|
||||
error: {
|
||||
fillColor: derived.errorColor
|
||||
},
|
||||
insideIndicatorTextColor: derived.secondaryTextOverlayColor,
|
||||
outsideIndicatorTextColor: 'rgb(255, 255, 255)',
|
||||
processingLineBackgroundImage: 'linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)'
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Reference in New Issue
Block a user