Skip to content

Commit

Permalink
feat: v15 适配demo页面 (#2896)
Browse files Browse the repository at this point in the history
* feat: v15 适配demo页面

* fix: 过滤掉v15

* fix: back

* Update update-taro-entry.js

---------

Co-authored-by: oasis <[email protected]>
  • Loading branch information
xiaoyatong and oasis-cloud authored Dec 30, 2024
1 parent 5c77dbe commit 665d55a
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
4 changes: 2 additions & 2 deletions packages/nutui-taro-demo/src/pages/index/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ body {
}
&-components {
background: #f7f8fa;
border-radius: 30px 30px 0 0;
border-radius: 12px 12px 0 0;
padding: 30px 25px;
&-item {
margin-bottom: 17px;
Expand All @@ -116,7 +116,7 @@ body {
height: 45px;
line-height: 45px;
background: rgba(255, 255, 255, 1);
border-radius: 22px;
border-radius: 8px;
box-shadow: 0px 1px 4px 0px rgba(102, 102, 102, 0.06);
margin-bottom: 13px;
&-content {
Expand Down
2 changes: 1 addition & 1 deletion packages/nutui-taro-demo/src/pages/index/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const Index = () => {

<View className='index-components'>
{process.env.NODE_ENV === 'development' ? <>
<SearchBar style={{ background: '#fff' }} placeholder='' value={search} onChange={(e) => {
<SearchBar style={{ background: '#fff',borderRadius:'8px' }} placeholder='' value={search} onChange={(e) => {
setSearch(e)
}} />
<View style={{ height: 25 }}></View>
Expand Down
2 changes: 1 addition & 1 deletion scripts/taro/generate-taro-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const config = require('../../src/config.json')
const adaptedArray = []
config.nav.map((item) => {
item.packages.forEach((element) => {
const { name, version, dd } = element
const { dd } = element
if (!dd) return // 未适配不导出
adaptedArray.push(element.name.toLowerCase())
})
Expand Down
19 changes: 18 additions & 1 deletion src/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"sort": 1,
"show": true,
"taro": true,
"v15": true,
"author": "",
"dd": true
},
Expand All @@ -91,6 +92,7 @@
"sort": 2,
"show": true,
"taro": true,
"v15": true,
"author": "songsong",
"dd": true
},
Expand All @@ -104,6 +106,7 @@
"show": false,
"taro": true,
"exportEmpty": true,
"v15": true,
"author": "songsong",
"dd": true
},
Expand All @@ -117,6 +120,7 @@
"show": true,
"exportEmpty": true,
"taro": true,
"v15": true,
"author": "hanyuxinting",
"dd": true
},
Expand All @@ -130,6 +134,7 @@
"show": true,
"taro": true,
"exclude": true,
"v15": true,
"author": "oasis-cloud",
"dd": true
},
Expand All @@ -143,6 +148,7 @@
"sort": 8,
"show": true,
"taro": true,
"v15": true,
"author": "vickyYE",
"dd": true
},
Expand All @@ -155,6 +161,7 @@
"sort": 5,
"show": true,
"taro": true,
"v15": true,
"author": "junjun",
"dd": true
}
Expand Down Expand Up @@ -185,6 +192,7 @@
"sort": 7,
"show": true,
"taro": true,
"v15": true,
"author": "vickyYE",
"dd": true
},
Expand All @@ -211,6 +219,7 @@
"show": false,
"taro": true,
"exportEmpty": true,
"v15": true,
"author": "yangxiaolu",
"dd": true
},
Expand Down Expand Up @@ -327,6 +336,7 @@
"sort": 5,
"show": true,
"taro": true,
"v15": true,
"author": "Ymm0008",
"dd": true
},
Expand All @@ -340,6 +350,7 @@
"sort": 5,
"show": false,
"taro": true,
"v15": true,
"author": "Ymm0008",
"dd": true
},
Expand Down Expand Up @@ -425,6 +436,7 @@
"sort": 2,
"show": true,
"taro": true,
"v15": true,
"author": "dsj",
"dd": true
},
Expand All @@ -436,6 +448,7 @@
"type": "component",
"show": false,
"taro": true,
"v15": true,
"exportEmpty": true,
"desc": "标签栏子组件",
"author": "dsj",
Expand All @@ -448,6 +461,7 @@
"cName": "选项卡切换子组件",
"type": "component",
"show": false,
"v15": true,
"exportEmpty": true,
"desc": "选项卡切换子组件",
"author": "张晶发",
Expand All @@ -462,6 +476,7 @@
"sort": 12,
"show": true,
"taro": true,
"v15": true,
"author": "oasis",
"dd": true
}
Expand Down Expand Up @@ -846,14 +861,15 @@
"dd": true
},
{
"version": "2.0.0",
"version": "3.0.0",
"name": "Drag",
"type": "component",
"cName": "拖拽",
"desc": "实现可拖拽的任意元素",
"sort": 1,
"show": true,
"taro": true,
"v15": true,
"author": "songsong",
"dd": false
},
Expand Down Expand Up @@ -971,6 +987,7 @@
"sort": 10,
"show": true,
"taro": true,
"v15": true,
"author": "oasis",
"dd": true
},
Expand Down
4 changes: 2 additions & 2 deletions src/sites/mobile/Links.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}
&-components {
background: #f7f8fa;
border-radius: 30px 30px 0 0;
border-radius: 12px 12px 0 0;
padding: 30px 25px;
> ol {
margin-bottom: 17px;
Expand All @@ -52,7 +52,7 @@
height: 45px;
line-height: 45px;
background: rgba(255, 255, 255, 1);
border-radius: 22px;
border-radius: 8px;
box-shadow: 0px 1px 4px 0px rgba(102, 102, 102, 0.06);
margin-bottom: 13px;
a {
Expand Down

0 comments on commit 665d55a

Please sign in to comment.