Skip to content

Commit

Permalink
chore: release 1.9.1-naruto (#3108)
Browse files Browse the repository at this point in the history
* docs(form):  文档更新 (#3064)

* docs(form):  文档更新

* docs(form):  文档更新

* fix(descriptions): title is already declared as a prop (#3065)

* docs: update tree demo (#3066)

* docs: update tree demo

* chore: update snapshot

---------

Co-authored-by: Uyarn <[email protected]>

* chore(deps-dev): bump @babel/eslint-parser from 7.19.1 to 7.23.10 (#3072)

Bumps [@babel/eslint-parser](https://github.com/babel/babel/tree/HEAD/eslint/babel-eslint-parser) from 7.19.1 to 7.23.10.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.10/eslint/babel-eslint-parser)

---
updated-dependencies:
- dependency-name: "@babel/eslint-parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* docs: add composition api demo (#3081)

* docs(upload): justify upload demo request-method.vue

* docs(upload): composition api demo

* chore: eslint ignore examples

* docs(table): remove dulplicate varaibles

* docs(table): add composition-api demo

* docs(notification): fix offset demo code

* docs: add composition api demo of components with first letter `a`

* docs: add composition api demo of components with first letter `a`

* docs: add composition api demo of components with first letter `c`

* feat: support various demo display

* docs: add composition api demo of components with first letter `d ~ g`

* docs(form): add composition demo

* docs: add composition api demo of components with first letter `i`

* docs: add composition api demo of components with first letter `l ~ p`

* docs: add composition api demo of components with first letter `r ~ s`

* docs: add composition api demo of components with first letter `t`

* docs(table and upload): update composition api demo

* docs(table and upload): fix composition api demo

* docs(table): fix table composition api demo

* docs(tag-input): add draggable.vue composition-api demo

* docs(all): fix demo never used

* test: update snapshots

* feat: complete whole demo display process

* feat: complete whole demo display process

* feat: set up codesandbox with vite

* feat: stackblitz work for vue 2.7

---------

Co-authored-by: Uyarn <[email protected]>
Co-authored-by: HaixingOoO <[email protected]>

* chore: remove assign CI (#3088)

* chore: fix demo tab name (#3090)

* feat: support table filter input; fix fixed columns in dialog problem (#3098)

* [Slider] support label=null or label = false to hide label tips (#3100)

* docs(Table): update demo

* feat(Slider): support label=null

* fix(Slider): label

* fix(Slider): hideEmptyPopup

* test: update snapshots

* feat(table): 支持全局配置 size (#3103)

* fix(table): primary-table expose refreshTable function (#3104)

* fix(Descriptions): fix descriptions item prompt (#3105)

* fix: fix descriptions item prompt

* chore: update common

* fix(Datepicker): value display wrong with special format (#3106)

* chore: release 1.9.1 (#3107)

* chore: release 1.9.1

* chore: changelog's changes

* chore: resolve warning

---------

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

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: liweijie0812 <[email protected]>
Co-authored-by: betavs <[email protected]>
Co-authored-by: sheepluo <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: HaixingOoO <[email protected]>
Co-authored-by: Lyan-u <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
8 people authored Mar 10, 2024
1 parent 462988c commit a6c94f7
Show file tree
Hide file tree
Showing 851 changed files with 34,886 additions and 1,127 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ script/test/cypress
_site
temp*
static/
site/
site/
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@
{
"files": [
"**/_example/*",
"**/_example-composition/*",
"**/__tests__/*",
"script/**/*",
"script/*",
Expand Down
35 changes: 0 additions & 35 deletions .github/workflows/issue-assignees.temp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,38 +15,3 @@ jobs:
issuesOpened: |
👋 @{{ author }},感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。
# https://docs.github.com/cn/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#issues
- uses: 94dreamer/issue-assignees@main
id: assignees
with:
project_name: ${{github.event.repository.name}}
issue_title: ${{github.event.issue.title}}

- run: echo ${{ steps.assignees.outputs.contributors }}
- name: Add assigness
if: steps.assignees.outputs.contributors != ''
uses: actions-cool/issues-helper@v3
with:
actions: 'add-assignees'
token: ${{ secrets.GITHUB_TOKEN }}
issue-number: ${{ github.event.issue.number }}
assignees: ${{ steps.assignees.outputs.contributors }}

- run: |
contributors=${{ steps.assignees.outputs.contributors }}
contributorstring=${contributors//,/ @}
echo "::set-output name=string::@$contributorstring"
id: contributors
- name: 通知贡献者
if: steps.assignees.outputs.contributors != ''
uses: actions-cool/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
♥️ 有劳 ${{ steps.contributors.outputs.string }} 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @${{ github.event.issue.user.login }} 。
<!-- AUTO_ASSIGENEES_NOTIFY_HOOK -->
number: ${{ github.event.issue.number }}
body-include: "<!-- AUTO_ASSIGENEES_NOTIFY_HOOK -->"
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,27 @@ toc: false
docClass: timeline
---

## 🌈 1.9.1 `2024-03-10`

### 🚀 Features
- `Slider`: 支持通过 `label=null``label=false` 隐藏滑块数字浮层 @chaishi ([#3100](https://github.com/Tencent/tdesign-vue/pull/3100))
- `Table`: 支持全局配置 size @Lyan-u ([#3103](https://github.com/Tencent/tdesign-vue/pull/3103))
- `Table`: 可筛选表格,单选/多选筛选条件,支持搜索选项 [issue#3988](https://github.com/Tencent/tdesign-vue-next/issues/3988) @chaishi ([#3098](https://github.com/Tencent/tdesign-vue/pull/3098))
- Tabs: 调整激活 Tab下划线与 TabHeader边框的层级关系 @uyarn

### 🐞 Bug Fixes
- `DatePicker`: 修复 `format``valueType` 不一致的场景下计算错误的问题 @uyarn ([#3106](https://github.com/Tencent/tdesign-vue/pull/3106))
- `Descriptions`: 解决控制台报错绑定属性 `title` 已声明为属性的问题 @betavs ([#3065](https://github.com/Tencent/tdesign-vue/pull/3065))
- `Descriptions`: 优化自适应宽度的问题 @uyarn ([#3105](https://github.com/Tencent/tdesign-vue/pull/3105))
- `Table`: 树形结构表格,修复同时异步设置 data 和 expandedTreeNodes 时,展开节点的无效问题 [tdesign-vue-next#3873](https://github.com/Tencent/tdesign-vue-next/issues/3873) @chaishi ([#3098](https://github.com/Tencent/tdesign-vue/pull/3098))
- `Table`: 固定列表格,修复固定多列时,在 Dialog 中固定列位置压缩问题 @chaishi ([#3098](https://github.com/Tencent/tdesign-vue/pull/3098))
- `Table`: 修复`Table`缺失`refreshTable`方法的异常 @uyarn ([#3104](https://github.com/Tencent/tdesign-vue/pull/3104))

### 🚧 Others
- `Form` 文档更新 @liweijie0812 ([#3064](https://github.com/Tencent/tdesign-vue/pull/3064))
- 新增 `composition API` 示例,详情请参考官网各示例代码 @chaishi @uyarn @HaixingOoO ([#3081](https://github.com/Tencent/tdesign-vue/pull/3081))


## 🌈 1.9.0 `2024-01-23`
### 🚀 Features
- `Descriptions`: 新增 `Descriptions` 描述组件 @zhangpaopao0609 ([#3035](https://github.com/Tencent/tdesign-vue/pull/3035))
Expand Down
10 changes: 5 additions & 5 deletions helper/attributes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2148,13 +2148,13 @@
"type": "event",
"description": "年份切换发生变化时触发\n\n[docs](https://tdesign.tencent.com/vue/components/date-range-picker-panel?tab=api#daterangepickerpanel-events)"
},
"t-description-item/label": {
"t-descriptions-item/label": {
"type": "String|TNode",
"description": "label of description item\n\n描述项字段名\n\n[docs](https://tdesign.tencent.com/vue/components/description-item?tab=api#descriptionitem-props)"
"description": "label of description item\n\n描述项字段名\n\n[docs](https://tdesign.tencent.com/vue/components/descriptions-item?tab=api#descriptionsitem-props)"
},
"t-description-item/span": {
"t-descriptions-item/span": {
"type": "Number",
"description": "width count\n\n占用的宽度数量\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/vue/components/description-item?tab=api#descriptionitem-props)"
"description": "width count\n\n占用的宽度数量\n\ndefault: 1\n\n[docs](https://tdesign.tencent.com/vue/components/descriptions-item?tab=api#descriptionsitem-props)"
},
"t-descriptions/bordered": {
"type": "Boolean",
Expand All @@ -2166,7 +2166,7 @@
},
"t-descriptions/columns": {
"type": "Number",
"description": "count of DescriptionItem in one row\n\n一行 DescriptionItem 的数量\n\ndefault: 2\n\n[docs](https://tdesign.tencent.com/vue/components/descriptions?tab=api#descriptions-props)"
"description": "count of DescriptionsItem in one row\n\n一行 DescriptionsItem 的数量\n\ndefault: 2\n\n[docs](https://tdesign.tencent.com/vue/components/descriptions?tab=api#descriptions-props)"
},
"t-descriptions/content-align": {
"type": "String",
Expand Down
4 changes: 2 additions & 2 deletions helper/tags.json
Original file line number Diff line number Diff line change
Expand Up @@ -613,12 +613,12 @@
],
"description": "DateRangePickerPanel\n\n日期范围选择器面板\n\n[docs](https://tdesign.tencent.com/vue/components/date-range-picker-panel)"
},
"t-description-item": {
"t-descriptions-item": {
"attributes": [
"label",
"span"
],
"description": "DescriptionItem\n\n描述项\n\n[docs](https://tdesign.tencent.com/vue/components/description-item)"
"description": "DescriptionsItem\n\n描述项\n\n[docs](https://tdesign.tencent.com/vue/components/descriptions-item)"
},
"t-descriptions": {
"attributes": [
Expand Down
16 changes: 8 additions & 8 deletions helper/web-types.json
Original file line number Diff line number Diff line change
Expand Up @@ -5671,17 +5671,17 @@
"slots": []
},
{
"name": "t-description-item",
"name": "t-descriptions-item",
"source": {
"symbol": "DescriptionItem"
"symbol": "DescriptionsItem"
},
"description": "DescriptionItem\n\n描述项",
"doc-url": "https://tdesign.tencent.com/vue/components/description-item",
"description": "DescriptionsItem\n\n描述项",
"doc-url": "https://tdesign.tencent.com/vue/components/descriptions-item",
"props": [
{
"name": "label",
"description": "label of description item\n\n描述项字段名",
"doc-url": "https://tdesign.tencent.com/vue/components/description-item?tab=api#descriptionitem-props",
"doc-url": "https://tdesign.tencent.com/vue/components/descriptions-item?tab=api#descriptionsitem-props",
"type": [
"String",
"TNode"
Expand All @@ -5690,7 +5690,7 @@
{
"name": "span",
"description": "width count\n\n占用的宽度数量",
"doc-url": "https://tdesign.tencent.com/vue/components/description-item?tab=api#descriptionitem-props",
"doc-url": "https://tdesign.tencent.com/vue/components/descriptions-item?tab=api#descriptionsitem-props",
"type": [
"Number"
],
Expand All @@ -5701,7 +5701,7 @@
{
"name": "label",
"description": "label of description item\n\n描述项字段名",
"doc-url": "https://tdesign.tencent.com/vue/components/description-item?tab=api#descriptionitem-props"
"doc-url": "https://tdesign.tencent.com/vue/components/descriptions-item?tab=api#descriptionsitem-props"
}
]
},
Expand Down Expand Up @@ -5732,7 +5732,7 @@
},
{
"name": "columns",
"description": "count of DescriptionItem in one row\n\n一行 DescriptionItem 的数量",
"description": "count of DescriptionsItem in one row\n\n一行 DescriptionsItem 的数量",
"doc-url": "https://tdesign.tencent.com/vue/components/descriptions?tab=api#descriptions-props",
"type": [
"Number"
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tdesign-vue",
"purename": "tdesign",
"version": "1.9.0-naruto",
"version": "1.9.1-naruto",
"description": "tdesign-vue",
"title": "tdesign-vue",
"keywords": [
Expand Down Expand Up @@ -106,7 +106,7 @@
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "~7.22.5",
"@babel/eslint-parser": "~7.19.1",
"@babel/eslint-parser": "~7.23.10",
"@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 Down
7 changes: 4 additions & 3 deletions site/plugin-tdoc/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ export default function renderDemo(md, container) {
const demoName = path.basename(demoPath);
const demoDefName = `Demo${demoPathOnlyLetters}`;
const demoCodeDefName = `Demo${demoPathOnlyLetters}Code`;
const demoCompositionCodeDefName = `Demo${demoPathOnlyLetters}CompositionCode`; // composition示例

const tpl = `
<td-doc-demo :code=${demoCodeDefName} demo-name="${demoName}" language="markup">
<td-doc-demo demo-name="${demoName}" languages="OptionsAPI,CompositionAPI" :data-OptionsAPI="${demoCodeDefName}" :data-CompositionAPI="${demoCompositionCodeDefName}" language="markup">
<div slot="action">
<Stackblitz demo-name="${demoName}" component-name="${componentName}" :code=${demoCodeDefName} />
<Codesandbox demo-name="${demoName}" component-name="${componentName}" :code=${demoCodeDefName} />
<Stackblitz demo-name="${demoName}" component-name="${componentName}" />
<Codesandbox demo-name="${demoName}" component-name="${componentName}" />
</div>
<div class="tdesign-demo-item__body">
<${demoDefName} />
Expand Down
13 changes: 9 additions & 4 deletions site/plugin-tdoc/transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
if (fileName && source.includes(':: BASE_DOC ::')) {
const localeDocPath = path.resolve(__dirname, `../../src/_common/docs/web/api/${fileName}`);
const defaultDocPath = path.resolve(__dirname, `../../src/_common/docs/web/api/${componentName}.md`);

let baseDoc = '';
if (fs.existsSync(localeDocPath)) {
// 优先载入语言版本
Expand All @@ -37,10 +38,6 @@ export default {
// 替换成对应 demo 文件
source = source.replace(/\{\{\s+(.+)\s+\}\}/g, (demoStr, demoFileName) => {
const defaultDemoPath = path.resolve(resourceDir, `./_example/${demoFileName}.vue`);
const localeDemoPath = path.resolve(resourceDir, `../_example/${demoFileName}.${localeName}.vue`);
// localeDemo 优先级最高
if (fs.existsSync(localeDemoPath))
return `\n::: demo _example/${demoFileName}.${localeName} ${componentName}\n:::\n`;

if (!fs.existsSync(defaultDemoPath)) {
console.log('\x1B[36m%s\x1B[0m', `${componentName} 组件需要实现 _example/${demoFileName}.vue 示例!`);
Expand All @@ -51,11 +48,19 @@ export default {
});

source.replace(/:::\s*demo\s+([\\/.\w-]+)/g, (demoStr, relativeDemoPath) => {
const compositionDemoPath = `_example-composition/${relativeDemoPath.split('/')?.[1]}`;
console.log(compositionDemoPath, 'compositionDemoPath');
const demoPathOnlyLetters = relativeDemoPath.replace(/[^a-zA-Z\d]/g, '');
const demoDefName = `Demo${demoPathOnlyLetters}`;
const demoCodeDefName = `Demo${demoPathOnlyLetters}Code`;
const demoCompositionCodeDefName = `Demo${demoPathOnlyLetters}CompositionCode`; // composition示例

demoImports[demoDefName] = `import ${demoDefName} from './${relativeDemoPath}.vue';`;
demoCodesImports[demoCodeDefName] = `import ${demoCodeDefName} from './${relativeDemoPath}.vue?raw';`;
if (fs.existsSync(path.resolve(resourceDir, `${compositionDemoPath}.vue`)))
demoCodesImports[
demoCompositionCodeDefName
] = `import ${demoCompositionCodeDefName} from './${compositionDemoPath}.vue?raw'`;
});

return source;
Expand Down
101 changes: 69 additions & 32 deletions site/src/components/codesandbox/content.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import orgPkg from '../../../../package.json';

export const htmlContent = '<div id="app"></div>';
export const htmlContent = `
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
`;

export const mainJsContent = `
import Vue from 'vue';
Expand Down Expand Up @@ -42,52 +45,86 @@ export const styleContent = `
}
`;

export const pkgContent = JSON.stringify(
export const stackblitzRc = `
{
"installDependencies": false,
"startCommand": "turbo && turbo dev"
}
`;

export const viteConfigContent = `
import { defineConfig } from 'vite';
import { createVuePlugin } from 'vite-plugin-vue2';
export default defineConfig({
plugins: [
createVuePlugin({ jsx: true }),
],
});
`;

export const viteConfigContentForComposition = `
import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue2'
import vueJsx from '@vitejs/plugin-vue2-jsx';
export default defineConfig({
plugins: [
vue(),
vueJsx()
],
});
`;

export const packageJSONContent = JSON.stringify(
{
name: 'tdesign-vue-demo',
version: '0.1.0',
version: '0.0.0',
private: true,
scripts: {
serve: 'vue-cli-service serve',
build: 'vue-cli-service build',
lint: 'vue-cli-service lint',
dev: 'vite',
build: 'vite build',
serve: 'vite preview',
},
dependencies: {
dayjs: orgPkg.devDependencies.dayjs,
'tdesign-vue': orgPkg.version,
'tdesign-icons-vue': orgPkg.dependencies['tdesign-icons-vue'],
vue: orgPkg.devDependencies.vue,
},
devDependencies: {
eslint: '^8.6.0',
'@vue/cli-plugin-babel': '4.5.15',
'@vue/cli-plugin-eslint': '4.5.15',
'@vue/cli-service': '4.5.15',
'@vue/babel-plugin-transform-vue-jsx': '^1.2.1',
'@vue/babel-helper-vue-jsx-merge-props': '^1.2.1',
'babel-eslint': '^10.1.0',
'eslint-plugin-vue': '^8.2.0',
'vue-template-compiler': '^2.6.14',
vite: orgPkg.devDependencies.vite,
less: orgPkg.devDependencies.less,
'vite-plugin-vue2': orgPkg.devDependencies['vite-plugin-vue2'],
'vue-template-compiler': orgPkg.devDependencies['vue-template-compiler'],
},
eslintConfig: {
root: true,
env: {
node: true,
},
extends: ['plugin:vue/essential', 'eslint:recommended'],
parserOptions: {
parser: '@babel/eslint-parser',
},
rules: {},
},
browserslist: ['> 1%', 'last 2 versions', 'not dead'],
},
null,
2,
);

export const babelContent = `
export const packageJSONContentForComposition = JSON.stringify(
{
"plugins": ["transform-vue-jsx"]
}
`;
name: 'tdesign-vue-demo',
version: '0.0.0',
private: true,
scripts: {
dev: 'vite',
build: 'vite build',
serve: 'vite preview',
},
dependencies: {
'tdesign-vue': orgPkg.version + '-naruto',
'tdesign-icons-vue': orgPkg.dependencies['tdesign-icons-vue'],
vue: '2.7.14',
},
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',
},
},
null,
2,
);
Loading

0 comments on commit a6c94f7

Please sign in to comment.