├── .gitignore ├── .hbuilderx └── launch.json ├── App.vue ├── Json.js ├── LICENSE ├── README.md ├── api ├── oms │ ├── cart.js │ └── order.js ├── pms │ ├── category.js │ └── goods.js ├── sms │ └── advert.js ├── ums │ └── address.js └── user.js ├── components ├── Winglau14-lotusAddress │ ├── Winglau14-lotusAddress.css │ ├── Winglau14-lotusAddress.js │ └── Winglau14-lotusAddress.vue ├── empty.vue ├── mix-list-cell.vue ├── mix-loading │ └── mix-loading.vue ├── share.vue ├── uni-load-more │ └── uni-load-more.vue ├── uni-number-box.vue └── upload-images.vue ├── filters └── index.js ├── main.js ├── manifest.json ├── node_modules ├── axios │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── UPGRADE_GUIDE.md │ ├── dist │ │ ├── axios.js │ │ ├── axios.map │ │ ├── axios.min.js │ │ └── axios.min.map │ ├── index.d.ts │ ├── index.js │ ├── lib │ │ ├── adapters │ │ │ ├── README.md │ │ │ ├── http.js │ │ │ └── xhr.js │ │ ├── axios.js │ │ ├── cancel │ │ │ ├── Cancel.js │ │ │ ├── CancelToken.js │ │ │ └── isCancel.js │ │ ├── core │ │ │ ├── Axios.js │ │ │ ├── InterceptorManager.js │ │ │ ├── README.md │ │ │ ├── buildFullPath.js │ │ │ ├── createError.js │ │ │ ├── dispatchRequest.js │ │ │ ├── enhanceError.js │ │ │ ├── mergeConfig.js │ │ │ ├── settle.js │ │ │ └── transformData.js │ │ ├── defaults.js │ │ ├── helpers │ │ │ ├── README.md │ │ │ ├── bind.js │ │ │ ├── buildURL.js │ │ │ ├── combineURLs.js │ │ │ ├── cookies.js │ │ │ ├── deprecatedMethod.js │ │ │ ├── isAbsoluteURL.js │ │ │ ├── isURLSameOrigin.js │ │ │ ├── normalizeHeaderName.js │ │ │ ├── parseHeaders.js │ │ │ └── spread.js │ │ └── utils.js │ └── package.json └── follow-redirects │ ├── LICENSE │ ├── README.md │ ├── debug.js │ ├── http.js │ ├── https.js │ ├── index.js │ └── package.json ├── package-lock.json ├── pages.json ├── pages ├── address │ ├── address.vue │ └── addressManage.vue ├── cart │ └── cart.vue ├── category │ └── category.vue ├── detail │ └── detail.vue ├── index │ └── index.vue ├── login │ └── login.vue ├── money │ ├── money.vue │ ├── pay.vue │ └── paySuccess.vue ├── notice │ └── notice.vue ├── order │ ├── createOrder.vue │ └── order.vue ├── product │ ├── list.vue │ └── product.vue ├── set │ └── set.vue ├── user │ └── user.vue └── userinfo │ └── userinfo.vue ├── project.config.json ├── static ├── arc.png ├── emptyCart.jpg ├── errorImage.jpg ├── logo.png ├── missing-face.png ├── select.png ├── selected.png ├── tab-cart-current.png ├── tab-cart.png ├── tab-cate-current.png ├── tab-cate.png ├── tab-home-current.png ├── tab-home.png ├── tab-my-current.png ├── tab-my.png ├── temp │ ├── ad-splash.jpg │ ├── ad1.jpg │ ├── ad2.jpg │ ├── ad3.jpg │ ├── banner1.jpg │ ├── banner2.jpg │ ├── banner3.jpg │ ├── banner4.jpg │ ├── c1.png │ ├── c2.png │ ├── c3.png │ ├── c4.png │ ├── c5.png │ ├── c6.png │ ├── c7.png │ ├── c8.png │ ├── h1.png │ ├── secskill-img.jpg │ ├── share_moment.png │ ├── share_qq.png │ ├── share_qqzone.png │ └── share_wechat.png ├── user-bg.jpg ├── vip-card-bg.png ├── wxpay.png ├── yticon.ttf └── zfbpay.png ├── store ├── getters.js ├── index.js └── modules │ └── user.js ├── uni.scss ├── uni_modules ├── uni-badge │ ├── changelog.md │ ├── components │ │ └── uni-badge │ │ │ └── uni-badge.vue │ ├── package.json │ └── readme.md ├── uni-calendar │ ├── changelog.md │ ├── components │ │ └── uni-calendar │ │ │ ├── calendar.js │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── uni-calendar-item.vue │ │ │ ├── uni-calendar.vue │ │ │ └── util.js │ ├── package.json │ └── readme.md ├── uni-card │ ├── changelog.md │ ├── components │ │ └── uni-card │ │ │ └── uni-card.vue │ ├── package.json │ └── readme.md ├── uni-collapse │ ├── changelog.md │ ├── components │ │ ├── uni-collapse-item │ │ │ └── uni-collapse-item.vue │ │ └── uni-collapse │ │ │ └── uni-collapse.vue │ ├── package.json │ └── readme.md ├── uni-combox │ ├── changelog.md │ ├── components │ │ └── uni-combox │ │ │ └── uni-combox.vue │ ├── package.json │ └── readme.md ├── uni-countdown │ ├── changelog.md │ ├── components │ │ └── uni-countdown │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-countdown.vue │ ├── package.json │ └── readme.md ├── uni-data-checkbox │ ├── changelog.md │ ├── components │ │ └── uni-data-checkbox │ │ │ └── uni-data-checkbox.vue │ ├── package.json │ └── readme.md ├── uni-data-picker │ ├── changelog.md │ ├── components │ │ ├── uni-data-picker │ │ │ ├── keypress.js │ │ │ └── uni-data-picker.vue │ │ └── uni-data-pickerview │ │ │ ├── uni-data-picker.js │ │ │ └── uni-data-pickerview.vue │ ├── package.json │ └── readme.md ├── uni-dateformat │ ├── changelog.md │ ├── components │ │ └── uni-dateformat │ │ │ ├── date-format.js │ │ │ └── uni-dateformat.vue │ ├── package.json │ └── readme.md ├── uni-datetime-picker │ ├── changelog.md │ ├── components │ │ └── uni-datetime-picker │ │ │ ├── calendar-item.vue │ │ │ ├── calendar.vue │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── keypress.js │ │ │ ├── time-picker.vue │ │ │ ├── uni-datetime-picker.vue │ │ │ └── util.js │ ├── package.json │ └── readme.md ├── uni-drawer │ ├── changelog.md │ ├── components │ │ └── uni-drawer │ │ │ ├── keypress.js │ │ │ └── uni-drawer.vue │ ├── package.json │ └── readme.md ├── uni-easyinput │ ├── changelog.md │ ├── components │ │ └── uni-easyinput │ │ │ ├── common.js │ │ │ └── uni-easyinput.vue │ ├── package.json │ └── readme.md ├── uni-fab │ ├── changelog.md │ ├── components │ │ └── uni-fab │ │ │ └── uni-fab.vue │ ├── package.json │ └── readme.md ├── uni-fav │ ├── changelog.md │ ├── components │ │ └── uni-fav │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-fav.vue │ ├── package.json │ └── readme.md ├── uni-file-picker │ ├── changelog.md │ ├── components │ │ └── uni-file-picker │ │ │ ├── choose-and-upload-file.js │ │ │ ├── uni-file-picker.vue │ │ │ ├── upload-file.vue │ │ │ ├── upload-image.vue │ │ │ └── utils.js │ ├── package.json │ └── readme.md ├── uni-forms │ ├── changelog.md │ ├── components │ │ ├── uni-forms-item │ │ │ └── uni-forms-item.vue │ │ └── uni-forms │ │ │ ├── uni-forms.vue │ │ │ ├── utils.js │ │ │ └── validate.js │ ├── package.json │ └── readme.md ├── uni-goods-nav │ ├── changelog.md │ ├── components │ │ └── uni-goods-nav │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-goods-nav.vue │ ├── package.json │ └── readme.md ├── uni-grid │ ├── changelog.md │ ├── components │ │ ├── uni-grid-item │ │ │ └── uni-grid-item.vue │ │ └── uni-grid │ │ │ └── uni-grid.vue │ ├── package.json │ └── readme.md ├── uni-group │ ├── changelog.md │ ├── components │ │ └── uni-group │ │ │ └── uni-group.vue │ ├── package.json │ └── readme.md ├── uni-icons │ ├── changelog.md │ ├── components │ │ └── uni-icons │ │ │ ├── icons.js │ │ │ ├── uni-icons.vue │ │ │ ├── uniicons.css │ │ │ └── uniicons.ttf │ ├── package.json │ └── readme.md ├── uni-indexed-list │ ├── changelog.md │ ├── components │ │ └── uni-indexed-list │ │ │ ├── uni-indexed-list-item.vue │ │ │ └── uni-indexed-list.vue │ ├── package.json │ └── readme.md ├── uni-link │ ├── changelog.md │ ├── components │ │ └── uni-link │ │ │ └── uni-link.vue │ ├── package.json │ └── readme.md ├── uni-list │ ├── changelog.md │ ├── components │ │ ├── uni-list-ad │ │ │ └── uni-list-ad.vue │ │ ├── uni-list-chat │ │ │ ├── uni-list-chat.scss │ │ │ └── uni-list-chat.vue │ │ ├── uni-list-item │ │ │ └── uni-list-item.vue │ │ └── uni-list │ │ │ ├── uni-list.vue │ │ │ ├── uni-refresh.vue │ │ │ └── uni-refresh.wxs │ ├── package.json │ └── readme.md ├── uni-load-more │ ├── changelog.md │ ├── components │ │ └── uni-load-more │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-load-more.vue │ ├── package.json │ └── readme.md ├── uni-nav-bar │ ├── changelog.md │ ├── components │ │ └── uni-nav-bar │ │ │ ├── uni-nav-bar.vue │ │ │ └── uni-status-bar.vue │ ├── package.json │ └── readme.md ├── uni-notice-bar │ ├── changelog.md │ ├── components │ │ └── uni-notice-bar │ │ │ └── uni-notice-bar.vue │ ├── package.json │ └── readme.md ├── uni-number-box │ ├── changelog.md │ ├── components │ │ └── uni-number-box │ │ │ └── uni-number-box.vue │ ├── package.json │ └── readme.md ├── uni-pagination │ ├── changelog.md │ ├── components │ │ └── uni-pagination │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── es.json │ │ │ ├── fr.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-pagination.vue │ ├── package.json │ └── readme.md ├── uni-popup │ ├── changelog.md │ ├── components │ │ ├── uni-popup-dialog │ │ │ ├── keypress.js │ │ │ └── uni-popup-dialog.vue │ │ ├── uni-popup-message │ │ │ └── uni-popup-message.vue │ │ ├── uni-popup-share │ │ │ └── uni-popup-share.vue │ │ └── uni-popup │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ ├── keypress.js │ │ │ ├── popup.js │ │ │ └── uni-popup.vue │ ├── package.json │ └── readme.md ├── uni-rate │ ├── changelog.md │ ├── components │ │ └── uni-rate │ │ │ └── uni-rate.vue │ ├── package.json │ └── readme.md ├── uni-row │ ├── changelog.md │ ├── components │ │ ├── uni-col │ │ │ └── uni-col.vue │ │ └── uni-row │ │ │ └── uni-row.vue │ ├── package.json │ └── readme.md ├── uni-scss │ ├── changelog.md │ ├── index.scss │ ├── package.json │ ├── readme.md │ ├── styles │ │ ├── index.scss │ │ ├── setting │ │ │ ├── _border.scss │ │ │ ├── _color.scss │ │ │ ├── _radius.scss │ │ │ ├── _space.scss │ │ │ ├── _styles.scss │ │ │ ├── _text.scss │ │ │ └── _variables.scss │ │ └── tools │ │ │ └── functions.scss │ ├── theme.scss │ └── variables.scss ├── uni-search-bar │ ├── changelog.md │ ├── components │ │ └── uni-search-bar │ │ │ ├── i18n │ │ │ ├── en.json │ │ │ ├── index.js │ │ │ ├── zh-Hans.json │ │ │ └── zh-Hant.json │ │ │ └── uni-search-bar.vue │ ├── package.json │ └── readme.md ├── uni-segmented-control │ ├── changelog.md │ ├── components │ │ └── uni-segmented-control │ │ │ └── uni-segmented-control.vue │ ├── package.json │ └── readme.md ├── uni-steps │ ├── changelog.md │ ├── components │ │ └── uni-steps │ │ │ └── uni-steps.vue │ ├── package.json │ └── readme.md ├── uni-swipe-action │ ├── changelog.md │ ├── components │ │ ├── uni-swipe-action-item │ │ │ ├── bindingx.js │ │ │ ├── isPC.js │ │ │ ├── mpalipay.js │ │ │ ├── mpother.js │ │ │ ├── mpwxs.js │ │ │ ├── render.js │ │ │ ├── uni-swipe-action-item.vue │ │ │ └── wx.wxs │ │ └── uni-swipe-action │ │ │ └── uni-swipe-action.vue │ ├── package.json │ └── readme.md ├── uni-swiper-dot │ ├── changelog.md │ ├── components │ │ └── uni-swiper-dot │ │ │ └── uni-swiper-dot.vue │ ├── package.json │ └── readme.md ├── uni-table │ ├── changelog.md │ ├── components │ │ ├── uni-table │ │ │ └── uni-table.vue │ │ ├── uni-tbody │ │ │ └── uni-tbody.vue │ │ ├── uni-td │ │ │ └── uni-td.vue │ │ ├── uni-th │ │ │ ├── filter-dropdown.vue │ │ │ └── uni-th.vue │ │ ├── uni-thead │ │ │ └── uni-thead.vue │ │ └── uni-tr │ │ │ ├── table-checkbox.vue │ │ │ └── uni-tr.vue │ ├── i18n │ │ ├── en.json │ │ ├── es.json │ │ ├── fr.json │ │ ├── index.js │ │ ├── zh-Hans.json │ │ └── zh-Hant.json │ ├── package.json │ └── readme.md ├── uni-tag │ ├── changelog.md │ ├── components │ │ └── uni-tag │ │ │ └── uni-tag.vue │ ├── package.json │ └── readme.md ├── uni-title │ ├── changelog.md │ ├── components │ │ └── uni-title │ │ │ └── uni-title.vue │ ├── package.json │ └── readme.md ├── uni-transition │ ├── changelog.md │ ├── components │ │ └── uni-transition │ │ │ ├── createAnimation.js │ │ │ └── uni-transition.vue │ ├── package.json │ └── readme.md └── uni-ui │ ├── changelog.md │ ├── components │ └── uni-ui │ │ └── uni-ui.vue │ ├── package.json │ └── readme.md └── utils └── request.js /.gitignore: -------------------------------------------------------------------------------- 1 | unpackage/ 2 | node_modules/ 3 | dist/ 4 | .hbuilderx/ 5 | 6 | package-lock.json -------------------------------------------------------------------------------- /.hbuilderx/launch.json: -------------------------------------------------------------------------------- 1 | { // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ 2 | // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 3 | "version": "0.0", 4 | "configurations": [{ 5 | "default" : 6 | { 7 | "launchtype" : "local" 8 | }, 9 | "h5" : 10 | { 11 | "launchtype" : "local" 12 | }, 13 | "mp-weixin" : 14 | { 15 | "launchtype" : "local" 16 | }, 17 | "type" : "uniCloud" 18 | } 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## 预览 4 | 5 | 预览地址: [http://app.youlai.tech](http://app.youlai.tech/) 6 | 7 | | ![](https://s2.loli.net/2023/06/09/VkYxOTAj9h417v6.jpg) | ![](https://s2.loli.net/2023/06/09/YaWQkxz9Z2uXbtE.jpg) | 8 | | ------------------------------------------------------- | ------------------------------------------------------- | 9 | | ![](https://s2.loli.net/2023/06/09/YXFI7DhNQHBt6ce.jpg) | ![](https://s2.loli.net/2023/06/09/eTXSUjOg9R175DQ.jpg) | 10 | 11 | 12 | 13 | 14 | ## 启动 15 | ### H5 启动 16 | 17 | 1. 下载 [ HBuilder X](https://www.dcloud.io/hbuilderx.html) 18 | 2. `Hbuilder X`工具栏点击 `运行`->`运行到内置浏览器` (运行到外置浏览器会有跨域限制,推荐内置浏览器访问) 19 | 20 | 21 | ### 微信小程序 22 | 23 | 1. 下载 [ HBuilder X](https://www.dcloud.io/hbuilderx.html) 和 [微信开发者工具](https://developers.weixin.qq.com/miniprogram/dev/devtools/stable.html) 24 | 2. [微信公众平台](https://mp.weixin.qq.com/)申请小程序,获得小程序的 AppID 25 | 3. `微信开发者工具`微信扫码登录,开启服务端口,点击工具栏`设置`->`安全设置`->`安全`->`服务端口`选择打开 26 | 4. `Hbuilder X`替换项目AppID 成您刚申请的,点击`manifest.json`文件->微信小程序配置 27 | 5. Nacos 控制台修改`youlai-auth`配置中的微信小程序 AppID 和 AppSecret 为自己申请的小程序 28 | 6. `Hbuilder X`工具栏点击 `运行`->`运行到小程序模拟器`->`微信开发者工具` 29 | 30 | 31 | 32 | ## 接口 33 | 34 | 默认使用线上接口地址(https://api.youlai.tech),如果在本地部署 [youlai-mall](https://gitee.com/youlaitech/youlai-mall) 且想使用本地接口开发调试,请修改 `utils/request.js` 的接口地址 `baseURL ` 为 http://localhost:9999 即可。 35 | 36 | ![](https://s2.loli.net/2023/06/09/ruzqRBj4mE2CfXK.png) 37 | 38 | 39 | ## 交流群🚀 40 | 41 | > 关注「有来技术」公众号,获取交流群二维码。 42 | > 43 | > 如果交流群的二维码过期,加我微信,备注「前端」、「后端」或「全栈」即可。 44 | > 45 | > 为了避免营销广告人群混入,此举无奈,望理解! 46 | 47 | 48 | |公众号|交流群| 49 | |-|-| 50 | ||| 51 | 52 | -------------------------------------------------------------------------------- /api/oms/cart.js: -------------------------------------------------------------------------------- 1 | import request from '@/utils/request' 2 | 3 | 4 | // 查询购物车 5 | export function getCart() { 6 | return request({ 7 | url: '/mall-oms/app-api/v1/carts', 8 | method: 'get', 9 | headers: { 10 | 'auth': true // 需要认证 11 | } 12 | }) 13 | } 14 | 15 | /** 16 | * 全选/全不选 17 | * @param {Object} params 18 | */ 19 | export function checkAll(params) { 20 | return request({ 21 | url: '/mall-oms/app-api/v1/carts/_check', 22 | method: 'patch', 23 | params: params, 24 | headers: { 25 | 'auth': true 26 | } 27 | }) 28 | } 29 | 30 | 31 | // 清空购物车 32 | export function deleteCart() { 33 | return request({ 34 | url: '/mall-oms/app-api/v1/carts', 35 | method: 'delete', 36 | headers: { 37 | 'auth': true 38 | } 39 | }) 40 | } 41 | 42 | 43 | // 添加购物车 44 | export function addCartItem(skuId) { 45 | return request({ 46 | url: '/mall-oms/app-api/v1/carts', 47 | method: 'post', 48 | params: { 49 | skuId: skuId 50 | }, 51 | headers: { 52 | 'auth': true 53 | } 54 | }) 55 | } 56 | 57 | // 更新购物车商品 58 | export function updateCartItem(skuId, data) { 59 | return request({ 60 | url: '/mall-oms/app-api/v1/carts/skuId/' + skuId, 61 | method: 'put', 62 | data: data, 63 | headers: { 64 | 'auth': true 65 | } 66 | }) 67 | } 68 | 69 | 70 | // 批量删除购物车商品 71 | export function removeCartItem(skuId) { 72 | return request({ 73 | url: '/mall-oms/app-api/v1/carts/skuId/' + skuId, 74 | method: 'delete', 75 | headers: { 76 | 'auth': true 77 | } 78 | }) 79 | } 80 | -------------------------------------------------------------------------------- /api/oms/order.js: -------------------------------------------------------------------------------- 1 | import request from '@/utils/request' 2 | 3 | // 订单列表 4 | export function listOrdersWithPage(params) { 5 | return request({ 6 | url: '/mall-oms/api/v1/orders', 7 | method: 'get', 8 | params: params, 9 | headers: { 10 | 'auth': true // 需要认证 11 | } 12 | }) 13 | } 14 | 15 | // 订单确认 16 | export function confirm(skuId) { 17 | return request({ 18 | url: '/mall-oms/app-api/v1/orders/confirm', 19 | method: 'post', 20 | params: { 21 | skuId: skuId 22 | }, 23 | headers: { 24 | 'auth': true // 需要认证 25 | } 26 | }) 27 | } 28 | 29 | // 订单提交 30 | export function submit(data) { 31 | return request({ 32 | url: '/mall-oms/app-api/v1/orders/submit', 33 | method: 'post', 34 | data: data, 35 | headers: { 36 | 'auth': true // 需要认证 37 | } 38 | }) 39 | } 40 | 41 | // 订单支付 42 | export function pay(data) { 43 | return request({ 44 | url: '/mall-oms/app-api/v1/orders/payment', 45 | method: 'post', 46 | data:data, 47 | headers: { 48 | 'auth': true // 需要认证 49 | } 50 | }) 51 | } 52 | 53 | // 取消订单 54 | export function cancelOrder(orderId) { 55 | return request({ 56 | url: '/mall-oms/app-api/v1/orders/cancel', 57 | method: 'put', 58 | params: { 59 | id: orderId 60 | }, 61 | headers: { 62 | 'auth': true // 需要认证 63 | } 64 | }) 65 | } 66 | 67 | // 删除订单 68 | export function deleteOrder(orderId) { 69 | return request({ 70 | url: '/mall-oms/app-api/v1/orders/' + orderId, 71 | method: 'delete', 72 | headers: { 73 | 'auth': true // 需要认证 74 | } 75 | }) 76 | } 77 | -------------------------------------------------------------------------------- /api/pms/category.js: -------------------------------------------------------------------------------- 1 | import request from '@/utils/request' 2 | 3 | export function getCategoryList(parentId) { 4 | return request({ 5 | url: '/mall-pms/app-api/v1/categories', 6 | method: 'get', 7 | params: { 8 | parentId: parentId 9 | } 10 | }) 11 | } 12 | -------------------------------------------------------------------------------- /api/pms/goods.js: -------------------------------------------------------------------------------- 1 | import request from '@/utils/request' 2 | 3 | /** 4 | * 获取商品分页列表 5 | * 6 | * @param {Object} params 7 | */ 8 | export function listSpuPages(params) { 9 | return request({ 10 | url: '/mall-pms/app-api/v1/spu/pages', 11 | method: 'get', 12 | params: params 13 | }) 14 | } 15 | 16 | /** 17 | * 获取秒杀商品列表 18 | * 19 | * @param {Object} params 20 | */ 21 | export function listSeckillingSpus() { 22 | return request({ 23 | url: '/mall-pms/app-api/v1/spu/seckilling', 24 | method: 'get', 25 | }) 26 | } 27 | 28 | /** 29 | * 获取商品详情 30 | * 31 | * @param {Object} spuId 32 | */ 33 | export function getSpuDetail(spuId) { 34 | return request({ 35 | url: '/mall-pms/app-api/v1/spu/' + spuId, 36 | method: 'get' 37 | }) 38 | } 39 | 40 | -------------------------------------------------------------------------------- /api/sms/advert.js: -------------------------------------------------------------------------------- 1 | 2 | import request from '@/utils/request' 3 | 4 | export function getAdvertList() { 5 | return request({ 6 | url: '/mall-sms/app-api/v1/adverts/banners', 7 | method: 'get' 8 | }) 9 | } 10 | -------------------------------------------------------------------------------- /api/ums/address.js: -------------------------------------------------------------------------------- 1 | import request from '@/utils/request' 2 | 3 | export function list(memberId) { 4 | return request({ 5 | url: '/mall-ums/app-api/v1/addresses', 6 | method: 'get', 7 | params: { 8 | memberId: memberId 9 | }, 10 | headers: { 11 | 'auth': true // 需要认证 12 | } 13 | }) 14 | } 15 | 16 | 17 | export function add(data) { 18 | return request({ 19 | url: '/mall-ums/app-api/v1/addresses', 20 | method: 'post', 21 | data: data, 22 | headers: { 23 | 'auth': true // 需要认证 24 | } 25 | }) 26 | } 27 | 28 | 29 | export function update(id, data) { 30 | return request({ 31 | url: '/mall-ums/app-api/v1/addresses/' + id, 32 | method: 'put', 33 | data: data, 34 | headers: { 35 | 'auth': true // 需要认证 36 | } 37 | }) 38 | } 39 | -------------------------------------------------------------------------------- /api/user.js: -------------------------------------------------------------------------------- 1 | /** 2 | * 用户相关api 3 | */ 4 | import request from '@/utils/request' 5 | 6 | // 小程序授权登录 7 | // #ifdef MP 8 | export function login(code) { 9 | return request({ 10 | url: '/youlai-auth/oauth2/token', 11 | method: 'post', 12 | params: { 13 | code: code, 14 | grant_type: 'wx_mini_app' 15 | }, 16 | headers: { 17 | 'Authorization': 'Basic bWFsbC1hcHA6MTIzNDU2' // 客户端信息Base64加密,明文:mall-app:123456 18 | } 19 | }) 20 | } 21 | // #endif 22 | 23 | // H5/Android/IOS 手机短信验证码登录 24 | // #ifndef MP 25 | export function login(mobile, code) { 26 | return request({ 27 | url: '/youlai-auth/oauth2/token', 28 | method: 'post', 29 | params: { 30 | mobile: mobile, 31 | code: code, 32 | grant_type: 'sms' 33 | }, 34 | headers: { 35 | 'Authorization': 'Basic bWFsbC1hcHA6MTIzNDU2' // 客户端信息Base64加密,明文:mall-app:123456 36 | } 37 | }) 38 | } 39 | // #endif 40 | 41 | 42 | 43 | export function logout() { 44 | return request({ 45 | url: '/youlai-auth/oauth/logout', 46 | method: 'delete', 47 | headers: { 48 | 'auth': true // 需要认证,通过 49 | } 50 | }) 51 | } 52 | 53 | export function getUserInfo() { 54 | return request({ 55 | url: '/mall-ums/app-api/v1/members/me', 56 | method: 'get', 57 | headers: { 58 | 'auth': true 59 | } 60 | }) 61 | } 62 | 63 | export function sendSmsCode(phoneNumber) { 64 | return request({ 65 | url: '/youlai-auth/sms-code', 66 | method: 'post', 67 | params: { 68 | phoneNumber: phoneNumber 69 | } 70 | }) 71 | } -------------------------------------------------------------------------------- /filters/index.js: -------------------------------------------------------------------------------- 1 | 2 | /** 3 | * 金额转换(分->元) 4 | * 100 => 1 5 | * @param {number} num 6 | */ 7 | export function moneyFormatter(num) { 8 | return (isNaN(num) ? 0.00 : parseFloat((num / 100).toFixed(2))) 9 | } 10 | -------------------------------------------------------------------------------- /main.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import store from './store' 3 | import App from './App' 4 | 5 | import Json from './Json' //测试用数据 6 | import * as filters from './filters' // global filters 7 | 8 | 9 | const msg = (title, duration=1500, mask=false, icon='none')=>{ 10 | //统一提示方便全局修改 11 | if(Boolean(title) === false){ 12 | return; 13 | } 14 | uni.showToast({ 15 | title, 16 | duration, 17 | mask, 18 | icon 19 | }); 20 | } 21 | const json = type=>{ 22 | //模拟异步请求数据 23 | return new Promise(resolve=>{ 24 | setTimeout(()=>{ 25 | resolve(Json[type]); 26 | }, 500) 27 | }) 28 | } 29 | 30 | const prePage = ()=>{ 31 | let pages = getCurrentPages(); 32 | let prePage = pages[pages.length - 2]; 33 | // #ifdef H5 34 | return prePage; 35 | // #endif 36 | return prePage.$vm; 37 | } 38 | 39 | Vue.config.productionTip = false 40 | Vue.prototype.$fire = new Vue(); 41 | Vue.prototype.$store = store; 42 | Vue.prototype.$api = {msg, json, prePage}; 43 | 44 | 45 | 46 | App.mpType = 'app' 47 | 48 | const app = new Vue({ 49 | ...App 50 | }) 51 | app.$mount() 52 | 53 | // register global utility filters 54 | Object.keys(filters).forEach(key => { 55 | Vue.filter(key, filters[key]) 56 | }) 57 | -------------------------------------------------------------------------------- /node_modules/axios/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2014-present Matt Zabriskie 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /node_modules/axios/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/axios'); -------------------------------------------------------------------------------- /node_modules/axios/lib/adapters/README.md: -------------------------------------------------------------------------------- 1 | # axios // adapters 2 | 3 | The modules under `adapters/` are modules that handle dispatching a request and settling a returned `Promise` once a response is received. 4 | 5 | ## Example 6 | 7 | ```js 8 | var settle = require('./../core/settle'); 9 | 10 | module.exports = function myAdapter(config) { 11 | // At this point: 12 | // - config has been merged with defaults 13 | // - request transformers have already run 14 | // - request interceptors have already run 15 | 16 | // Make the request using config provided 17 | // Upon response settle the Promise 18 | 19 | return new Promise(function(resolve, reject) { 20 | 21 | var response = { 22 | data: responseData, 23 | status: request.status, 24 | statusText: request.statusText, 25 | headers: responseHeaders, 26 | config: config, 27 | request: request 28 | }; 29 | 30 | settle(resolve, reject, response); 31 | 32 | // From here: 33 | // - response transformers will run 34 | // - response interceptors will run 35 | }); 36 | } 37 | ``` 38 | -------------------------------------------------------------------------------- /node_modules/axios/lib/axios.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./utils'); 4 | var bind = require('./helpers/bind'); 5 | var Axios = require('./core/Axios'); 6 | var mergeConfig = require('./core/mergeConfig'); 7 | var defaults = require('./defaults'); 8 | 9 | /** 10 | * Create an instance of Axios 11 | * 12 | * @param {Object} defaultConfig The default config for the instance 13 | * @return {Axios} A new instance of Axios 14 | */ 15 | function createInstance(defaultConfig) { 16 | var context = new Axios(defaultConfig); 17 | var instance = bind(Axios.prototype.request, context); 18 | 19 | // Copy axios.prototype to instance 20 | utils.extend(instance, Axios.prototype, context); 21 | 22 | // Copy context to instance 23 | utils.extend(instance, context); 24 | 25 | return instance; 26 | } 27 | 28 | // Create the default instance to be exported 29 | var axios = createInstance(defaults); 30 | 31 | // Expose Axios class to allow class inheritance 32 | axios.Axios = Axios; 33 | 34 | // Factory for creating new instances 35 | axios.create = function create(instanceConfig) { 36 | return createInstance(mergeConfig(axios.defaults, instanceConfig)); 37 | }; 38 | 39 | // Expose Cancel & CancelToken 40 | axios.Cancel = require('./cancel/Cancel'); 41 | axios.CancelToken = require('./cancel/CancelToken'); 42 | axios.isCancel = require('./cancel/isCancel'); 43 | 44 | // Expose all/spread 45 | axios.all = function all(promises) { 46 | return Promise.all(promises); 47 | }; 48 | axios.spread = require('./helpers/spread'); 49 | 50 | module.exports = axios; 51 | 52 | // Allow use of default import syntax in TypeScript 53 | module.exports.default = axios; 54 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/Cancel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * A `Cancel` is an object that is thrown when an operation is canceled. 5 | * 6 | * @class 7 | * @param {string=} message The message. 8 | */ 9 | function Cancel(message) { 10 | this.message = message; 11 | } 12 | 13 | Cancel.prototype.toString = function toString() { 14 | return 'Cancel' + (this.message ? ': ' + this.message : ''); 15 | }; 16 | 17 | Cancel.prototype.__CANCEL__ = true; 18 | 19 | module.exports = Cancel; 20 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/CancelToken.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Cancel = require('./Cancel'); 4 | 5 | /** 6 | * A `CancelToken` is an object that can be used to request cancellation of an operation. 7 | * 8 | * @class 9 | * @param {Function} executor The executor function. 10 | */ 11 | function CancelToken(executor) { 12 | if (typeof executor !== 'function') { 13 | throw new TypeError('executor must be a function.'); 14 | } 15 | 16 | var resolvePromise; 17 | this.promise = new Promise(function promiseExecutor(resolve) { 18 | resolvePromise = resolve; 19 | }); 20 | 21 | var token = this; 22 | executor(function cancel(message) { 23 | if (token.reason) { 24 | // Cancellation has already been requested 25 | return; 26 | } 27 | 28 | token.reason = new Cancel(message); 29 | resolvePromise(token.reason); 30 | }); 31 | } 32 | 33 | /** 34 | * Throws a `Cancel` if cancellation has been requested. 35 | */ 36 | CancelToken.prototype.throwIfRequested = function throwIfRequested() { 37 | if (this.reason) { 38 | throw this.reason; 39 | } 40 | }; 41 | 42 | /** 43 | * Returns an object that contains a new `CancelToken` and a function that, when called, 44 | * cancels the `CancelToken`. 45 | */ 46 | CancelToken.source = function source() { 47 | var cancel; 48 | var token = new CancelToken(function executor(c) { 49 | cancel = c; 50 | }); 51 | return { 52 | token: token, 53 | cancel: cancel 54 | }; 55 | }; 56 | 57 | module.exports = CancelToken; 58 | -------------------------------------------------------------------------------- /node_modules/axios/lib/cancel/isCancel.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function isCancel(value) { 4 | return !!(value && value.__CANCEL__); 5 | }; 6 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/InterceptorManager.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | function InterceptorManager() { 6 | this.handlers = []; 7 | } 8 | 9 | /** 10 | * Add a new interceptor to the stack 11 | * 12 | * @param {Function} fulfilled The function to handle `then` for a `Promise` 13 | * @param {Function} rejected The function to handle `reject` for a `Promise` 14 | * 15 | * @return {Number} An ID used to remove interceptor later 16 | */ 17 | InterceptorManager.prototype.use = function use(fulfilled, rejected) { 18 | this.handlers.push({ 19 | fulfilled: fulfilled, 20 | rejected: rejected 21 | }); 22 | return this.handlers.length - 1; 23 | }; 24 | 25 | /** 26 | * Remove an interceptor from the stack 27 | * 28 | * @param {Number} id The ID that was returned by `use` 29 | */ 30 | InterceptorManager.prototype.eject = function eject(id) { 31 | if (this.handlers[id]) { 32 | this.handlers[id] = null; 33 | } 34 | }; 35 | 36 | /** 37 | * Iterate over all the registered interceptors 38 | * 39 | * This method is particularly useful for skipping over any 40 | * interceptors that may have become `null` calling `eject`. 41 | * 42 | * @param {Function} fn The function to call for each interceptor 43 | */ 44 | InterceptorManager.prototype.forEach = function forEach(fn) { 45 | utils.forEach(this.handlers, function forEachHandler(h) { 46 | if (h !== null) { 47 | fn(h); 48 | } 49 | }); 50 | }; 51 | 52 | module.exports = InterceptorManager; 53 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/README.md: -------------------------------------------------------------------------------- 1 | # axios // core 2 | 3 | The modules found in `core/` should be modules that are specific to the domain logic of axios. These modules would most likely not make sense to be consumed outside of the axios module, as their logic is too specific. Some examples of core modules are: 4 | 5 | - Dispatching requests 6 | - Managing interceptors 7 | - Handling config 8 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/buildFullPath.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var isAbsoluteURL = require('../helpers/isAbsoluteURL'); 4 | var combineURLs = require('../helpers/combineURLs'); 5 | 6 | /** 7 | * Creates a new URL by combining the baseURL with the requestedURL, 8 | * only when the requestedURL is not already an absolute URL. 9 | * If the requestURL is absolute, this function returns the requestedURL untouched. 10 | * 11 | * @param {string} baseURL The base URL 12 | * @param {string} requestedURL Absolute or relative URL to combine 13 | * @returns {string} The combined full path 14 | */ 15 | module.exports = function buildFullPath(baseURL, requestedURL) { 16 | if (baseURL && !isAbsoluteURL(requestedURL)) { 17 | return combineURLs(baseURL, requestedURL); 18 | } 19 | return requestedURL; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/createError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var enhanceError = require('./enhanceError'); 4 | 5 | /** 6 | * Create an Error with the specified message, config, error code, request and response. 7 | * 8 | * @param {string} message The error message. 9 | * @param {Object} config The config. 10 | * @param {string} [code] The error code (for example, 'ECONNABORTED'). 11 | * @param {Object} [request] The request. 12 | * @param {Object} [response] The response. 13 | * @returns {Error} The created error. 14 | */ 15 | module.exports = function createError(message, config, code, request, response) { 16 | var error = new Error(message); 17 | return enhanceError(error, config, code, request, response); 18 | }; 19 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/enhanceError.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Update an Error with the specified config, error code, and response. 5 | * 6 | * @param {Error} error The error to update. 7 | * @param {Object} config The config. 8 | * @param {string} [code] The error code (for example, 'ECONNABORTED'). 9 | * @param {Object} [request] The request. 10 | * @param {Object} [response] The response. 11 | * @returns {Error} The error. 12 | */ 13 | module.exports = function enhanceError(error, config, code, request, response) { 14 | error.config = config; 15 | if (code) { 16 | error.code = code; 17 | } 18 | 19 | error.request = request; 20 | error.response = response; 21 | error.isAxiosError = true; 22 | 23 | error.toJSON = function toJSON() { 24 | return { 25 | // Standard 26 | message: this.message, 27 | name: this.name, 28 | // Microsoft 29 | description: this.description, 30 | number: this.number, 31 | // Mozilla 32 | fileName: this.fileName, 33 | lineNumber: this.lineNumber, 34 | columnNumber: this.columnNumber, 35 | stack: this.stack, 36 | // Axios 37 | config: this.config, 38 | code: this.code 39 | }; 40 | }; 41 | return error; 42 | }; 43 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/settle.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var createError = require('./createError'); 4 | 5 | /** 6 | * Resolve or reject a Promise based on response status. 7 | * 8 | * @param {Function} resolve A function that resolves the promise. 9 | * @param {Function} reject A function that rejects the promise. 10 | * @param {object} response The response. 11 | */ 12 | module.exports = function settle(resolve, reject, response) { 13 | var validateStatus = response.config.validateStatus; 14 | if (!response.status || !validateStatus || validateStatus(response.status)) { 15 | resolve(response); 16 | } else { 17 | reject(createError( 18 | 'Request failed with status code ' + response.status, 19 | response.config, 20 | null, 21 | response.request, 22 | response 23 | )); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /node_modules/axios/lib/core/transformData.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | /** 6 | * Transform the data for a request or a response 7 | * 8 | * @param {Object|String} data The data to be transformed 9 | * @param {Array} headers The headers for the request or response 10 | * @param {Array|Function} fns A single function or Array of functions 11 | * @returns {*} The resulting transformed data 12 | */ 13 | module.exports = function transformData(data, headers, fns) { 14 | /*eslint no-param-reassign:0*/ 15 | utils.forEach(fns, function transform(fn) { 16 | data = fn(data, headers); 17 | }); 18 | 19 | return data; 20 | }; 21 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/README.md: -------------------------------------------------------------------------------- 1 | # axios // helpers 2 | 3 | The modules found in `helpers/` should be generic modules that are _not_ specific to the domain logic of axios. These modules could theoretically be published to npm on their own and consumed by other modules or apps. Some examples of generic modules are things like: 4 | 5 | - Browser polyfills 6 | - Managing cookies 7 | - Parsing HTTP headers 8 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/bind.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = function bind(fn, thisArg) { 4 | return function wrap() { 5 | var args = new Array(arguments.length); 6 | for (var i = 0; i < args.length; i++) { 7 | args[i] = arguments[i]; 8 | } 9 | return fn.apply(thisArg, args); 10 | }; 11 | }; 12 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/buildURL.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | function encode(val) { 6 | return encodeURIComponent(val). 7 | replace(/%3A/gi, ':'). 8 | replace(/%24/g, '$'). 9 | replace(/%2C/gi, ','). 10 | replace(/%20/g, '+'). 11 | replace(/%5B/gi, '['). 12 | replace(/%5D/gi, ']'); 13 | } 14 | 15 | /** 16 | * Build a URL by appending params to the end 17 | * 18 | * @param {string} url The base of the url (e.g., http://www.google.com) 19 | * @param {object} [params] The params to be appended 20 | * @returns {string} The formatted url 21 | */ 22 | module.exports = function buildURL(url, params, paramsSerializer) { 23 | /*eslint no-param-reassign:0*/ 24 | if (!params) { 25 | return url; 26 | } 27 | 28 | var serializedParams; 29 | if (paramsSerializer) { 30 | serializedParams = paramsSerializer(params); 31 | } else if (utils.isURLSearchParams(params)) { 32 | serializedParams = params.toString(); 33 | } else { 34 | var parts = []; 35 | 36 | utils.forEach(params, function serialize(val, key) { 37 | if (val === null || typeof val === 'undefined') { 38 | return; 39 | } 40 | 41 | if (utils.isArray(val)) { 42 | key = key + '[]'; 43 | } else { 44 | val = [val]; 45 | } 46 | 47 | utils.forEach(val, function parseValue(v) { 48 | if (utils.isDate(v)) { 49 | v = v.toISOString(); 50 | } else if (utils.isObject(v)) { 51 | v = JSON.stringify(v); 52 | } 53 | parts.push(encode(key) + '=' + encode(v)); 54 | }); 55 | }); 56 | 57 | serializedParams = parts.join('&'); 58 | } 59 | 60 | if (serializedParams) { 61 | var hashmarkIndex = url.indexOf('#'); 62 | if (hashmarkIndex !== -1) { 63 | url = url.slice(0, hashmarkIndex); 64 | } 65 | 66 | url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams; 67 | } 68 | 69 | return url; 70 | }; 71 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/combineURLs.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Creates a new URL by combining the specified URLs 5 | * 6 | * @param {string} baseURL The base URL 7 | * @param {string} relativeURL The relative URL 8 | * @returns {string} The combined URL 9 | */ 10 | module.exports = function combineURLs(baseURL, relativeURL) { 11 | return relativeURL 12 | ? baseURL.replace(/\/+$/, '') + '/' + relativeURL.replace(/^\/+/, '') 13 | : baseURL; 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/cookies.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | module.exports = ( 6 | utils.isStandardBrowserEnv() ? 7 | 8 | // Standard browser envs support document.cookie 9 | (function standardBrowserEnv() { 10 | return { 11 | write: function write(name, value, expires, path, domain, secure) { 12 | var cookie = []; 13 | cookie.push(name + '=' + encodeURIComponent(value)); 14 | 15 | if (utils.isNumber(expires)) { 16 | cookie.push('expires=' + new Date(expires).toGMTString()); 17 | } 18 | 19 | if (utils.isString(path)) { 20 | cookie.push('path=' + path); 21 | } 22 | 23 | if (utils.isString(domain)) { 24 | cookie.push('domain=' + domain); 25 | } 26 | 27 | if (secure === true) { 28 | cookie.push('secure'); 29 | } 30 | 31 | document.cookie = cookie.join('; '); 32 | }, 33 | 34 | read: function read(name) { 35 | var match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); 36 | return (match ? decodeURIComponent(match[3]) : null); 37 | }, 38 | 39 | remove: function remove(name) { 40 | this.write(name, '', Date.now() - 86400000); 41 | } 42 | }; 43 | })() : 44 | 45 | // Non standard browser env (web workers, react-native) lack needed support. 46 | (function nonStandardBrowserEnv() { 47 | return { 48 | write: function write() {}, 49 | read: function read() { return null; }, 50 | remove: function remove() {} 51 | }; 52 | })() 53 | ); 54 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/deprecatedMethod.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /*eslint no-console:0*/ 4 | 5 | /** 6 | * Supply a warning to the developer that a method they are using 7 | * has been deprecated. 8 | * 9 | * @param {string} method The name of the deprecated method 10 | * @param {string} [instead] The alternate method to use if applicable 11 | * @param {string} [docs] The documentation URL to get further details 12 | */ 13 | module.exports = function deprecatedMethod(method, instead, docs) { 14 | try { 15 | console.warn( 16 | 'DEPRECATED method `' + method + '`.' + 17 | (instead ? ' Use `' + instead + '` instead.' : '') + 18 | ' This method will be removed in a future release.'); 19 | 20 | if (docs) { 21 | console.warn('For more information about usage see ' + docs); 22 | } 23 | } catch (e) { /* Ignore */ } 24 | }; 25 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/isAbsoluteURL.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Determines whether the specified URL is absolute 5 | * 6 | * @param {string} url The URL to test 7 | * @returns {boolean} True if the specified URL is absolute, otherwise false 8 | */ 9 | module.exports = function isAbsoluteURL(url) { 10 | // A URL is considered absolute if it begins with "://" or "//" (protocol-relative URL). 11 | // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed 12 | // by any combination of letters, digits, plus, period, or hyphen. 13 | return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url); 14 | }; 15 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/normalizeHeaderName.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('../utils'); 4 | 5 | module.exports = function normalizeHeaderName(headers, normalizedName) { 6 | utils.forEach(headers, function processHeader(value, name) { 7 | if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) { 8 | headers[normalizedName] = value; 9 | delete headers[name]; 10 | } 11 | }); 12 | }; 13 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/parseHeaders.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var utils = require('./../utils'); 4 | 5 | // Headers whose duplicates are ignored by node 6 | // c.f. https://nodejs.org/api/http.html#http_message_headers 7 | var ignoreDuplicateOf = [ 8 | 'age', 'authorization', 'content-length', 'content-type', 'etag', 9 | 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since', 10 | 'last-modified', 'location', 'max-forwards', 'proxy-authorization', 11 | 'referer', 'retry-after', 'user-agent' 12 | ]; 13 | 14 | /** 15 | * Parse headers into an object 16 | * 17 | * ``` 18 | * Date: Wed, 27 Aug 2014 08:58:49 GMT 19 | * Content-Type: application/json 20 | * Connection: keep-alive 21 | * Transfer-Encoding: chunked 22 | * ``` 23 | * 24 | * @param {String} headers Headers needing to be parsed 25 | * @returns {Object} Headers parsed into an object 26 | */ 27 | module.exports = function parseHeaders(headers) { 28 | var parsed = {}; 29 | var key; 30 | var val; 31 | var i; 32 | 33 | if (!headers) { return parsed; } 34 | 35 | utils.forEach(headers.split('\n'), function parser(line) { 36 | i = line.indexOf(':'); 37 | key = utils.trim(line.substr(0, i)).toLowerCase(); 38 | val = utils.trim(line.substr(i + 1)); 39 | 40 | if (key) { 41 | if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) { 42 | return; 43 | } 44 | if (key === 'set-cookie') { 45 | parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]); 46 | } else { 47 | parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val; 48 | } 49 | } 50 | }); 51 | 52 | return parsed; 53 | }; 54 | -------------------------------------------------------------------------------- /node_modules/axios/lib/helpers/spread.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * Syntactic sugar for invoking a function and expanding an array for arguments. 5 | * 6 | * Common use case would be to use `Function.prototype.apply`. 7 | * 8 | * ```js 9 | * function f(x, y, z) {} 10 | * var args = [1, 2, 3]; 11 | * f.apply(null, args); 12 | * ``` 13 | * 14 | * With `spread` this example can be re-written. 15 | * 16 | * ```js 17 | * spread(function(x, y, z) {})([1, 2, 3]); 18 | * ``` 19 | * 20 | * @param {Function} callback 21 | * @returns {Function} 22 | */ 23 | module.exports = function spread(callback) { 24 | return function wrap(arr) { 25 | return callback.apply(null, arr); 26 | }; 27 | }; 28 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2014–present Olivier Lalonde , James Talmage , Ruben Verborgh 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of 4 | this software and associated documentation files (the "Software"), to deal in 5 | the Software without restriction, including without limitation the rights to 6 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 7 | of the Software, and to permit persons to whom the Software is furnished to do 8 | so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all 11 | copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 17 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR 18 | IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 19 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/debug.js: -------------------------------------------------------------------------------- 1 | var debug; 2 | try { 3 | /* eslint global-require: off */ 4 | debug = require("debug")("follow-redirects"); 5 | } 6 | catch (error) { 7 | debug = function () { /* */ }; 8 | } 9 | module.exports = debug; 10 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/http.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./").http; 2 | -------------------------------------------------------------------------------- /node_modules/follow-redirects/https.js: -------------------------------------------------------------------------------- 1 | module.exports = require("./").https; 2 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "requires": true, 3 | "lockfileVersion": 1, 4 | "dependencies": { 5 | "axios": { 6 | "version": "0.20.0", 7 | "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.20.0.tgz?cache=0&sync_timestamp=1597979791211&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.20.0.tgz", 8 | "integrity": "sha1-BXujDwSIRpSZOozQf6OUz/EcUL0=", 9 | "requires": { 10 | "follow-redirects": "^1.10.0" 11 | } 12 | }, 13 | "follow-redirects": { 14 | "version": "1.13.0", 15 | "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.13.0.tgz?cache=0&sync_timestamp=1597057997789&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.13.0.tgz", 16 | "integrity": "sha1-tC6Nk6Kn7qXtiGM2dtZZe8jjhNs=" 17 | }, 18 | "vconsole": { 19 | "version": "3.3.4", 20 | "resolved": "https://registry.npm.taobao.org/vconsole/download/vconsole-3.3.4.tgz", 21 | "integrity": "sha1-p9rNiIez0+kC6NGEJc2lbDTnf1E=" 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /pages/money/money.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 19 | 20 | 23 | -------------------------------------------------------------------------------- /pages/money/paySuccess.vue: -------------------------------------------------------------------------------- 1 | 12 | 13 | 25 | 26 | 63 | -------------------------------------------------------------------------------- /pages/userinfo/userinfo.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 30 | 31 | 87 | -------------------------------------------------------------------------------- /project.config.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "项目配置文件", 3 | "packOptions": { 4 | "ignore": [] 5 | }, 6 | "setting": { 7 | "urlCheck": true, 8 | "es6": true, 9 | "enhance": false, 10 | "postcss": true, 11 | "preloadBackgroundData": false, 12 | "minified": true, 13 | "newFeature": false, 14 | "coverView": true, 15 | "nodeModules": false, 16 | "autoAudits": false, 17 | "showShadowRootInWxmlPanel": true, 18 | "scopeDataCheck": false, 19 | "uglifyFileName": false, 20 | "checkInvalidKey": true, 21 | "checkSiteMap": true, 22 | "uploadWithSourceMap": true, 23 | "compileHotReLoad": false, 24 | "useMultiFrameRuntime": false, 25 | "useApiHook": true, 26 | "babelSetting": { 27 | "ignore": [], 28 | "disablePlugins": [], 29 | "outputPath": "" 30 | }, 31 | "enableEngineNative": false, 32 | "bundle": false, 33 | "useIsolateContext": true, 34 | "useCompilerModule": true, 35 | "userConfirmedUseCompilerModuleSwitch": false, 36 | "userConfirmedBundleSwitch": false, 37 | "packNpmManually": false, 38 | "packNpmRelationList": [], 39 | "minifyWXSS": true 40 | }, 41 | "compileType": "miniprogram", 42 | "libVersion": "2.14.1", 43 | "appid": "wx99a151dc43d2637b", 44 | "projectname": "youlai-mall-weapp", 45 | "debugOptions": { 46 | "hidedInDevtools": [] 47 | }, 48 | "scripts": {}, 49 | "isGameTourist": false, 50 | "simulatorType": "wechat", 51 | "simulatorPluginLibVersion": {}, 52 | "condition": { 53 | "search": { 54 | "list": [] 55 | }, 56 | "conversation": { 57 | "list": [] 58 | }, 59 | "game": { 60 | "list": [] 61 | }, 62 | "plugin": { 63 | "list": [] 64 | }, 65 | "gamePlugin": { 66 | "list": [] 67 | }, 68 | "miniprogram": { 69 | "list": [] 70 | } 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /static/arc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/arc.png -------------------------------------------------------------------------------- /static/emptyCart.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/emptyCart.jpg -------------------------------------------------------------------------------- /static/errorImage.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/errorImage.jpg -------------------------------------------------------------------------------- /static/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/logo.png -------------------------------------------------------------------------------- /static/missing-face.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/missing-face.png -------------------------------------------------------------------------------- /static/select.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/select.png -------------------------------------------------------------------------------- /static/selected.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/selected.png -------------------------------------------------------------------------------- /static/tab-cart-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-cart-current.png -------------------------------------------------------------------------------- /static/tab-cart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-cart.png -------------------------------------------------------------------------------- /static/tab-cate-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-cate-current.png -------------------------------------------------------------------------------- /static/tab-cate.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-cate.png -------------------------------------------------------------------------------- /static/tab-home-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-home-current.png -------------------------------------------------------------------------------- /static/tab-home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-home.png -------------------------------------------------------------------------------- /static/tab-my-current.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-my-current.png -------------------------------------------------------------------------------- /static/tab-my.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/tab-my.png -------------------------------------------------------------------------------- /static/temp/ad-splash.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/ad-splash.jpg -------------------------------------------------------------------------------- /static/temp/ad1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/ad1.jpg -------------------------------------------------------------------------------- /static/temp/ad2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/ad2.jpg -------------------------------------------------------------------------------- /static/temp/ad3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/ad3.jpg -------------------------------------------------------------------------------- /static/temp/banner1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/banner1.jpg -------------------------------------------------------------------------------- /static/temp/banner2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/banner2.jpg -------------------------------------------------------------------------------- /static/temp/banner3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/banner3.jpg -------------------------------------------------------------------------------- /static/temp/banner4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/banner4.jpg -------------------------------------------------------------------------------- /static/temp/c1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c1.png -------------------------------------------------------------------------------- /static/temp/c2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c2.png -------------------------------------------------------------------------------- /static/temp/c3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c3.png -------------------------------------------------------------------------------- /static/temp/c4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c4.png -------------------------------------------------------------------------------- /static/temp/c5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c5.png -------------------------------------------------------------------------------- /static/temp/c6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c6.png -------------------------------------------------------------------------------- /static/temp/c7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c7.png -------------------------------------------------------------------------------- /static/temp/c8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/c8.png -------------------------------------------------------------------------------- /static/temp/h1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/h1.png -------------------------------------------------------------------------------- /static/temp/secskill-img.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/secskill-img.jpg -------------------------------------------------------------------------------- /static/temp/share_moment.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/share_moment.png -------------------------------------------------------------------------------- /static/temp/share_qq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/share_qq.png -------------------------------------------------------------------------------- /static/temp/share_qqzone.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/share_qqzone.png -------------------------------------------------------------------------------- /static/temp/share_wechat.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/temp/share_wechat.png -------------------------------------------------------------------------------- /static/user-bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/user-bg.jpg -------------------------------------------------------------------------------- /static/vip-card-bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/vip-card-bg.png -------------------------------------------------------------------------------- /static/wxpay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/wxpay.png -------------------------------------------------------------------------------- /static/yticon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/yticon.ttf -------------------------------------------------------------------------------- /static/zfbpay.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/static/zfbpay.png -------------------------------------------------------------------------------- /store/getters.js: -------------------------------------------------------------------------------- 1 | const getters = { 2 | hasLogin: state => state.user.hasLogin, 3 | nickname: state => state.user.nickname, 4 | avatar: state => state.user.avatar, 5 | balance: state => state.user.balance, 6 | memberId: state => state.user.memberId 7 | } 8 | export default getters 9 | -------------------------------------------------------------------------------- /store/index.js: -------------------------------------------------------------------------------- 1 | import Vue from 'vue' 2 | import Vuex from 'vuex' 3 | import getters from './getters' 4 | 5 | Vue.use(Vuex) 6 | 7 | // https://webpack.js.org/guides/dependency-management/#requirecontext 8 | const modulesFiles = require.context('./modules', true, /\.js$/) 9 | 10 | // you do not need `import app from './modules/app'` 11 | // it will auto require all vuex module from modules file 12 | const modules = modulesFiles.keys().reduce((modules, modulePath) => { 13 | // set './app.js' => 'app' 14 | const moduleName = modulePath.replace(/^\.\/(.*)\.\w+$/, '$1') 15 | const value = modulesFiles(modulePath) 16 | modules[moduleName] = value.default 17 | return modules 18 | }, {}) 19 | 20 | const store = new Vuex.Store({ 21 | modules, 22 | getters 23 | }) 24 | 25 | export default store 26 | -------------------------------------------------------------------------------- /uni.scss: -------------------------------------------------------------------------------- 1 | 2 | /* 页面左右间距 */ 3 | $page-row-spacing: 30upx; 4 | $page-color-base: #f8f8f8; 5 | $page-color-light: #f8f6fc; 6 | $base-color: #fa436a; 7 | 8 | /* 文字尺寸 */ 9 | $font-sm: 24upx; 10 | $font-base: 28upx; 11 | $font-lg: 32upx; 12 | /*文字颜色*/ 13 | $font-color-dark: #303133; 14 | $font-color-base: #606266; 15 | $font-color-light: #909399; 16 | $font-color-disabled: #C0C4CC; 17 | $font-color-spec: #4399fc; 18 | /* 边框颜色 */ 19 | $border-color-dark: #DCDFE6; 20 | $border-color-base: #E4E7ED; 21 | $border-color-light: #EBEEF5; 22 | /* 图片加载中颜色 */ 23 | $image-bg-color: #eee; 24 | /* 行为相关颜色 */ 25 | $uni-color-primary:#fa436a; 26 | $uni-color-success: #4cd964; 27 | $uni-color-warning: #f0ad4e; 28 | $uni-color-error: #dd524d; 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /uni_modules/uni-badge/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-badge](https://uniapp.dcloud.io/component/uniui/uni-badge) 4 | ## 1.1.7(2021-11-08) 5 | - 优化 升级ui 6 | - 修改 size 属性默认值调整为 small 7 | - 修改 type 属性,默认值调整为 error,info 替换 default 8 | ## 1.1.6(2021-09-22) 9 | - 修复 在字节小程序上样式不生效的 bug 10 | ## 1.1.5(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.1.4(2021-07-29) 13 | - 修复 去掉 nvue 不支持css 的 align-self 属性,nvue 下不暂支持 absolute 属性 14 | ## 1.1.3(2021-06-24) 15 | - 优化 示例项目 16 | ## 1.1.1(2021-05-12) 17 | - 新增 组件示例地址 18 | ## 1.1.0(2021-05-12) 19 | - 新增 uni-badge 的 absolute 属性,支持定位 20 | - 新增 uni-badge 的 offset 属性,支持定位偏移 21 | - 新增 uni-badge 的 is-dot 属性,支持仅显示有一个小点 22 | - 新增 uni-badge 的 max-num 属性,支持自定义封顶的数字值,超过 99 显示99+ 23 | - 优化 uni-badge 属性 custom-style, 支持以对象形式自定义样式 24 | ## 1.0.7(2021-05-07) 25 | - 修复 uni-badge 在 App 端,数字小于10时不是圆形的bug 26 | - 修复 uni-badge 在父元素不是 flex 布局时,宽度缩小的bug 27 | - 新增 uni-badge 属性 custom-style, 支持自定义样式 28 | ## 1.0.6(2021-02-04) 29 | - 调整为uni_modules目录规范 30 | -------------------------------------------------------------------------------- /uni_modules/uni-badge/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-badge", 3 | "displayName": "uni-badge 数字角标", 4 | "version": "1.2.0", 5 | "description": "数字角标(徽章)组件,在元素周围展示消息提醒,一般用于列表、九宫格、按钮等地方。", 6 | "keywords": [ 7 | "", 8 | "badge", 9 | "uni-ui", 10 | "uniui", 11 | "数字角标", 12 | "徽章" 13 | ], 14 | "repository": "https://github.com/dcloudio/uni-ui", 15 | "engines": { 16 | "HBuilderX": "" 17 | }, 18 | "directories": { 19 | "example": "../../temps/example_temps" 20 | }, 21 | "dcloudext": { 22 | "category": [ 23 | "前端组件", 24 | "通用组件" 25 | ], 26 | "sale": { 27 | "regular": { 28 | "price": "0.00" 29 | }, 30 | "sourcecode": { 31 | "price": "0.00" 32 | } 33 | }, 34 | "contact": { 35 | "qq": "" 36 | }, 37 | "declaration": { 38 | "ads": "无", 39 | "data": "无", 40 | "permissions": "无" 41 | }, 42 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 43 | }, 44 | "uni_modules": { 45 | "dependencies": [], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "y", 79 | "联盟": "y" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /uni_modules/uni-badge/readme.md: -------------------------------------------------------------------------------- 1 | ## Badge 数字角标 2 | > **组件名:uni-badge** 3 | > 代码块: `uBadge` 4 | 5 | 数字角标一般和其它控件(列表、9宫格等)配合使用,用于进行数量提示,默认为实心灰色背景, 6 | 7 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-badge) 8 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 9 | 10 | 11 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.5(2022-02-25) 2 | - 修复 条件编译 nvue 不支持的 css 样式 3 | ## 1.4.4(2022-02-25) 4 | - 修复 条件编译 nvue 不支持的 css 样式 5 | ## 1.4.3(2021-09-22) 6 | - 修复 startDate、 endDate 属性失效的 bug 7 | ## 1.4.2(2021-08-24) 8 | - 新增 支持国际化 9 | ## 1.4.1(2021-08-05) 10 | - 修复 弹出层被 tabbar 遮盖 bug 11 | ## 1.4.0(2021-07-30) 12 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 13 | ## 1.3.16(2021-05-12) 14 | - 新增 组件示例地址 15 | ## 1.3.15(2021-02-04) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/components/uni-calendar/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "ok", 3 | "uni-calender.cancel": "cancel", 4 | "uni-calender.today": "today", 5 | "uni-calender.MON": "MON", 6 | "uni-calender.TUE": "TUE", 7 | "uni-calender.WED": "WED", 8 | "uni-calender.THU": "THU", 9 | "uni-calender.FRI": "FRI", 10 | "uni-calender.SAT": "SAT", 11 | "uni-calender.SUN": "SUN" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/components/uni-calendar/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "确定", 3 | "uni-calender.cancel": "取消", 4 | "uni-calender.today": "今日", 5 | "uni-calender.SUN": "日", 6 | "uni-calender.MON": "一", 7 | "uni-calender.TUE": "二", 8 | "uni-calender.WED": "三", 9 | "uni-calender.THU": "四", 10 | "uni-calender.FRI": "五", 11 | "uni-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-calender.ok": "確定", 3 | "uni-calender.cancel": "取消", 4 | "uni-calender.today": "今日", 5 | "uni-calender.SUN": "日", 6 | "uni-calender.MON": "一", 7 | "uni-calender.TUE": "二", 8 | "uni-calender.WED": "三", 9 | "uni-calender.THU": "四", 10 | "uni-calender.FRI": "五", 11 | "uni-calender.SAT": "六" 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-calendar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-calendar", 3 | "displayName": "uni-calendar 日历", 4 | "version": "1.4.5", 5 | "description": "日历组件", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "日历", 10 | "", 11 | "打卡", 12 | "日历选择" 13 | ], 14 | "repository": "https://github.com/dcloudio/uni-ui", 15 | "engines": { 16 | "HBuilderX": "" 17 | }, 18 | "directories": { 19 | "example": "../../temps/example_temps" 20 | }, 21 | "dcloudext": { 22 | "category": [ 23 | "前端组件", 24 | "通用组件" 25 | ], 26 | "sale": { 27 | "regular": { 28 | "price": "0.00" 29 | }, 30 | "sourcecode": { 31 | "price": "0.00" 32 | } 33 | }, 34 | "contact": { 35 | "qq": "" 36 | }, 37 | "declaration": { 38 | "ads": "无", 39 | "data": "无", 40 | "permissions": "无" 41 | }, 42 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 43 | }, 44 | "uni_modules": { 45 | "dependencies": [], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "u", 79 | "联盟": "u" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /uni_modules/uni-card/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2021-12-20) 2 | - 修复 在vue页面下略缩图显示不正常的bug 3 | ## 1.3.0(2021-11-19) 4 | - 重构插槽的用法 ,header 替换为 title 5 | - 新增 actions 插槽 6 | - 新增 cover 封面图属性和插槽 7 | - 新增 padding 内容默认内边距离 8 | - 新增 margin 卡片默认外边距离 9 | - 新增 spacing 卡片默认内边距 10 | - 新增 shadow 卡片阴影属性 11 | - 取消 mode 属性,可使用组合插槽代替 12 | - 取消 note 属性 ,使用actions插槽代替 13 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 14 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-card](https://uniapp.dcloud.io/component/uniui/uni-card) 15 | ## 1.2.1(2021-07-30) 16 | - 优化 vue3下事件警告的问题 17 | ## 1.2.0(2021-07-13) 18 | - 组件兼容 vue3,如何创建vue3项目详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 19 | ## 1.1.8(2021-07-01) 20 | - 优化 图文卡片无图片加载时,提供占位图标 21 | - 新增 header 插槽,自定义卡片头部( 图文卡片 mode="style" 时,不支持) 22 | - 修复 thumbnail 不存在仍然占位的 bug 23 | ## 1.1.7(2021-05-12) 24 | - 新增 组件示例地址 25 | ## 1.1.6(2021-02-04) 26 | - 调整为uni_modules目录规范 27 | -------------------------------------------------------------------------------- /uni_modules/uni-card/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-card", 3 | "displayName": "uni-card 卡片", 4 | "version": "1.3.1", 5 | "description": "Card 组件,提供常见的卡片样式。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "card", 10 | "", 11 | "卡片" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": [ 45 | "uni-icons", 46 | "uni-scss" 47 | ], 48 | "encrypt": [], 49 | "platforms": { 50 | "cloud": { 51 | "tcb": "y", 52 | "aliyun": "y" 53 | }, 54 | "client": { 55 | "App": { 56 | "app-vue": "y", 57 | "app-nvue": "y" 58 | }, 59 | "H5-mobile": { 60 | "Safari": "y", 61 | "Android Browser": "y", 62 | "微信浏览器(Android)": "y", 63 | "QQ浏览器(Android)": "y" 64 | }, 65 | "H5-pc": { 66 | "Chrome": "y", 67 | "IE": "y", 68 | "Edge": "y", 69 | "Firefox": "y", 70 | "Safari": "y" 71 | }, 72 | "小程序": { 73 | "微信": "y", 74 | "阿里": "y", 75 | "百度": "y", 76 | "字节跳动": "y", 77 | "QQ": "y" 78 | }, 79 | "快应用": { 80 | "华为": "u", 81 | "联盟": "u" 82 | }, 83 | "Vue": { 84 | "vue2": "y", 85 | "vue3": "y" 86 | } 87 | } 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /uni_modules/uni-card/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Card 卡片 4 | > **组件名:uni-card** 5 | > 代码块: `uCard` 6 | 7 | 卡片视图组件。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-card) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 11 | 12 | 13 | -------------------------------------------------------------------------------- /uni_modules/uni-collapse/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.3(2022-01-25) 2 | - 修复 初始化的时候 ,open 属性失效的bug 3 | ## 1.4.2(2022-01-21) 4 | - 修复 微信小程序resize后组件收起的bug 5 | ## 1.4.1(2021-11-22) 6 | - 修复 vue3中个别scss变量无法找到的问题 7 | ## 1.4.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse) 10 | ## 1.3.3(2021-08-17) 11 | - 优化 show-arrow 属性默认为true 12 | ## 1.3.2(2021-08-17) 13 | - 新增 show-arrow 属性,控制是否显示右侧箭头 14 | ## 1.3.1(2021-07-30) 15 | - 优化 vue3下小程序事件警告的问题 16 | ## 1.3.0(2021-07-30) 17 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 18 | ## 1.2.2(2021-07-21) 19 | - 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug 20 | ## 1.2.1(2021-07-21) 21 | - 优化 组件示例 22 | ## 1.2.0(2021-07-21) 23 | - 新增 组件折叠动画 24 | - 新增 value\v-model 属性 ,动态修改面板折叠状态 25 | - 新增 title 插槽 ,可定义面板标题 26 | - 新增 border 属性 ,显示隐藏面板内容分隔线 27 | - 新增 title-border 属性 ,显示隐藏面板标题分隔线 28 | - 修复 resize 方法失效的Bug 29 | - 修复 change 事件返回参数不正确的Bug 30 | - 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法 31 | ## 1.1.7(2021-05-12) 32 | - 新增 组件示例地址 33 | ## 1.1.6(2021-02-05) 34 | - 优化 组件引用关系,通过uni_modules引用组件 35 | ## 1.1.5(2021-02-05) 36 | - 调整为uni_modules目录规范 -------------------------------------------------------------------------------- /uni_modules/uni-collapse/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Collapse 折叠面板 4 | > **组件名:uni-collapse** 5 | > 代码块: `uCollapse` 6 | > 关联组件:`uni-collapse-item`、`uni-icons`。 7 | 8 | 9 | 折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-collapse) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-combox/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.1(2021-11-23) 2 | - 优化 label、label-width 属性 3 | ## 1.0.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-combox](https://uniapp.dcloud.io/component/uniui/uni-combox) 6 | ## 0.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 0.0.6(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 0.0.5(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 0.0.4(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | ## 0.0.3(2021-02-04) 15 | - 调整为uni_modules目录规范 16 | -------------------------------------------------------------------------------- /uni_modules/uni-combox/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-combox", 3 | "displayName": "uni-combox 组合框", 4 | "version": "1.0.1", 5 | "description": "可以选择也可以输入的表单项 ", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "combox", 10 | "组合框", 11 | "select" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": [ 45 | "uni-scss", 46 | "uni-icons" 47 | ], 48 | "encrypt": [], 49 | "platforms": { 50 | "cloud": { 51 | "tcb": "y", 52 | "aliyun": "y" 53 | }, 54 | "client": { 55 | "App": { 56 | "app-vue": "y", 57 | "app-nvue": "n" 58 | }, 59 | "H5-mobile": { 60 | "Safari": "y", 61 | "Android Browser": "y", 62 | "微信浏览器(Android)": "y", 63 | "QQ浏览器(Android)": "y" 64 | }, 65 | "H5-pc": { 66 | "Chrome": "y", 67 | "IE": "y", 68 | "Edge": "y", 69 | "Firefox": "y", 70 | "Safari": "y" 71 | }, 72 | "小程序": { 73 | "微信": "y", 74 | "阿里": "y", 75 | "百度": "y", 76 | "字节跳动": "y", 77 | "QQ": "y" 78 | }, 79 | "快应用": { 80 | "华为": "u", 81 | "联盟": "u" 82 | }, 83 | "Vue": { 84 | "vue2": "y", 85 | "vue3": "y" 86 | } 87 | } 88 | } 89 | } 90 | } -------------------------------------------------------------------------------- /uni_modules/uni-combox/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Combox 组合框 4 | > **组件名:uni-combox** 5 | > 代码块: `uCombox` 6 | 7 | 8 | 组合框组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-combox) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-countdown/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2022-01-19) 2 | - 修复 在微信小程序中样式不生效的bug 3 | ## 1.2.1(2022-01-18) 4 | - 新增 update 方法 ,在动态更新时间后,刷新组件 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-countdown](https://uniapp.dcloud.io/component/uniui/uni-countdown) 8 | ## 1.1.3(2021-10-18) 9 | - 重构 10 | - 新增 font-size 支持自定义字体大小 11 | ## 1.1.2(2021-08-24) 12 | - 新增 支持国际化 13 | ## 1.1.1(2021-07-30) 14 | - 优化 vue3下小程序事件警告的问题 15 | ## 1.1.0(2021-07-30) 16 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 17 | ## 1.0.5(2021-06-18) 18 | - 修复 uni-countdown 重复赋值跳两秒的 bug 19 | ## 1.0.4(2021-05-12) 20 | - 新增 组件示例地址 21 | ## 1.0.3(2021-05-08) 22 | - 修复 uni-countdown 不能控制倒计时的 bug 23 | ## 1.0.2(2021-02-04) 24 | - 调整为uni_modules目录规范 25 | -------------------------------------------------------------------------------- /uni_modules/uni-countdown/components/uni-countdown/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "day", 3 | "uni-countdown.h": "h", 4 | "uni-countdown.m": "m", 5 | "uni-countdown.s": "s" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-countdown/components/uni-countdown/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "天", 3 | "uni-countdown.h": "时", 4 | "uni-countdown.m": "分", 5 | "uni-countdown.s": "秒" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-countdown.day": "天", 3 | "uni-countdown.h": "時", 4 | "uni-countdown.m": "分", 5 | "uni-countdown.s": "秒" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-countdown/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-countdown", 3 | "displayName": "uni-countdown 倒计时", 4 | "version": "1.2.2", 5 | "description": "CountDown 倒计时组件", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "countdown", 10 | "倒计时" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "y" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /uni_modules/uni-countdown/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## CountDown 倒计时 4 | > **组件名:uni-countdown** 5 | > 代码块: `uCountDown` 6 | 7 | 倒计时组件。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-countdown) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-data-checkbox/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.2(2022-06-30) 2 | - 优化 在 uni-forms 中的依赖注入方式 3 | ## 1.0.1(2022-02-07) 4 | - 修复 multiple 为 true 时,v-model 的值为 null 报错的 bug 5 | ## 1.0.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-data-checkbox](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) 8 | ## 0.2.5(2021-08-23) 9 | - 修复 在uni-forms中 modelValue 中不存在当前字段,当前字段必填写也不参与校验的问题 10 | ## 0.2.4(2021-08-17) 11 | - 修复 单选 list 模式下 ,icon 为 left 时,选中图标不显示的问题 12 | ## 0.2.3(2021-08-11) 13 | - 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 14 | ## 0.2.2(2021-07-30) 15 | - 优化 在uni-forms组件,与label不对齐的问题 16 | ## 0.2.1(2021-07-27) 17 | - 修复 单选默认值为0不能选中的Bug 18 | ## 0.2.0(2021-07-13) 19 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 20 | ## 0.1.11(2021-07-06) 21 | - 优化 删除无用日志 22 | ## 0.1.10(2021-07-05) 23 | - 修复 由 0.1.9 引起的非 nvue 端图标不显示的问题 24 | ## 0.1.9(2021-07-05) 25 | - 修复 nvue 黑框样式问题 26 | ## 0.1.8(2021-06-28) 27 | - 修复 selectedTextColor 属性不生效的Bug 28 | ## 0.1.7(2021-06-02) 29 | - 新增 map 属性,可以方便映射text/value属性 30 | ## 0.1.6(2021-05-26) 31 | - 修复 不关联服务空间的情况下组件报错的Bug 32 | ## 0.1.5(2021-05-12) 33 | - 新增 组件示例地址 34 | ## 0.1.4(2021-04-09) 35 | - 修复 nvue 下无法选中的问题 36 | ## 0.1.3(2021-03-22) 37 | - 新增 disabled属性 38 | ## 0.1.2(2021-02-24) 39 | - 优化 默认颜色显示 40 | ## 0.1.1(2021-02-24) 41 | - 新增 支持nvue 42 | ## 0.1.0(2021-02-18) 43 | - “暂无数据”显示居中 44 | -------------------------------------------------------------------------------- /uni_modules/uni-data-checkbox/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## DataCheckbox 数据驱动的单选复选框 4 | > **组件名:uni-data-checkbox** 5 | > 代码块: `uDataCheckbox` 6 | 7 | 8 | 本组件是基于uni-app基础组件checkbox的封装。本组件要解决问题包括: 9 | 10 | 1. 数据绑定型组件:给本组件绑定一个data,会自动渲染一组候选内容。再以往,开发者需要编写不少代码实现类似功能 11 | 2. 自动的表单校验:组件绑定了data,且符合[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)组件的表单校验规范,搭配使用会自动实现表单校验 12 | 3. 本组件合并了单选多选 13 | 4. 本组件有若干风格选择,如普通的单选多选框、并列button风格、tag风格。开发者可以快速选择需要的风格。但作为一个封装组件,样式代码虽然不用自己写了,却会牺牲一定的样式自定义性 14 | 15 | 在uniCloud开发中,`DB Schema`中配置了enum枚举等类型后,在web控制台的[自动生成表单](https://uniapp.dcloud.io/uniCloud/schema?id=autocode)功能中,会自动生成``uni-data-checkbox``组件并绑定好data 16 | 17 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox) 18 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-data-picker/components/uni-data-picker/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /uni_modules/uni-data-picker/readme.md: -------------------------------------------------------------------------------- 1 | ## DataPicker 级联选择 2 | > **组件名:uni-data-picker** 3 | > 代码块: `uDataPicker` 4 | > 关联组件:`uni-data-pickerview`、`uni-load-more`。 5 | 6 | 7 | `` 是一个选择类[datacom组件](https://uniapp.dcloud.net.cn/component/datacom)。 8 | 9 | 支持单列、和多列级联选择。列数没有限制,如果屏幕显示不全,顶部tab区域会左右滚动。 10 | 11 | 候选数据支持一次性加载完毕,也支持懒加载,比如示例图中,选择了“北京”后,动态加载北京的区县数据。 12 | 13 | `` 组件尤其适用于地址选择、分类选择等选择类。 14 | 15 | `` 支持本地数据、云端静态数据(json),uniCloud云数据库数据。 16 | 17 | `` 可以通过JQL直连uniCloud云数据库,配套[DB Schema](https://uniapp.dcloud.net.cn/uniCloud/schema),可在schema2code中自动生成前端页面,还支持服务器端校验。 18 | 19 | 在uniCloud数据表中新建表“uni-id-address”和“opendb-city-china”,这2个表的schema自带foreignKey关联。在“uni-id-address”表的表结构页面使用schema2code生成前端页面,会自动生成地址管理的维护页面,自动从“opendb-city-china”表包含的中国所有省市区信息里选择地址。 20 | 21 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-data-picker) 22 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-dateformat/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-dateformat](https://uniapp.dcloud.io/component/uniui/uni-dateformat) 4 | ## 0.0.5(2021-07-08) 5 | - 调整 默认时间不再是当前时间,而是显示'-'字符 6 | ## 0.0.4(2021-05-12) 7 | - 新增 组件示例地址 8 | ## 0.0.3(2021-02-04) 9 | - 调整为uni_modules目录规范 10 | - 修复 iOS 平台日期格式化出错的问题 11 | -------------------------------------------------------------------------------- /uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue: -------------------------------------------------------------------------------- 1 | 4 | 5 | 85 | 86 | 89 | -------------------------------------------------------------------------------- /uni_modules/uni-dateformat/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-dateformat", 3 | "displayName": "uni-dateformat 日期格式化", 4 | "version": "1.0.0", 5 | "description": "日期格式化组件,可以将日期格式化为1分钟前、刚刚等形式", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "日期格式化", 10 | "时间格式化", 11 | "格式化时间", 12 | "" 13 | ], 14 | "repository": "https://github.com/dcloudio/uni-ui", 15 | "engines": { 16 | "HBuilderX": "" 17 | }, 18 | "directories": { 19 | "example": "../../temps/example_temps" 20 | }, 21 | "dcloudext": { 22 | "category": [ 23 | "前端组件", 24 | "通用组件" 25 | ], 26 | "sale": { 27 | "regular": { 28 | "price": "0.00" 29 | }, 30 | "sourcecode": { 31 | "price": "0.00" 32 | } 33 | }, 34 | "contact": { 35 | "qq": "" 36 | }, 37 | "declaration": { 38 | "ads": "无", 39 | "data": "无", 40 | "permissions": "无" 41 | }, 42 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 43 | }, 44 | "uni_modules": { 45 | "dependencies": ["uni-scss"], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "y", 79 | "联盟": "y" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /uni_modules/uni-dateformat/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### DateFormat 日期格式化 4 | > **组件名:uni-dateformat** 5 | > 代码块: `uDateformat` 6 | 7 | 8 | 日期格式化组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-dateformat) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "select date", 3 | "uni-datetime-picker.selectTime": "select time", 4 | "uni-datetime-picker.selectDateTime": "select datetime", 5 | "uni-datetime-picker.startDate": "start date", 6 | "uni-datetime-picker.endDate": "end date", 7 | "uni-datetime-picker.startTime": "start time", 8 | "uni-datetime-picker.endTime": "end time", 9 | "uni-datetime-picker.ok": "ok", 10 | "uni-datetime-picker.clear": "clear", 11 | "uni-datetime-picker.cancel": "cancel", 12 | "uni-datetime-picker.year": "-", 13 | "uni-datetime-picker.month": "", 14 | "uni-calender.MON": "MON", 15 | "uni-calender.TUE": "TUE", 16 | "uni-calender.WED": "WED", 17 | "uni-calender.THU": "THU", 18 | "uni-calender.FRI": "FRI", 19 | "uni-calender.SAT": "SAT", 20 | "uni-calender.SUN": "SUN", 21 | "uni-calender.confirm": "confirm" 22 | } 23 | -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "选择日期", 3 | "uni-datetime-picker.selectTime": "选择时间", 4 | "uni-datetime-picker.selectDateTime": "选择日期时间", 5 | "uni-datetime-picker.startDate": "开始日期", 6 | "uni-datetime-picker.endDate": "结束日期", 7 | "uni-datetime-picker.startTime": "开始时间", 8 | "uni-datetime-picker.endTime": "结束时间", 9 | "uni-datetime-picker.ok": "确定", 10 | "uni-datetime-picker.clear": "清除", 11 | "uni-datetime-picker.cancel": "取消", 12 | "uni-datetime-picker.year": "年", 13 | "uni-datetime-picker.month": "月", 14 | "uni-calender.SUN": "日", 15 | "uni-calender.MON": "一", 16 | "uni-calender.TUE": "二", 17 | "uni-calender.WED": "三", 18 | "uni-calender.THU": "四", 19 | "uni-calender.FRI": "五", 20 | "uni-calender.SAT": "六", 21 | "uni-calender.confirm": "确认" 22 | } -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-datetime-picker.selectDate": "選擇日期", 3 | "uni-datetime-picker.selectTime": "選擇時間", 4 | "uni-datetime-picker.selectDateTime": "選擇日期時間", 5 | "uni-datetime-picker.startDate": "開始日期", 6 | "uni-datetime-picker.endDate": "結束日期", 7 | "uni-datetime-picker.startTime": "開始时间", 8 | "uni-datetime-picker.endTime": "結束时间", 9 | "uni-datetime-picker.ok": "確定", 10 | "uni-datetime-picker.clear": "清除", 11 | "uni-datetime-picker.cancel": "取消", 12 | "uni-datetime-picker.year": "年", 13 | "uni-datetime-picker.month": "月", 14 | "uni-calender.SUN": "日", 15 | "uni-calender.MON": "一", 16 | "uni-calender.TUE": "二", 17 | "uni-calender.WED": "三", 18 | "uni-calender.THU": "四", 19 | "uni-calender.FRI": "五", 20 | "uni-calender.SAT": "六", 21 | "uni-calender.confirm": "確認" 22 | } -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif -------------------------------------------------------------------------------- /uni_modules/uni-datetime-picker/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | > `重要通知:组件升级更新 2.0.0 后,支持日期+时间范围选择,组件 ui 将使用日历选择日期,ui 变化较大,同时支持 PC 和 移动端。此版本不向后兼容,不再支持单独的时间选择(type=time)及相关的 hide-second 属性(时间选可使用内置组件 picker)。若仍需使用旧版本,可在插件市场下载*非uni_modules版本*,旧版本将不再维护` 4 | 5 | ## DatetimePicker 时间选择器 6 | 7 | > **组件名:uni-datetime-picker** 8 | > 代码块: `uDatetimePicker` 9 | 10 | 11 | 该组件的优势是,支持**时间戳**输入和输出(起始时间、终止时间也支持时间戳),可**同时选择**日期和时间。 12 | 13 | 若只是需要单独选择日期和时间,不需要时间戳输入和输出,可使用原生的 picker 组件。 14 | 15 | **_点击 picker 默认值规则:_** 16 | 17 | - 若设置初始值 value, 会显示在 picker 显示框中 18 | - 若无初始值 value,则初始值 value 为当前本地时间 Date.now(), 但不会显示在 picker 显示框中 19 | 20 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker) 21 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-drawer/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中个别scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-drawer](https://uniapp.dcloud.io/component/uniui/uni-drawer) 6 | ## 1.1.1(2021-07-30) 7 | - 优化 vue3下事件警告的问题 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.7(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.6(2021-02-04) 13 | - 调整为uni_modules目录规范 14 | -------------------------------------------------------------------------------- /uni_modules/uni-drawer/components/uni-drawer/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | // this.$once('hook:beforeDestroy', () => { 40 | // document.removeEventListener('keyup', listener) 41 | // }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /uni_modules/uni-drawer/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-drawer", 3 | "displayName": "uni-drawer 抽屉", 4 | "version": "1.2.1", 5 | "description": "抽屉式导航,用于展示侧滑菜单,侧滑导航。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "drawer", 10 | "抽屉", 11 | "侧滑导航" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-drawer/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Drawer 抽屉 4 | > **组件名:uni-drawer** 5 | > 代码块: `uDrawer` 6 | 7 | 抽屉侧滑菜单。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-drawer) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-easyinput/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.1.0(2022-06-30) 2 | - 新增 在 uni-forms 1.4.0 中使用可以在 blur 时校验内容 3 | - 新增 clear 事件,点击右侧叉号图标触发 4 | - 新增 change 事件 ,仅在输入框失去焦点或用户按下回车时触发 5 | - 优化 组件样式,组件获取焦点时高亮显示,图标颜色调整等 6 | - 7 | ## 1.0.5(2022-06-07) 8 | - 优化 clearable 显示策略 9 | ## 1.0.4(2022-06-07) 10 | - 优化 clearable 显示策略 11 | ## 1.0.3(2022-05-20) 12 | - 修复 关闭图标某些情况下无法取消的bug 13 | ## 1.0.2(2022-04-12) 14 | - 修复 默认值不生效的bug 15 | ## 1.0.1(2022-04-02) 16 | - 修复 value不能为0的bug 17 | ## 1.0.0(2021-11-19) 18 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 19 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput) 20 | ## 0.1.4(2021-08-20) 21 | - 修复 在 uni-forms 的动态表单中默认值校验不通过的 bug 22 | ## 0.1.3(2021-08-11) 23 | - 修复 在 uni-forms 中重置表单,错误信息无法清除的问题 24 | ## 0.1.2(2021-07-30) 25 | - 优化 vue3下事件警告的问题 26 | ## 0.1.1 27 | - 优化 errorMessage 属性支持 Boolean 类型 28 | ## 0.1.0(2021-07-13) 29 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 30 | ## 0.0.16(2021-06-29) 31 | - 修复 confirmType 属性(仅 type="text" 生效)导致多行文本框无法换行的 bug 32 | ## 0.0.15(2021-06-21) 33 | - 修复 passwordIcon 属性拼写错误的 bug 34 | ## 0.0.14(2021-06-18) 35 | - 新增 passwordIcon 属性,当type=password时是否显示小眼睛图标 36 | - 修复 confirmType 属性不生效的问题 37 | ## 0.0.13(2021-06-04) 38 | - 修复 disabled 状态可清出内容的 bug 39 | ## 0.0.12(2021-05-12) 40 | - 新增 组件示例地址 41 | ## 0.0.11(2021-05-07) 42 | - 修复 input-border 属性不生效的问题 43 | ## 0.0.10(2021-04-30) 44 | - 修复 ios 遮挡文字、显示一半的问题 45 | ## 0.0.9(2021-02-05) 46 | - 调整为uni_modules目录规范 47 | - 优化 兼容 nvue 页面 48 | -------------------------------------------------------------------------------- /uni_modules/uni-easyinput/components/uni-easyinput/common.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @desc 函数防抖 3 | * @param func 目标函数 4 | * @param wait 延迟执行毫秒数 5 | * @param immediate true - 立即执行, false - 延迟执行 6 | */ 7 | export const debounce = function(func, wait = 1000, immediate = true) { 8 | let timer; 9 | console.log(1); 10 | return function() { 11 | console.log(123); 12 | let context = this, 13 | args = arguments; 14 | if (timer) clearTimeout(timer); 15 | if (immediate) { 16 | let callNow = !timer; 17 | timer = setTimeout(() => { 18 | timer = null; 19 | }, wait); 20 | if (callNow) func.apply(context, args); 21 | } else { 22 | timer = setTimeout(() => { 23 | func.apply(context, args); 24 | }, wait) 25 | } 26 | } 27 | } 28 | /** 29 | * @desc 函数节流 30 | * @param func 函数 31 | * @param wait 延迟执行毫秒数 32 | * @param type 1 使用表时间戳,在时间段开始的时候触发 2 使用表定时器,在时间段结束的时候触发 33 | */ 34 | export const throttle = (func, wait = 1000, type = 1) => { 35 | let previous = 0; 36 | let timeout; 37 | return function() { 38 | let context = this; 39 | let args = arguments; 40 | if (type === 1) { 41 | let now = Date.now(); 42 | 43 | if (now - previous > wait) { 44 | func.apply(context, args); 45 | previous = now; 46 | } 47 | } else if (type === 2) { 48 | if (!timeout) { 49 | timeout = setTimeout(() => { 50 | timeout = null; 51 | func.apply(context, args) 52 | }, wait) 53 | } 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /uni_modules/uni-easyinput/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### Easyinput 增强输入框 4 | > **组件名:uni-easyinput** 5 | > 代码块: `uEasyinput` 6 | 7 | 8 | easyinput 组件是对原生input组件的增强 ,是专门为配合表单组件[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)而设计的,easyinput 内置了边框,图标等,同时包含 input 所有功能 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-easyinput) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-fab/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2021-12-29) 2 | - 更新 组件依赖 3 | ## 1.2.1(2021-11-19) 4 | - 修复 阴影颜色不正确的bug 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fab](https://uniapp.dcloud.io/component/uniui/uni-fab) 8 | ## 1.1.1(2021-11-09) 9 | - 新增 提供组件设计资源,组件样式调整 10 | ## 1.1.0(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.6(2021-02-05) 15 | - 调整为uni_modules目录规范 16 | - 优化 按钮背景色调整 17 | - 优化 兼容pc端 18 | -------------------------------------------------------------------------------- /uni_modules/uni-fab/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-fab", 3 | "displayName": "uni-fab 悬浮按钮", 4 | "version": "1.2.2", 5 | "description": "悬浮按钮 fab button ,点击可展开一个图标按钮菜单。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "按钮", 10 | "悬浮按钮", 11 | "fab" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss","uni-icons"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /uni_modules/uni-fab/readme.md: -------------------------------------------------------------------------------- 1 | ## Fab 悬浮按钮 2 | > **组件名:uni-fab** 3 | > 代码块: `uFab` 4 | 5 | 6 | 点击可展开一个图形按钮菜单 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fab) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-fav/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-05-30) 2 | - 新增 stat 属性 ,是否开启uni统计功能 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-fav](https://uniapp.dcloud.io/component/uniui/uni-fav) 6 | ## 1.1.1(2021-08-24) 7 | - 新增 支持国际化 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.6(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.5(2021-04-21) 13 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 14 | ## 1.0.4(2021-02-05) 15 | - 优化 组件引用关系,通过uni_modules引用组件 16 | ## 1.0.3(2021-02-05) 17 | - 优化 组件引用关系,通过uni_modules引用组件 18 | ## 1.0.2(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/components/uni-fav/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "collect", 3 | "uni-fav.collected": "collected" 4 | } 5 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/components/uni-fav/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "收藏", 3 | "uni-fav.collected": "已收藏" 4 | } 5 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-fav.collect": "收藏", 3 | "uni-fav.collected": "已收藏" 4 | } 5 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-fav", 3 | "displayName": "uni-fav 收藏按钮", 4 | "version": "1.2.1", 5 | "description": " Fav 收藏组件,可自定义颜色、大小。", 6 | "keywords": [ 7 | "fav", 8 | "uni-ui", 9 | "uniui", 10 | "收藏" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": [ 44 | "uni-scss", 45 | "uni-icons" 46 | ], 47 | "encrypt": [], 48 | "platforms": { 49 | "cloud": { 50 | "tcb": "y", 51 | "aliyun": "y" 52 | }, 53 | "client": { 54 | "App": { 55 | "app-vue": "y", 56 | "app-nvue": "y" 57 | }, 58 | "H5-mobile": { 59 | "Safari": "y", 60 | "Android Browser": "y", 61 | "微信浏览器(Android)": "y", 62 | "QQ浏览器(Android)": "y" 63 | }, 64 | "H5-pc": { 65 | "Chrome": "y", 66 | "IE": "y", 67 | "Edge": "y", 68 | "Firefox": "y", 69 | "Safari": "y" 70 | }, 71 | "小程序": { 72 | "微信": "y", 73 | "阿里": "y", 74 | "百度": "y", 75 | "字节跳动": "y", 76 | "QQ": "y" 77 | }, 78 | "快应用": { 79 | "华为": "u", 80 | "联盟": "u" 81 | }, 82 | "Vue": { 83 | "vue2": "y", 84 | "vue3": "y" 85 | } 86 | } 87 | } 88 | } 89 | } 90 | -------------------------------------------------------------------------------- /uni_modules/uni-fav/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Fav 收藏按钮 4 | > **组件名:uni-fav** 5 | > 代码块: `uFav` 6 | 7 | 用于收藏功能,可点击切换选中、不选中的状态。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-fav) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-file-picker/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-file-picker", 3 | "displayName": "uni-file-picker 文件选择上传", 4 | "version": "1.0.2", 5 | "description": "文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "图片上传", 10 | "文件上传" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "n" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /uni_modules/uni-file-picker/readme.md: -------------------------------------------------------------------------------- 1 | 2 | ## FilePicker 文件选择上传 3 | 4 | > **组件名:uni-file-picker** 5 | > 代码块: `uFilePicker` 6 | 7 | 8 | 文件选择上传组件,可以选择图片、视频等任意文件并上传到当前绑定的服务空间 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-file-picker) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-forms/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Forms 表单 4 | 5 | > **组件名:uni-forms** 6 | > 代码块: `uForms`、`uni-forms-item` 7 | > 关联组件:`uni-forms-item`、`uni-easyinput`、`uni-data-checkbox`、`uni-group`。 8 | 9 | 10 | uni-app的内置组件已经有了 `
`组件,用于提交表单内容。 11 | 12 | 然而几乎每个表单都需要做表单验证,为了方便做表单验证,减少重复开发,`uni ui` 又基于 ``组件封装了 ``组件,内置了表单验证功能。 13 | 14 | `` 提供了 `rules`属性来描述校验规则、``子组件来包裹具体的表单项,以及给原生或三方组件提供了 `binddata()` 来设置表单值。 15 | 16 | 每个要校验的表单项,不管input还是checkbox,都必须放在``组件中,且一个``组件只能放置一个表单项。 17 | 18 | ``组件内部预留了显示error message的区域,默认是在表单项的底部。 19 | 20 | 另外,``组件下面的各个表单项,可以通过``包裹为不同的分组。同一``下的不同表单项目将聚拢在一起,同其他group保持垂直间距。``仅影响视觉效果。 21 | 22 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-forms) 23 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-05-30) 2 | - 新增 stat属性,是否开启uni统计功能 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-goods-nav](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) 6 | ## 1.1.1(2021-08-24) 7 | - 新增 支持国际化 8 | ## 1.1.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.0.7(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.0.6(2021-04-21) 13 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 14 | ## 1.0.5(2021-02-05) 15 | - 优化 组件引用关系,通过uni_modules引用组件 16 | 17 | ## 1.0.4(2021-02-05) 18 | - 调整为uni_modules目录规范 19 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "shop", 3 | "uni-goods-nav.options.cart": "cart", 4 | "uni-goods-nav.buttonGroup.addToCart": "add to cart", 5 | "uni-goods-nav.buttonGroup.buyNow": "buy now" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "店铺", 3 | "uni-goods-nav.options.cart": "购物车", 4 | "uni-goods-nav.buttonGroup.addToCart": "加入购物车", 5 | "uni-goods-nav.buttonGroup.buyNow": "立即购买" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-goods-nav.options.shop": "店鋪", 3 | "uni-goods-nav.options.cart": "購物車", 4 | "uni-goods-nav.buttonGroup.addToCart": "加入購物車", 5 | "uni-goods-nav.buttonGroup.buyNow": "立即購買" 6 | } 7 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-goods-nav", 3 | "displayName": "uni-goods-nav 商品导航", 4 | "version": "1.2.1", 5 | "description": "商品导航组件主要用于电商类应用底部导航,可自定义加入购物车,购买等操作", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "商品导航" 10 | ], 11 | "repository": "https://github.com/dcloudio/uni-ui", 12 | "engines": { 13 | "HBuilderX": "" 14 | }, 15 | "directories": { 16 | "example": "../../temps/example_temps" 17 | }, 18 | "dcloudext": { 19 | "category": [ 20 | "前端组件", 21 | "通用组件" 22 | ], 23 | "sale": { 24 | "regular": { 25 | "price": "0.00" 26 | }, 27 | "sourcecode": { 28 | "price": "0.00" 29 | } 30 | }, 31 | "contact": { 32 | "qq": "" 33 | }, 34 | "declaration": { 35 | "ads": "无", 36 | "data": "无", 37 | "permissions": "无" 38 | }, 39 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 40 | }, 41 | "uni_modules": { 42 | "dependencies": [ 43 | "uni-scss", 44 | "uni-icons" 45 | ], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "u", 79 | "联盟": "u" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /uni_modules/uni-goods-nav/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## GoodsNav 商品导航 4 | > **组件名:uni-goods-nav** 5 | > 代码块: `uGoodsNav` 6 | 7 | 商品加入购物车,立即购买等。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-goods-nav) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-grid/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.4.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-grid](https://uniapp.dcloud.io/component/uniui/uni-grid) 4 | ## 1.3.2(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | ## 1.3.1(2021-07-30) 7 | - 优化 vue3下事件警告的问题 8 | ## 1.3.0(2021-07-13) 9 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.2.4(2021-05-12) 11 | - 新增 组件示例地址 12 | ## 1.2.3(2021-02-05) 13 | - 调整为uni_modules目录规范 14 | -------------------------------------------------------------------------------- /uni_modules/uni-grid/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-grid", 3 | "displayName": "uni-grid 宫格", 4 | "version": "1.4.0", 5 | "description": "Grid 宫格组件,提供移动端常见的宫格布局,如九宫格。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "九宫格", 10 | "表格" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss","uni-icons"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "y" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } 87 | -------------------------------------------------------------------------------- /uni_modules/uni-grid/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Grid 宫格 4 | > **组件名:uni-grid** 5 | > 代码块: `uGrid` 6 | 7 | 8 | 宫格组件。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-grid) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-group/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2022-05-30) 2 | - 新增 stat属性,是否开启uni统计功能 3 | ## 1.2.1(2021-11-22) 4 | - 修复 vue3中某些scss变量无法找到的问题 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-group](https://uniapp.dcloud.io/component/uniui/uni-group) 8 | ## 1.1.7(2021-11-08) 9 | ## 1.1.0(2021-07-30) 10 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 11 | - 优化 组件文档 12 | ## 1.0.3(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.2(2021-02-05) 15 | - 调整为uni_modules目录规范 16 | - 优化 兼容 nvue 页面 17 | -------------------------------------------------------------------------------- /uni_modules/uni-group/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-group", 3 | "displayName": "uni-group 分组", 4 | "version": "1.2.2", 5 | "description": "分组组件可用于将组件用于分组,添加间隔,以产生明显的区块", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "group", 10 | "分组", 11 | "" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-group/readme.md: -------------------------------------------------------------------------------- 1 | 2 | ## Group 分组 3 | > **组件名:uni-group** 4 | > 代码块: `uGroup` 5 | 6 | 分组组件可用于将组件分组,添加间隔,以产生明显的区块。 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-group) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-icons/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.5(2022-01-24) 2 | - 优化 size 属性可以传入不带单位的字符串数值 3 | ## 1.3.4(2022-01-24) 4 | - 优化 size 支持其他单位 5 | ## 1.3.3(2022-01-17) 6 | - 修复 nvue 有些图标不显示的bug,兼容老版本图标 7 | ## 1.3.2(2021-12-01) 8 | - 优化 示例可复制图标名称 9 | ## 1.3.1(2021-11-23) 10 | - 优化 兼容旧组件 type 值 11 | ## 1.3.0(2021-11-19) 12 | - 新增 更多图标 13 | - 优化 自定义图标使用方式 14 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 15 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons) 16 | ## 1.1.7(2021-11-08) 17 | ## 1.2.0(2021-07-30) 18 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 19 | ## 1.1.5(2021-05-12) 20 | - 新增 组件示例地址 21 | ## 1.1.4(2021-02-05) 22 | - 调整为uni_modules目录规范 23 | -------------------------------------------------------------------------------- /uni_modules/uni-icons/components/uni-icons/uniicons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/uni_modules/uni-icons/components/uni-icons/uniicons.ttf -------------------------------------------------------------------------------- /uni_modules/uni-icons/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-icons", 3 | "displayName": "uni-icons 图标", 4 | "version": "1.3.5", 5 | "description": "图标组件,用于展示移动端常见的图标,可自定义颜色、大小。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "icon", 10 | "图标" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "^3.2.14" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "y" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /uni_modules/uni-icons/readme.md: -------------------------------------------------------------------------------- 1 | ## Icons 图标 2 | > **组件名:uni-icons** 3 | > 代码块: `uIcons` 4 | 5 | 用于展示 icons 图标 。 6 | 7 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-icons) 8 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 9 | -------------------------------------------------------------------------------- /uni_modules/uni-indexed-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-indexed-list](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.11(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 1.0.10(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.9(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.8(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | - 新增 支持 PC 端 18 | -------------------------------------------------------------------------------- /uni_modules/uni-indexed-list/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## IndexedList 索引列表 4 | > **组件名:uni-indexed-list** 5 | > 代码块: `uIndexedList` 6 | 7 | 8 | 用于展示索引列表。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | -------------------------------------------------------------------------------- /uni_modules/uni-link/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-link](https://uniapp.dcloud.io/component/uniui/uni-link) 4 | ## 1.1.7(2021-11-08) 5 | ## 0.0.7(2021-09-03) 6 | - 修复 在 nvue 下不显示的 bug 7 | ## 0.0.6(2021-07-30) 8 | - 新增 支持自定义插槽 9 | ## 0.0.5(2021-06-21) 10 | - 新增 download 属性,H5平台下载文件名 11 | ## 0.0.4(2021-05-12) 12 | - 新增 组件示例地址 13 | ## 0.0.3(2021-03-09) 14 | - 新增 href 属性支持 tel:|mailto: 15 | 16 | ## 0.0.2(2021-02-05) 17 | - 调整为uni_modules目录规范 18 | -------------------------------------------------------------------------------- /uni_modules/uni-link/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-link", 3 | "displayName": "uni-link 超链接", 4 | "version": "1.0.0", 5 | "description": "uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "link", 10 | "超链接", 11 | "" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "y", 78 | "联盟": "y" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-link/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Link 链接 4 | > **组件名:uni-link** 5 | > 代码块: `uLink` 6 | 7 | 8 | uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打开新网页。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-link) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-list/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-03-30) 2 | - 删除无用文件 3 | ## 1.2.0(2021-11-23) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-list](https://uniapp.dcloud.io/component/uniui/uni-list) 6 | ## 1.1.3(2021-08-30) 7 | - 修复 在vue3中to属性在发行应用的时候报错的bug 8 | ## 1.1.2(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.1.1(2021-07-21) 11 | - 修复 与其他组件嵌套使用时,点击失效的Bug 12 | ## 1.1.0(2021-07-13) 13 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 14 | ## 1.0.17(2021-05-12) 15 | - 新增 组件示例地址 16 | ## 1.0.16(2021-02-05) 17 | - 优化 组件引用关系,通过uni_modules引用组件 18 | ## 1.0.15(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | - 修复 uni-list-chat 角标显示不正常的问题 21 | -------------------------------------------------------------------------------- /uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss: -------------------------------------------------------------------------------- 1 | /** 2 | * 这里是 uni-list 组件内置的常用样式变量 3 | * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 4 | * 5 | */ 6 | 7 | // 背景色 8 | $background-color : #fff; 9 | // 分割线颜色 10 | $divide-line-color : #e5e5e5; 11 | 12 | // 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 13 | // nvue 页面不支持修改头像大小 14 | $avatar-width : 45px ; 15 | 16 | // 头像边框 17 | $avatar-border-radius: 5px; 18 | $avatar-border-color: #eee; 19 | $avatar-border-width: 1px; 20 | 21 | // 标题文字样式 22 | $title-size : 16px; 23 | $title-color : #3b4144; 24 | $title-weight : normal; 25 | 26 | // 描述文字样式 27 | $note-size : 12px; 28 | $note-color : #999; 29 | $note-weight : normal; 30 | 31 | // 右侧额外内容默认样式 32 | $right-text-size : 12px; 33 | $right-text-color : #999; 34 | $right-text-weight : normal; 35 | 36 | // 角标样式 37 | // nvue 页面不支持修改圆点位置以及大小 38 | // 角标在左侧时,角标的位置,默认为 0 ,负数左/下移动,正数右/上移动 39 | $badge-left: 0px; 40 | $badge-top: 0px; 41 | 42 | // 显示圆点时,圆点大小 43 | $dot-width: 10px; 44 | $dot-height: 10px; 45 | 46 | // 显示角标时,角标大小和字体大小 47 | $badge-size : 18px; 48 | $badge-font : 12px; 49 | // 显示角标时,角标前景色 50 | $badge-color : #fff; 51 | // 显示角标时,角标背景色 52 | $badge-background-color : #ff5a5f; 53 | // 显示角标时,角标左右间距 54 | $badge-space : 6px; 55 | 56 | // 状态样式 57 | // 选中颜色 58 | $hover : #f5f5f5; 59 | -------------------------------------------------------------------------------- /uni_modules/uni-list/components/uni-list/uni-refresh.vue: -------------------------------------------------------------------------------- 1 | 13 | 14 | 59 | 60 | 66 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.3(2022-01-20) 2 | - 新增 showText属性 ,是否显示文本 3 | ## 1.3.2(2022-01-19) 4 | - 修复 nvue 平台下不显示文本的bug 5 | ## 1.3.1(2022-01-19) 6 | - 修复 微信小程序平台样式选择器报警告的问题 7 | ## 1.3.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-load-more](https://uniapp.dcloud.io/component/uniui/uni-load-more) 10 | ## 1.2.1(2021-08-24) 11 | - 新增 支持国际化 12 | ## 1.2.0(2021-07-30) 13 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 14 | ## 1.1.8(2021-05-12) 15 | - 新增 组件示例地址 16 | ## 1.1.7(2021-03-30) 17 | - 修复 uni-load-more 在首页使用时,h5 平台报 'uni is not defined' 的 bug 18 | ## 1.1.6(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/components/uni-load-more/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "Pull up to show more", 3 | "uni-load-more.contentrefresh": "loading...", 4 | "uni-load-more.contentnomore": "No more data" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/components/uni-load-more/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "上拉显示更多", 3 | "uni-load-more.contentrefresh": "正在加载...", 4 | "uni-load-more.contentnomore": "没有更多数据了" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-load-more.contentdown": "上拉顯示更多", 3 | "uni-load-more.contentrefresh": "正在加載...", 4 | "uni-load-more.contentnomore": "沒有更多數據了" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-load-more/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-load-more", 3 | "displayName": "uni-load-more 加载更多", 4 | "version": "1.3.3", 5 | "description": "LoadMore 组件,常用在列表里面,做滚动加载使用。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "加载更多", 10 | "load-more" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "y" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /uni_modules/uni-load-more/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ### LoadMore 加载更多 4 | > **组件名:uni-load-more** 5 | > 代码块: `uLoadMore` 6 | 7 | 8 | 用于列表中,做滚动加载使用,展示 loading 的各种状态。 9 | 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-load-more) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | -------------------------------------------------------------------------------- /uni_modules/uni-nav-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.6(2022-06-30) 2 | - 修复 组件示例中插槽用法无法显示内容的bug 3 | ## 1.3.5(2022-05-24) 4 | - 新增 stat 属性 ,可开启统计title 上报 ,仅使用了title 属性且项目开启了uni统计生效 5 | ## 1.3.4(2022-01-24) 6 | - 更新 组件示例 7 | ## 1.3.3(2022-01-24) 8 | - 新增 left-width/right-width属性 ,可修改左右两侧的宽度 9 | ## 1.3.2(2022-01-18) 10 | - 修复 在vue下,标题不垂直居中的bug 11 | ## 1.3.1(2022-01-18) 12 | - 修复 height 属性类型错误 13 | ## 1.3.0(2022-01-18) 14 | - 新增 height 属性,可修改组件高度 15 | - 新增 dark 属性可可开启暗黑模式 16 | - 优化 标题字数过多显示省略号 17 | - 优化 插槽,插入内容可完全覆盖 18 | ## 1.2.1(2022-01-10) 19 | - 修复 color 属性不生效的bug 20 | ## 1.2.0(2021-11-19) 21 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 22 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-nav-bar](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) 23 | ## 1.1.0(2021-07-30) 24 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 25 | ## 1.0.11(2021-05-12) 26 | - 新增 组件示例地址 27 | ## 1.0.10(2021-04-30) 28 | - 修复 在nvue下fixed为true,宽度不能撑满的Bug 29 | ## 1.0.9(2021-04-21) 30 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 31 | ## 1.0.8(2021-04-14) 32 | - uni-ui 修复 uni-nav-bar 当 fixed 属性为 true 时铺不满屏幕的 bug 33 | 34 | ## 1.0.7(2021-02-25) 35 | - 修复 easycom 下,找不到 uni-status-bar 的bug 36 | 37 | ## 1.0.6(2021-02-05) 38 | - 优化 组件引用关系,通过uni_modules引用组件 39 | 40 | ## 1.0.5(2021-02-05) 41 | - 调整为uni_modules目录规范 42 | -------------------------------------------------------------------------------- /uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 20 | 21 | 28 | -------------------------------------------------------------------------------- /uni_modules/uni-nav-bar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-nav-bar", 3 | "displayName": "uni-nav-bar 自定义导航栏", 4 | "version": "1.3.6", 5 | "description": "自定义导航栏组件,主要用于头部导航。", 6 | "keywords": [ 7 | "uni-ui", 8 | "导航", 9 | "导航栏", 10 | "自定义导航栏" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": [ 44 | "uni-scss", 45 | "uni-icons" 46 | ], 47 | "encrypt": [], 48 | "platforms": { 49 | "cloud": { 50 | "tcb": "y", 51 | "aliyun": "y" 52 | }, 53 | "client": { 54 | "App": { 55 | "app-vue": "y", 56 | "app-nvue": "y" 57 | }, 58 | "H5-mobile": { 59 | "Safari": "y", 60 | "Android Browser": "y", 61 | "微信浏览器(Android)": "y", 62 | "QQ浏览器(Android)": "y" 63 | }, 64 | "H5-pc": { 65 | "Chrome": "y", 66 | "IE": "y", 67 | "Edge": "y", 68 | "Firefox": "y", 69 | "Safari": "y" 70 | }, 71 | "小程序": { 72 | "微信": "y", 73 | "阿里": "y", 74 | "百度": "y", 75 | "字节跳动": "y", 76 | "QQ": "y" 77 | }, 78 | "快应用": { 79 | "华为": "u", 80 | "联盟": "u" 81 | }, 82 | "Vue": { 83 | "vue2": "y", 84 | "vue3": "y" 85 | } 86 | } 87 | } 88 | } 89 | } -------------------------------------------------------------------------------- /uni_modules/uni-nav-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NavBar 导航栏 4 | > **组件名:uni-nav-bar** 5 | > 代码块: `uNavBar` 6 | 7 | 导航栏组件,主要用于头部导航。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-nav-bar) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 11 | 12 | 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /uni_modules/uni-notice-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-notice-bar](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) 4 | ## 1.1.1(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.9(2021-05-12) 9 | - 新增 组件示例地址 10 | ## 1.0.8(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.7(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.6(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /uni_modules/uni-notice-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NoticeBar 通告栏 4 | > **组件名:uni-notice-bar** 5 | > 代码块: `uNoticeBar` 6 | 7 | 8 | 通告栏组件 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-notice-bar) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-number-box/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-number-box](https://uniapp.dcloud.io/component/uniui/uni-number-box) 6 | ## 1.1.2(2021-11-09) 7 | - 新增 提供组件设计资源,组件样式调整 8 | ## 1.1.1(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.1.0(2021-07-13) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.0.6(2021-04-20) 15 | - 修复 uni-number-box 浮点数运算不精确的 bug 16 | - 修复 uni-number-box change 事件触发不正确的 bug 17 | - 新增 uni-number-box v-model 双向绑定 18 | ## 1.0.5(2021-02-05) 19 | - 调整为uni_modules目录规范 20 | 21 | ## 1.0.7(2021-02-05) 22 | - 调整为uni_modules目录规范 23 | - 新增 支持 v-model 24 | - 新增 支持 focus、blur 事件 25 | - 新增 支持 PC 端 26 | -------------------------------------------------------------------------------- /uni_modules/uni-number-box/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-number-box", 3 | "displayName": "uni-number-box 数字输入框", 4 | "version": "1.2.1", 5 | "description": "NumberBox 带加减按钮的数字输入框组件,用户可以控制每次点击增加的数值,支持小数。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "数字输入框" 10 | ], 11 | "repository": "https://github.com/dcloudio/uni-ui", 12 | "engines": { 13 | "HBuilderX": "" 14 | }, 15 | "directories": { 16 | "example": "../../temps/example_temps" 17 | }, 18 | "dcloudext": { 19 | "category": [ 20 | "前端组件", 21 | "通用组件" 22 | ], 23 | "sale": { 24 | "regular": { 25 | "price": "0.00" 26 | }, 27 | "sourcecode": { 28 | "price": "0.00" 29 | } 30 | }, 31 | "contact": { 32 | "qq": "" 33 | }, 34 | "declaration": { 35 | "ads": "无", 36 | "data": "无", 37 | "permissions": "无" 38 | }, 39 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 40 | }, 41 | "uni_modules": { 42 | "dependencies": ["uni-scss"], 43 | "encrypt": [], 44 | "platforms": { 45 | "cloud": { 46 | "tcb": "y", 47 | "aliyun": "y" 48 | }, 49 | "client": { 50 | "App": { 51 | "app-vue": "y", 52 | "app-nvue": "y" 53 | }, 54 | "H5-mobile": { 55 | "Safari": "y", 56 | "Android Browser": "y", 57 | "微信浏览器(Android)": "y", 58 | "QQ浏览器(Android)": "y" 59 | }, 60 | "H5-pc": { 61 | "Chrome": "y", 62 | "IE": "y", 63 | "Edge": "y", 64 | "Firefox": "y", 65 | "Safari": "y" 66 | }, 67 | "小程序": { 68 | "微信": "y", 69 | "阿里": "y", 70 | "百度": "y", 71 | "字节跳动": "y", 72 | "QQ": "y" 73 | }, 74 | "快应用": { 75 | "华为": "u", 76 | "联盟": "u" 77 | }, 78 | "Vue": { 79 | "vue2": "y", 80 | "vue3": "y" 81 | } 82 | } 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /uni_modules/uni-number-box/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## NumberBox 数字输入框 4 | > **组件名:uni-number-box** 5 | > 代码块: `uNumberBox` 6 | 7 | 8 | 带加减按钮的数字输入框。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-number-box) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.2(2022-07-06) 2 | - 修复 es 语言 i18n 错误 3 | ## 1.2.1(2021-11-22) 4 | - 修复 vue3中某些scss变量无法找到的问题 5 | ## 1.2.0(2021-11-19) 6 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 7 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-pagination](https://uniapp.dcloud.io/component/uniui/uni-pagination) 8 | ## 1.1.2(2021-10-08) 9 | - 修复 current 、value 属性未监听,导致高亮样式失效的 bug 10 | ## 1.1.1(2021-08-20) 11 | - 新增 支持国际化 12 | ## 1.1.0(2021-07-30) 13 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 14 | ## 1.0.7(2021-05-12) 15 | - 新增 组件示例地址 16 | ## 1.0.6(2021-04-12) 17 | - 新增 PC 和 移动端适配不同的 ui 18 | ## 1.0.5(2021-02-05) 19 | - 优化 组件引用关系,通过uni_modules引用组件 20 | 21 | ## 1.0.4(2021-02-05) 22 | - 调整为uni_modules目录规范 23 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "prev", 3 | "uni-pagination.nextText": "next", 4 | "uni-pagination.piecePerPage": "piece/page" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/es.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/youlaitech/mall-app/adc53b7934c767d8267f883f27c7e9c4b1bdb538/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "précédente", 3 | "uni-pagination.nextText": "suivante", 4 | "uni-pagination.piecePerPage": "Articles/Pages" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import es from './es.json' 3 | import fr from './fr.json' 4 | import zhHans from './zh-Hans.json' 5 | import zhHant from './zh-Hant.json' 6 | export default { 7 | en, 8 | es, 9 | fr, 10 | 'zh-Hans': zhHans, 11 | 'zh-Hant': zhHant 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "上一页", 3 | "uni-pagination.nextText": "下一页", 4 | "uni-pagination.piecePerPage": "条/页" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-pagination.prevText": "上一頁", 3 | "uni-pagination.nextText": "下一頁", 4 | "uni-pagination.piecePerPage": "條/頁" 5 | } 6 | -------------------------------------------------------------------------------- /uni_modules/uni-pagination/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-pagination", 3 | "displayName": "uni-pagination 分页器", 4 | "version": "1.2.2", 5 | "description": "Pagination 分页器组件,用于展示页码、请求数据等。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "分页器", 10 | "页码" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss","uni-icons"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "y" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "y", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "u", 77 | "联盟": "u" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /uni_modules/uni-pagination/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Pagination 分页器 4 | > **组件名:uni-pagination** 5 | > 代码块: `uPagination` 6 | 7 | 8 | 分页器组件,用于展示页码、请求数据等。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-pagination) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.7.9(2022-04-02) 2 | - 修复 弹出层内部无法滚动的bug 3 | ## 1.7.8(2022-03-28) 4 | - 修复 小程序中高度错误的bug 5 | ## 1.7.7(2022-03-17) 6 | - 修复 快速调用open出现问题的Bug 7 | ## 1.7.6(2022-02-14) 8 | - 修复 safeArea 属性不能设置为false的bug 9 | ## 1.7.5(2022-01-19) 10 | - 修复 isMaskClick 失效的bug 11 | ## 1.7.4(2022-01-19) 12 | - 新增 cancelText \ confirmText 属性 ,可自定义文本 13 | - 新增 maskBackgroundColor 属性 ,可以修改蒙版颜色 14 | - 优化 maskClick属性 更新为 isMaskClick ,解决微信小程序警告的问题 15 | ## 1.7.3(2022-01-13) 16 | - 修复 设置 safeArea 属性不生效的bug 17 | ## 1.7.2(2021-11-26) 18 | - 优化 组件示例 19 | ## 1.7.1(2021-11-26) 20 | - 修复 vuedoc 文字错误 21 | ## 1.7.0(2021-11-19) 22 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 23 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-popup](https://uniapp.dcloud.io/component/uniui/uni-popup) 24 | ## 1.6.2(2021-08-24) 25 | - 新增 支持国际化 26 | ## 1.6.1(2021-07-30) 27 | - 优化 vue3下事件警告的问题 28 | ## 1.6.0(2021-07-13) 29 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 30 | ## 1.5.0(2021-06-23) 31 | - 新增 mask-click 遮罩层点击事件 32 | ## 1.4.5(2021-06-22) 33 | - 修复 nvue 平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug 34 | ## 1.4.4(2021-06-18) 35 | - 修复 H5平台中间弹出后,点击内容,再点击遮罩无法关闭的Bug 36 | ## 1.4.3(2021-06-08) 37 | - 修复 错误的 watch 字段 38 | - 修复 safeArea 属性不生效的问题 39 | - 修复 点击内容,再点击遮罩无法关闭的Bug 40 | ## 1.4.2(2021-05-12) 41 | - 新增 组件示例地址 42 | ## 1.4.1(2021-04-29) 43 | - 修复 组件内放置 input 、textarea 组件,无法聚焦的问题 44 | ## 1.4.0 (2021-04-29) 45 | - 新增 type 属性的 left\right 值,支持左右弹出 46 | - 新增 open(String:type) 方法参数 ,可以省略 type 属性 ,直接传入类型打开指定弹窗 47 | - 新增 backgroundColor 属性,可定义主窗口背景色,默认不显示背景色 48 | - 新增 safeArea 属性,是否适配底部安全区 49 | - 修复 App\h5\微信小程序底部安全区占位不对的Bug 50 | - 修复 App 端弹出等待的Bug 51 | - 优化 提升低配设备性能,优化动画卡顿问题 52 | - 优化 更简单的组件自定义方式 53 | ## 1.2.9(2021-02-05) 54 | - 优化 组件引用关系,通过uni_modules引用组件 55 | ## 1.2.8(2021-02-05) 56 | - 调整为uni_modules目录规范 57 | ## 1.2.7(2021-02-05) 58 | - 调整为uni_modules目录规范 59 | - 新增 支持 PC 端 60 | - 新增 uni-popup-message 、uni-popup-dialog扩展组件支持 PC 端 61 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup-dialog/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | this.$once('hook:beforeDestroy', () => { 40 | document.removeEventListener('keyup', listener) 41 | }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "cancel", 3 | "uni-popup.ok": "ok", 4 | "uni-popup.placeholder": "pleace enter", 5 | "uni-popup.title": "Hint", 6 | "uni-popup.shareTitle": "Share to" 7 | } 8 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "取消", 3 | "uni-popup.ok": "确定", 4 | "uni-popup.placeholder": "请输入", 5 | "uni-popup.title": "提示", 6 | "uni-popup.shareTitle": "分享到" 7 | } 8 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-popup.cancel": "取消", 3 | "uni-popup.ok": "確定", 4 | "uni-popup.placeholder": "請輸入", 5 | "uni-popup.title": "提示", 6 | "uni-popup.shareTitle": "分享到" 7 | } 8 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/keypress.js: -------------------------------------------------------------------------------- 1 | // #ifdef H5 2 | export default { 3 | name: 'Keypress', 4 | props: { 5 | disable: { 6 | type: Boolean, 7 | default: false 8 | } 9 | }, 10 | mounted () { 11 | const keyNames = { 12 | esc: ['Esc', 'Escape'], 13 | tab: 'Tab', 14 | enter: 'Enter', 15 | space: [' ', 'Spacebar'], 16 | up: ['Up', 'ArrowUp'], 17 | left: ['Left', 'ArrowLeft'], 18 | right: ['Right', 'ArrowRight'], 19 | down: ['Down', 'ArrowDown'], 20 | delete: ['Backspace', 'Delete', 'Del'] 21 | } 22 | const listener = ($event) => { 23 | if (this.disable) { 24 | return 25 | } 26 | const keyName = Object.keys(keyNames).find(key => { 27 | const keyName = $event.key 28 | const value = keyNames[key] 29 | return value === keyName || (Array.isArray(value) && value.includes(keyName)) 30 | }) 31 | if (keyName) { 32 | // 避免和其他按键事件冲突 33 | setTimeout(() => { 34 | this.$emit(keyName, {}) 35 | }, 0) 36 | } 37 | } 38 | document.addEventListener('keyup', listener) 39 | // this.$once('hook:beforeDestroy', () => { 40 | // document.removeEventListener('keyup', listener) 41 | // }) 42 | }, 43 | render: () => {} 44 | } 45 | // #endif 46 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/components/uni-popup/popup.js: -------------------------------------------------------------------------------- 1 | 2 | export default { 3 | data() { 4 | return { 5 | 6 | } 7 | }, 8 | created(){ 9 | this.popup = this.getParent() 10 | }, 11 | methods:{ 12 | /** 13 | * 获取父元素实例 14 | */ 15 | getParent(name = 'uniPopup') { 16 | let parent = this.$parent; 17 | let parentName = parent.$options.name; 18 | while (parentName !== name) { 19 | parent = parent.$parent; 20 | if (!parent) return false 21 | parentName = parent.$options.name; 22 | } 23 | return parent; 24 | }, 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-popup", 3 | "displayName": "uni-popup 弹出层", 4 | "version": "1.7.9", 5 | "description": " Popup 组件,提供常用的弹层", 6 | "keywords": [ 7 | "uni-ui", 8 | "弹出层", 9 | "弹窗", 10 | "popup", 11 | "弹框" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": [ 45 | "uni-scss", 46 | "uni-transition" 47 | ], 48 | "encrypt": [], 49 | "platforms": { 50 | "cloud": { 51 | "tcb": "y", 52 | "aliyun": "y" 53 | }, 54 | "client": { 55 | "App": { 56 | "app-vue": "y", 57 | "app-nvue": "y" 58 | }, 59 | "H5-mobile": { 60 | "Safari": "y", 61 | "Android Browser": "y", 62 | "微信浏览器(Android)": "y", 63 | "QQ浏览器(Android)": "y" 64 | }, 65 | "H5-pc": { 66 | "Chrome": "y", 67 | "IE": "y", 68 | "Edge": "y", 69 | "Firefox": "y", 70 | "Safari": "y" 71 | }, 72 | "小程序": { 73 | "微信": "y", 74 | "阿里": "y", 75 | "百度": "y", 76 | "字节跳动": "y", 77 | "QQ": "y" 78 | }, 79 | "快应用": { 80 | "华为": "u", 81 | "联盟": "u" 82 | }, 83 | "Vue": { 84 | "vue2": "y", 85 | "vue3": "y" 86 | } 87 | } 88 | } 89 | } 90 | } 91 | -------------------------------------------------------------------------------- /uni_modules/uni-popup/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Popup 弹出层 4 | > **组件名:uni-popup** 5 | > 代码块: `uPopup` 6 | > 关联组件:`uni-transition` 7 | 8 | 9 | 弹出层组件,在应用中弹出一个消息提示窗口、提示框等 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-popup) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /uni_modules/uni-rate/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2022-02-25) 2 | - 修复 条件判断 `NaN` 错误的 bug 3 | ## 1.3.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-rate](https://uniapp.dcloud.io/component/uniui/uni-rate) 6 | ## 1.2.2(2021-09-10) 7 | - 优化 默认值修改为 0 颗星 8 | ## 1.2.1(2021-07-30) 9 | - 优化 vue3下事件警告的问题 10 | ## 1.2.0(2021-07-13) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.1.2(2021-05-12) 13 | - 新增 组件示例地址 14 | ## 1.1.1(2021-04-21) 15 | - 修复 布局变化后 uni-rate 星星计算不准确的 bug 16 | - 优化 添加依赖 uni-icons, 导入 uni-rate 自动下载依赖 17 | ## 1.1.0(2021-04-16) 18 | - 修复 uni-rate 属性 margin 值为 string 组件失效的 bug 19 | 20 | ## 1.0.9(2021-02-05) 21 | - 优化 组件引用关系,通过uni_modules引用组件 22 | 23 | ## 1.0.8(2021-02-05) 24 | - 调整为uni_modules目录规范 25 | - 支持 pc 端 26 | -------------------------------------------------------------------------------- /uni_modules/uni-rate/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-rate", 3 | "displayName": "uni-rate 评分", 4 | "version": "1.3.1", 5 | "description": "Rate 评分组件,可自定义评分星星图标的大小、间隔、评分数。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "评分" 10 | ], 11 | "repository": "https://github.com/dcloudio/uni-ui", 12 | "engines": { 13 | "HBuilderX": "" 14 | }, 15 | "directories": { 16 | "example": "../../temps/example_temps" 17 | }, 18 | "dcloudext": { 19 | "category": [ 20 | "前端组件", 21 | "通用组件" 22 | ], 23 | "sale": { 24 | "regular": { 25 | "price": "0.00" 26 | }, 27 | "sourcecode": { 28 | "price": "0.00" 29 | } 30 | }, 31 | "contact": { 32 | "qq": "" 33 | }, 34 | "declaration": { 35 | "ads": "无", 36 | "data": "无", 37 | "permissions": "无" 38 | }, 39 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 40 | }, 41 | "uni_modules": { 42 | "dependencies": [ 43 | "uni-scss", 44 | "uni-icons" 45 | ], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "u", 79 | "联盟": "u" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } 89 | -------------------------------------------------------------------------------- /uni_modules/uni-rate/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Rate 评分 4 | > **组件名:uni-rate** 5 | > 代码块: `uRate` 6 | > 关联组件:`uni-icons` 7 | 8 | 9 | 评分组件,多用于购买商品后,对商品进行评价等场景 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-rate) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-row/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-row](https://uniapp.dcloud.io/component/uniui/uni-row) 4 | ## 0.1.0(2021-07-13) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 0.0.4(2021-05-12) 7 | - 新增 组件示例地址 8 | ## 0.0.3(2021-02-05) 9 | - 调整为uni_modules目录规范 10 | - 新增uni-row组件 11 | -------------------------------------------------------------------------------- /uni_modules/uni-row/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-row", 3 | "displayName": "uni-row 布局-行", 4 | "version": "1.0.0", 5 | "description": "流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "栅格", 10 | "布局", 11 | "layout" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "u" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-row/readme.md: -------------------------------------------------------------------------------- 1 | ## Layout 布局 2 | 3 | > **组件名 uni-row、uni-col** 4 | > 代码块: `uRow`、`uCol` 5 | 6 | 7 | 流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。 8 | 9 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-row) 10 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-scss/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.0.3(2022-01-21) 2 | - 优化 组件示例 3 | ## 1.0.2(2021-11-22) 4 | - 修复 / 符号在 vue 不同版本兼容问题引起的报错问题 5 | ## 1.0.1(2021-11-22) 6 | - 修复 vue3中scss语法兼容问题 7 | ## 1.0.0(2021-11-18) 8 | - init 9 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/index.scss: -------------------------------------------------------------------------------- 1 | @import './styles/index.scss'; 2 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-scss", 3 | "displayName": "uni-scss 辅助样式", 4 | "version": "1.0.3", 5 | "description": "uni-sass是uni-ui提供的一套全局样式 ,通过一些简单的类名和sass变量,实现简单的页面布局操作,比如颜色、边距、圆角等。", 6 | "keywords": [ 7 | "uni-scss", 8 | "uni-ui", 9 | "辅助样式" 10 | ], 11 | "repository": "https://github.com/dcloudio/uni-ui", 12 | "engines": { 13 | "HBuilderX": "^3.1.0" 14 | }, 15 | "dcloudext": { 16 | "category": [ 17 | "JS SDK", 18 | "通用 SDK" 19 | ], 20 | "sale": { 21 | "regular": { 22 | "price": "0.00" 23 | }, 24 | "sourcecode": { 25 | "price": "0.00" 26 | } 27 | }, 28 | "contact": { 29 | "qq": "" 30 | }, 31 | "declaration": { 32 | "ads": "无", 33 | "data": "无", 34 | "permissions": "无" 35 | }, 36 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 37 | }, 38 | "uni_modules": { 39 | "dependencies": [], 40 | "encrypt": [], 41 | "platforms": { 42 | "cloud": { 43 | "tcb": "y", 44 | "aliyun": "y" 45 | }, 46 | "client": { 47 | "App": { 48 | "app-vue": "y", 49 | "app-nvue": "u" 50 | }, 51 | "H5-mobile": { 52 | "Safari": "y", 53 | "Android Browser": "y", 54 | "微信浏览器(Android)": "y", 55 | "QQ浏览器(Android)": "y" 56 | }, 57 | "H5-pc": { 58 | "Chrome": "y", 59 | "IE": "y", 60 | "Edge": "y", 61 | "Firefox": "y", 62 | "Safari": "y" 63 | }, 64 | "小程序": { 65 | "微信": "y", 66 | "阿里": "y", 67 | "百度": "y", 68 | "字节跳动": "y", 69 | "QQ": "y" 70 | }, 71 | "快应用": { 72 | "华为": "n", 73 | "联盟": "n" 74 | }, 75 | "Vue": { 76 | "vue2": "y", 77 | "vue3": "y" 78 | } 79 | } 80 | } 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/readme.md: -------------------------------------------------------------------------------- 1 | `uni-sass` 是 `uni-ui`提供的一套全局样式 ,通过一些简单的类名和`sass`变量,实现简单的页面布局操作,比如颜色、边距、圆角等。 2 | 3 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-sass) 4 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/index.scss: -------------------------------------------------------------------------------- 1 | @import './setting/_variables.scss'; 2 | @import './setting/_border.scss'; 3 | @import './setting/_color.scss'; 4 | @import './setting/_space.scss'; 5 | @import './setting/_radius.scss'; 6 | @import './setting/_text.scss'; 7 | @import './setting/_styles.scss'; 8 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/setting/_border.scss: -------------------------------------------------------------------------------- 1 | .uni-border { 2 | border: 1px $uni-border-1 solid; 3 | } -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/setting/_color.scss: -------------------------------------------------------------------------------- 1 | 2 | // TODO 暂时不需要 class ,需要用户使用变量实现 ,如果使用类名其实并不推荐 3 | // @mixin get-styles($k,$c) { 4 | // @if $k == size or $k == weight{ 5 | // font-#{$k}:#{$c} 6 | // }@else{ 7 | // #{$k}:#{$c} 8 | // } 9 | // } 10 | $uni-ui-color:( 11 | // 主色 12 | primary: $uni-primary, 13 | primary-disable: $uni-primary-disable, 14 | primary-light: $uni-primary-light, 15 | // 辅助色 16 | success: $uni-success, 17 | success-disable: $uni-success-disable, 18 | success-light: $uni-success-light, 19 | warning: $uni-warning, 20 | warning-disable: $uni-warning-disable, 21 | warning-light: $uni-warning-light, 22 | error: $uni-error, 23 | error-disable: $uni-error-disable, 24 | error-light: $uni-error-light, 25 | info: $uni-info, 26 | info-disable: $uni-info-disable, 27 | info-light: $uni-info-light, 28 | // 中性色 29 | main-color: $uni-main-color, 30 | base-color: $uni-base-color, 31 | secondary-color: $uni-secondary-color, 32 | extra-color: $uni-extra-color, 33 | // 背景色 34 | bg-color: $uni-bg-color, 35 | // 边框颜色 36 | border-1: $uni-border-1, 37 | border-2: $uni-border-2, 38 | border-3: $uni-border-3, 39 | border-4: $uni-border-4, 40 | // 黑色 41 | black:$uni-black, 42 | // 白色 43 | white:$uni-white, 44 | // 透明 45 | transparent:$uni-transparent 46 | ) !default; 47 | @each $key, $child in $uni-ui-color { 48 | .uni-#{"" + $key} { 49 | color: $child; 50 | } 51 | .uni-#{"" + $key}-bg { 52 | background-color: $child; 53 | } 54 | } 55 | .uni-shadow-sm { 56 | box-shadow: $uni-shadow-sm; 57 | } 58 | .uni-shadow-base { 59 | box-shadow: $uni-shadow-base; 60 | } 61 | .uni-shadow-lg { 62 | box-shadow: $uni-shadow-lg; 63 | } 64 | .uni-mask { 65 | background-color:$uni-mask; 66 | } 67 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/setting/_radius.scss: -------------------------------------------------------------------------------- 1 | @mixin radius($r,$d:null ,$important: false){ 2 | $radius-value:map-get($uni-radius, $r) if($important, !important, null); 3 | // Key exists within the $uni-radius variable 4 | @if (map-has-key($uni-radius, $r) and $d){ 5 | @if $d == t { 6 | border-top-left-radius:$radius-value; 7 | border-top-right-radius:$radius-value; 8 | }@else if $d == r { 9 | border-top-right-radius:$radius-value; 10 | border-bottom-right-radius:$radius-value; 11 | }@else if $d == b { 12 | border-bottom-left-radius:$radius-value; 13 | border-bottom-right-radius:$radius-value; 14 | }@else if $d == l { 15 | border-top-left-radius:$radius-value; 16 | border-bottom-left-radius:$radius-value; 17 | }@else if $d == tl { 18 | border-top-left-radius:$radius-value; 19 | }@else if $d == tr { 20 | border-top-right-radius:$radius-value; 21 | }@else if $d == br { 22 | border-bottom-right-radius:$radius-value; 23 | }@else if $d == bl { 24 | border-bottom-left-radius:$radius-value; 25 | } 26 | }@else{ 27 | border-radius:$radius-value; 28 | } 29 | } 30 | 31 | @each $key, $child in $uni-radius { 32 | @if($key){ 33 | .uni-radius-#{"" + $key} { 34 | @include radius($key) 35 | } 36 | }@else{ 37 | .uni-radius { 38 | @include radius($key) 39 | } 40 | } 41 | } 42 | 43 | @each $direction in t, r, b, l,tl, tr, br, bl { 44 | @each $key, $child in $uni-radius { 45 | @if($key){ 46 | .uni-radius-#{"" + $direction}-#{"" + $key} { 47 | @include radius($key,$direction,false) 48 | } 49 | }@else{ 50 | .uni-radius-#{$direction} { 51 | @include radius($key,$direction,false) 52 | } 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/setting/_space.scss: -------------------------------------------------------------------------------- 1 | 2 | @mixin fn($space,$direction,$size,$n) { 3 | @if $n { 4 | #{$space}-#{$direction}: #{$size*$uni-space-root}px 5 | } @else { 6 | #{$space}-#{$direction}: #{-$size*$uni-space-root}px 7 | } 8 | } 9 | @mixin get-styles($direction,$i,$space,$n){ 10 | @if $direction == t { 11 | @include fn($space, top,$i,$n); 12 | } 13 | @if $direction == r { 14 | @include fn($space, right,$i,$n); 15 | } 16 | @if $direction == b { 17 | @include fn($space, bottom,$i,$n); 18 | } 19 | @if $direction == l { 20 | @include fn($space, left,$i,$n); 21 | } 22 | @if $direction == x { 23 | @include fn($space, left,$i,$n); 24 | @include fn($space, right,$i,$n); 25 | } 26 | @if $direction == y { 27 | @include fn($space, top,$i,$n); 28 | @include fn($space, bottom,$i,$n); 29 | } 30 | @if $direction == a { 31 | @if $n { 32 | #{$space}:#{$i*$uni-space-root}px; 33 | } @else { 34 | #{$space}:#{-$i*$uni-space-root}px; 35 | } 36 | } 37 | } 38 | 39 | @each $orientation in m,p { 40 | $space: margin; 41 | @if $orientation == m { 42 | $space: margin; 43 | } @else { 44 | $space: padding; 45 | } 46 | @for $i from 0 through 16 { 47 | @each $direction in t, r, b, l, x, y, a { 48 | .uni-#{$orientation}#{$direction}-#{$i} { 49 | @include get-styles($direction,$i,$space,true); 50 | } 51 | .uni-#{$orientation}#{$direction}-n#{$i} { 52 | @include get-styles($direction,$i,$space,false); 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/setting/_text.scss: -------------------------------------------------------------------------------- 1 | @mixin get-styles($k,$c) { 2 | @if $k == size or $k == weight{ 3 | font-#{$k}:#{$c} 4 | }@else{ 5 | #{$k}:#{$c} 6 | } 7 | } 8 | 9 | @each $key, $child in $uni-headings { 10 | /* #ifndef APP-NVUE */ 11 | .uni-#{$key} { 12 | @each $k, $c in $child { 13 | @include get-styles($k,$c) 14 | } 15 | } 16 | /* #endif */ 17 | /* #ifdef APP-NVUE */ 18 | .container .uni-#{$key} { 19 | @each $k, $c in $child { 20 | @include get-styles($k,$c) 21 | } 22 | } 23 | /* #endif */ 24 | } 25 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/styles/tools/functions.scss: -------------------------------------------------------------------------------- 1 | // 合并 map 2 | @function map-deep-merge($parent-map, $child-map){ 3 | $result: $parent-map; 4 | @each $key, $child in $child-map { 5 | $parent-has-key: map-has-key($result, $key); 6 | $parent-value: map-get($result, $key); 7 | $parent-type: type-of($parent-value); 8 | $child-type: type-of($child); 9 | $parent-is-map: $parent-type == map; 10 | $child-is-map: $child-type == map; 11 | 12 | @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){ 13 | $result: map-merge($result, ( $key: $child )); 14 | }@else { 15 | $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) )); 16 | } 17 | } 18 | @return $result; 19 | }; 20 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/theme.scss: -------------------------------------------------------------------------------- 1 | // 间距基础倍数 2 | $uni-space-root: 2; 3 | // 边框半径默认值 4 | $uni-radius-root:5px; 5 | // 主色 6 | $uni-primary: #2979ff; 7 | // 辅助色 8 | $uni-success: #4cd964; 9 | // 警告色 10 | $uni-warning: #f0ad4e; 11 | // 错误色 12 | $uni-error: #dd524d; 13 | // 描述色 14 | $uni-info: #909399; 15 | // 中性色 16 | $uni-main-color: #303133; 17 | $uni-base-color: #606266; 18 | $uni-secondary-color: #909399; 19 | $uni-extra-color: #C0C4CC; 20 | // 背景色 21 | $uni-bg-color: #f5f5f5; 22 | // 边框颜色 23 | $uni-border-1: #DCDFE6; 24 | $uni-border-2: #E4E7ED; 25 | $uni-border-3: #EBEEF5; 26 | $uni-border-4: #F2F6FC; 27 | 28 | // 常规色 29 | $uni-black: #000000; 30 | $uni-white: #ffffff; 31 | $uni-transparent: rgba($color: #000000, $alpha: 0); 32 | -------------------------------------------------------------------------------- /uni_modules/uni-scss/variables.scss: -------------------------------------------------------------------------------- 1 | @import './styles/setting/_variables.scss'; 2 | // 间距基础倍数 3 | $uni-space-root: 2; 4 | // 边框半径默认值 5 | $uni-radius-root:5px; 6 | 7 | // 主色 8 | $uni-primary: #2979ff; 9 | $uni-primary-disable:mix(#fff,$uni-primary,50%); 10 | $uni-primary-light: mix(#fff,$uni-primary,80%); 11 | 12 | // 辅助色 13 | // 除了主色外的场景色,需要在不同的场景中使用(例如危险色表示危险的操作)。 14 | $uni-success: #18bc37; 15 | $uni-success-disable:mix(#fff,$uni-success,50%); 16 | $uni-success-light: mix(#fff,$uni-success,80%); 17 | 18 | $uni-warning: #f3a73f; 19 | $uni-warning-disable:mix(#fff,$uni-warning,50%); 20 | $uni-warning-light: mix(#fff,$uni-warning,80%); 21 | 22 | $uni-error: #e43d33; 23 | $uni-error-disable:mix(#fff,$uni-error,50%); 24 | $uni-error-light: mix(#fff,$uni-error,80%); 25 | 26 | $uni-info: #8f939c; 27 | $uni-info-disable:mix(#fff,$uni-info,50%); 28 | $uni-info-light: mix(#fff,$uni-info,80%); 29 | 30 | // 中性色 31 | // 中性色用于文本、背景和边框颜色。通过运用不同的中性色,来表现层次结构。 32 | $uni-main-color: #3a3a3a; // 主要文字 33 | $uni-base-color: #6a6a6a; // 常规文字 34 | $uni-secondary-color: #909399; // 次要文字 35 | $uni-extra-color: #c7c7c7; // 辅助说明 36 | 37 | // 边框颜色 38 | $uni-border-1: #F0F0F0; 39 | $uni-border-2: #EDEDED; 40 | $uni-border-3: #DCDCDC; 41 | $uni-border-4: #B9B9B9; 42 | 43 | // 常规色 44 | $uni-black: #000000; 45 | $uni-white: #ffffff; 46 | $uni-transparent: rgba($color: #000000, $alpha: 0); 47 | 48 | // 背景色 49 | $uni-bg-color: #f7f7f7; 50 | 51 | /* 水平间距 */ 52 | $uni-spacing-sm: 8px; 53 | $uni-spacing-base: 15px; 54 | $uni-spacing-lg: 30px; 55 | 56 | // 阴影 57 | $uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5); 58 | $uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2); 59 | $uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5); 60 | 61 | // 蒙版 62 | $uni-mask: rgba($color: #000000, $alpha: 0.4); 63 | -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.3(2022-05-24) 2 | - 新增 readonly 属性,组件只读 3 | ## 1.2.2(2022-05-06) 4 | - 修复 vue3 input 事件不生效的bug 5 | ## 1.2.1(2022-05-06) 6 | - 修复 多余代码导致的bug 7 | ## 1.2.0(2021-11-19) 8 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 9 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-search-bar](https://uniapp.dcloud.io/component/uniui/uni-search-bar) 10 | ## 1.1.2(2021-08-30) 11 | - 修复 value 属性与 modelValue 属性不兼容的Bug 12 | ## 1.1.1(2021-08-24) 13 | - 新增 支持国际化 14 | ## 1.1.0(2021-07-30) 15 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 16 | ## 1.0.9(2021-05-12) 17 | - 新增 项目示例地址 18 | ## 1.0.8(2021-04-21) 19 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 20 | ## 1.0.7(2021-04-15) 21 | - uni-ui 新增 uni-search-bar 的 focus 事件 22 | 23 | ## 1.0.6(2021-02-05) 24 | - 优化 组件引用关系,通过uni_modules引用组件 25 | 26 | ## 1.0.5(2021-02-05) 27 | - 调整为uni_modules目录规范 28 | - 新增 支持双向绑定 29 | - 更改 input 事件的返回值,e={value:Number} --> e=value 30 | - 新增 支持图标插槽 31 | - 新增 支持 clear、blur 事件 32 | - 新增 支持 focus 属性 33 | - 去掉组件背景色 34 | -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "Search enter content" 4 | } -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import zhHans from './zh-Hans.json' 3 | import zhHant from './zh-Hant.json' 4 | export default { 5 | en, 6 | 'zh-Hans': zhHans, 7 | 'zh-Hant': zhHant 8 | } 9 | -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "请输入搜索内容" 4 | } 5 | -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "uni-search-bar.cancel": "cancel", 3 | "uni-search-bar.placeholder": "請輸入搜索內容" 4 | } 5 | -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-search-bar", 3 | "displayName": "uni-search-bar 搜索栏", 4 | "version": "1.2.3", 5 | "description": "搜索栏组件,通常用于搜索商品、文章等", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "搜索框", 10 | "搜索栏" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": [ 44 | "uni-scss", 45 | "uni-icons" 46 | ], 47 | "encrypt": [], 48 | "platforms": { 49 | "cloud": { 50 | "tcb": "y", 51 | "aliyun": "y" 52 | }, 53 | "client": { 54 | "App": { 55 | "app-vue": "y", 56 | "app-nvue": "y" 57 | }, 58 | "H5-mobile": { 59 | "Safari": "y", 60 | "Android Browser": "y", 61 | "微信浏览器(Android)": "y", 62 | "QQ浏览器(Android)": "y" 63 | }, 64 | "H5-pc": { 65 | "Chrome": "y", 66 | "IE": "y", 67 | "Edge": "y", 68 | "Firefox": "y", 69 | "Safari": "y" 70 | }, 71 | "小程序": { 72 | "微信": "y", 73 | "阿里": "y", 74 | "百度": "y", 75 | "字节跳动": "y", 76 | "QQ": "y" 77 | }, 78 | "快应用": { 79 | "华为": "u", 80 | "联盟": "u" 81 | }, 82 | "Vue": { 83 | "vue2": "y", 84 | "vue3": "y" 85 | } 86 | } 87 | } 88 | } 89 | } -------------------------------------------------------------------------------- /uni_modules/uni-search-bar/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SearchBar 搜索栏 4 | 5 | > **组件名:uni-search-bar** 6 | > 代码块: `uSearchBar` 7 | 8 | 9 | 搜索栏组件 10 | 11 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-search-bar) 12 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 13 | 14 | 15 | -------------------------------------------------------------------------------- /uni_modules/uni-segmented-control/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-segmented-control](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) 4 | ## 1.1.0(2021-07-30) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 1.0.5(2021-05-12) 7 | - 新增 项目示例地址 8 | ## 1.0.4(2021-02-05) 9 | - 调整为uni_modules目录规范 10 | -------------------------------------------------------------------------------- /uni_modules/uni-segmented-control/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SegmentedControl 分段器 4 | > **组件名:uni-segmented-control** 5 | > 代码块: `uSegmentedControl` 6 | 7 | 8 | 用作不同视图的显示 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-segmented-control) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-steps/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.1.1(2021-11-22) 2 | - 修复 vue3中某些scss变量无法找到的问题 3 | ## 1.1.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-steps](https://uniapp.dcloud.io/component/uniui/uni-steps) 6 | ## 1.0.8(2021-05-12) 7 | - 新增 项目示例地址 8 | ## 1.0.7(2021-05-06) 9 | - 修复 uni-steps 横向布局时,多行文字高度不合理的 bug 10 | ## 1.0.6(2021-04-21) 11 | - 优化 添加依赖 uni-icons, 导入后自动下载依赖 12 | ## 1.0.5(2021-02-05) 13 | - 优化 组件引用关系,通过uni_modules引用组件 14 | 15 | ## 1.0.4(2021-02-05) 16 | - 调整为uni_modules目录规范 17 | -------------------------------------------------------------------------------- /uni_modules/uni-steps/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-steps", 3 | "displayName": "uni-steps 步骤条", 4 | "version": "1.1.1", 5 | "description": "步骤条组件,提供横向和纵向两种布局格式。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "步骤条", 10 | "时间轴" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": [ 44 | "uni-scss", 45 | "uni-icons" 46 | ], 47 | "encrypt": [], 48 | "platforms": { 49 | "cloud": { 50 | "tcb": "y", 51 | "aliyun": "y" 52 | }, 53 | "client": { 54 | "App": { 55 | "app-vue": "y", 56 | "app-nvue": "y" 57 | }, 58 | "H5-mobile": { 59 | "Safari": "y", 60 | "Android Browser": "y", 61 | "微信浏览器(Android)": "y", 62 | "QQ浏览器(Android)": "y" 63 | }, 64 | "H5-pc": { 65 | "Chrome": "y", 66 | "IE": "y", 67 | "Edge": "y", 68 | "Firefox": "y", 69 | "Safari": "y" 70 | }, 71 | "小程序": { 72 | "微信": "y", 73 | "阿里": "y", 74 | "百度": "y", 75 | "字节跳动": "y", 76 | "QQ": "y" 77 | }, 78 | "快应用": { 79 | "华为": "u", 80 | "联盟": "u" 81 | }, 82 | "Vue": { 83 | "vue2": "y", 84 | "vue3": "y" 85 | } 86 | } 87 | } 88 | } 89 | } -------------------------------------------------------------------------------- /uni_modules/uni-steps/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Steps 步骤条 4 | > **组件名:uni-steps** 5 | > 代码块: `uSteps` 6 | 7 | 8 | 步骤条,常用于显示进度 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-steps) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.7(2022-06-06) 2 | - 修复 vue3 下使用组件不能正常运行的Bug 3 | ## 1.3.6(2022-05-31) 4 | - 修复 h5端点击click触发两次的Bug 5 | ## 1.3.5(2022-05-23) 6 | - 修复 isPC 找不到的Bug 7 | ## 1.3.4(2022-05-19) 8 | - 修复 在 nvue 下 disabled 失效的bug 9 | ## 1.3.3(2022-03-31) 10 | - 修复 按钮字体大小不能设置的bug 11 | ## 1.3.2(2022-03-16) 12 | - 修复 h5和app端下报el错误的bug 13 | ## 1.3.1(2022-03-07) 14 | - 修复 HBuilderX 1.4.X 版本中,h5和app端下报错的bug 15 | ## 1.3.0(2021-11-19) 16 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 17 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swipe-action](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) 18 | ## 1.2.4(2021-08-20) 19 | - 优化 close-all 方法 20 | ## 1.2.3(2021-08-20) 21 | - 新增 close-all 方法,关闭所有已打开的组件 22 | ## 1.2.2(2021-08-17) 23 | - 新增 resize() 方法,在非微信小程序、h5、app-vue端出现不能滑动的问题的时候,重置组件 24 | - 修复 app 端偶尔出现类似 Page[x][-x,xx;-x,xx,x,x-x] 的问题 25 | - 优化 微信小程序、h5、app-vue 滑动逻辑,避免出现动态新增组件后不能滑动的问题 26 | ## 1.2.1(2021-07-30) 27 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 28 | - 修复 跨页面修改组件数据 ,导致不能滑动的问题 29 | ## 1.1.10(2021-06-17) 30 | - 修复 按钮点击执行两次的bug 31 | ## 1.1.9(2021-05-12) 32 | - 新增 项目示例地址 33 | ## 1.1.8(2021-03-26) 34 | - 修复 微信小程序 nv_navigator is not defined 报错的bug 35 | ## 1.1.7(2021-02-05) 36 | - 调整为uni_modules目录规范 37 | - 新增 左侧滑动 38 | - 新增 插槽使用方式 39 | - 新增 threshold 属性,可以控制滑动缺省值 40 | - 优化 长列表滚动性能 41 | - 修复 滚动页面时触发组件滑动的Bug 42 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js: -------------------------------------------------------------------------------- 1 | export function isPC() { 2 | var userAgentInfo = navigator.userAgent; 3 | var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"]; 4 | var flag = true; 5 | for (let v = 0; v < Agents.length - 1; v++) { 6 | if (userAgentInfo.indexOf(Agents[v]) > 0) { 7 | flag = false; 8 | break; 9 | } 10 | } 11 | return flag; 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js: -------------------------------------------------------------------------------- 1 | let mpMixins = {} 2 | let is_pc = null 3 | // #ifdef H5 4 | import { 5 | isPC 6 | } from "./isPC" 7 | is_pc = isPC() 8 | // #endif 9 | // #ifdef APP-VUE|| MP-WEIXIN || H5 10 | 11 | mpMixins = { 12 | data() { 13 | return { 14 | is_show: 'none' 15 | } 16 | }, 17 | watch: { 18 | show(newVal) { 19 | this.is_show = this.show 20 | } 21 | }, 22 | created() { 23 | this.swipeaction = this.getSwipeAction() 24 | if (this.swipeaction.children !== undefined) { 25 | this.swipeaction.children.push(this) 26 | } 27 | }, 28 | mounted() { 29 | this.is_show = this.show 30 | }, 31 | methods: { 32 | // wxs 中调用 33 | closeSwipe(e) { 34 | if (!this.autoClose) return 35 | this.swipeaction.closeOther(this) 36 | }, 37 | 38 | change(e) { 39 | this.$emit('change', e.open) 40 | if (this.is_show !== e.open) { 41 | this.is_show = e.open 42 | } 43 | }, 44 | 45 | appTouchStart(e) { 46 | if (is_pc) return 47 | const { 48 | clientX 49 | } = e.changedTouches[0] 50 | this.clientX = clientX 51 | this.timestamp = new Date().getTime() 52 | }, 53 | appTouchEnd(e, index, item, position) { 54 | if (is_pc) return 55 | const { 56 | clientX 57 | } = e.changedTouches[0] 58 | // fixed by xxxx 模拟点击事件,解决 ios 13 点击区域错位的问题 59 | let diff = Math.abs(this.clientX - clientX) 60 | let time = (new Date().getTime()) - this.timestamp 61 | if (diff < 40 && time < 300) { 62 | this.$emit('click', { 63 | content: item, 64 | index, 65 | position 66 | }) 67 | } 68 | }, 69 | onClickForPC(index, item, position) { 70 | if (!is_pc) return 71 | // #ifdef H5 72 | this.$emit('click', { 73 | content: item, 74 | index, 75 | position 76 | }) 77 | // #endif 78 | } 79 | } 80 | } 81 | 82 | // #endif 83 | export default mpMixins 84 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue: -------------------------------------------------------------------------------- 1 | 6 | 7 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-swipe-action", 3 | "displayName": "uni-swipe-action 滑动操作", 4 | "version": "1.3.7", 5 | "description": "SwipeAction 滑动操作操作组件", 6 | "keywords": [ 7 | "", 8 | "uni-ui", 9 | "uniui", 10 | "滑动删除", 11 | "侧滑删除" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "y", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } 88 | -------------------------------------------------------------------------------- /uni_modules/uni-swipe-action/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SwipeAction 滑动操作 4 | > **组件名:uni-swipe-action** 5 | > 代码块: `uSwipeAction`、`uSwipeActionItem` 6 | 7 | 8 | 通过滑动触发选项的容器 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swipe-action) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-swiper-dot/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-swiper-dot](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) 4 | ## 1.1.0(2021-07-30) 5 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 6 | ## 1.0.6(2021-05-12) 7 | - 新增 示例地址 8 | - 修复 示例项目缺少组件的Bug 9 | ## 1.0.5(2021-02-05) 10 | - 调整为uni_modules目录规范 11 | - 新增 clickItem 事件,支持指示点控制轮播 12 | - 新增 支持 pc 可用 13 | -------------------------------------------------------------------------------- /uni_modules/uni-swiper-dot/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-swiper-dot", 3 | "displayName": "uni-swiper-dot 轮播图指示点", 4 | "version": "1.2.0", 5 | "description": "自定义轮播图指示点组件", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "轮播图指示点", 10 | "dot", 11 | "swiper" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-swiper-dot/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## SwiperDot 轮播图指示点 4 | > **组件名:uni-swiper-dot** 5 | > 代码块: `uSwiperDot` 6 | 7 | 8 | 自定义轮播图指示点 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-table/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.2.1(2022-06-06) 2 | - 修复 微信小程序存在无使用组件的问题 3 | ## 1.2.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table) 6 | ## 1.1.0(2021-07-30) 7 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 8 | ## 1.0.7(2021-07-08) 9 | - 新增 uni-th 支持 date 日期筛选范围 10 | ## 1.0.6(2021-07-05) 11 | - 新增 uni-th 支持 range 筛选范围 12 | ## 1.0.5(2021-06-28) 13 | - 新增 uni-th 筛选功能 14 | ## 1.0.4(2021-05-12) 15 | - 新增 示例地址 16 | - 修复 示例项目缺少组件的Bug 17 | ## 1.0.3(2021-04-16) 18 | - 新增 sortable 属性,是否开启单列排序 19 | - 优化 表格多选逻辑 20 | ## 1.0.2(2021-03-22) 21 | - uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制 22 | ## 1.0.1(2021-02-05) 23 | - 调整为uni_modules目录规范 24 | -------------------------------------------------------------------------------- /uni_modules/uni-table/components/uni-tbody/uni-tbody.vue: -------------------------------------------------------------------------------- 1 | 11 | 12 | 27 | 28 | 30 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/en.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Reset", 3 | "filter-dropdown.search": "Search", 4 | "filter-dropdown.submit": "Submit", 5 | "filter-dropdown.filter": "Filter", 6 | "filter-dropdown.gt": "Greater or equal to", 7 | "filter-dropdown.lt": "Less than or equal to", 8 | "filter-dropdown.date": "Date" 9 | } 10 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/es.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Reiniciar", 3 | "filter-dropdown.search": "Búsqueda", 4 | "filter-dropdown.submit": "Entregar", 5 | "filter-dropdown.filter": "Filtrar", 6 | "filter-dropdown.gt": "Mayor o igual a", 7 | "filter-dropdown.lt": "Menos que o igual a", 8 | "filter-dropdown.date": "Fecha" 9 | } 10 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/fr.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "Réinitialiser", 3 | "filter-dropdown.search": "Chercher", 4 | "filter-dropdown.submit": "Soumettre", 5 | "filter-dropdown.filter": "Filtre", 6 | "filter-dropdown.gt": "Supérieur ou égal à", 7 | "filter-dropdown.lt": "Inférieur ou égal à", 8 | "filter-dropdown.date": "Date" 9 | } 10 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/index.js: -------------------------------------------------------------------------------- 1 | import en from './en.json' 2 | import es from './es.json' 3 | import fr from './fr.json' 4 | import zhHans from './zh-Hans.json' 5 | import zhHant from './zh-Hant.json' 6 | export default { 7 | en, 8 | es, 9 | fr, 10 | 'zh-Hans': zhHans, 11 | 'zh-Hant': zhHant 12 | } 13 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/zh-Hans.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "重置", 3 | "filter-dropdown.search": "搜索", 4 | "filter-dropdown.submit": "确定", 5 | "filter-dropdown.filter": "筛选", 6 | "filter-dropdown.gt": "大于等于", 7 | "filter-dropdown.lt": "小于等于", 8 | "filter-dropdown.date": "日期范围" 9 | } 10 | -------------------------------------------------------------------------------- /uni_modules/uni-table/i18n/zh-Hant.json: -------------------------------------------------------------------------------- 1 | { 2 | "filter-dropdown.reset": "重置", 3 | "filter-dropdown.search": "搜索", 4 | "filter-dropdown.submit": "確定", 5 | "filter-dropdown.filter": "篩選", 6 | "filter-dropdown.gt": "大於等於", 7 | "filter-dropdown.lt": "小於等於", 8 | "filter-dropdown.date": "日期範圍" 9 | } 10 | -------------------------------------------------------------------------------- /uni_modules/uni-table/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-table", 3 | "displayName": "uni-table 表格", 4 | "version": "1.2.1", 5 | "description": "表格组件,多用于展示多条结构类似的数据,如", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "table", 10 | "表格" 11 | ], 12 | "repository": "https://github.com/dcloudio/uni-ui", 13 | "engines": { 14 | "HBuilderX": "" 15 | }, 16 | "directories": { 17 | "example": "../../temps/example_temps" 18 | }, 19 | "dcloudext": { 20 | "category": [ 21 | "前端组件", 22 | "通用组件" 23 | ], 24 | "sale": { 25 | "regular": { 26 | "price": "0.00" 27 | }, 28 | "sourcecode": { 29 | "price": "0.00" 30 | } 31 | }, 32 | "contact": { 33 | "qq": "" 34 | }, 35 | "declaration": { 36 | "ads": "无", 37 | "data": "无", 38 | "permissions": "无" 39 | }, 40 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 41 | }, 42 | "uni_modules": { 43 | "dependencies": ["uni-scss","uni-datetime-picker"], 44 | "encrypt": [], 45 | "platforms": { 46 | "cloud": { 47 | "tcb": "y", 48 | "aliyun": "y" 49 | }, 50 | "client": { 51 | "App": { 52 | "app-vue": "y", 53 | "app-nvue": "n" 54 | }, 55 | "H5-mobile": { 56 | "Safari": "y", 57 | "Android Browser": "y", 58 | "微信浏览器(Android)": "y", 59 | "QQ浏览器(Android)": "y" 60 | }, 61 | "H5-pc": { 62 | "Chrome": "y", 63 | "IE": "y", 64 | "Edge": "y", 65 | "Firefox": "y", 66 | "Safari": "y" 67 | }, 68 | "小程序": { 69 | "微信": "y", 70 | "阿里": "y", 71 | "百度": "y", 72 | "字节跳动": "n", 73 | "QQ": "y" 74 | }, 75 | "快应用": { 76 | "华为": "n", 77 | "联盟": "n" 78 | }, 79 | "Vue": { 80 | "vue2": "y", 81 | "vue3": "y" 82 | } 83 | } 84 | } 85 | } 86 | } -------------------------------------------------------------------------------- /uni_modules/uni-table/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Table 表单 4 | > 组件名:``uni-table``,代码块: `uTable`。 5 | 6 | 用于展示多条结构类似的数据 7 | 8 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-table) 9 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-tag/changelog.md: -------------------------------------------------------------------------------- 1 | ## 2.1.0(2021-11-19) 2 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 3 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-tag](https://uniapp.dcloud.io/component/uniui/uni-tag) 4 | ## 2.0.0(2021-11-09) 5 | - 新增 提供组件设计资源,组件样式调整 6 | - 移除 插槽 7 | - 移除 type 属性的 royal 选项 8 | ## 1.1.1(2021-08-11) 9 | - type 不是 default 时,size 为 small 字体大小显示不正确 10 | ## 1.1.0(2021-07-30) 11 | - 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 12 | ## 1.0.7(2021-06-18) 13 | - 修复 uni-tag 在字节跳动小程序上 css 类名编译错误的 bug 14 | ## 1.0.6(2021-06-04) 15 | - 修复 未定义 sass 变量 "$uni-color-royal" 的bug 16 | ## 1.0.5(2021-05-10) 17 | - 修复 royal 类型无效的bug 18 | - 修复 uni-tag 宽度不自适应的bug 19 | - 新增 uni-tag 支持属性 custom-style 自定义样式 20 | ## 1.0.4(2021-02-05) 21 | - 调整为uni_modules目录规范 22 | -------------------------------------------------------------------------------- /uni_modules/uni-tag/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-tag", 3 | "displayName": "uni-tag 标签", 4 | "version": "2.1.0", 5 | "description": "Tag 组件,用于展示1个或多个文字标签,可点击切换选中、不选中的状态。", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "", 10 | "tag", 11 | "标签" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-tag/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Tag 标签 4 | > **组件名:uni-tag** 5 | > 代码块: `uTag` 6 | 7 | 8 | 用于展示1个或多个文字标签,可点击切换选中、不选中的状态 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-tag) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | -------------------------------------------------------------------------------- /uni_modules/uni-title/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.1.1(2022-05-19) 2 | - 修改组件描述 3 | ## 1.1.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-title](https://uniapp.dcloud.io/component/uniui/uni-title) 6 | ## 1.0.2(2021-05-12) 7 | - 新增 示例地址 8 | - 修复 示例项目缺少组件的Bug 9 | ## 1.0.1(2021-02-05) 10 | - 调整为uni_modules目录规范 11 | -------------------------------------------------------------------------------- /uni_modules/uni-title/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-title", 3 | "displayName": "uni-title 章节标题", 4 | "version": "1.1.1", 5 | "description": "章节标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "标题", 10 | "章节", 11 | "章节标题", 12 | "" 13 | ], 14 | "repository": "https://github.com/dcloudio/uni-ui", 15 | "engines": { 16 | "HBuilderX": "" 17 | }, 18 | "directories": { 19 | "example": "../../temps/example_temps" 20 | }, 21 | "dcloudext": { 22 | "category": [ 23 | "前端组件", 24 | "通用组件" 25 | ], 26 | "sale": { 27 | "regular": { 28 | "price": "0.00" 29 | }, 30 | "sourcecode": { 31 | "price": "0.00" 32 | } 33 | }, 34 | "contact": { 35 | "qq": "" 36 | }, 37 | "declaration": { 38 | "ads": "无", 39 | "data": "无", 40 | "permissions": "无" 41 | }, 42 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 43 | }, 44 | "uni_modules": { 45 | "dependencies": ["uni-scss"], 46 | "encrypt": [], 47 | "platforms": { 48 | "cloud": { 49 | "tcb": "y", 50 | "aliyun": "y" 51 | }, 52 | "client": { 53 | "App": { 54 | "app-vue": "y", 55 | "app-nvue": "y" 56 | }, 57 | "H5-mobile": { 58 | "Safari": "y", 59 | "Android Browser": "y", 60 | "微信浏览器(Android)": "y", 61 | "QQ浏览器(Android)": "y" 62 | }, 63 | "H5-pc": { 64 | "Chrome": "y", 65 | "IE": "y", 66 | "Edge": "y", 67 | "Firefox": "y", 68 | "Safari": "y" 69 | }, 70 | "小程序": { 71 | "微信": "y", 72 | "阿里": "y", 73 | "百度": "y", 74 | "字节跳动": "y", 75 | "QQ": "y" 76 | }, 77 | "快应用": { 78 | "华为": "u", 79 | "联盟": "u" 80 | }, 81 | "Vue": { 82 | "vue2": "y", 83 | "vue3": "y" 84 | } 85 | } 86 | } 87 | } 88 | } -------------------------------------------------------------------------------- /uni_modules/uni-title/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Title 标题 4 | > **组件名:uni-title** 5 | > 代码块: `uTitle` 6 | 7 | 8 | 章节标题,通常用于记录页面标题,使用当前组件,uni-app 如果开启统计,将会自动统计页面标题 。 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-title) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /uni_modules/uni-transition/changelog.md: -------------------------------------------------------------------------------- 1 | ## 1.3.1(2021-11-23) 2 | - 修复 init 方法初始化问题 3 | ## 1.3.0(2021-11-19) 4 | - 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) 5 | - 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-transition](https://uniapp.dcloud.io/component/uniui/uni-transition) 6 | ## 1.2.1(2021-09-27) 7 | - 修复 init 方法不生效的 Bug 8 | ## 1.2.0(2021-07-30) 9 | - 组件兼容 vue3,如何创建 vue3 项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) 10 | ## 1.1.1(2021-05-12) 11 | - 新增 示例地址 12 | - 修复 示例项目缺少组件的 Bug 13 | ## 1.1.0(2021-04-22) 14 | - 新增 通过方法自定义动画 15 | - 新增 custom-class 非 NVUE 平台支持自定义 class 定制样式 16 | - 优化 动画触发逻辑,使动画更流畅 17 | - 优化 支持单独的动画类型 18 | - 优化 文档示例 19 | ## 1.0.2(2021-02-05) 20 | - 调整为 uni_modules 目录规范 21 | -------------------------------------------------------------------------------- /uni_modules/uni-transition/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "id": "uni-transition", 3 | "displayName": "uni-transition 过渡动画", 4 | "version": "1.3.1", 5 | "description": "元素的简单过渡动画", 6 | "keywords": [ 7 | "uni-ui", 8 | "uniui", 9 | "动画", 10 | "过渡", 11 | "过渡动画" 12 | ], 13 | "repository": "https://github.com/dcloudio/uni-ui", 14 | "engines": { 15 | "HBuilderX": "" 16 | }, 17 | "directories": { 18 | "example": "../../temps/example_temps" 19 | }, 20 | "dcloudext": { 21 | "category": [ 22 | "前端组件", 23 | "通用组件" 24 | ], 25 | "sale": { 26 | "regular": { 27 | "price": "0.00" 28 | }, 29 | "sourcecode": { 30 | "price": "0.00" 31 | } 32 | }, 33 | "contact": { 34 | "qq": "" 35 | }, 36 | "declaration": { 37 | "ads": "无", 38 | "data": "无", 39 | "permissions": "无" 40 | }, 41 | "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" 42 | }, 43 | "uni_modules": { 44 | "dependencies": ["uni-scss"], 45 | "encrypt": [], 46 | "platforms": { 47 | "cloud": { 48 | "tcb": "y", 49 | "aliyun": "y" 50 | }, 51 | "client": { 52 | "App": { 53 | "app-vue": "y", 54 | "app-nvue": "y" 55 | }, 56 | "H5-mobile": { 57 | "Safari": "y", 58 | "Android Browser": "y", 59 | "微信浏览器(Android)": "y", 60 | "QQ浏览器(Android)": "y" 61 | }, 62 | "H5-pc": { 63 | "Chrome": "y", 64 | "IE": "y", 65 | "Edge": "y", 66 | "Firefox": "y", 67 | "Safari": "y" 68 | }, 69 | "小程序": { 70 | "微信": "y", 71 | "阿里": "y", 72 | "百度": "y", 73 | "字节跳动": "y", 74 | "QQ": "y" 75 | }, 76 | "快应用": { 77 | "华为": "u", 78 | "联盟": "u" 79 | }, 80 | "Vue": { 81 | "vue2": "y", 82 | "vue3": "y" 83 | } 84 | } 85 | } 86 | } 87 | } -------------------------------------------------------------------------------- /uni_modules/uni-transition/readme.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Transition 过渡动画 4 | > **组件名:uni-transition** 5 | > 代码块: `uTransition` 6 | 7 | 8 | 元素过渡动画 9 | 10 | ### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-transition) 11 | #### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 -------------------------------------------------------------------------------- /uni_modules/uni-ui/components/uni-ui/uni-ui.vue: -------------------------------------------------------------------------------- 1 | 4 | 6 | 8 | --------------------------------------------------------------------------------