Skip to content

Commit

Permalink
chore: release 1.11.0-naruto (#3502)
Browse files Browse the repository at this point in the history
* feat(drawer): sizeDraggable支持SizeDragLimit类型 (#3465)

* feat(drawer): sizeDraggable支持SizeDragLimit类型

* fix: delete comments

* chore: update tdesign-icons-vue to 0.3.3 (#3468)

Co-authored-by: tdesign-bot <github-actions[bot]@users.noreply.github.com>

* chore(submodule): update _common (#3472)

* chore(submodule): update _common (#3476)

* chore(submodule): update _common (#3477)

* fix(auto-complete): options is an empty array, empty is not effective (#3474)

* fix(auto-complete): options is an empty array, empty is not effective

* chore: revert code

* chore: fix cr

* fix(transfer): ensure filterTransferData returns only valid items (#3487)

perf(transfer): optimize filterTransferData for better performance

* refactor: lodash-es instead of lodash (#3486)

* refactor: lodash-es instead of lodash

* chore: fix

* chore: fix

* chore: fix

* chore: fix

* chore: fix

* chore: fix

* chore: fix

* feat(form): add `status` and `tips` rendering in `form-item` component (#3490)

* feat(form):  add `status` function

* feat(form): add tips rendering in form-item component

* fix(dialog): incorrect node attachment when `mode = "normal"` (#3493)

* fix(dialog): dialog should be in the document flow when `mode = "normal"`

chore(config-provider): improve globalAttach method to handle string and object types

* chore: update snapshot

* chore: update `globalAttach` type

* chore: add typeof globalConfigAttach is function

* chore: 直接调用 globalConfigAttach 内的 `componentName`

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* fix(Menu): fix function usage of menu group title (#3497)

* fix(statistic): fix decimalPlaces setting 0 is invalid (#3496)

* fix(statistic): fix decimalPlaces setting 0 is invalid

* chore: format code

* chore: del comment

* chore: release 1.11.0 (#3499)

* chore: release 1.11.0

* chore: changelog's changes

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

* chore: release 1.11.0-naruto

* chore: release 1.11.0-naruto

---------

Co-authored-by: huangchen1031 <huangchen1031@vip.qq.com>
Co-authored-by: TDesign bot <93915689+tdesign-bot@users.noreply.github.com>
Co-authored-by: tdesign-bot <github-actions[bot]@users.noreply.github.com>
Co-authored-by: liweijie0812 <674416404@qq.com>
Co-authored-by: 阿菜 Cai <jimmyrss1102@gmail.com>
  • Loading branch information
6 people authored Feb 24, 2025
1 parent 1cda1d1 commit 554e544
Show file tree
Hide file tree
Showing 157 changed files with 1,218 additions and 398 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@
{
"checkLoops": false
}
]
],
"no-restricted-imports": ["error", {
"paths": [{
"name": "lodash",
"message": "Please use lodash-es instead."
}]
}]
},
"overrides": [
{
Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,24 @@ toc: false
docClass: timeline
---

## 🌈 1.11.0 `2025-02-21`
### 🚀 Features
- `Drawer`: sizeDraggable支持SizeDragLimit类型 @huangchen1031 ([#3465](https://github.com/Tencent/tdesign-vue/pull/3465))
- `Form`: `FormItem` 新增 `status``tips` API @RSS1102 ([#3490](https://github.com/Tencent/tdesign-vue/pull/3490))
- `Icon`: 新增`logo-alipay``logo-behance-filled`等图标,修改`logo-wecom`图标,移除不合理的`logo-wecom-filled`图标 @uyarn([#3468](https://github.com/Tencent/tdesign-vue/pull/3468))

### 🐞 Bug Fixes
- `AutoComplete`: 修复 `options` 为空数组,empty 节点没显示的问题 @liweijie0812 ([#3474](https://github.com/Tencent/tdesign-vue/pull/3474))
- `Dialog`: 修复 `1.10.8` 版本后当 mode 为 "normal" 时渲染不符合预期的问题 @RSS1102 ([#3493](https://github.com/Tencent/tdesign-vue/pull/3493))
- `ImageViewer`: 修复开启`closeOnOverlay`时,点击蒙层关闭存在闪烁情况的问题 @huangchen1031([#3472](https://github.com/Tencent/tdesign-vue/pull/3472))
- `Menu`: 修复`MenuGroup`的 title 不支持使用函数渲染的问题 @uyarn ([#3497](https://github.com/Tencent/tdesign-vue/pull/3497))
- `Statistic`: 修复 `decimalPlaces=0` 时数值动画期间精度错误的问题 @liweijie0812 ([#3496](https://github.com/Tencent/tdesign-vue/pull/3496))
- `Tabs`: 修复可滑动`Tabs`配合`action`使用的样式问题 @Wesley-0808([#3477](https://github.com/Tencent/tdesign-vue/pull/3477))
- `Transfer`: 确保 `filterTransferData` 仅返回有效值 @RSS1102 ([#3487](https://github.com/Tencent/tdesign-vue/pull/3487))

### 🚧 Others
- 调整组件依赖 `lodash``lodash-es` @liweijie0812 ([#3486](https://github.com/Tencent/tdesign-vue/pull/3486))

## 🌈 1.10.9 `2025-01-10`
### 🚀 Features
- `AutoComplete`: 新增`empty` API,用于配置空状态下的下拉内容展示 @liweijie0812 ([#3462](https://github.com/Tencent/tdesign-vue/pull/3462))
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-vue",
"purename": "tdesign",
"version": "1.10.9-naruto",
"version": "1.11.0-naruto",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down Expand Up @@ -86,18 +86,17 @@
"@babel/runtime": "^7.14.8",
"@popperjs/core": "^2.4.0",
"@types/clipboard": "^2.0.1",
"@types/lodash": "4.14.182",
"@types/raf": "^3.4.0",
"@types/sortablejs": "^1.10.7",
"@types/tinycolor2": "^1.4.3",
"@types/validator": "^13.1.3",
"clipboard": "^2.0.8",
"dayjs": "1.11.10",
"lodash": "^4.17.21",
"lodash-es": "^4.17.21",
"mitt": "^3.0.0",
"raf": "^3.4.1",
"sortablejs": "^1.15.0",
"tdesign-icons-vue": "^0.3.2",
"tdesign-icons-vue": "^0.3.3",
"tinycolor2": "^1.4.2",
"validator": "^13.5.1"
},
Expand All @@ -107,8 +106,8 @@
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "~7.22.5",
"@babel/helper-module-imports": "7.24.7",
"@babel/eslint-parser": "~7.23.10",
"@babel/helper-module-imports": "7.24.7",
"@babel/plugin-transform-class-properties": "^7.22.3",
"@babel/plugin-transform-modules-commonjs": "^7.9.6",
"@babel/plugin-transform-object-assign": "^7.2.0",
Expand All @@ -124,6 +123,7 @@
"@rollup/plugin-url": "^5.0.1",
"@testing-library/dom": "^8.20.0",
"@types/estree": "^1.0.1",
"@types/lodash-es": "^4.17.12",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/experimental-utils": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
Expand Down Expand Up @@ -178,7 +178,7 @@
"rollup-plugin-styles": "^4.0.0",
"rollup-plugin-terser": "~7.0.2",
"rollup-plugin-vue": "^5.1.9",
"tdesign-icons-view": "^0.3.0",
"tdesign-icons-view": "^0.3.4",
"tdesign-publish-cli": "^0.0.12",
"tdesign-site-components": "^0.13.0",
"tdesign-theme-generator": "^1.0.5",
Expand Down
4 changes: 2 additions & 2 deletions script/init/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

const fs = require('fs');
const path = require('path');
const _ = require('lodash');
const { template } = require('lodash-es');
const utils = require('../utils');
const config = require('./config');

Expand Down Expand Up @@ -75,7 +75,7 @@ function deleteComponent(toBeCreatedFiles, component) {
function outputFileWithTemplate(item, component, desc, _d) {
const tplPath = path.resolve(__dirname, `./tpl/${item.template}`);
let data = fs.readFileSync(tplPath).toString();
const compiled = _.template(data);
const compiled = template(data);
data = compiled({
component,
upperComponent: getFirstLetterUpper(component),
Expand Down
4 changes: 2 additions & 2 deletions script/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ const umdConfig = {
banner,
format: 'umd',
exports: 'named',
globals: { vue: 'Vue', lodash: '_' },
globals: { vue: 'Vue' },
sourcemap: true,
file: `dist/${name}.js`,
},
Expand All @@ -227,7 +227,7 @@ const umdMinConfig = {
banner,
format: 'umd',
exports: 'named',
globals: { vue: 'Vue', lodash: '_' },
globals: { vue: 'Vue' },
sourcemap: true,
file: `dist/${name}.min.js`,
},
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/codesandbox/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,14 @@ export const packageJSONContent = JSON.stringify(
'tdesign-vue': orgPkg.version,
'tdesign-icons-vue': orgPkg.dependencies['tdesign-icons-vue'],
vue: orgPkg.devDependencies.vue,
'lodash-es': orgPkg.dependencies['lodash-es'],
},
devDependencies: {
vite: orgPkg.devDependencies.vite,
less: orgPkg.devDependencies.less,
'vite-plugin-vue2': orgPkg.devDependencies['vite-plugin-vue2'],
'vue-template-compiler': orgPkg.devDependencies['vue-template-compiler'],
'@types/lodash-es': orgPkg.devDependencies['@types/lodash-es'],
},
},
null,
Expand Down
2 changes: 2 additions & 0 deletions site/src/components/stackblitz/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,15 @@ export const packageJSONContentForComposition = JSON.stringify(
'tdesign-vue': orgPkg.version + '-naruto',
'tdesign-icons-vue': orgPkg.dependencies['tdesign-icons-vue'],
vue: '2.7.14',
'lodash-es': orgPkg.dependencies['lodash-es'],
},
devDependencies: {
vite: '^2.9.6',
less: orgPkg.devDependencies.less,
'@vitejs/plugin-vue2': '^1.1.2',
'vue-template-compiler': '2.7.14',
'@vitejs/plugin-vue2-jsx': '^1.1.0',
'@types/lodash-es': orgPkg.devDependencies['@types/lodash-es'],
},
},
null,
Expand Down
2 changes: 1 addition & 1 deletion src/_common
Submodule _common updated 72 files
+3 −0 .eslintrc.js
+15 −0 .github/workflows/pr-comment-ci.yml
+20 −7 .github/workflows/pull-request.yml
+229 −0 .github/workflows/tdesign-component-repositories-ci.yml
+2 −1 .vscode/settings.json
+0 −6 babel.config.js
+21 −0 docs/mobile/api/color-picker.en-US.md
+21 −0 docs/mobile/api/color-picker.md
+47 −0 docs/mobile/api/notice-bar.en-US.md
+23 −12 docs/mobile/api/notice-bar.md
+6 −0 docs/web/api/tag-input.en-US.md
+6 −1 docs/web/api/tag-input.md
+1 −1 docs/web/design/tabs.md
+4 −3 js/color-picker/color.ts
+2 −3 js/color-picker/gradient.ts
+8 −2 js/date-picker/format.ts
+2 −10 js/date-picker/utils.ts
+1 −3 js/input-number/large-number.ts
+1 −3 js/input-number/number.ts
+1 −1 js/loading/circle-adapter.ts
+9 −0 js/package.json
+1 −1 js/slider/utils.ts
+1 −3 js/table/tree-store.ts
+1 −3 js/table/utils.ts
+1 −5 js/tree-v1/tree-node-model.ts
+8 −7 js/tree-v1/tree-node.ts
+9 −9 js/tree-v1/tree-store.ts
+4 −7 js/tree/tree-node-model.ts
+5 −7 js/tree/tree-node.ts
+9 −9 js/tree/tree-store.ts
+1 −2 js/upload/main.ts
+1 −1 js/upload/utils.ts
+1 −1 js/upload/xhr.ts
+1 −1 js/utils/calcTextareaHeight.ts
+42 −0 js/utils/easing.ts
+16 −0 js/utils/general.ts
+20 −10 js/utils/helper.ts
+17 −0 js/utils/responsive.ts
+4 −1 js/utils/setStyle.ts
+9 −0 js/utils/stringTemplate.ts
+13 −0 js/utils/types.ts
+6 −8 package.json
+0 −1 style/mobile/.stylelintignore
+34 −1 style/mobile/components/calendar/v2/_index.less
+2 −0 style/mobile/components/calendar/v2/_var.less
+24 −20 style/mobile/components/cell/v2/_index.less
+19 −20 style/mobile/components/color-picker/_index.less
+20 −20 style/mobile/components/color-picker/_var.less
+16 −8 style/mobile/components/dialog/v2/_index.less
+1 −1 style/mobile/components/dialog/v2/_var.less
+1 −0 style/mobile/components/popup/v2/_index.less
+2 −1 style/mobile/components/popup/v2/_var.less
+1 −1 style/mobile/components/swiper/_var.less
+3 −7 style/mobile/components/tabs/v2/_index.less
+0 −31 style/mobile/package.json
+23 −22 style/mobile/theme/_dark.less
+6 −0 style/mobile/theme/_index.less
+161 −0 style/mobile/theme/_light.less
+8 −0 style/mobile/theme/_radius.less
+9 −0 style/mobile/theme/_spacer.less
+0 −36 style/mobile/webpack.config.js
+6 −0 style/package.json
+0 −1 style/web/.stylelintignore
+1 −1 style/web/_global.less
+1 −0 style/web/components/date-picker/_index.less
+2 −2 style/web/components/image-viewer/_index.less
+1 −0 style/web/components/tabs/_index.less
+16 −0 style/web/components/tag-input/_index.less
+0 −14 style/web/package.json
+2 −2 test/script/generate-demo-test.js
+1 −1 test/unit/date-picker/utils.test.js
+23 −12 tsconfig.json
2 changes: 1 addition & 1 deletion src/affix/affix.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Vue, { VueConstructor } from 'vue';
import isFunction from 'lodash/isFunction';
import { isFunction } from 'lodash-es';
import { on, off, getScrollContainer } from '../utils/dom';
import affixProps from './props';
import { ScrollContainerElement } from '../common';
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/__tests__/anchor-link.test.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { mount } from '@vue/test-utils';
import Vue from 'vue';
import omit from 'lodash/omit';
import { omit } from 'lodash-es';
import { AnchorItem } from '@/src/anchor/index.ts';

const defaultProvide = {
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/anchor-item.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue, { VueConstructor } from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import isEmpty from 'lodash/isEmpty';
import { isEmpty } from 'lodash-es';
import { VNode } from 'vue/types/umd';
import { ANCHOR_SHARP_REGEXP } from './utils';
import props from './anchor-item-props';
Expand Down
2 changes: 1 addition & 1 deletion src/anchor/anchor.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Vue, { VueConstructor } from 'vue';
import { ScopedSlotReturnValue } from 'vue/types/vnode';
import isFunction from 'lodash/isFunction';
import { isFunction } from 'lodash-es';
import { ANCHOR_SHARP_REGEXP, ANCHOR_CONTAINER, getOffsetTop } from './utils';
import {
on, off, getScroll, scrollTo, getScrollContainer,
Expand Down
2 changes: 1 addition & 1 deletion src/auto-complete/_example-composition/filter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

<script setup>
import { ref } from 'vue';
import escapeRegExp from 'lodash/escapeRegExp';
import { escapeRegExp } from 'lodash-es';
const LIST = ['第一个 AutoComplete 默认联想词', '第二个 AutoComplete 默认联想词', '第三个 AutoComplete 默认联想词'];
const value1 = ref('');
Expand Down
2 changes: 1 addition & 1 deletion src/auto-complete/_example/filter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
</template>

<script>
import escapeRegExp from 'lodash/escapeRegExp';
import { escapeRegExp } from 'lodash-es';
const LIST = ['第一个 AutoComplete 默认联想词', '第二个 AutoComplete 默认联想词', '第三个 AutoComplete 默认联想词'];
Expand Down
7 changes: 3 additions & 4 deletions src/auto-complete/auto-complete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default defineComponent({
/>
);
// 联想词列表
const listContent = (
const listContent = Array.isArray(this.options) && (
<AutoCompleteOptionList
ref="optionListRef"
value={this.tValue}
Expand All @@ -170,16 +170,15 @@ export default defineComponent({
highlightKeyword={this.highlightKeyword}
filterable={this.filterable}
filter={this.filter}
empty={this.empty}
empty={renderTNodeJSX(this, 'empty')}
scopedSlots={{
option: this.$scopedSlots.option,
empty: this.$scopedSlots.empty,
}}
/>
);
const topContent = renderTNodeJSX(this, 'panelTopContent');
const bottomContent = renderTNodeJSX(this, 'panelBottomContent');
const panelContent = topContent || this.options?.length || bottomContent ? (
const panelContent = topContent || listContent || bottomContent ? (
<div class={`${this.classPrefix}-auto-complete__panel`}>
{topContent}
{listContent}
Expand Down
2 changes: 1 addition & 1 deletion src/auto-complete/highlight-option.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { computed, defineComponent } from 'vue';
import escapeRegExp from 'lodash/escapeRegExp';
import { escapeRegExp } from 'lodash-es';
import { usePrefixClass } from '../hooks/useConfig';

export default defineComponent({
Expand Down
10 changes: 5 additions & 5 deletions src/auto-complete/option-list.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import {
ref, computed, defineComponent, PropType, h, watch, onBeforeUnmount,
} from 'vue';
import isFunction from 'lodash/isFunction';
import escapeRegExp from 'lodash/escapeRegExp';
import { isFunction, escapeRegExp } from 'lodash-es';

import HighlightOption from './highlight-option';
import { CommonClassNameType } from '../hooks/useCommonClassName';
import { AutoCompleteOptionObj, TdAutoCompleteProps } from './type';
import log from '../_common/js/log';
import { useConfig, usePrefixClass } from '../hooks/useConfig';
import { on, off } from '../utils/dom';
import { renderTNodeJSX } from '../utils/render-tnode';

export default defineComponent({
name: 'AutoCompleteOptionList',
Expand Down Expand Up @@ -147,8 +146,9 @@ export default defineComponent({

render() {
if (!this.tOptions.length) {
const empty = renderTNodeJSX(this, 'empty');
return <div class={`${this.classPrefix}-auto-complete__panel--empty`}>{empty || this.globalConfig.empty}</div>;
return (
<div class={`${this.classPrefix}-auto-complete__panel--empty`}>{this.empty || this.globalConfig.empty}</div>
);
}
return (
<ul class={this.classes}>
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/calendar.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue';
// 通用库
import dayjs from 'dayjs';
import remove from 'lodash/remove';
import { remove } from 'lodash-es';
import calendar from 'dayjs/plugin/calendar';
import props from './props';
import mixins from '../utils/mixins';
Expand Down
2 changes: 1 addition & 1 deletion src/cascader/cascader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineComponent, computed } from 'vue';
import omit from 'lodash/omit';
import { omit } from 'lodash-es';
import Panel from './components/Panel';
import SelectInput, {
SelectInputChangeContext,
Expand Down
4 changes: 1 addition & 3 deletions src/cascader/core/effect.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import isNumber from 'lodash/isNumber';
import isFunction from 'lodash/isFunction';
import cloneDeep from 'lodash/cloneDeep';
import { cloneDeep, isFunction, isNumber } from 'lodash-es';
import {
TreeNode, CascaderContextType, TdCascaderProps, TreeNodeValue, TreeNodeModel,
} from '../interface';
Expand Down
2 changes: 1 addition & 1 deletion src/cascader/core/helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import isEmpty from 'lodash/isEmpty';
import { isEmpty } from 'lodash-es';
import {
TreeNode,
CascaderContextType,
Expand Down
3 changes: 1 addition & 2 deletions src/cascader/hooks.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import {
Ref, reactive, computed, toRefs, watch, nextTick,
} from 'vue';
import isEqual from 'lodash/isEqual';
import isFunction from 'lodash/isFunction';
import { isEqual, isFunction } from 'lodash-es';

import TreeStore from '../_common/js/tree/tree-store';
import useVModel from '../hooks/useVModel';
Expand Down
5 changes: 2 additions & 3 deletions src/checkbox/group.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {
defineComponent, provide, computed, watchEffect, ref, toRefs, watch, nextTick, onMounted, VNode,
} from 'vue';
import intersection from 'lodash/intersection';
import isObject from 'lodash/isObject';
import isUndefined from 'lodash/isUndefined';
import { intersection, isObject, isUndefined } from 'lodash-es';

import { getVNodeComponentName, getVueComponentName } from '../utils/helper';
import Checkbox from './checkbox';
import props from './checkbox-group-props';
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/panel/format/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
defineComponent, PropType, ref, watch,
} from 'vue';
import upperCase from 'lodash/upperCase';
import { upperCase } from 'lodash-es';
import { TdColorHandler } from '../../../color-picker/interfaces';
import { TdColorPickerProps } from '../../type';
import props from '../../props';
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/panel/format/inputs.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
computed, defineComponent, PropType, reactive, watch,
} from 'vue';
import throttle from 'lodash/throttle';
import { throttle } from 'lodash-es';
import { TdColorHandler } from '../../interfaces';
import props from '../../props';
import { Color } from '../../utils';
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/panel/linear-gradient.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
computed, defineComponent, onBeforeUnmount, onMounted, reactive, ref, watch,
} from 'vue';
import cloneDeep from 'lodash/cloneDeep';
import { cloneDeep } from 'lodash-es';
import { GRADIENT_SLIDER_DEFAULT_WIDTH } from '../../_common/js/color-picker/constants';
import { genGradientPoint, gradientColors2string, GradientColorPoint } from '../utils';
import { InputNumber as TInputNumber } from '../../input-number';
Expand Down
2 changes: 1 addition & 1 deletion src/color-picker/panel/swatches.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
computed, defineComponent, PropType, ref,
} from 'vue';
import { DeleteIcon as TdDeleteIcon, AddIcon as TdAddIcon } from 'tdesign-icons-vue';
import cloneDeep from 'lodash/cloneDeep';
import { cloneDeep } from 'lodash-es';
import { Select as TSelect, Option as TOption } from '../../select';
import { Color } from '../utils';
import { useBaseClassName } from '../hooks';
Expand Down
2 changes: 1 addition & 1 deletion src/config-provider/_example-composition/calendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<script setup>
import { ref } from 'vue';
import merge from 'lodash/merge';
import { merge } from 'lodash-es';
import enConfig from 'tdesign-vue/es/locale/en_US';
const MONTHS = [
Expand Down
2 changes: 1 addition & 1 deletion src/config-provider/_example-composition/date-picker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<script setup>
import { reactive } from 'vue';
import merge from 'lodash/merge';
import { merge } from 'lodash-es';
import enConfig from 'tdesign-vue/es/locale/en_US';
// import dayjs from 'dayjs';
Expand Down
2 changes: 1 addition & 1 deletion src/config-provider/_example-composition/global.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<script setup>
import { ref } from 'vue';
import merge from 'lodash/merge';
import { merge } from 'lodash-es';
import enConfig from 'tdesign-vue/es/locale/en_US';
// 全局特性配置,引入英文语言配置包 enConfig
const globalConfig = ref(
Expand Down
Loading

0 comments on commit 554e544

Please sign in to comment.