Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>anyup-uniui-snippetNew to Visual Studio Code? Get it now.
anyup-uniui-snippet

anyup-uniui-snippet

anyup

|
1,046 installs
| (0) | Free
anyup-uniui 代码提示
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

anyup-uniui-snippet

Snippets

Template

Snippet Purpose
au-button Button 按钮
au-layout Layout 布局
au-loader Loader 加载动画
au-loading Loading 加载动画
au-toast Toast 轻提示
au-table Table 表格
au-updater Updater App 版本更新
au-webview Webview 网页视图
app-button Button 按钮
app-layout Layout 布局

Script

Snippet Purpose
uniui.use UniUI 初始化
$_u.trim trim 去除空格
$_u.toast toast 轻提示
$_u.os os 获取平台的名称
$_u.sys sys 获取设备的信息
$_u.throttle throttle 节流
$_u.debounce debounce 防抖
$_u.deepClone deepClone 对象深度克隆
$_u.deepMerge deepMerge 对象深度合并
$_u.timeFormat timeFormat 格式化时间
$_u.timeFrom timeFrom 多久以前
$_u.route route 路由跳转
$_u.guid guid 全局唯一标识符
$_u.queryParams queryParams 对象转 URL 参数
$_u.random random 随机数值
$_u.sleep sleep 程序睡眠
$_u.groupBy groupBy 分组
$_u.pagination pagination 前端分页
$_u.plus.veriosn App 版本名称
$_u.plus.versionCode App 版本号
$_u.plus.clientid App 个推推送 cid
checker checker Form 表单校验
pager.new Pager 分页类
pager.setTotal Pager 分页数据
pager.setPages Pager 分页数据
pager.hasMore Pager 分页是否还有下一页
optimize.builder.throttle 节流类
optimize.builder.debounce 防抖类
optimize.excute 优化方法 执行
push.register Push 个推推送注册
store.commit Store commit
store.dispatch Store dispatch
store.get Store 获取
store.set Store 存储
store.reset Store 重置
store.useModule Store 使用模块
store.newModule Store 新建模块
store.module Store 模块模板
$tips.loading Tips loading 加载
$tips.loaded Tips loaded 加载取消
$tips.toast Tips Toast 轻提示
$tips.confirm Tips 确认弹窗
$api.request Api 网络请求
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft