Skip to content

Commit

Permalink
feat: sync release-3.16.0 to dev (#1648)
Browse files Browse the repository at this point in the history
* fix(grid): fix right fixed table header gutter style (#1542)

* fix(grid): [grid] fix grid no emit filter-change bug (#1536)

* fix(grid): [grid] fix grid not emit filter-change bug

* fix(grid): [grid] fix grid not emit filter-change bug

* docs: add v3.15.0 changelog (#1544)

* fix(tree): remove leaf node's padding-left (#1546)

* fix(action-menu): [action-menu] fix no divided bug (#1538)

* fix(action-menu): [action-menu] fix no divided bug

* fix(action-menu): [action-menu] fix no divided bug

* refactor(unplugin): rewrite unplugin for autoimport Vue components (#1553)

* fix(tabs): [tabs] Fixed issue with default slot and template/v-if/v-for usage in vue2 and vue3 (#1558)

* fix(tabs): [tabs] Fix the bug where the name is empty caused by using v-if in tabstem

* fix(tabs): [tabs] update renderless version

* fix(tabs): [tabs] Fix the issue with rendering in the default slot of Vue3

* fix(tabs): [tabs] Fix the issue of inconsistent highlighting when multiple V-ifs are used

* fix(tabs): [tabs] update opentiny/vue-tabs version

* fix(theme-saas): update theme saas dependencies (#1582)

* Update package.json

* feat(unplugin-tiny-vue): add TinyVueResolver (#1585)

* docs: add breaking changes to changelog (#1562)

* fix(chart): delete chart duplicate key (#1624)

* fix(select): [select] add showAllTextTag prop for select (#1627)

* fix(select): add showAllTextTag prop for select

* fix(select): update select  version in  package.json

* fix: [chart]fix chart height error and area chart empty data error (#1631)

* fix: 修复面积图空数据报错问题

* fix: 修复图表高度设置为100%的高度异常问题

* fix: 修改boxplot图表案例引入

* fix(drop-times): [drop-times] modify style (#1635)

* feat(theme): update theme version

* fix(chart): fix chart extend bugs (#1638)

* fix: 修复chart图表的extend未生效问题

* fix: 优化图表extend逻辑

* fix: 优化图表extend逻辑

* docs: optimize component category (#1626) (#1641)

* docs: update changelog v3.16.0 (#1642)

* feat(version): add npmmirror cdn link (#1646)

* feat(version): update docs version

---------

Co-authored-by: gimmyhehe <[email protected]>
Co-authored-by: Kagol <[email protected]>
Co-authored-by: 申君健 <[email protected]>
Co-authored-by: chenxi-20 <[email protected]>
Co-authored-by: Davont <[email protected]>
Co-authored-by: 李天佑 <[email protected]>
  • Loading branch information
7 people authored May 28, 2024
1 parent 65eb13e commit a931e5f
Show file tree
Hide file tree
Showing 30 changed files with 341 additions and 246 deletions.
10 changes: 5 additions & 5 deletions examples/sites/demos/apis/action-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,11 @@ export default {
type: 'interface',
code: `
interface IItemData {
label: string // 菜单项文本
disabled: boolean // 是否禁用
divided: boolean // 是否显示分割线
children: IItemData[] // 菜单项子集
icon: Component // 菜单项图标
label?: string // 菜单项文本
disabled?: boolean // 是否禁用
divided?: boolean // 是否显示分割线
children?: IItemData[] // 菜单项子集
icon?: Component // 菜单项图标
}
`
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ const options = ref([
label: '关机'
},
{
label: '重启'
label: '重启',
divided: true
},
{
label: '网络设置',
Expand Down
3 changes: 2 additions & 1 deletion examples/sites/demos/pc/app/action-menu/basic-usage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ export default {
label: '关机'
},
{
label: '重启'
label: '重启',
divided: true
},
{
label: '网络设置',
Expand Down
58 changes: 56 additions & 2 deletions examples/sites/demos/pc/webdoc/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
# 更新日志

## v2.16.0/v3.16.0

`2024/05/11`

## What's Changed

### Exciting New Features 🎉

- feat(tabs): [tabs] Add panel configuration function to adapt to the n… by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1547
- fix(cascader): [cascader] add smb theme by @wuyiping0628 in https://github.com/opentiny/tiny-vue/pull/1584
- fix(checkbox): [checkbox,check-button] Improve Checkbox and CheckButton accessibility. by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1581
- fix(button & button-grounp): [button, button-group]improve the accessibility by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1586
- feat(drawer): [drawer]support custom whether confirm event close the drawer and improve the type declaration by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1588

### Bug Fixes 🐛

- fix(sites): change tinyui-design-common script link by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1539
- fix(tabs): [tabs] Fix the bug where the name is empty caused by using… by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1549
- fix(modal): the width of the modal box can be displayed in the center as the browser window size changes by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1554
- fix(dialog-box): [dialog-box] fix issue #1242 by @RanierYu in https://github.com/opentiny/tiny-vue/pull/1550
- fix(carousel): [carousel] fix issue #1543 by @Zcating in https://github.com/opentiny/tiny-vue/pull/1548
- fix(grid): [grid] fix nested grid context menu error by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1578
- fix(grid): [grid] fix simple custom setting selected value not match … by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1580
- fix(grid): [grid] fix remote filter default value by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1574
- fix(rich-text-editor): code overflow by @GaoNeng-wWw in https://github.com/opentiny/tiny-vue/pull/1590
- fix(grid): [grid] fix tableWidth error when all column has min-width by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1595
- fix(grid): [grid] fix shadow-root does not have getAttribute function by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1593
- fix(date-picker): [date-picker]fix the tabindex's default value to 0 by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1589
- fix(modal): the modal prompt box is compatible with the position of titles and content icons by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1570
- fix(file-upload): [file-upload] Fix the hidden feature bug in props.isHidden by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1614
- fix(file-upload): [file-upload] Fix the hidden feature bug in props.isHidden by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1617

### Other Changes

- docs: optimize component category by @kagol in https://github.com/opentiny/tiny-vue/pull/1641
- docs: add v3.15.0 changelog by @kagol in https://github.com/opentiny/tiny-vue/pull/1537
- docs: update vue-docs version by @kagol in https://github.com/opentiny/tiny-vue/pull/1541
- fix(skeleton): [skeleton] update document by @wuyiping0628 in https://github.com/opentiny/tiny-vue/pull/1577
- perf(theme-mobile): remove css vars from :root to root class of compo… by @Huangyilin19 in https://github.com/opentiny/tiny-vue/pull/1579
- fix(anchor): [anchor] Correcting Ambiguity in Anchor Document Descrip… by @chenxi-20 in https://github.com/opentiny/tiny-vue/pull/1569
- docs: add description and keywords for seo by @kagol in https://github.com/opentiny/tiny-vue/pull/1592
- doc: [charts] 更新图表的 API 文档,增加 options 使用方法 by @Davont in https://github.com/opentiny/tiny-vue/pull/1600
- test(button-group): [button-group] Supplement button-group component test case by @trueLoving in https://github.com/opentiny/tiny-vue/pull/1596
- docs(Carousel): [carousel] improve the document of Carousel Component by @AcWrong02 in https://github.com/opentiny/tiny-vue/pull/1571
- fix: optimization statistic component by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1608
- feat: update chart docs by @zzcr in https://github.com/opentiny/tiny-vue/pull/1623

## New Contributors

- @RanierYu made their first contribution in https://github.com/opentiny/tiny-vue/pull/1550
- @Zcating made their first contribution in https://github.com/opentiny/tiny-vue/pull/1548
- @trueLoving made their first contribution in https://github.com/opentiny/tiny-vue/pull/1596

## v2.15.0/v3.15.0

`2024/04/08`
Expand All @@ -8,9 +61,10 @@

### Exciting New Features 🎉

- feat(chart-process): add Process Chart component by @Davont
- feat(sites): add theme route by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1478
- Cgm/add theme route by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1479
- fix(transfer ): update transfer xdesign by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1496
- feat: add theme route by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1479
- fix(transfer): update transfer xdesign by @James-9696 in https://github.com/opentiny/tiny-vue/pull/1496
- feat(form): [form] add xDesign theme by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1507
- feat(action-menu): [action-menu] add XDesign theme by @gimmyhehe in https://github.com/opentiny/tiny-vue/pull/1514
- feat(date-picker): [date-picker] date picker add quarter type by @kagol in https://github.com/opentiny/tiny-vue/pull/1513
Expand Down
48 changes: 44 additions & 4 deletions examples/sites/demos/pc/webdoc/import-components.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Vite
import autoImportPlugin from '@opentiny/unplugin-tiny-vue'

export default {
plugins: [autoImportPlugin()]
plugins: [autoImportPlugin('vite')]
}
```

Expand All @@ -33,13 +33,53 @@ Webpack

const autoImportPlugin = require('@opentiny/unplugin-tiny-vue')

module.exports = {
plugins: [autoImportPlugin()]
}
module.exports = defineConfig({
configureWebpack: {
plugins: [autoImportPlugin('webpack')]
}
})
```

这样你就能直接在项目中使用 TinyVue 的组件,这些组件都是自动按需导入的,无需手动导入,且不用担心项目体积变得太大。

你也可以只使用 TinyVueResolver,这样就可以和其他组件库一起使用。

Vite

```ts
// vite.config.ts

import Components from 'unplugin-vue-components/vite'
import autoImportPlugin from '@opentiny/unplugin-tiny-vue'

export default {
plugins: [
Components({
resolvers: [TinyVueResolver]
})
]
}
```

Webpack

```js
// webpack.config.js

const Components = require('unplugin-vue-components/webpack').default
const TinyVueResolver = require('@opentiny/unplugin-tiny-vue').TinyVueResolver

module.exports = defineConfig({
configureWebpack: {
plugins: [
Components({
resolvers: [TinyVueResolver]
})
]
}
})
```

想了解更多自动按需导入的信息,请参考:[unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)[unplugin-auto-import](https://github.com/antfu/unplugin-auto-import)

### 多组件引入
Expand Down
6 changes: 3 additions & 3 deletions examples/sites/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/vue-docs",
"version": "3.16.0",
"version": "3.16.2",
"license": "MIT",
"scripts": {
"start": "vite",
Expand Down Expand Up @@ -44,7 +44,7 @@
"vue-router": "4.1.5",
"marked": "^4.3.0",
"sortablejs": "1.15.0",
"@opentiny/vue-repl": "^1.1.0"
"@opentiny/vue-repl": "^1.1.2"
},
"devDependencies": {
"@opentiny-internal/unplugin-virtual-template": "workspace:~",
Expand Down Expand Up @@ -84,4 +84,4 @@
"vite-plugin-dynamic-import": "1.5.0",
"vue-tsc": "^1.8.5"
}
}
}
4 changes: 2 additions & 2 deletions examples/sites/playground.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + Vue</title>
<script>
const cdnHost = 'https://npm.onmicrosoft.cn'
const cdnHost = 'https://registry.npmmirror.com'
window.localStorage.setItem('setting-cdn', cdnHost)
</script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/playground/main.js"></script>
</body>
</html>
</html>
34 changes: 21 additions & 13 deletions examples/sites/playground/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import logoUrl from './assets/opentiny-logo.svg?url'
import GitHub from './icons/Github.vue'
import Share from './icons/Share.vue'
const VERSION = 'tiny-vue-version-3.14'
const VERSION = 'tiny-vue-version-3.16'
const LAYOUT = 'playground-layout'
const LAYOUT_REVERSE = 'playground-layout-reverse'
Expand All @@ -28,27 +28,35 @@ const isMobileFirst = tinyMode === 'mobile-first'
const isSaas = tinyTheme === 'saas'
const isPreview = searchObj.get('openMode') === 'preview' // 是否多端弹窗预览
const versions = ['3.14', '3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
const versions = ['3.16', '3.15', '3.14', '3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
const latestVersion = isPreview ? versions[0] : localStorage.getItem(VERSION) || versions[0]
const cdnHost = localStorage.getItem('setting-cdn')
const versionDelimiter = cdnHost.includes('npmmirror') ? '/' : '@'
const fileDelimiter = cdnHost.includes('npmmirror') ? 'files/' : ''
const getRuntime = (version) => {
const useVersion = import.meta.env.VITE_PLAYGROUND_VERIOSN || version
return `${cdnHost}/@opentiny/vue@${useVersion}/runtime/`
return `${cdnHost}/@opentiny/vue${versionDelimiter}${useVersion}/${fileDelimiter}runtime/`
}
const createImportMap = (version) => {
const imports = {
'vue': `${cdnHost}/vue${versionDelimiter}3.4.27/${fileDelimiter}dist/vue.runtime.esm-browser.js`,
'@vue/compiler-sfc': `${cdnHost}/@vue/compiler-sfc${versionDelimiter}3.4.27/${fileDelimiter}dist/compiler-sfc.esm-browser.js`,
'@opentiny/vue': `${getRuntime(version)}tiny-vue.mjs`,
'@opentiny/vue-icon': `${getRuntime(version)}tiny-vue-icon.mjs`,
'@opentiny/vue-locale': `${getRuntime(version)}tiny-vue-locale.mjs`,
'@opentiny/vue-common': `${getRuntime(version)}tiny-vue-common.mjs`,
'@opentiny/vue-theme/': `${cdnHost}/@opentiny/vue-theme@${version}/`,
'@opentiny/vue-theme-mobile/': `${cdnHost}/@opentiny/vue-theme-mobile@${version}/`,
'@opentiny/vue-renderless/': `${cdnHost}/@opentiny/vue-renderless@${version}/`,
'sortablejs': `${cdnHost}/sortablejs@1.15.0/modular/sortable.esm.js`
'@opentiny/vue-theme/': `${cdnHost}/@opentiny/vue-theme${versionDelimiter}${version}/${fileDelimiter}`,
'@opentiny/vue-theme-mobile/': `${cdnHost}/@opentiny/vue-theme-mobile${versionDelimiter}${version}/${fileDelimiter}`,
'@opentiny/vue-renderless/': `${cdnHost}/@opentiny/vue-renderless${versionDelimiter}${version}/${fileDelimiter}`,
'sortablejs': `${cdnHost}/sortablejs${versionDelimiter}1.15.0/${fileDelimiter}modular/sortable.esm.js`
}
if (['aurora', 'smb', 'saas'].includes(tinyTheme)) {
imports[`@opentiny/vue-design-${tinyTheme}`] = `${cdnHost}/@opentiny/vue-design-${tinyTheme}@${version}/index.js`
imports[
`@opentiny/vue-design-${tinyTheme}`
] = `${cdnHost}/@opentiny/vue-design-${tinyTheme}${versionDelimiter}${version}/${fileDelimiter}index.js`
}
if (isSaas) {
imports['@opentiny/vue-icon'] = `${getRuntime(version)}tiny-vue-icon-saas.mjs`
Expand All @@ -67,10 +75,10 @@ const getTinyTheme = (version) => {
theme = 'default'
}
const tinyThemeMap = {
default: `${cdnHost}/@opentiny/vue-theme@${version}/index.css`,
smb: `${cdnHost}/@opentiny/vue-theme@${version}/index.css`,
aurora: `${cdnHost}/@opentiny/vue-theme@${version}/index.css`,
saas: `${cdnHost}/@opentiny/vue-theme-saas@${version}/index.css`
default: `${cdnHost}/@opentiny/vue-theme${versionDelimiter}${version}/${fileDelimiter}index.css`,
smb: `${cdnHost}/@opentiny/vue-theme${versionDelimiter}${version}/${fileDelimiter}index.css`,
aurora: `${cdnHost}/@opentiny/vue-theme${versionDelimiter}${version}/${fileDelimiter}index.css`,
saas: `${cdnHost}/@opentiny/vue-theme-saas${versionDelimiter}${version}/${fileDelimiter}index.css`
}
return tinyThemeMap[theme]
}
Expand Down Expand Up @@ -163,7 +171,7 @@ function insertStyleDom(version) {
// 增加mobile支持,增加mobile的样式表
const mobileLink = link.cloneNode(true)
mobileLink.href = `${cdnHost}/@opentiny/vue-theme-mobile@${version}/index.css`
mobileLink.href = `${cdnHost}/@opentiny/vue-theme-mobile${versionDelimiter}${version}/${fileDelimiter}index.css`
iframeWin.document.head.append(mobileLink)
})
})
Expand Down
4 changes: 2 additions & 2 deletions internals/unplugin-tiny-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@opentiny/unplugin-tiny-vue",
"version": "0.0.1",
"version": "0.0.2",
"description": "A vite auto import plugin for TinyVue",
"main": "dist/index.cjs",
"module": "dist/index.js",
Expand Down Expand Up @@ -35,7 +35,7 @@
"vite": ">=4"
},
"dependencies": {
"magic-string": "^0.27.0"
"unplugin-vue-components": "^0.26.0"
},
"devDependencies": {
"rimraf": "^5.0.5",
Expand Down
Loading

0 comments on commit a931e5f

Please sign in to comment.