merge release-3.13.0 to dev (#1365)

* fix(pager): [pager] change pager content to unicode (#1251)

* fix(build): fix build error and update versions

* fix(build): update theme version

* fix(vue): [grid] fix show icon condition (#1259)

* docs(grid): [grid] fix grid docs (#1260)

* docs(grid): [grid] fix grid docs

* docs(grid): [grid] fix grid docs

* fix(vue-common): fix process env error (#1277)

* fix(vue-common): fix process env error

* fix(vue-common): fix process env error

* fix(vue-common): fix process env error

* fix(modal): fix modal process env error

* fix(select): [dialog-box, select] fix select async emit form validate (#1292)

* fix(theme): x-design style css var fix (#1286)

* fix(renderless): fix popper fixed offset in transform parent (#1332)

* fix(vue): [cascader] fix search mode in wujie (#1319)

* fix(theme): [grid] fix xDesign grid toolbar button style (#1357)

* fix(tree-menu): [tree-menu] Fix the issue of asynchronous loading of tree-menu component (#1362)

---------

Co-authored-by: gimmyhehe <975402925@qq.com>
Co-authored-by: zzcr <894103554@qq.com>
Co-authored-by: wuyiping0628 <42107997+wuyiping0628@users.noreply.github.com>
This commit is contained in:
Kagol 2024-02-02 14:29:41 +08:00 committed by GitHub
parent 0b78f3a3e5
commit 1380f4e931
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 37 additions and 17 deletions

View File

@ -467,7 +467,7 @@ export default {
'zh-CN': '自定义获取服务端数据源的方法,返回一个 Promise 对象',
'en-US': 'Customize the method for obtaining server-side data sources and return a Promise object'
},
'demoId': 'get-menu-data-sync'
'demoId': 'data-resource'
},
{
'name': 'indent',

View File

@ -421,9 +421,7 @@ export const calcCollapseTags =
const tags: HTMLDivElement[] = Array.from(content.querySelectorAll('.tiny-tag'))
let { total, dom, idx } = { total: collapseTagWidth as number, dom: null as HTMLDivElement | null, idx: 0 }
// eslint-disable-next-line array-callback-return
tags.some((tag, index) => {
tags.forEach((tag, index) => {
if (tag !== tagsLength) {
const { width: tagContentWidth, marginRight, marginLeft } = tag && window.getComputedStyle(tag)
total += parseFloat(tagContentWidth) + parseFloat(marginRight) + parseFloat(marginLeft)
@ -618,10 +616,10 @@ export const updateStyle =
const tags = $el.querySelector(CASCADER.TagClass)
let suggestionPanelEl: HTMLDivElement | null = null
// eslint-disable-next-line no-cond-assign
if (suggestionPanel && (suggestionPanelEl = suggestionPanel.$el)) {
const suggestionList: HTMLDivElement | null = suggestionPanelEl?.querySelector(CASCADER.ListClass)
suggestionList && (suggestionList.style.minWidth = inputInner.offsetWidth + 'px')
if (suggestionPanel) {
suggestionPanelEl = suggestionPanel.$el
const suggestionList: HTMLDivElement | null = suggestionPanelEl.querySelector(CASCADER.ListClass)
suggestionList.style.minWidth = inputInner.offsetWidth + 'px'
}
if (tags) {

View File

@ -13,14 +13,14 @@ import type { ITreeMenuApi, ITreeMenuState, ITreeMenuProps, ITreeMenuData, ITree
export const initData =
({ state, props, service, api }: { state: ITreeMenuState; props: ITreeMenuProps; service: any; api: ITreeMenuApi }) =>
() => {
async () => {
if (props.data) {
state.data = props.data
return
}
if (typeof service.getMenuDataSync === 'function') {
const menuData = service.getMenuDataSync()
const menuData = await service.getMenuDataSync()
state.data = api.setMenuKey({ newData: [], menuData })
}

View File

@ -19,5 +19,9 @@ export const tinyGridSmbTheme = {
'ti-grid-icon-color': 'var(--ti-common-color-icon)',
'ti-grid-checkbox-icon-size': 'var(--ti-common-font-size-2)',
'ti-grid-checkbox-bg-color-checked': '#1476FF',
'ti-grid-radio-bg-color-checked': '#1476FF'
'ti-grid-radio-bg-color-checked': '#1476FF',
'ti-grid-toolbar-btn-height': 'var(--ti-common-size-8x, 32px)',
'ti-grid-toolbar-btn-width': 'var(--ti-common-size-8x, 32px)',
'ti-grid-toolbar-btn-border-color': 'var(--ti-common-color-line-normal, #c2c2c2)',
'ti-grid-toolbar-btn-border-radius': 'calc(var(--ti-common-size-base, 4px) + 2px)'
}

View File

@ -84,11 +84,11 @@
.@{grid-refresh-prefix-cls}__wrapper,
.@{grid-custom-prefix-cls}__wrapper {
float: right;
width: 30px;
height: 30px;
line-height: 30px;
border: solid 1px var(--ti-grid-border-color);
border-radius: 3px;
width: var(--ti-grid-toolbar-btn-width);
height: var(--ti-grid-toolbar-btn-height);
line-height: var(--ti-grid-toolbar-btn-height);
border: solid 1px var(--ti-grid-toolbar-btn-border-color);
border-radius: var(--ti-grid-toolbar-btn-border-radius);
text-align: center;
margin: 0 4px;
display: flex;

View File

@ -12,7 +12,16 @@
.component-css-vars-grid() {
// 表格默认字体
--ti-grid-font-family: var(--ti-common-font-family, 'Helvetica', 'Arial', 'PingFangSC-Regular', 'Hiragino Sans GB', 'Microsoft YaHei', '微软雅黑', 'Microsoft JhengHei');
--ti-grid-font-family: var(
--ti-common-font-family,
'Helvetica',
'Arial',
'PingFangSC-Regular',
'Hiragino Sans GB',
'Microsoft YaHei',
'微软雅黑',
'Microsoft JhengHei'
);
// 默认表头文本色
--ti-grid-header-text-color: var(--ti-common-color-info-normal, #252b3a);
// 默认表体文本色
@ -152,4 +161,13 @@
--ti-grid-column-icon-scale-size: 1;
// 表格无数据背景图片
--ti-table-nodata-td-bg-img-url: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAFPr3GUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADPNJREFUeNqUULENwCAMK0wsSDmBk3oCn/UFegR7N84oH6SAoAISFdWShwQbRxaIuDFoSzE/SEaIzAycgY2quBNNiawnfYl7iOGkEAJRTDsrf/yecQwJAEAUWmvS0ltdjJEYlFL9eA4J3nticM71477llhIB17hKo9WQaVbi2dBoO6Gb3x8BhE1DAFRxA7ocI1LCwxcXjMhpiFCk/YcpdoCJvH37FkXFlStXUDSAFO8HsVavXs3w69cvFMXCwsIMu3btwkz7Hz9+xBoxjx49wlQsKSmJ4VA2NjY0lyOBZ8+egWlgssUaQyDFB3BF35s3b1D4pOQmeE5iJKQQRLCgC6DZgmIIQABhSxsw7PCfOHAAlxnYBCkBCUQn1Fu3bjF8+fKF4dy5cwwpKSkMc+bMAc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FR8Wg0kTwu6M/Pz0HhHd7rnmn4giGFpzHKqLhHEFsDtNtBBsRmpajCvoZH+9BG3oibG+BnfaClk3ge+S/i4Vp5XZPJJKUh2vNt0w3v4GcoBIeI6c0C9B+NODoPtFCGRB4oi9lt+XI0bVKWCUDg516v5wWKG96xg5XjgMhAp19zMY1BHxJ5HB0dpdEHmxkG6HPABAhIygWM/L99jX7RPxdoX0dYYWleCLcC79pAC9gsNrkvMVnb8OCiSsY+cbREHbR5enraBD+D7eOxc3L3oE0fAA0YDIRpGpLpDD9rGlxPZOTyMx4e4WQxvXGROBr6eNH2ahZEMaiDg/+AXDIV47BInEBAjbTtNhbTqQu00dqK53la4uk2GvyMZ0t8HgHoDNP8nSF/+KvxCXgwZ9QSrzIozhbkUnXTRhYnjiDb7wj9+lT1quhyVg1sjPNeavkyKBbFy8vL1hz8X11dpSFnzYQ2b5DLgE53p0ZZlUQZm6enp/R3bqCvr68bv9JyZxlxPUBHsEL1UpWug73z0ihKcFmIWAwZcKieo0qzUfU3Ppsc1QgvmRU1MSWKpTqSMHUhzQ7ayi8wqCtyTOx06B4w/c+LB0Yxl2xpqeTugG1mdw69rg4lPYXot2Z/NdJeYvTQ1IqBDWO6e0ARYxOQSBR6lbWw0+fC5FL6d2iRu7BjDMrWipH+Rqd+bHGkcm/7/6bZaBMJnWPb8bbmG85t/2ZRz1U2kKJ8bhdTnqbTNeQ0bartsW0EelW8PnCe8zVmwtyCt3CeZVsG9g+URCM796dvBgAAAABJRU5ErkJggg==');
// 工具栏按钮高度
--ti-grid-toolbar-btn-height: calc(var(--ti-common-size-7x, 28px) + 2px);
// 工具栏按钮宽度
--ti-grid-toolbar-btn-width: calc(var(--ti-common-size-7x, 28px) + 2px);
// 工具栏按钮边框色
--ti-grid-toolbar-btn-border-color: var(--ti-common-color-line-dividing, #dfe1e6);
// 工具栏按钮边框圆角
--ti-grid-toolbar-btn-border-radius: calc(var(--ti-common-size-base, 4px) - 1px);
}