@opentiny/vue-theme
Advanced tools
Comparing version 3.17.5 to 3.18.0
export const tinyAnchorSmbTheme = { | ||
'ti-anchor-width': '160px', | ||
'ti-anchor-text-color': '#595959', | ||
'ti-anchor-link-active-text-color': '#191919' | ||
'ti-anchor-width': 'var(--ti-common-size-40x)', | ||
'ti-anchor-text-color': 'var(--ti-common-color-text-secondary)', | ||
'ti-anchor-line-bg-color': 'var(--ti-common-scrollbar-thumb-bg-color)', | ||
'ti-anchor-link-active-text-color': 'var(--ti-common-color-text-primary)', | ||
'ti-anchor-line-opacity': '1' | ||
} |
export const tinyCascaderNodeSmbTheme = { | ||
'ti-cascader-node-label-padding-horizontal': '0px', | ||
'ti-cascader-node-postfix-right': '16px', | ||
'ti-cascader-node-disabled-bg-color': '#fff', | ||
'ti-cascader-node-disabled-icon-color': '#c2c2c2', | ||
'ti-cascader-node-label-max-width': '126px', | ||
'ti-cascader-node-selectable-active-bg-color': '#fff', | ||
'ti-cascader-node-active-font-weight': 'bold', | ||
'ti-cascader-node-hover-text-color': '#191919', | ||
'ti-cascader-node-label-padding-horizontal': 'var(--ti-common-space-0)', | ||
'ti-cascader-node-postfix-right': 'var(--ti-common-space-4x)', | ||
'ti-cascader-node-disabled-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-cascader-node-disabled-icon-color': 'var(--ti-common-color-text-link-darkbg-hover)', | ||
'ti-cascader-node-label-max-width': 'calc(var(--ti-common-space-2) * 53 + 1px)', | ||
'ti-cascader-node-selectable-active-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-cascader-node-active-font-weight': 'var(--ti-common-font-weight-bold)', | ||
'ti-cascader-node-hover-text-color': 'var(--ti-common-color-primary-normal)', | ||
'ti-cascader-node-prefix-display': 'none', | ||
'ti-cascader-node-icon-color': '#808080', | ||
'ti-cascader-node-text-color': '#191919', | ||
'ti-cascader-node-selectable-text-color': '#1476ff', | ||
'ti-cascader-node-icon-color': 'var(--ti-common-color-icon-normal)', | ||
'ti-cascader-node-text-color': 'var(--ti-common-color-primary-normal)', | ||
'ti-cascader-node-selectable-text-color': 'var(--ti-common-color-text-highlight)', | ||
'ti-cascader-node-icon-font-size': 'var(--ti-common-font-size-2)', | ||
'ti-cascader-node-active-icon-color': '#191919' | ||
'ti-cascader-menu-list-padding-vertical': 'var(--ti-common-space-2x)', | ||
'ti-cascader-node-active-icon-color': 'var(--ti-common-color-primary-normal)' | ||
} |
@@ -23,3 +23,6 @@ export const tinyDateTableSmbTheme = { | ||
'ti-date-table-td-today-border-color': 'transparent', | ||
'ti-date-table-cell-selected-border-radius': '14px' | ||
'ti-date-table-cell-selected-border-radius': '14px', | ||
'ti-date-table-tr-line-height': '16px', | ||
'ti-date-table-td-disabled-border-radius': '50%', | ||
'ti-date-table-td-row-disabled-border-radius': 'unset' | ||
} |
export const tinyFormItemSmbTheme = { | ||
'ti-form-item-label-text-color': 'var(--ti-common-color-text-secondary)', | ||
'ti-form-item-margin-bottom-default': '24px', | ||
'ti-form-item-margin-bottom-mini': '12px', | ||
'ti-form-item-margin-bottom-small': '20px', | ||
'ti-form-item-margin-bottom-medium': '24px', | ||
'ti-form-item-input-mini-height': '20px', | ||
'ti-form-item-input-small-height': '24px', | ||
'ti-form-item-input-medium-height': '32px', | ||
'ti-form-item-mini-line-height': '20px', | ||
'ti-form-item-small-line-height': '24px', | ||
'ti-form-item-medium-line-height': '32px' | ||
'ti-form-item-margin-bottom-default': 'var(--ti-common-space-6x)', | ||
'ti-form-item-margin-bottom-mini': 'var(--ti-common-space-3x)', | ||
'ti-form-item-margin-bottom-small': 'var(--ti-common-space-5x)', | ||
'ti-form-item-margin-bottom-medium': 'var(--ti-common-space-6x)', | ||
'ti-form-item-input-mini-height': 'var(--ti-common-space-5x)', | ||
'ti-form-item-input-small-height': 'var(--ti-common-space-6x)', | ||
'ti-form-item-input-medium-height': 'var(--ti-common-space-8x)', | ||
'ti-form-item-mini-line-height': 'var(--ti-common-space-5x)', | ||
'ti-form-item-small-line-height': 'var(--ti-common-space-6x)', | ||
'ti-form-item-medium-line-height': 'var(--ti-common-space-8x)', | ||
'ti-form-item-label-padding-right': 'var(--ti-common-space-6x)' | ||
} |
export const tinyGuideSmbTheme = { | ||
'ti-guide-header-padding-top': 'var(--ti-common-space-4x)', | ||
'ti-guide-header-padding-left': 'var(--ti-common-space-4x)', | ||
'ti-guide-header-padding-right': 'var(--ti-common-space-4x)', | ||
'ti-guide-footer-padding-left': 'var(--ti-common-space-4x)', | ||
'ti-guide-footer-padding-right': 'var(--ti-common-space-4x)', | ||
'ti-guide-footer-padding-bottom': 'var(--ti-common-space-4x)', | ||
'ti-guide-text-padding-horizontal': 'var(--ti-common-space-4x)', | ||
'ti-guide-header-padding-top': 'var(--ti-common-space-6x)', | ||
'ti-guide-header-padding-left': 'var(--ti-common-space-6x)', | ||
'ti-guide-header-padding-right': 'var(--ti-common-space-6x)', | ||
'ti-guide-footer-padding-left': 'var(--ti-common-space-6x)', | ||
'ti-guide-footer-padding-right': 'var(--ti-common-space-6x)', | ||
'ti-guide-footer-padding-bottom': 'var(--ti-common-space-6x)', | ||
'ti-guide-text-padding-horizontal': 'var(--ti-common-space-6x)', | ||
'ti-guide-text-padding-bottom': 'var(--ti-common-space-6x)', | ||
@@ -13,16 +13,22 @@ 'ti-guide-text-padding-top': 'var(--ti-common-space-2x)', | ||
'ti-guide-button-height': 'var(--ti-common-line-height-2)', | ||
'ti-guide-progress-style-left': 'var(--ti-common-space-4x)', | ||
'ti-guide-progress-style-left': 'var(--ti-common-space-6x)', | ||
'ti-guide-title-text-font-size': 'var(--ti-common-font-size-2)', | ||
'ti-guide-title-line-height': 'var(--ti-common-line-height-2)', | ||
'ti-guide-text-line-height': 'var(--ti-common-line-height-2)', | ||
'ti-guide-button-bg-color': 'var(--ti-base-color-bg-5)', | ||
'ti-guide-button-bg-color': 'var(--ti-common-color-light)', | ||
'ti-guide-button-text-color': '#191919', | ||
'ti-guide-button-hover-bg-color': 'var(--ti-base-color-bg-5)', | ||
'ti-guide-button-active-bg-color': 'var(--ti-base-color-bg-5)', | ||
'ti-guide-button-focus-bg-color': 'var(--ti-base-color-bg-5)', | ||
'ti-guide-button-hover-border-color': '#191919', | ||
'ti-guide-button-border': '#c2c2c2', | ||
'ti-guide-cancel-icon-margin-top': 'calc(var(--ti-common-space-base) * (-3))', | ||
'ti-guide-cancel-icon-margin-right': 'var(--ti-common-space-0)', | ||
'ti-guide-button-hover-bg-color': 'var(--ti-common-color-light)', | ||
'ti-guide-button-active-bg-color': 'var(--ti-common-color-light)', | ||
'ti-guide-button-focus-bg-color': 'var(--ti-common-color-light)', | ||
'ti-guide-button-hover-border-color': '#C2C2C2', | ||
'ti-guide-button-border': '#595959', | ||
'ti-guide-text-text-color': '#595959', | ||
'ti-guide-progresss-text-color': '#808080', | ||
'ti-guide-cancel-icon-margin-top': 'calc(var(--ti-common-space-base) * (-6))', | ||
'ti-guide-cancel-icon-margin-right': 'calc(var(--ti-common-space-base) * (-2))', | ||
'ti-guide-header-border-top-left-radius': 'var(--ti-common-border-radius-4)', | ||
'ti-guide-header-border-top-right-radius': 'var(--ti-common-border-radius-4)', | ||
'ti-guide-footer-border-bottom-right-radius': 'var(--ti-common-border-radius-4)', | ||
'ti-guide-footer-border-bottom-left-radius': 'var(--ti-common-border-radius-4)', | ||
'ti-guide-button-border-radius': 'var(--ti-common-size-25x)' | ||
} |
export const tinyInputAuroraTheme = { | ||
'ti-input-border-color': '#d9d9d9', | ||
'ti-input-hover-border-color': '#1890ff', | ||
'ti-input-icon-close-text-color': '#bfbfbf' | ||
'ti-input-icon-close-text-color': '#bfbfbf', | ||
'ti-input-display-content-line-height': 'var(--ti-common-space-6x)' | ||
} |
export const tinyNavMenuSmbTheme = { | ||
'ti-nav-menu-bg-color': '#282b33' | ||
'ti-nav-menu-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-nav-menu-item-text-color': 'var(--ti-common-color-text-primary)', | ||
'ti-nav-menu-item-more-button-fill': 'var(--ti-common-color-text-primary)', | ||
'ti-nav-menu-popmenu-more-item-icon-color': 'var(--ti-common-color-icon-normal)', | ||
'ti-nav-menu-popmenu-more-item-hover-text-color': 'var(--ti-common-color-primary-normal)', | ||
'ti-nav-menu-popmenu-text-color': 'var(--ti-common-color-text-secondary)', | ||
'ti-nav-menu-item-hover-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-nav-menu-item-text-font-weight': 'var(--ti-common-font-weight-bold)', | ||
'ti-nav-menu-popmenu-selected-font-weight': 'var(--ti-common-font-weight-bold)', | ||
'ti-nav-menu-item-selected-underline-height': 'var(--ti-common-border-weight-1)', | ||
'ti-nav-menu-item-selected-underline-bg-color': 'var(--ti-common-color-text-primary)', | ||
'ti-nav-menu-submenu-group-margin-top': 'var(--ti-common-size-9x)', | ||
'ti-nav-menu-padding': 'var(--ti-common-size-4x)', | ||
'ti-nav-menu-item-li-margin': 'var(--ti-common-size-4x)', | ||
'ti-nav-menu-slot-logo-margin-left': 'var(--ti-common-size-4x)', | ||
'ti-nav-menu-slot-logo-margin-right': 'var(--ti-common-size-12x)', | ||
'ti-nav-menu-popmenu-node-item-padding-top': 'var(--ti-common-space-0)', | ||
'ti-nav-menu-popmenu-node-item-padding-button': 'calc(var(--ti-common-space-3x) + 2px)', | ||
'ti-nav-menu-submenu-padding-horizontal': 'calc(var(--ti-common-space-base) * 20.5)', | ||
'ti-nav-menu-popmenu-node-title-margin-bottom': 'calc(var(--ti-common-space-4x) + 2px)', | ||
'ti-nav-menu-popmenu-text-font-size': 'var(--ti-common-font-size-0)', | ||
// SMB未定义颜色 | ||
'ti-nav-menu-popmenu-more-item-hover-bg-color': '#F5F5F5', | ||
'ti-nav-menu-popmenu-more-item-active-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-nav-menu-popmenu-more-item-selected-bg-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-nav-menu-popmenu-border-color': 'var(--ti-common-color-bg-navigation)', | ||
'ti-nav-menu-popmenu-box-shadow': 'var(--ti-common-shadow-2-down)', | ||
'ti-nav-menu-item-font-size': 'var(--ti-common-font-size-base)' | ||
} |
{ | ||
"name": "@opentiny/vue-theme", | ||
"version": "3.17.5", | ||
"version": "3.18.0", | ||
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.", | ||
"main": "index.css", | ||
"author": "OpenTiny Team", | ||
"license": "MIT", | ||
"homepage": "https://opentiny.design/tiny-vue", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:opentiny/tiny-vue.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/opentiny/tiny-vue/issues" | ||
}, | ||
"keywords": [ | ||
@@ -18,11 +26,3 @@ "vue", | ||
], | ||
"author": "OpenTiny Team", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "git@github.com:opentiny/tiny-vue.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/opentiny/tiny-vue/issues" | ||
}, | ||
"main": "index.css", | ||
"devDependencies": { | ||
@@ -32,14 +32,14 @@ "@babel/cli": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"fast-glob": "^3.2.12", | ||
"gulp": "^4.0.2", | ||
"gulp-autoprefixer": "^7.0.1", | ||
"gulp-clean-css": "^4.2.0", | ||
"gulp-concat": "2.6.1", | ||
"gulp-less": "^5.0.0", | ||
"gulp-svg-inline": "^1.0.1", | ||
"gulp-transform": "3.0.5", | ||
"gulp-concat": "2.6.1", | ||
"svgo": "3.2.0", | ||
"rimraf": "^2.6.2", | ||
"fast-glob": "^3.2.12", | ||
"stylelint": "^14.14.0", | ||
"stylelint-config-standard": "^29.0.0" | ||
"stylelint-config-standard": "^29.0.0", | ||
"svgo": "3.2.0" | ||
}, | ||
@@ -83,3 +83,3 @@ "stylelint": { | ||
"build:fast": "npm run build && npm run release", | ||
"release": "node build/release.js && node build/postbuild.js && shx cp README.md dist", | ||
"release": "node build/release.js && node build/postbuild.js", | ||
"build:copy-remote": "npm run build:theme && cp-cli dist ../tiny-vue/node_modules/@opentiny/vue-theme", | ||
@@ -86,0 +86,0 @@ "publishTgz": "node .cloudbuild/publish-tgzs.js", |
export const tinyPagerSmbTheme = { | ||
'ti-pager-primary-bg-color': 'var(--ti-common-color-bg-white-emphasize)', | ||
'ti-pager-active-bg-color': '#0000000D', | ||
'ti-pager-li-border-radius': '20px', | ||
'ti-pager-height': '32px', | ||
'ti-pager-input-height': '32px', | ||
'ti-pager-poplist-item-padding-horizontal': '8px', | ||
// 缺少f5f5f5common变量 | ||
'ti-pager-active-bg-color': '#F5F5F5', | ||
'ti-pager-li-border-radius': 'var(--ti-common-border-radius-6)', | ||
'ti-pager-height': 'var(--ti-common-size-height-normal)', | ||
'ti-pager-input-height': 'var(--ti-common-size-height-normal)', | ||
'ti-pager-poplist-item-padding-horizontal': 'var(--ti-common-space-2x)', | ||
'ti-pager-active-font-color': 'var(--ti-common-color-text-primary)', | ||
'ti-pager-li-item-hover-text-color': 'var(--ti-pager-text-color)', | ||
'ti-pager-goto-btn-text-hover-color': 'var(--ti-common-color-selected-text-color)', | ||
'ti-pager-total-font-size': '14px', | ||
'ti-pager-total-height': '22px', | ||
'ti-pager-total-line-height': '22px', | ||
'ti-pager-input-border-color': '#C2C2C2', | ||
'ti-pager-total-font-size': 'var(--ti-common-font-size-base)', | ||
'ti-pager-total-height': 'var(--ti-common-line-height-2)', | ||
'ti-pager-total-line-height': 'var(--ti-common-line-height-2)', | ||
'ti-pager-input-border-color': 'var(--ti-common-color-line-normal)', | ||
'ti-pager-total-svg-fill-color': 'var(--ti-common-color-icon-normal)', | ||
'ti-pager-input-padding-vertical': '12px', | ||
'ti-pager-svg-font-size': '16px', | ||
'ti-pager-prev-padding-left': '0px', | ||
'ti-pager-prev-padding-right': '0px', | ||
'ti-pager-prev-margin-left': '16px', | ||
'ti-pager-prev-margin-right': '8px', | ||
'ti-pager-next-margin-left': '8px', | ||
'ti-pager-next-margin-right': '0px', | ||
'ti-pager-next-padding-right': '0px', | ||
'ti-pager-input-padding-vertical': 'var(--ti-common-space-3x)', | ||
'ti-pager-svg-font-size': 'var(--ti-common-font-size-2)', | ||
'ti-pager-prev-padding-left': 'var(--ti-common-space-0)', | ||
'ti-pager-prev-padding-right': 'var(--ti-common-space-0)', | ||
'ti-pager-prev-margin-left': 'var(--ti-common-space-4x)', | ||
'ti-pager-prev-margin-right': 'var(--ti-common-space-2x)', | ||
'ti-pager-next-margin-left': 'var(--ti-common-space-2x)', | ||
'ti-pager-next-margin-right': 'var(--ti-common-space-0)', | ||
'ti-pager-next-padding-right': 'var(--ti-common-space-0)', | ||
'ti-pager-btn-svg-fill-color': 'var(--ti-common-color-icon-normal)', | ||
'ti-pager-active-font-weight': '600', | ||
'ti-pager-dot-is-popup-svg-font-size': '16px', | ||
'ti-pager-poplist-item-hover-bg-color': '#0000000D', | ||
'ti-pager-poplist-item-hover-text-color': '#191919', | ||
'ti-pager-active-font-weight': 'var(--ti-common-font-weight-bold)', | ||
'ti-pager-dot-is-popup-svg-font-size': 'var(--ti-common-font-size-2)', | ||
'ti-pager-poplist-item-hover-bg-color': '#F5F5F5', | ||
'ti-pager-poplist-item-hover-text-color': 'var(--ti-common-color-text-primary)', | ||
'ti-pager-li-item-hover-font-weight': 'var(--ti-common-font-weight-6)', | ||
'ti-pager-min-width': '32px', | ||
'ti-pager-min-width': 'var(--ti-common-size-height-normal)', | ||
'ti-pager-prev-next-hover-bg-color': 'transparent', | ||
'ti-pager-group-sizes-margin-right': '0px', | ||
'ti-pager-group-sizes-margin-right': 'var(--ti-common-space-0)', | ||
'ti-pager-sizes-input-hover-text-color': '#595959', | ||
'ti-pager-input-btn-width': '24px', | ||
'ti-pager-selector-padding-vertical': '8px', | ||
'ti-pager-pop-body-margin-top': '4px', | ||
'ti-pager-poplist-item-selected-bg-color': '#0000000D', | ||
'ti-pager-poplist-item-min-height': '32px', | ||
'ti-pager-mini-min-width': '24px', | ||
'ti-pager-sizes-num-margin-right': '2px' | ||
'ti-pager-input-btn-width': 'var(--ti-common-size-width-mini)', | ||
'ti-pager-selector-padding-vertical': 'var(--ti-common-space-2x)', | ||
'ti-pager-pop-body-margin-top': 'var(--ti-common-space-base)', | ||
'ti-pager-poplist-item-selected-bg-color': '#F5F5F5', | ||
'ti-pager-poplist-item-min-height': 'var(--ti-common-line-height-6)', | ||
'ti-pager-mini-min-width': 'var(--ti-common-size-width-mini)', | ||
'ti-pager-sizes-num-margin-right': 'var(--ti-common-dropdown-gap)', | ||
'ti-pager-normal-text-padding-left': 'var(--ti-common-space-4x)' | ||
} |
export const tinyPopUploadSmbTheme = { | ||
'ti-popupload-dialog-table-icon-color-hover': '#c7000b' | ||
'ti-popupload-dialog-table-border-color': 'var(--ti-common-color-transparent)', | ||
'ti-popupload-dialog-table-line-bg-color': 'var(--ti-common-bg-color-transparent-15)', | ||
'ti-popupload-dialog-table-line-height': 'var(--ti-common-size-4x)', | ||
'ti-popupload-table-item-even-bg-color': 'var(--ti-common-color-bg-white-normal)', | ||
'ti-popupload-table-item-border-color': 'var(--ti-common-border-color-transparent-8)' | ||
} |
export const tinyProgresSMBTheme = { | ||
'ti-progress-bar-inner-bg-color': 'var(--ti-common-color-data-4)', | ||
'ti-progress-bar-text-margin-left': 'var(--ti-common-space-3x)', | ||
'ti-progress-exception-bg-color': '#c7000b' | ||
'ti-progress-exception-bg-color': '#c7000b', | ||
'ti-progress-bar-outer-bg-color': '#E6E6E6' | ||
} |
@@ -1,1 +0,7 @@ | ||
# @opentiny/vue-theme | ||
# @opentiny/vue-theme | ||
A package that provides theme styles for `TinyVue` components (pc templates) | ||
## Provides dynamic theme switching capabilities (theme-tool) | ||
For details, please refer to: Theme switching document [https://opentiny.design/tiny-vue/zh-CN/smb-theme/docs/theme] |
@@ -7,4 +7,4 @@ export const tinySearchSmbTheme = { | ||
'ti-search-input-btn-icon-size': 'var(--ti-common-font-size-2)', | ||
'ti-search-input-placeholder-color': 'var(--ti-common-color-placeholder)', | ||
'ti-search-input-left-svg-margin-right': '-8px' | ||
'ti-search-input-placeholder-text-color': 'var(--ti-common-color-placeholder)', | ||
'ti-search-input-left-svg-margin-right': 'calc(0px - var(--ti-common-space-2x))' | ||
} |
@@ -9,2 +9,3 @@ export const tinySelectAuroraTheme = { | ||
'ti-select-tags-wrap-padding-left': '8px', | ||
'ti-select-tags-padding-right-disabled': 'var(--ti-common-space-4x)', | ||
'ti-select-input-icon-close-margin-right': 'var(--ti-common-space-2x)', | ||
@@ -11,0 +12,0 @@ 'ti-select-tags-height': '28px', |
@@ -16,4 +16,5 @@ export const tinySelectSmbTheme = { | ||
'ti-select-tags-max-height': 'none', | ||
'ti-select-tags-padding-right-disabled': 'var(--ti-common-space-8x)', | ||
'ti-select-collapse-button-text-icon-color': 'var(--ti-common-color-text-link)', | ||
'ti-select-input-icon-top-mini': 'var(--ti-common-space-4x)' | ||
} |
export const tinyTabsSmbTheme = { | ||
'ti-tabs-height': 'var(--ti-common-size-13x)', | ||
'ti-tabs-height': 'var(--ti-common-size-12x)', | ||
'ti-tabs-dark-item-height': 'calc(var(--ti-common-size-base) * 11.75)', | ||
@@ -14,3 +14,4 @@ 'ti-tabs-header-font-weight-active': 'var(--ti-common-font-weight-bold)', | ||
'ti-tabs-content-margin-vertical': 'var(--ti-common-space-3x)', | ||
'ti-tabs-content-margin-horizontal': 'var(--ti-common-space-0)' | ||
'ti-tabs-content-margin-horizontal': 'var(--ti-common-space-0)', | ||
'ti-tabs-dark-bg-color-hover': '#191919' | ||
} |
@@ -86,7 +86,17 @@ /** | ||
*/ | ||
getSelectorByKey(key) { | ||
if (!definedComponents[key]) return | ||
getSelectorByKey(compNameList) { | ||
const threeKey = `${compNameList[1]}-${compNameList[2]}-${compNameList[3]}` | ||
const twoKey = `${compNameList[1]}-${compNameList[2]}` | ||
let key = compNameList[1] | ||
let value = definedComponents[key] || key | ||
if (definedComponents[threeKey]) { | ||
key = threeKey | ||
value = definedComponents[threeKey] | ||
} else if (definedComponents[twoKey]) { | ||
key = twoKey | ||
value = definedComponents[twoKey] | ||
} | ||
let selector = '' | ||
const keyItems = definedComponents[key].split(',') | ||
const keyItems = value.split(',') | ||
keyItems.forEach((componentName, index) => { | ||
@@ -105,9 +115,5 @@ // 加上 [class*=tiny] 是为了提高权重,促使主题变换成功 | ||
} | ||
const threeKey = `${compNameList[1]}-${compNameList[2]}-${compNameList[3]}` | ||
const twoKey = `${compNameList[1]}-${compNameList[2]}` | ||
// 优先三段式命名的组件名,优先级从高到低为三段-二段-一段 | ||
return ( | ||
this.getSelectorByKey(threeKey) || this.getSelectorByKey(twoKey) || '.tiny-' + compNameList[1] + '[class*=tiny]' | ||
) | ||
return this.getSelectorByKey(compNameList) | ||
} | ||
@@ -114,0 +120,0 @@ |
@@ -30,2 +30,4 @@ /** | ||
'collapse-item': 'collapse-item', | ||
'color-select-panel': 'color-select-panel', | ||
'color-picker': 'color-picker', | ||
'detail-page': 'detail-page', | ||
@@ -53,6 +55,8 @@ 'dialog-box': 'dialog-box__wrapper', | ||
'option-group': 'option-group', | ||
'picker-panel': 'picker-panel', | ||
'popup-horiz-menu': 'popup-horiz-menu', | ||
'popup-menu': 'popup-menu', | ||
'popconfirm-popover': 'popconfirm-popover', | ||
'picker-panel': 'picker-panel', | ||
'popupload-dialog': 'popupload__modal', | ||
'popupload-table': 'popupload__modal', | ||
'quick-link-menu': 'quick-link-menu', | ||
@@ -85,4 +89,7 @@ 'time-picker': 'time-picker', | ||
'year-table': 'year-table', | ||
'skeleton': 'skeleton', | ||
'skeleton-item': 'skeleton-item' | ||
'skeleton-item': 'skeleton-item', | ||
'radio-button': 'radio-button', | ||
'color-select-panel': 'color-select-panel', | ||
'color-picker': 'color-picker', | ||
'split': 'split-wrapper' | ||
} |
@@ -251,2 +251,3 @@ export const concatTheme = { | ||
'ti-input-icon-close-text-color': '#bfbfbf', | ||
'ti-input-display-content-line-height': 'var(--ti-common-space-6x)', | ||
'ti-ip-address-normal-height': 'calc(var(--ti-common-size-base) * 7.5)', | ||
@@ -321,2 +322,3 @@ 'ti-ip-address-input-width': 'calc(var(--ti-common-size-base) * 13.75)', | ||
'ti-select-tags-wrap-padding-left': '8px', | ||
'ti-select-tags-padding-right-disabled': 'var(--ti-common-space-4x)', | ||
'ti-select-input-icon-close-margin-right': 'var(--ti-common-space-2x)', | ||
@@ -323,0 +325,0 @@ 'ti-select-tags-height': '28px', |
@@ -379,3 +379,5 @@ /** | ||
'ti-form-item-error-text-color': 'var(--ti-base-color-error-3)', | ||
'ti-form-item-error-bg-color': '#ffd5d4' | ||
'ti-form-item-error-bg-color': '#ffd5d4', | ||
// color-select-panel | ||
'ti-color-select-panel-btn-margin': '8px' | ||
} |
@@ -166,2 +166,3 @@ export const tinyBaseSmbTheme = { | ||
'ti-common-bg-primary-active': 'var(--ti-common-color-bg-primary-active)', | ||
'ti-common-color-bg-6': 'var(--ti-base-color-bg-6)', // smb新增标签背景色 | ||
@@ -168,0 +169,0 @@ // 图表色 |
export const tinyTimeSelectSmbTheme = { | ||
'ti-time-select-item-hover-bg-color': 'var(--ti-base-color-bg)', | ||
'ti-time-select-item-selected-color': 'var(--ti-base-color-brand-2)' | ||
'ti-time-select-item-hover-bg-color': 'var(--ti-common-color-bg-normal)', | ||
'ti-time-select-item-selected-text-color': 'var(--ti-common-color-text-highlight)', | ||
'ti-time-select-item-padding-horizontal': 'var(--ti-common-space-4x)' | ||
} |
@@ -8,7 +8,6 @@ export const tinyUploadListSmbTheme = { | ||
'ti-upload-list-item-line-height': '22px', | ||
'ti-upload-list-item-margin-top': '8px', | ||
'ti-upload-list-picture-card-item-margin-right': '16px', | ||
'ti-upload-list-item-margin-top': 'var(--ti-common-space-2x)', | ||
'ti-upload-list-picture-card-item-margin-right': 'var(--ti-common-space-4x)', | ||
'ti-upload-list-item-border-radius': 'var(--ti-common-border-radius-1)', | ||
'ti-upload-picture-card-border-radius': '8px', | ||
'ti-upload-list-svg-close-icon-color': '#191919', | ||
'ti-upload-picture-card-border-radius': 'var(--ti-common-border-radius-4)', | ||
'ti-upload-list-item-hover-background-color': 'rgba(0, 0, 0, 0.05)', | ||
@@ -15,0 +14,0 @@ 'ti-upload-list-svg-icon-font-size': '16px', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22625779
2667
12500
8
2