mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-02 03:58:05 +08:00
release 3.1.0
This commit is contained in:
parent
272430ba06
commit
6222e43d7a
@ -10,6 +10,14 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 3.1.0
|
||||||
|
|
||||||
|
`2022-04-06`
|
||||||
|
|
||||||
|
### 🔥🔥🔥 3.1.0 official version released 🔥🔥🔥
|
||||||
|
|
||||||
|
- 🐞 Fix `Select.Option` child element is empty, the error is reported [272430](https://github.com/vueComponent/ant-design-vue/commit/272430ba06e44e06eb07694d6aef4d474fb741cb)
|
||||||
|
|
||||||
## 3.1.0-rc.6
|
## 3.1.0-rc.6
|
||||||
|
|
||||||
`2022-04-01`
|
`2022-04-01`
|
||||||
|
@ -10,6 +10,14 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## 3.1.0
|
||||||
|
|
||||||
|
`2022-04-06`
|
||||||
|
|
||||||
|
### 🔥🔥🔥 3.1.0 正式版发布 🔥🔥🔥
|
||||||
|
|
||||||
|
- 🐞 修复 `Select.Option` 子元素为空的时候,报错问题 [272430](https://github.com/vueComponent/ant-design-vue/commit/272430ba06e44e06eb07694d6aef4d474fb741cb)
|
||||||
|
|
||||||
## 3.1.0-rc.6
|
## 3.1.0-rc.6
|
||||||
|
|
||||||
`2022-04-01`
|
`2022-04-01`
|
||||||
|
@ -50,6 +50,13 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
|
if (
|
||||||
|
location.host === 'ant-design-vue.gitee.io' ||
|
||||||
|
location.host === 'vue.ant.design' ||
|
||||||
|
location.host === 'next.antdv.com'
|
||||||
|
) {
|
||||||
|
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
||||||
|
}
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
var srcMap = {
|
var srcMap = {
|
||||||
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
|
'ant-design-vue.gitee.io': 'https://hm.baidu.com/hm.js?1e30265f06f76fabfcdb7ed272017441',
|
||||||
|
@ -23,7 +23,11 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
if (location.host === 'ant-design-vue.gitee.io' || location.host === 'vue.ant.design') {
|
if (
|
||||||
|
location.host === 'ant-design-vue.gitee.io' ||
|
||||||
|
location.host === 'vue.ant.design' ||
|
||||||
|
location.host === 'next.antdv.com'
|
||||||
|
) {
|
||||||
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
location.replace(location.href.replace(location.host, 'www.antdv.com'));
|
||||||
}
|
}
|
||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
|
@ -8,11 +8,14 @@
|
|||||||
key="version"
|
key="version"
|
||||||
class="version"
|
class="version"
|
||||||
size="small"
|
size="small"
|
||||||
|
:dropdown-match-select-width="false"
|
||||||
:default-value="antdVersion"
|
:default-value="antdVersion"
|
||||||
:get-popup-container="trigger => trigger.parentNode"
|
|
||||||
>
|
>
|
||||||
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
|
<a-select-option :value="antdVersion">{{ antdVersion }}</a-select-option>
|
||||||
<a-select-option value="1.x" @click="changeVersion">1.x</a-select-option>
|
<a-select-option value="2.x" @click="changeVersion('2x')">
|
||||||
|
2.x (Not Recommended)
|
||||||
|
</a-select-option>
|
||||||
|
<a-select-option value="1.x" @click="changeVersion('1x')">1.x (For Vue 2)</a-select-option>
|
||||||
</a-select>
|
</a-select>
|
||||||
<a-button
|
<a-button
|
||||||
key="lang-button"
|
key="lang-button"
|
||||||
@ -66,8 +69,8 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
const changeVersion = () => {
|
const changeVersion = v => {
|
||||||
location.href = `https://1x.antdv.com${route.fullPath}`;
|
location.href = `https://${v}.antdv.com${route.fullPath}`;
|
||||||
};
|
};
|
||||||
return {
|
return {
|
||||||
onLangChange,
|
onLangChange,
|
||||||
|
@ -16,6 +16,18 @@
|
|||||||
|
|
||||||
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
|
<CloseOutlined class="close-icon" @click="visibleAdblockBanner = false" />
|
||||||
</div>
|
</div>
|
||||||
|
<div v-if="visibleAlertBanner" class="alert-banner">
|
||||||
|
<template v-if="isZhCN">
|
||||||
|
Ant Design Vue 3 已正式发布,并成为默认文档。
|
||||||
|
<a href="https://www.antdv.com/docs/vue/migration-v3-cn">升级文档</a>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
Ant Design Vue 3 is now the new default version!
|
||||||
|
<a href="https://www.antdv.com/docs/vue/migration-v3">Update Doc</a>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<CloseOutlined class="close-icon" @click="visibleAlertBanner = false" />
|
||||||
|
</div>
|
||||||
<a-popover
|
<a-popover
|
||||||
v-model:visible="menuVisible"
|
v-model:visible="menuVisible"
|
||||||
overlay-class-name="popover-menu"
|
overlay-class-name="popover-menu"
|
||||||
@ -54,6 +66,7 @@ import Logo from './Logo.vue';
|
|||||||
import Menu from './Menu.vue';
|
import Menu from './Menu.vue';
|
||||||
import { UnorderedListOutlined, CloseOutlined } from '@ant-design/icons-vue';
|
import { UnorderedListOutlined, CloseOutlined } from '@ant-design/icons-vue';
|
||||||
import SearchBox from './SearchBox.vue';
|
import SearchBox from './SearchBox.vue';
|
||||||
|
import { version } from 'ant-design-vue';
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
components: {
|
components: {
|
||||||
Logo,
|
Logo,
|
||||||
@ -121,6 +134,12 @@ export default defineComponent({
|
|||||||
watch(globalConfig?.blocked, val => {
|
watch(globalConfig?.blocked, val => {
|
||||||
visibleAdblockBanner.value = val;
|
visibleAdblockBanner.value = val;
|
||||||
});
|
});
|
||||||
|
const visibleAlertBanner = ref(!localStorage.getItem('v3'));
|
||||||
|
watch(visibleAlertBanner, () => {
|
||||||
|
if (!visibleAlertBanner.value) {
|
||||||
|
localStorage.setItem('v3', version);
|
||||||
|
}
|
||||||
|
});
|
||||||
return {
|
return {
|
||||||
isZhCN: globalConfig.isZhCN,
|
isZhCN: globalConfig.isZhCN,
|
||||||
isMobile: globalConfig.isMobile,
|
isMobile: globalConfig.isMobile,
|
||||||
@ -134,13 +153,15 @@ export default defineComponent({
|
|||||||
colProps,
|
colProps,
|
||||||
menuVisible,
|
menuVisible,
|
||||||
onTriggerSearching,
|
onTriggerSearching,
|
||||||
|
visibleAlertBanner,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<style lang="less" src="./index.less"></style>
|
<style lang="less" src="./index.less"></style>
|
||||||
<style scope>
|
<style scope>
|
||||||
.adblock-banner {
|
.adblock-banner,
|
||||||
|
.alert-banner {
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
min-width: 1000px;
|
min-width: 1000px;
|
||||||
@ -150,6 +171,18 @@ export default defineComponent({
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
background-color: #ebebeb;
|
background-color: #ebebeb;
|
||||||
}
|
}
|
||||||
|
.alert-banner {
|
||||||
|
background-color: var(--ant-primary-color);
|
||||||
|
color: #fff;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
.alert-banner a {
|
||||||
|
color: #fff;
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
.alert-banner .close-icon {
|
||||||
|
top: 12px;
|
||||||
|
}
|
||||||
.close-icon {
|
.close-icon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 15px;
|
top: 15px;
|
||||||
|
@ -37,7 +37,7 @@ And, setup your vue project configuration.
|
|||||||
#### Install
|
#### Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm i --save ant-design-vue@next
|
$ npm i --save ant-design-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Component Registration
|
#### Component Registration
|
||||||
|
@ -39,7 +39,7 @@ $ vue create antd-demo
|
|||||||
#### 安装
|
#### 安装
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm i --save ant-design-vue@next
|
$ npm i --save ant-design-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
#### 注册
|
#### 注册
|
||||||
|
@ -38,7 +38,7 @@ Following the Ant Design specification, we developed a Vue UI library `antd` tha
|
|||||||
|
|
||||||
## Version
|
## Version
|
||||||
|
|
||||||
- Stable: [![npm package](https://img.shields.io/npm/v/ant-design-vue/next.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
|
- Stable: [![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
|
||||||
|
|
||||||
You can subscribe to this feed for new version notifications: https://github.com/vueComponent/ant-design-vue/releases.atom
|
You can subscribe to this feed for new version notifications: https://github.com/vueComponent/ant-design-vue/releases.atom
|
||||||
|
|
||||||
@ -49,11 +49,11 @@ You can subscribe to this feed for new version notifications: https://github.com
|
|||||||
**We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
|
**We recommend using npm or yarn to install**,it not only makes development easier,but also allow you to take advantage of the rich ecosystem of Javascript packages and tooling.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install ant-design-vue@next --save
|
$ npm install ant-design-vue --save
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ yarn add ant-design-vue@next
|
$ yarn add ant-design-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
|
If you are in a bad network environment,you can try other registries and tools like [cnpm](https://github.com/cnpm/cnpm).
|
||||||
@ -115,16 +115,14 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
// vite.config.js
|
// vite.config.js
|
||||||
import Components from 'unplugin-vue-components/vite'
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
plugins: [
|
plugins: [
|
||||||
/* ... */
|
/* ... */
|
||||||
Components({
|
Components({
|
||||||
resolvers: [
|
resolvers: [AntDesignVueResolver()],
|
||||||
AntDesignVueResolver(),
|
|
||||||
],
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
|
|
||||||
## 版本
|
## 版本
|
||||||
|
|
||||||
- 稳定版:[![npm package](https://img.shields.io/npm/v/ant-design-vue/next.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
|
- 稳定版:[![npm package](https://img.shields.io/npm/v/ant-design-vue.svg?style=flat-square)](https://www.npmjs.org/package/ant-design-vue)
|
||||||
|
|
||||||
你可以订阅:https://github.com/vueComponent/ant-design-vue/releases.atom 来获得稳定版发布的通知。
|
你可以订阅:https://github.com/vueComponent/ant-design-vue/releases.atom 来获得稳定版发布的通知。
|
||||||
|
|
||||||
@ -49,11 +49,11 @@
|
|||||||
**我们推荐使用 npm 或 yarn 的方式进行开发**,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用,享受整个生态圈和工具链带来的诸多好处。
|
**我们推荐使用 npm 或 yarn 的方式进行开发**,不仅可在开发环境轻松调试,也可放心地在生产环境打包部署使用,享受整个生态圈和工具链带来的诸多好处。
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ npm install ant-design-vue@next --save
|
$ npm install ant-design-vue --save
|
||||||
```
|
```
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
$ yarn add ant-design-vue@next
|
$ yarn add ant-design-vue
|
||||||
```
|
```
|
||||||
|
|
||||||
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。
|
如果你的网络环境不佳,推荐使用 [cnpm](https://github.com/cnpm/cnpm)。
|
||||||
@ -117,16 +117,14 @@ import 'ant-design-vue/dist/antd.css'; // or 'ant-design-vue/dist/antd.less'
|
|||||||
|
|
||||||
```js
|
```js
|
||||||
// vite.config.js
|
// vite.config.js
|
||||||
import Components from 'unplugin-vue-components/vite'
|
import Components from 'unplugin-vue-components/vite';
|
||||||
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers'
|
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
plugins: [
|
plugins: [
|
||||||
/* ... */
|
/* ... */
|
||||||
Components({
|
Components({
|
||||||
resolvers: [
|
resolvers: [AntDesignVueResolver()],
|
||||||
AntDesignVueResolver(),
|
|
||||||
],
|
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user