base6-ui 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -0
- package/dist/index.umd.js +1 -0
- package/es/components/BaseDataTable/index.vue.mjs +2 -2
- package/es/components/BaseDataTable/index.vue2.mjs +18 -15
- package/es/components/BaseDialog/options.mjs +2 -2
- package/es/components/BaseSwitch/index.vue.mjs +2 -2
- package/es/components/BaseSwitch/index.vue2.mjs +15 -15
- package/es/index.css +1 -1
- package/lib/components/BaseDataTable/index.vue.js +1 -1
- package/lib/components/BaseDataTable/index.vue2.js +1 -1
- package/lib/components/BaseDialog/options.js +1 -1
- package/lib/components/BaseSwitch/index.vue.js +1 -1
- package/lib/components/BaseSwitch/index.vue2.js +1 -1
- package/lib/index.css +1 -1
- package/package.json +16 -4
- package/CHANGELOG.md +0 -13
- package/build/plugins.ts +0 -31
- package/build/unPlugin.ts +0 -37
- package/eslint.config.js +0 -114
- package/src/components/AppProvider/index.ts +0 -1
- package/src/components/AppProvider/index.vue +0 -38
- package/src/components/BaseButton/index.ts +0 -1
- package/src/components/BaseButton/index.vue +0 -21
- package/src/components/BaseDataTable/index.ts +0 -1
- package/src/components/BaseDataTable/index.vue +0 -120
- package/src/components/BaseDialog/index.ts +0 -2
- package/src/components/BaseDialog/index.vue +0 -104
- package/src/components/BaseDialog/options.ts +0 -25
- package/src/components/BaseDialog/type.ts +0 -30
- package/src/components/BaseInputNumber/index.ts +0 -1
- package/src/components/BaseInputNumber/index.vue +0 -188
- package/src/components/BaseLayout/ASide/index.vue +0 -104
- package/src/components/BaseLayout/ASide/type.ts +0 -11
- package/src/components/BaseLayout/index.ts +0 -1
- package/src/components/BaseProgress/index.ts +0 -99
- package/src/components/BaseRadio/index.ts +0 -1
- package/src/components/BaseRadio/index.vue +0 -45
- package/src/components/BaseSelect/index.ts +0 -1
- package/src/components/BaseSelect/index.vue +0 -59
- package/src/components/BaseSlider/index.ts +0 -1
- package/src/components/BaseSlider/index.vue +0 -114
- package/src/components/BaseSwitch/index.ts +0 -1
- package/src/components/BaseSwitch/index.vue +0 -69
- package/src/components/index.ts +0 -11
- package/src/components/types/themes/extendThemes.ts +0 -50
- package/src/config/index.ts +0 -1
- package/src/config/themes/color/dark.ts +0 -60
- package/src/config/themes/color/index.ts +0 -2
- package/src/config/themes/color/light.ts +0 -59
- package/src/config/themes/common.ts +0 -50
- package/src/config/themes/components/alert/common.ts +0 -13
- package/src/config/themes/components/alert/dark.ts +0 -23
- package/src/config/themes/components/alert/light.ts +0 -18
- package/src/config/themes/components/baseComponent/dark.ts +0 -189
- package/src/config/themes/components/baseComponent/light.ts +0 -297
- package/src/config/themes/components/button/common.ts +0 -20
- package/src/config/themes/components/button/dark.ts +0 -127
- package/src/config/themes/components/button/light.ts +0 -102
- package/src/config/themes/components/card/dark.ts +0 -13
- package/src/config/themes/components/card/light.ts +0 -13
- package/src/config/themes/components/charts/dark.ts +0 -425
- package/src/config/themes/components/charts/light.ts +0 -424
- package/src/config/themes/components/checkbox/common.ts +0 -7
- package/src/config/themes/components/checkbox/dark.ts +0 -23
- package/src/config/themes/components/checkbox/light.ts +0 -22
- package/src/config/themes/components/dataTable/dark.ts +0 -14
- package/src/config/themes/components/dataTable/light.ts +0 -14
- package/src/config/themes/components/datePicker/dark.ts +0 -10
- package/src/config/themes/components/datePicker/light.ts +0 -10
- package/src/config/themes/components/dialog/common.ts +0 -8
- package/src/config/themes/components/dialog/dark.ts +0 -14
- package/src/config/themes/components/dialog/light.ts +0 -13
- package/src/config/themes/components/dropdown/dark.ts +0 -7
- package/src/config/themes/components/dropdown/light.ts +0 -7
- package/src/config/themes/components/form/dark.ts +0 -7
- package/src/config/themes/components/form/light.ts +0 -7
- package/src/config/themes/components/input/common.ts +0 -13
- package/src/config/themes/components/input/dark.ts +0 -25
- package/src/config/themes/components/input/light.ts +0 -24
- package/src/config/themes/components/inputNumber/common.ts +0 -14
- package/src/config/themes/components/inputNumber/dark.ts +0 -24
- package/src/config/themes/components/inputNumber/light.ts +0 -20
- package/src/config/themes/components/layout/dark.ts +0 -8
- package/src/config/themes/components/layout/light.ts +0 -9
- package/src/config/themes/components/menu/dark.ts +0 -18
- package/src/config/themes/components/menu/light.ts +0 -17
- package/src/config/themes/components/progress/dark.ts +0 -25
- package/src/config/themes/components/progress/light.ts +0 -25
- package/src/config/themes/components/radio/dark.ts +0 -20
- package/src/config/themes/components/radio/light.ts +0 -21
- package/src/config/themes/components/select/dark.ts +0 -42
- package/src/config/themes/components/select/light.ts +0 -38
- package/src/config/themes/components/slider/dark.ts +0 -16
- package/src/config/themes/components/slider/light.ts +0 -16
- package/src/config/themes/components/switch/common.ts +0 -17
- package/src/config/themes/components/switch/dark.ts +0 -17
- package/src/config/themes/components/switch/light.ts +0 -17
- package/src/config/themes/components/tag/dark.ts +0 -40
- package/src/config/themes/components/tag/light.ts +0 -39
- package/src/config/themes/components/transfer/dark.ts +0 -8
- package/src/config/themes/components/transfer/light.ts +0 -8
- package/src/config/themes/dark.ts +0 -61
- package/src/config/themes/index.ts +0 -12
- package/src/config/themes/light.ts +0 -61
- package/src/config/themes/token/dark.ts +0 -32
- package/src/config/themes/token/index.ts +0 -2
- package/src/config/themes/token/light.ts +0 -11
- package/src/globalMethods/index.ts +0 -8
- package/src/globalMethods/modules/confirmTip.ts +0 -49
- package/src/globalMethods/modules/message.ts +0 -20
- package/src/hooks/useNaiveConfigProvideContext.ts +0 -10
- package/src/index.ts +0 -8
- package/src/style/index.scss +0 -63
- package/src/svg-icons/add.svg +0 -1
- package/src/svg-icons/arrow/down.svg +0 -1
- package/src/svg-icons/arrow/top.svg +0 -1
- package/src/svg-icons/logo.svg +0 -4
- package/src/svg-icons/operate/add.svg +0 -1
- package/src/svg-icons/operate/close.svg +0 -1
- package/src/svg-icons/operate/minus.svg +0 -1
- package/src/svg-icons/progress-default.svg +0 -3
- package/src/types/themes/extendThemes.ts +0 -50
- package/tsconfig.json +0 -38
- package/typing/components.d.ts +0 -38
- package/typing/global.d.ts +0 -19
- package/vite.config.ts +0 -61
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<n-switch v-bind="$attrs" :class="`base-switch ${className}`" :style="[extendStyle, style]">
|
|
3
|
-
<template v-for="(item,keys) in $slots" v-slot:[keys]>
|
|
4
|
-
<slot :name="keys"></slot>
|
|
5
|
-
</template>
|
|
6
|
-
</n-switch>
|
|
7
|
-
</template>
|
|
8
|
-
<script lang="ts" setup>
|
|
9
|
-
import { CSSProperties, shallowRef, watch } from 'vue'
|
|
10
|
-
import { useThemeVars } from 'naive-ui'
|
|
11
|
-
import useNaiveConfigProvideContext from '../../hooks/useNaiveConfigProvideContext'
|
|
12
|
-
type PropsType = {
|
|
13
|
-
className?: string;
|
|
14
|
-
style?: CSSProperties;
|
|
15
|
-
}
|
|
16
|
-
withDefaults(defineProps<PropsType>(), { className: '', style: () => ({}) })
|
|
17
|
-
defineOptions({
|
|
18
|
-
name: 'BaseSwitch'
|
|
19
|
-
})
|
|
20
|
-
const NConfigProvider = useNaiveConfigProvideContext()
|
|
21
|
-
const extendStyle = shallowRef({})
|
|
22
|
-
|
|
23
|
-
watch(
|
|
24
|
-
() => NConfigProvider?.mergedThemeOverridesRef.value.Switch,
|
|
25
|
-
(curVal) => {
|
|
26
|
-
console.log(useThemeVars(), 'useThemeVars')
|
|
27
|
-
if (!curVal) return
|
|
28
|
-
extendStyle.value = {
|
|
29
|
-
'--n-rail-color-active-disabled': curVal.railColorActiveDisabled,
|
|
30
|
-
'--n-rail-color-disabled': curVal.railColorDisabled,
|
|
31
|
-
'--n-button-color-disabled': curVal.buttonColorDisabled,
|
|
32
|
-
'--n-button-color-active-disabled': curVal.buttonColorActiveDisabled
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
immediate: true
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
</script>
|
|
40
|
-
<style lang="scss" scoped>
|
|
41
|
-
.base-switch {
|
|
42
|
-
:deep(.n-switch__button) {
|
|
43
|
-
box-shadow:
|
|
44
|
-
0px 5px 5px -3px #0000001A,
|
|
45
|
-
0px 8px 10px 1px #0000000F,
|
|
46
|
-
0px 3px 14px 2px #0000000D;
|
|
47
|
-
|
|
48
|
-
}
|
|
49
|
-
:deep(.n-switch__rail) {
|
|
50
|
-
opacity: 1;
|
|
51
|
-
}
|
|
52
|
-
&.n-switch--disabled {
|
|
53
|
-
:deep(.n-switch__rail) {
|
|
54
|
-
background-color: var(--n-rail-color-disabled);
|
|
55
|
-
.n-switch__button {
|
|
56
|
-
background-color: var(--n-button-color-disabled)
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
&.n-switch--active {
|
|
60
|
-
:deep(.n-switch__rail) {
|
|
61
|
-
background-color: var(--n-rail-color-active-disabled);
|
|
62
|
-
.n-switch__button {
|
|
63
|
-
background-color: var(--n-button-color-active-disabled)
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
</style>
|
package/src/components/index.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './AppProvider'
|
|
2
|
-
export * from './BaseButton'
|
|
3
|
-
export * from './BaseDataTable'
|
|
4
|
-
export * from './BaseDialog'
|
|
5
|
-
export * from './BaseInputNumber'
|
|
6
|
-
export * from './BaseLayout'
|
|
7
|
-
export * from './BaseRadio'
|
|
8
|
-
export { default as BaseProgress } from './BaseProgress'
|
|
9
|
-
export * from './BaseSelect'
|
|
10
|
-
export * from './BaseSlider'
|
|
11
|
-
export * from './BaseSwitch'
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export type ExtendThemeRadio = {
|
|
2
|
-
colorActiveDisabled?: string
|
|
3
|
-
boxShadowActiveDisabled?: string
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export type ExtendThemeSwitch = {
|
|
7
|
-
railColorActiveDisabled?: string
|
|
8
|
-
railColorDisabled?: string
|
|
9
|
-
buttonColorActiveDisabled?: string
|
|
10
|
-
buttonColorDisabled?: string
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type ExtendThemeSlider = {
|
|
14
|
-
handleBorderStyle?: string
|
|
15
|
-
inputWidth?: string
|
|
16
|
-
rangeInputLineColor?: string
|
|
17
|
-
extremeValueTextColor?: string
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type ExtendInputNumber = {
|
|
21
|
-
controlsFontColor?: string
|
|
22
|
-
controlFontColorDisabled?: string
|
|
23
|
-
|
|
24
|
-
innerControlsLargeWidth?: string
|
|
25
|
-
innerControlsMediumWidth?: string
|
|
26
|
-
innerControlsSmallWidth?: string
|
|
27
|
-
innerControlsLargeHeight?: string
|
|
28
|
-
innerControlsMediumHeight?: string
|
|
29
|
-
innerControlsSmallHeight?: string
|
|
30
|
-
innerControlsBackground?: string
|
|
31
|
-
innerControlsDisabledBackground?: string
|
|
32
|
-
innerControlsLargeBorderRadius?: string
|
|
33
|
-
innerControlsMediumBorderRadius?: string
|
|
34
|
-
innerControlsSmallBorderRadius?: string
|
|
35
|
-
|
|
36
|
-
outerControlsBorderStyle?: string
|
|
37
|
-
outerControlsBackground?: string
|
|
38
|
-
outerControlsBorderStyleDisabled?: string
|
|
39
|
-
outerControlsBackgroundDisabled?: string
|
|
40
|
-
outerControlsOpacityDisabled?: number
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export type ExtendProgress = {
|
|
44
|
-
circleWidthMedium?: string;
|
|
45
|
-
circleWidthLarge?: string;
|
|
46
|
-
fontSizeCircleMedium?: string;
|
|
47
|
-
fontSizeCircleLarge?: string;
|
|
48
|
-
tipColorCircle?: string;
|
|
49
|
-
tipFontSizeCircle?: string;
|
|
50
|
-
}
|
package/src/config/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './themes/index'
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
const darkBase = {
|
|
2
|
-
// 主色
|
|
3
|
-
'color-primary-1': '#263658',
|
|
4
|
-
'color-primary-2': '#1D4184',
|
|
5
|
-
'color-primary-3': '#184391',
|
|
6
|
-
'color-primary-4': '#18429D',
|
|
7
|
-
'color-primary-5': '#296BD0',
|
|
8
|
-
'color-primary-6': '#3693FF',
|
|
9
|
-
'color-primary-7': '#3693FF',
|
|
10
|
-
'color-primary-8': '#BBD1FF',
|
|
11
|
-
'color-primary-9': '#CBDEFF',
|
|
12
|
-
'color-primary-10': '#E8F1FF',
|
|
13
|
-
// green
|
|
14
|
-
'color-green-1': '#163A2A',
|
|
15
|
-
'color-green-2': '#0D4934',
|
|
16
|
-
'color-green-3': '#005C3A',
|
|
17
|
-
'color-green-4': '#006D55',
|
|
18
|
-
'color-green-5': '#047D4C',
|
|
19
|
-
'color-green-6': '#10C278',
|
|
20
|
-
'color-green-7': '#6DD68E',
|
|
21
|
-
'color-green-8': '#91E9CA',
|
|
22
|
-
'color-green-9': '#C6F0E0',
|
|
23
|
-
'color-green-10': '#E7FFF8',
|
|
24
|
-
// red
|
|
25
|
-
'color-red-1': '#431B1B',
|
|
26
|
-
'color-red-2': '#5E201D',
|
|
27
|
-
'color-red-3': '#76201B',
|
|
28
|
-
'color-red-4': '#96241B',
|
|
29
|
-
'color-red-5': '#C82D25',
|
|
30
|
-
'color-red-6': '#EA4D44',
|
|
31
|
-
'color-red-7': '#EA4D44',
|
|
32
|
-
'color-red-8': '#FFD2CF',
|
|
33
|
-
'color-red-9': '#F9DAD8',
|
|
34
|
-
'color-red-10': '#FFEEEC',
|
|
35
|
-
// origin
|
|
36
|
-
'color-origin-1': '#3F260A',
|
|
37
|
-
'color-origin-2': '#703510',
|
|
38
|
-
'color-origin-3': '#9B5020',
|
|
39
|
-
'color-origin-4': '#A65519',
|
|
40
|
-
'color-origin-5': '#A74800',
|
|
41
|
-
'color-origin-6': '#FF9939',
|
|
42
|
-
'color-origin-7': '#F7A55D',
|
|
43
|
-
'color-origin-8': '#FFB677',
|
|
44
|
-
'color-origin-9': '#FFD59F',
|
|
45
|
-
'color-origin-10': '#FFF7D9',
|
|
46
|
-
// gray
|
|
47
|
-
'color-gray-1': '#161C28',
|
|
48
|
-
'color-gray-2': '#222833',
|
|
49
|
-
'color-gray-3': '#2F3A4B',
|
|
50
|
-
'color-gray-4': '#474E58',
|
|
51
|
-
'color-gray-5': '#818691',
|
|
52
|
-
'color-gray-6': '#9DA3AF',
|
|
53
|
-
'color-gray-7': '#AFB4BE',
|
|
54
|
-
'color-gray-8': '#C7CAD1',
|
|
55
|
-
'color-gray-9': '#E5E9EF',
|
|
56
|
-
'color-gray-10': '#F6F6F6',
|
|
57
|
-
'color-gray-11': '#636467'
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default darkBase
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const lightBase = {
|
|
2
|
-
// 主色
|
|
3
|
-
'color-primary-1': '#ECF2FF',
|
|
4
|
-
'color-primary-2': '#DEEAFF',
|
|
5
|
-
'color-primary-3': '#BBD1FF',
|
|
6
|
-
'color-primary-4': '#A1BFFF',
|
|
7
|
-
'color-primary-5': '#4C8EFF',
|
|
8
|
-
'color-primary-6': '#0151FF',
|
|
9
|
-
'color-primary-7': '#0046DC',
|
|
10
|
-
'color-primary-8': '#003AB8',
|
|
11
|
-
'color-primary-9': '#003098',
|
|
12
|
-
'color-primary-10': '#002575',
|
|
13
|
-
// green
|
|
14
|
-
'color-green-1': '#EBFCF4',
|
|
15
|
-
'color-green-2': '#D6F8E6',
|
|
16
|
-
'color-green-3': '#C0ECD6',
|
|
17
|
-
'color-green-4': '#91E9BC',
|
|
18
|
-
'color-green-5': '#6ED9A5',
|
|
19
|
-
'color-green-6': '#0DAB63',
|
|
20
|
-
'color-green-7': '#059D5E',
|
|
21
|
-
'color-green-8': '#006D45',
|
|
22
|
-
'color-green-9': '#0D492B',
|
|
23
|
-
'color-green-10': '#213F26',
|
|
24
|
-
// red
|
|
25
|
-
'color-red-1': '#FFF0EF',
|
|
26
|
-
'color-red-2': '#F9DAD8',
|
|
27
|
-
'color-red-3': '#FFD2CF',
|
|
28
|
-
'color-red-4': '#FF989A',
|
|
29
|
-
'color-red-5': '#EF7173',
|
|
30
|
-
'color-red-6': '#EC352B',
|
|
31
|
-
'color-red-7': '#C82D25',
|
|
32
|
-
'color-red-8': '#96241B',
|
|
33
|
-
'color-red-9': '#5E201D',
|
|
34
|
-
'color-red-10': '#4B2C2C',
|
|
35
|
-
// origin
|
|
36
|
-
'color-origin-1': '#FFF5E8',
|
|
37
|
-
'color-origin-2': '#FFE5CD',
|
|
38
|
-
'color-origin-3': '#FFE3BF',
|
|
39
|
-
'color-origin-4': '#FFB677',
|
|
40
|
-
'color-origin-5': '#F7A55D',
|
|
41
|
-
'color-origin-6': '#F78821',
|
|
42
|
-
'color-origin-7': '#D25C02',
|
|
43
|
-
'color-origin-8': '#9A4C1B',
|
|
44
|
-
'color-origin-9': '#703510',
|
|
45
|
-
'color-origin-10': '#452009',
|
|
46
|
-
// gray
|
|
47
|
-
'color-gray-1': '#FAFAFA',
|
|
48
|
-
'color-gray-2': '#F3F6FC',
|
|
49
|
-
'color-gray-3': '#E0E6EF',
|
|
50
|
-
'color-gray-4': '#CAD3E2',
|
|
51
|
-
'color-gray-5': '#B0BACB',
|
|
52
|
-
'color-gray-6': '#8D9CAF',
|
|
53
|
-
'color-gray-7': '#657489',
|
|
54
|
-
'color-gray-8': '#56647A',
|
|
55
|
-
'color-gray-9': '#262D3E',
|
|
56
|
-
'color-gray-10': '#161C2A'
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export default lightBase
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export const commonBase = {
|
|
2
|
-
borderRadiusLarge: '10px',
|
|
3
|
-
borderRadiusMedium: '10px',
|
|
4
|
-
borderRadiusSmall: '10px',
|
|
5
|
-
|
|
6
|
-
heightSmall: '28px',
|
|
7
|
-
heightMedium: '32px',
|
|
8
|
-
heightLarge: '40px',
|
|
9
|
-
|
|
10
|
-
fontSizeLarge: '14px',
|
|
11
|
-
fontSizeMedium: '14px',
|
|
12
|
-
fontSizeSmall: '12px',
|
|
13
|
-
|
|
14
|
-
// switch
|
|
15
|
-
buttonHeightSmall: '12px',
|
|
16
|
-
buttonHeightMedium: '16px',
|
|
17
|
-
buttonHeightLarge: '22px',
|
|
18
|
-
buttonWidthSmall: '12px',
|
|
19
|
-
buttonWidthMedium: '16px',
|
|
20
|
-
buttonWidthLarge: '22px',
|
|
21
|
-
buttonWidthPressedSmall: '20px',
|
|
22
|
-
buttonWidthPressedMedium: '24px',
|
|
23
|
-
buttonWidthPressedLarge: '28px',
|
|
24
|
-
railHeightSmall: '16px',
|
|
25
|
-
railHeightMedium: '24px',
|
|
26
|
-
railHeightLarge: '26px',
|
|
27
|
-
railWidthSmall: '28px',
|
|
28
|
-
railWidthMedium: '40px',
|
|
29
|
-
railWidthLarge: '48px',
|
|
30
|
-
|
|
31
|
-
// tag
|
|
32
|
-
tagBorderRadius: '6px',
|
|
33
|
-
tagHeightMedium: '22px',
|
|
34
|
-
tagHeightLarge: '26px',
|
|
35
|
-
paddingBase: '8px 12px',
|
|
36
|
-
iconSizeBase: '20px',
|
|
37
|
-
|
|
38
|
-
paddingMedium: '0 10px',
|
|
39
|
-
tabGapSmall: '24px',
|
|
40
|
-
tabGapMedium: '24px',
|
|
41
|
-
tabGapLarge: '24px',
|
|
42
|
-
/* 小尺寸Line类型水平内边距 */
|
|
43
|
-
tabPaddingSmall: '0 0 4px 0',
|
|
44
|
-
tabPaddingMedium: '0 0 4px 0',
|
|
45
|
-
tabPaddingLarge: '0 0 4px 0',
|
|
46
|
-
|
|
47
|
-
fontWeightNormal: '400',
|
|
48
|
-
fontWeightActive: '500',
|
|
49
|
-
tabBorderRadius: '19px'
|
|
50
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { AlertProps } from 'naive-ui'
|
|
2
|
-
import { commonBase } from '../../common'
|
|
3
|
-
|
|
4
|
-
export const AlertThemeCommon: AlertProps['themeOverrides'] = {
|
|
5
|
-
|
|
6
|
-
borderRadius: commonBase.borderRadiusMedium,
|
|
7
|
-
|
|
8
|
-
fontSize: commonBase.fontSizeMedium,
|
|
9
|
-
|
|
10
|
-
iconSize: '16px',
|
|
11
|
-
|
|
12
|
-
iconMargin: '15px 8px 0 12px'
|
|
13
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { AlertProps } from 'naive-ui'
|
|
2
|
-
import { darkBase } from '../../color'
|
|
3
|
-
import { AlertThemeCommon } from './common'
|
|
4
|
-
|
|
5
|
-
export const AlertThemeDark: AlertProps['themeOverrides'] = {
|
|
6
|
-
...AlertThemeCommon,
|
|
7
|
-
colorInfo: darkBase['color-primary-1'],
|
|
8
|
-
colorSuccess: darkBase['color-green-1'],
|
|
9
|
-
colorError: darkBase['color-red-1'],
|
|
10
|
-
colorWarning: darkBase['color-origin-1'],
|
|
11
|
-
|
|
12
|
-
contentTextColorError: darkBase['color-gray-10'],
|
|
13
|
-
contentTextColorInfo: darkBase['color-gray-10'],
|
|
14
|
-
contentTextColorSuccess: darkBase['color-gray-10'],
|
|
15
|
-
contentTextColorWarning: darkBase['color-gray-10'],
|
|
16
|
-
|
|
17
|
-
iconColorInfo: darkBase['color-primary-6'],
|
|
18
|
-
iconColorError: darkBase['color-red-6'],
|
|
19
|
-
iconColorSuccess: darkBase['color-green-6'],
|
|
20
|
-
iconColorWarning: darkBase['color-origin-6'],
|
|
21
|
-
|
|
22
|
-
titleTextColor: darkBase['color-gray-10']
|
|
23
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { AlertProps } from 'naive-ui'
|
|
2
|
-
import { lightBase } from '../../color'
|
|
3
|
-
import { AlertThemeCommon } from './common'
|
|
4
|
-
|
|
5
|
-
export const AlertThemeLight: AlertProps['themeOverrides'] = {
|
|
6
|
-
...AlertThemeCommon,
|
|
7
|
-
colorInfo: lightBase['color-primary-1'],
|
|
8
|
-
colorSuccess: lightBase['color-green-1'],
|
|
9
|
-
colorError: lightBase['color-red-1'],
|
|
10
|
-
colorWarning: lightBase['color-origin-1'],
|
|
11
|
-
|
|
12
|
-
contentTextColorError: lightBase['color-gray-10'],
|
|
13
|
-
contentTextColorInfo: lightBase['color-gray-10'],
|
|
14
|
-
contentTextColorSuccess: lightBase['color-gray-10'],
|
|
15
|
-
contentTextColorWarning: lightBase['color-gray-10'],
|
|
16
|
-
|
|
17
|
-
titleTextColor: lightBase['color-gray-10']
|
|
18
|
-
}
|
|
@@ -1,189 +0,0 @@
|
|
|
1
|
-
import { TooltipProps, StepsProps, TabsProps, PopconfirmProps, TreeProps, PaginationProps, BreadcrumbProps } from 'naive-ui'
|
|
2
|
-
import { darkBase } from '../../color'
|
|
3
|
-
import { darkToken } from '../../token'
|
|
4
|
-
import { commonBase } from '../../common'
|
|
5
|
-
|
|
6
|
-
export const TooltipThemeDark: TooltipProps['themeOverrides'] = {
|
|
7
|
-
borderRadius: commonBase.borderRadiusMedium,
|
|
8
|
-
color: darkBase['color-gray-3'],
|
|
9
|
-
textColor: darkToken['color-text-6'],
|
|
10
|
-
padding: commonBase.paddingBase
|
|
11
|
-
}
|
|
12
|
-
export const PopconfirmThemeDark: PopconfirmProps['themeOverrides'] = {
|
|
13
|
-
fontSize: commonBase.fontSizeMedium,
|
|
14
|
-
iconColor: darkBase['color-primary-6'],
|
|
15
|
-
iconSize: commonBase.iconSizeBase
|
|
16
|
-
}
|
|
17
|
-
export const TreeThemeDark: TreeProps['themeOverrides'] = {
|
|
18
|
-
nodeTextColor: darkToken['color-text-6'],
|
|
19
|
-
arrowColor: darkToken['color-text-3'],
|
|
20
|
-
lineColor: darkBase['color-gray-11']
|
|
21
|
-
// nodeColorHover: 'red'
|
|
22
|
-
// nodeColorActive: 'transparent',
|
|
23
|
-
// nodeColorHover: 'transparent',
|
|
24
|
-
// nodeColorPressed: 'transparent'
|
|
25
|
-
|
|
26
|
-
// fontSize: string;
|
|
27
|
-
// lineHeight: string; // 行高(每个节点的高度)
|
|
28
|
-
// nodeHeight: string; // 节点高度(可能已废弃,用lineHeight)
|
|
29
|
-
// nodeWrapperPadding: string; // 节点内边距(文字与边框的间距)
|
|
30
|
-
// nodeBorderRadius: string; // 节点圆角
|
|
31
|
-
// // nodeColorHover: string; // 节点悬停时的背景色
|
|
32
|
-
// nodeColorPressed: string; // 节点按下时的背景色
|
|
33
|
-
// nodeColorActive: string; // 节点激活/选中时的背景色
|
|
34
|
-
// // nodeTextColor: string; // 节点文字颜色
|
|
35
|
-
// nodeTextColorDisabled: string; // 禁用节点文字颜色
|
|
36
|
-
// arrowColor: string; // 展开/收起箭头的颜色
|
|
37
|
-
// loadingColor: string; // 加载中图标的颜色
|
|
38
|
-
// // dropMarkColor: string; // 拖拽放置指示线的颜色
|
|
39
|
-
// lineColor: string; // 节点连接线的颜色(您刚才问的!)
|
|
40
|
-
}
|
|
41
|
-
export const PaginationThemeDark: PaginationProps['themeOverrides'] = {
|
|
42
|
-
buttonBorderHover: '0px solid transparent',
|
|
43
|
-
buttonBorderPressed: '0px solid transparent',
|
|
44
|
-
itemTextColorHover: darkToken['color-text-6'],
|
|
45
|
-
itemTextColorPressed: darkToken['color-text-6'],
|
|
46
|
-
itemColorActive: darkBase['color-primary-6'],
|
|
47
|
-
itemColorActiveHover: darkBase['color-primary-6'],
|
|
48
|
-
itemBorderDisabled: '0px solid transparent',
|
|
49
|
-
buttonBorder: darkBase['color-gray-3'],
|
|
50
|
-
// // 按钮相关样式(上一页/下一页按钮)
|
|
51
|
-
buttonIconColor: darkToken['color-text-6'], /* 按钮图标颜色 */
|
|
52
|
-
buttonIconColorPressed: darkToken['color-text-6'],
|
|
53
|
-
buttonIconColorHover: darkToken['color-text-6'],
|
|
54
|
-
itemTextColorDisabled: darkToken['color-text-6'], /* 禁用页码文字颜色 */
|
|
55
|
-
/* 文字颜色 */
|
|
56
|
-
itemTextColor: darkToken['color-text-6'],
|
|
57
|
-
// itemTextColorPressed: 'red', /* 按下页码文字颜色 */
|
|
58
|
-
itemColorDisabled: 'transparent', /* 禁用页码背景颜色 */
|
|
59
|
-
|
|
60
|
-
itemTextColorActive: darkToken['color-text-5'], /* 当前页码文字颜色 */
|
|
61
|
-
/* 背景颜色 */
|
|
62
|
-
itemBorderRadius: commonBase.borderRadiusMedium,
|
|
63
|
-
itemSizeMedium: commonBase.heightMedium, // 修改默认高度
|
|
64
|
-
itemFontSizeMedium: commonBase.fontSizeMedium, // 修改默认字体
|
|
65
|
-
itemPaddingMedium: commonBase.paddingMedium, // 修改默认内边距
|
|
66
|
-
|
|
67
|
-
/** 跳转文字*/
|
|
68
|
-
jumperTextColor: darkToken['color-text-6'] // 修改跳转文字颜色
|
|
69
|
-
}
|
|
70
|
-
export const BreadcrumbThemeDark: BreadcrumbProps['themeOverrides'] = {
|
|
71
|
-
// fontSize: string; /* 面包屑整体字体大小 */
|
|
72
|
-
// itemLineHeight: string; /* 面包屑项的行高 */
|
|
73
|
-
// fontWeightActive: string; /* 当前项的字重(如:bold)*/
|
|
74
|
-
itemTextColor: darkToken['color-text-2'], /* 普通面包屑项文字颜色 */
|
|
75
|
-
itemTextColorHover: darkToken['color-text-6'], /* 鼠标悬停时文字颜色 */
|
|
76
|
-
itemTextColorPressed: darkToken['color-text-6'], /* 鼠标按下时文字颜色 */
|
|
77
|
-
itemTextColorActive: darkToken['color-text-6'], /* 当前页面项文字颜色(不可点击)*/
|
|
78
|
-
// itemColorHover: string; /* 鼠标悬停时背景颜色 */
|
|
79
|
-
// itemColorPressed: string; /* 鼠标按下时背景颜色 */
|
|
80
|
-
// itemBorderRadius: string; /* 面包屑项的圆角大小 */
|
|
81
|
-
separatorColor: darkToken['color-text-4'] /* 分隔符颜色(如 > 或 / 的颜色)*/
|
|
82
|
-
}
|
|
83
|
-
export const TabsThemeDark: TabsProps['themeOverrides'] = {
|
|
84
|
-
/* Line 类型文字颜色 */
|
|
85
|
-
tabTextColorLine: darkToken['color-text-3'], /* 普通文字颜色 */
|
|
86
|
-
tabTextColorActiveLine: darkBase['color-primary-6'], /* 激活状态文字颜色 */
|
|
87
|
-
tabTextColorHoverLine: darkBase['color-primary-5'], /* 悬停状态文字颜色 */
|
|
88
|
-
tabTextColorDisabledLine: darkToken['color-text-6'], /* 禁用状态文字颜色 */
|
|
89
|
-
|
|
90
|
-
// /* Bar 类型文字颜色 */
|
|
91
|
-
tabTextColorBar: darkToken['color-text-3'], /* 普通文字颜色 */
|
|
92
|
-
tabTextColorActiveBar: darkBase['color-primary-6'], /* 激活状态文字颜色 */
|
|
93
|
-
tabTextColorHoverBar: darkBase['color-primary-5'], /* 悬停状态文字颜色 */
|
|
94
|
-
tabTextColorDisabledBar: darkToken['color-text-6'], /* 禁用状态文字颜色 */
|
|
95
|
-
|
|
96
|
-
// /* Card 类型文字颜色 */
|
|
97
|
-
tabTextColorCard: darkToken['color-text-3'], /* 普通文字颜色 */
|
|
98
|
-
tabTextColorActiveCard: darkBase['color-primary-6'], /* 激活状态文字颜色 */
|
|
99
|
-
tabTextColorHoverCard: darkBase['color-primary-5'], /* 悬停状态文字颜色 */
|
|
100
|
-
tabTextColorDisabledCard: darkToken['color-text-6'], /* 禁用状态文字颜色 */
|
|
101
|
-
|
|
102
|
-
// /* Segment 类型文字颜色 */
|
|
103
|
-
tabTextColorSegment: darkToken['color-text-3'], /* 普通文字颜色 */
|
|
104
|
-
tabTextColorActiveSegment: darkBase['color-primary-6'], /* 激活状态文字颜色 */
|
|
105
|
-
tabTextColorHoverSegment: darkBase['color-primary-5'], /* 悬停状态文字颜色 */
|
|
106
|
-
tabTextColorDisabledSegment: darkToken['color-text-6'], /* 禁用状态文字颜色 */
|
|
107
|
-
|
|
108
|
-
tabPaddingSmallSegment: '10px 12px',
|
|
109
|
-
tabPaddingMediumSegment: '10px 0',
|
|
110
|
-
tabPaddingLargeSegment: '10px 0',
|
|
111
|
-
|
|
112
|
-
// tabColor: 'green', /* 标签页背景色 */
|
|
113
|
-
// tabColorSegment: darkBase['color-primary-6'], /* Segment 类型标签背景色 */
|
|
114
|
-
// tabBorderColor: string; /* 标签页边框颜色 */
|
|
115
|
-
barColor: darkBase['color-primary-6'], /* Bar 类型指示条颜色 */
|
|
116
|
-
// closeIconColor: string; /* 关闭图标颜色 */
|
|
117
|
-
// closeIconColorHover: string; /* 关闭图标悬停颜色 */
|
|
118
|
-
// closeIconColorPressed: string;/* 关闭图标按下颜色 */
|
|
119
|
-
// closeColorHover: string; /* 关闭按钮悬停背景色 */
|
|
120
|
-
// closeColorPressed: string; /* 关闭按钮按下背景色 */
|
|
121
|
-
// closeBorderRadius: string; /* 关闭按钮圆角 */
|
|
122
|
-
// closeSize: string; /* 关闭按钮大小 */
|
|
123
|
-
// closeIconSize: string; /* 关闭图标大小 */
|
|
124
|
-
// tabFontSizeCard: string; /* Card 类型字体大小 */
|
|
125
|
-
tabFontSizeSmall: commonBase.fontSizeSmall, /* 小尺寸字体 */
|
|
126
|
-
tabFontSizeMedium: commonBase.fontSizeMedium, /* 中尺寸字体 */
|
|
127
|
-
tabFontSizeLarge: commonBase.fontSizeLarge, /* 大尺寸字体 */
|
|
128
|
-
tabFontWeight: commonBase.fontWeightNormal, /* 普通字重 */
|
|
129
|
-
tabFontWeightActive: commonBase.fontWeightActive, /* 激活状态字重 */
|
|
130
|
-
// fontWeightStrong: string; /* 强调字重 */
|
|
131
|
-
// paneTextColor: string; /* 标签内容区域文字颜色 */
|
|
132
|
-
// panePaddingSmall: string; /* 小尺寸内容区域内边距 */
|
|
133
|
-
// panePaddingMedium: string; /* 中尺寸内容区域内边距 */
|
|
134
|
-
// panePaddingLarge: string; /* 大尺寸内容区域内边距 *//* 各种间距变量命名规则:
|
|
135
|
-
// tab[属性][尺寸][类型][方向]
|
|
136
|
-
// 例如:tabGapSmallLineVertical = 小尺寸 + Line类型 + 垂直方向的间隙
|
|
137
|
-
// */
|
|
138
|
-
|
|
139
|
-
// /* 间隙(Gap)*/
|
|
140
|
-
tabGapSmallLine: commonBase.tabGapSmall, /* 小尺寸Line类型水平间隙 */
|
|
141
|
-
tabGapMediumLine: commonBase.tabGapMedium, /* 中尺寸Line类型水平间隙 */
|
|
142
|
-
tabGapLargeLine: commonBase.tabGapLarge, /* 大尺寸Line类型水平间隙 */
|
|
143
|
-
|
|
144
|
-
// /* 内边距(Padding)*/
|
|
145
|
-
tabPaddingSmallLine: commonBase.tabPaddingSmall, /* 小尺寸Line类型水平内边距 */
|
|
146
|
-
tabPaddingMediumLine: commonBase.tabPaddingMedium, /* 中尺寸Line类型水平内边距 */
|
|
147
|
-
tabPaddingLargeLine: commonBase.tabPaddingLarge, /* 大尺寸Line类型水平内边距 */
|
|
148
|
-
|
|
149
|
-
// /* 垂直方向变量(带Vertical后缀)*/
|
|
150
|
-
// tabGapSmallLineVertical: string; /* 垂直方向间隙 */
|
|
151
|
-
// tabPaddingVerticalSmallLine: string; /* 垂直方向内边距 */
|
|
152
|
-
tabBorderRadius: commonBase.tabBorderRadius /* 标签页圆角 */
|
|
153
|
-
// closeBorderRadius: string; /* 关闭按钮圆角 */
|
|
154
|
-
}
|
|
155
|
-
export const StepsThemeDark: StepsProps['themeOverrides'] = {
|
|
156
|
-
indicatorColorWait: 'transparent', /* 等待状态指示器背景色 */
|
|
157
|
-
indicatorColorProcess: darkBase['color-primary-6'], /* 进行状态指示器背景色 */
|
|
158
|
-
indicatorColorFinish: 'transparent', /* 完成状态指示器背景色 */
|
|
159
|
-
indicatorColorError: 'transparent', /* 错误状态指示器背景色 */
|
|
160
|
-
indicatorTextColorWait: darkBase['color-gray-6'], /* 等待状态指示器文字颜色 */
|
|
161
|
-
indicatorTextColorProcess: darkToken['color-text-5'], /* 进行状态指示器文字颜色 */
|
|
162
|
-
indicatorTextColorFinish: darkBase['color-primary-6'], /* 完成状态指示器文字颜色 */
|
|
163
|
-
indicatorTextColorError: darkBase['color-red-6'], /* 错误状态指示器文字颜色 */
|
|
164
|
-
indicatorBorderColorWait: darkBase['color-gray-6'], /* 等待状态指示器边框颜色 */
|
|
165
|
-
indicatorBorderColorProcess: darkBase['color-primary-6'], /* 进行状态指示器边框颜色 */
|
|
166
|
-
indicatorBorderColorFinish: darkBase['color-primary-6'], /* 完成状态指示器边框颜色 */
|
|
167
|
-
indicatorBorderColorError: darkBase['color-red-6'], /* 错误状态指示器边框颜色 */
|
|
168
|
-
headerTextColorWait: darkToken['color-text-6'], /* 等待状态标题颜色 */
|
|
169
|
-
headerTextColorProcess: darkBase['color-gray-10'], /* 进行状态标题颜色 */
|
|
170
|
-
headerTextColorFinish: darkBase['color-gray-10'], /* 完成状态标题颜色 */
|
|
171
|
-
headerTextColorError: darkBase['color-gray-10'], /* 错误状态标题颜色 */
|
|
172
|
-
descriptionTextColorWait: darkToken['color-text-3'], /* 等待状态描述颜色 */
|
|
173
|
-
descriptionTextColorProcess: darkBase['color-gray-6'], /* 进行状态描述颜色 */
|
|
174
|
-
descriptionTextColorFinish: darkBase['color-gray-6'], /* 完成状态描述颜色 */
|
|
175
|
-
descriptionTextColorError: darkBase['color-gray-6'], /* 错误状态描述颜色 */
|
|
176
|
-
splitorColorProcess: darkBase['color-primary-6'],
|
|
177
|
-
splitorColorWait: darkBase['color-gray-4'],
|
|
178
|
-
splitorColorFinish: darkBase['color-primary-6'],
|
|
179
|
-
splitorColorError: darkBase['color-primary-6'],
|
|
180
|
-
stepHeaderFontSizeSmall: '16px', /* 小尺寸标题字体 */
|
|
181
|
-
stepHeaderFontSizeMedium: '16px', /* 中尺寸标题字体 */
|
|
182
|
-
indicatorIndexFontSizeSmall: '16px', /* 小尺寸指示器数字字体 */
|
|
183
|
-
indicatorIndexFontSizeMedium: '16px', /* 中尺寸指示器数字字体 */
|
|
184
|
-
// stepHeaderFontWeight: string; /* 标题字体粗细 */
|
|
185
|
-
indicatorSizeSmall: '24px', /* 小尺寸指示器大小 */
|
|
186
|
-
indicatorSizeMedium: '24px', /* 中尺寸指示器大小 */
|
|
187
|
-
indicatorIconSizeSmall: '16px', /* 小尺寸指示器图标大小 */
|
|
188
|
-
indicatorIconSizeMedium: '16px' /* 中尺寸指示器图标大小 */
|
|
189
|
-
}
|