
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
antd-mobile-vue
Advanced tools
如有问题可添加个人微信(wuhao1200),欢迎共同交流

该项目原本为公司内部项目,现放到github上开源,发布个时候项目名称改为antd-mobile-vue
基于 Vue 的组件库,代码由antd-mobile转为Vue版本,目前已具备antd-mobile的绝大部分组件
部分组件的示例已和 ant design mobile 官网同步
与antd-mobile的组件对比
antd-mobile 共有 47个组件,本项目截至现在移植了44个, 组件完成度达到95%
另外新增组件
| 组件名称 | 用途 |
|---|---|
| Chart | 图表组件 |
| 组件名称 | antd-mobile | antd-mobile-vue | 示例移植 | 说明 |
|---|---|---|---|---|
| Accordion | √ | √ | √ | |
| ActionSheet | √ | √ | ||
| ActivityIndicator | √ | √ | ||
| Badge | √ | √ | √ | |
| Button | √ | √ | √ | |
| Calendar | √ | √ | √ | |
| Card | √ | √ | √ | |
| Carousel | √ | √ | √ | |
| Chart | [无] | √ | ||
| Checkbox | √ | √ | √ | |
| DatePicker | √ | √ | √ | |
| DatePickerView | √ | √ | ||
| Drawer | √ | √ | √ | |
| Flex | √ | √ | √ | |
| Grid | √ | √ | ||
| Icon | √ | √ | ||
| ImagePicker | √ | √ | √ | |
| InputItem | √ | √ | √ | |
| List | √ | √ | √ | |
| ListView | √ | [无] | ||
| Menu | √ | √ | √ | |
| Modal | √ | √ | √ | |
| NavBar | √ | √ | √ | |
| NoticeBar | √ | √ | √ | |
| Pagination | √ | √ | √ | |
| Picker | √ | √ | √ | |
| PickerView | √ | √ | ||
| Popover | √ | √ | √ | |
| Progress | √ | √ | ||
| Radio | √ | √ | √ | |
| PullToRefresh | √ | √ | ||
| Result | √ | √ | ||
| SearchBar | √ | √ | ||
| SegmentedControl | √ | √ | √ | |
| Slider | √ | √ | ||
| Range | √ | √ | ||
| Stepper | √ | √ | ||
| Steps | √ | √ | ||
| SwipeAction | √ | [无] | ||
| Switch | √ | √ | ||
| TabBar | √ | √ | √ | |
| Tabs | √ | √ | √ | |
| Tag | √ | √ | ||
| TextareaItem | √ | √ | ||
| Toast | √ | √ | √ | |
| WhiteSpace | √ | √ | √ | |
| WingBlank | √ | √ | √ | |
| LocaleProvider | √ | [无] |
npm i antd-mobile-vue -S
import AntdMobile from 'antd-mobile-vue'
Vue.use(AntdMobile)
按需加载需要借助babel-plugin-import, 这样就可以只引入需要的组件,以减小项目体积
npm i babel-plugin-import -D
将babel.config.js修改为:
module.exports = {
presets: ['@vue/app'],
plugins: [
[
'import',
{
libraryName: 'antd-mobile-vue',
libraryDirectory: 'es',
style: true
},
'antd-mobile-vue'
]
]
};
引入组件
import { Alert } from "antd-mobile-vue";
@Component({
components: {
Alert
}
})
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
<link rel="stylesheet" href="https://public-file.aegis-info.com/antd-mobile-vue/0.3.0/antdm.css.gz">
<script src="https://public-file.aegis-info.com/antd-mobile-vue/<version>/antdm.umd.min.js.gz"></script>
cdn没有打包vue,因此需要独立引入vue的cdn资源
npm run dev
npm run create <name> <cn-name> <type>
npm run docs
npm run lint
npm run lib
打包后的文件可以在html中直接引用
npm run build
用于部署,如果发布到npm仓库则不需要执行
npm run remove <name>
npm publish
FAQs
基于Vue和ant-desing的及PC端综合组件库
The npm package antd-mobile-vue receives a total of 19 weekly downloads. As such, antd-mobile-vue popularity was classified as not popular.
We found that antd-mobile-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.