Skip to content

Commit

Permalink
配置更新到uni_modules
Browse files Browse the repository at this point in the history
  • Loading branch information
wlxuqu committed Nov 15, 2021
1 parent af47a7a commit b2404bc
Show file tree
Hide file tree
Showing 14 changed files with 185 additions and 37 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['eslint-config-egg', 'airbnb'],
extends: ['airbnb'],
rules: {
// 关闭严格模式的提示
strict: 0,
Expand All @@ -21,6 +21,7 @@ module.exports = {
'no-undef': 'off',
// 允许lf和crlf文件行尾
'linebreak-style': 'off',
// 关闭function的jsdoc校验
'jsdoc/check-tag-names': 'off'
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ uView UI,是[uni-app](https://uniapp.dcloud.io/)全面兼容nvue的uni-app生

## 安装

#### **下载地址** —— [尚未开放]()
#### **下载地址** —— [https://ext.dcloud.net.cn/plugin?id=1593](https://ext.dcloud.net.cn/plugin?id=1593)

## 快速上手

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"id": "uview-ui",
"scripts": {
"test": "eslint . --fix"
},
Expand Down
11 changes: 5 additions & 6 deletions uni_modules/uview-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ uView UI,是[uni-app](https://uniapp.dcloud.io/)生态优秀的UI框架,全

```bash
# npm方式安装
npm i uview-v2
npm i uview-ui
```

## 快速上手

1. `main.js`引入uView库
```js
// main.js
import uView from 'uview-v2';
import uView from 'uview-ui';
Vue.use(uView);
```

Expand Down Expand Up @@ -95,12 +95,11 @@ Vue.use(uView);
<br>
<img src="https://uviewui.com/common/weixin_mini_qrcode.png" width="220" height="220" >

<!-- ## 捐赠uView的研发
## 捐赠uView的研发

uView文档和源码全部开源免费,如果您认为uView帮到了您的开发工作,您可以捐赠uView的研发工作,捐赠无门槛,哪怕是一杯可乐也好(相信这比打赏主播更有意义)。

<img src="https://uviewui.com/common/wechat.png" width="220" >
<img style="margin-left: 100px;" src="https://uviewui.com/common/alipay.png" width="220" >
-->
<img src="https://uviewui.com/common/wechat.png" width="220" ><img style="margin-left: 100px;" src="https://uviewui.com/common/alipay.png" width="220" >

## 版权信息
uView遵循[MIT](https://en.wikipedia.org/wiki/MIT_License)开源协议,意味着您无需支付任何费用,也无需授权,即可将uView应用到您的产品中。
136 changes: 136 additions & 0 deletions uni_modules/uview-ui/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
## 2.0.0(2021-11-15)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
## 2.0.0(2020-11-15)
## [点击加群交流反馈:1129077272](https://jq.qq.com/?_wv=1027&k=KnbeceDU)

# uView2.0重磅发布,利剑出鞘,一统江湖

1. uView2.0已实现全面兼容nvue
2. uView2.0对1.x进行了架构重构,细节和性能都有极大提升
3. 目前uView2.0为公测阶段,相关细节可能会有变动
3. 我们写了一份与1.x的对比指南,详见[对比1.x](https://v2.uviewui.com/components/diff1.x.html)
11 changes: 6 additions & 5 deletions uni_modules/uview-ui/components/u-calendar/month.vue
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,12 @@
},
methods: {
init() {
this.$nextTick(() => {
this.getWrapperWidth()
// 这里需要另一个延时,因为获取宽度后,会进行月份数据渲染,只有渲染完成之后,才有真正的高度
uni.$u.sleep().then(() => {
this.getMonthRect()
this.$nextTick(() => {
// 这里需要另一个延时,因为获取宽度后,会进行月份数据渲染,只有渲染完成之后,才有真正的高度
// 因为nvue下,$nextTick并不是100%可靠的
uni.$u.sleep(10).then(() => {
this.getWrapperWidth()
this.getMonthRect()
})
})
},
Expand Down
2 changes: 0 additions & 2 deletions uni_modules/uview-ui/components/u-radio/u-radio.vue
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,6 @@
},
updateParentData() {
this.getParentData('u-radio-group')
console.log('paernt', this.parent);
console.log('parentData', this.parentData);
},
// 点击图标
iconClickHandler(e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@
computed: {
// 展开后无需阴影,收起时才需要阴影样式
innerShadowStyle() {
console.log(this.shadowStyle);
if (this.status === 'open') return {}
else return this.shadowStyle
}
Expand Down
1 change: 0 additions & 1 deletion uni_modules/uview-ui/components/u-slider/nvue.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ export default {
const {
x
} = this.getTouchPoint(e)
console.log(x)
this.buttonWrapperStyle = {
transform: `translateX(${x}px)`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
},
watch: {
'parentData'(newValue, oldValue) {
console.log(newValue, 33);
}
},
created() {
Expand Down
5 changes: 2 additions & 3 deletions uni_modules/uview-ui/components/u-transition/transition.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
// 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
// 定义一个一定时间后自动成功的promise,让调用nextTick方法处,进入下一个then方法
const nextTick = () => new Promise(resolve => setTimeout(resolve, 1000 / 50))
// nvue动画模块实现细节抽离在外部文件
import animationMap from './nvue.ani-map.js'

const nextTick = () => new Promise((resolve) => resolve())

// #ifndef APP-NVUE
// 定义类名,通过给元素动态切换类名,赋予元素一定的css动画样式
const getClassNames = (name) => ({
Expand Down
15 changes: 15 additions & 0 deletions uni_modules/uview-ui/components/uview-ui/uview-ui.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
</template>

<template>
<view></view>
</template>

<script>
export default {
}
</script>

<style>
</style>
4 changes: 2 additions & 2 deletions uni_modules/uview-ui/libs/config/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// 此版本发布于2020-09-17
const version = '1.7.1'
// 此版本发布于2020-11-15
const version = '2.0.0'

export default {
v: version,
Expand Down
29 changes: 15 additions & 14 deletions uni_modules/uview-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"id": "uview-ui",
"displayName": "uView2.0重磅发布,利剑出鞘,一统江湖",
"id": "uview-ui",
"name": "uview-ui",
"displayName": "uView2重磅发布,利剑出鞘,一统江湖",
"version": "2.0.0",
"description": "uView UI,是全面兼容nvue的uni-app生态框架,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"keywords": ["uview", "uView", "uni-app", "uni-app ui", "uniapp", "uviewui", "uview ui", "uviewUI", "uViewui",
"uViewUI", "uView UI", "uni ui", "uni UI", "uniapp ui", "ui", "UI框架", "uniapp ui框架", "uniapp UI"
],
"description": "uView UI已完美兼容nvue,全面的组件和便捷的工具会让您信手拈来,如鱼得水",
"keywords": [
"uview"
],
"repository": "",
"engines": {
"HBuilderX": "^3.1.0"
Expand All @@ -27,24 +28,24 @@
"qq": "1416956117"
},
"declaration": {
"ads": "",
"data": "",
"permissions": ""
"ads": "",
"data": "",
"permissions": ""
},
"npmurl": ""
"npmurl": "https://www.npmjs.com/package/uview-ui"
},
"uni_modules": {
"dependencies": [],
"encrypt": [],
"platforms": {
"cloud": {
"tcb": "u",
"aliyun": "u"
"tcb": "y",
"aliyun": "y"
},
"client": {
"Vue": {
"vue2": "y",
"vue3": "u"
"vue3": "n"
},
"App": {
"app-vue": "y",
Expand Down Expand Up @@ -77,4 +78,4 @@
}
}
}
}
}

0 comments on commit b2404bc

Please sign in to comment.