Skip to content

Commit 6d925c3

Browse files
committed
chore(deps): upgrade
1 parent 47c7870 commit 6d925c3

File tree

18 files changed

+211
-182
lines changed

18 files changed

+211
-182
lines changed

apps/vite-native-ts/miniprogram/app.json

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import { defineAppJson } from 'weapp-vite/json'
2+
3+
export default defineAppJson(
4+
{
5+
pages: [
6+
'pages/index/index',
7+
],
8+
window: {
9+
navigationBarTextStyle: 'black',
10+
navigationBarTitleText: 'Weixin',
11+
navigationBarBackgroundColor: '#ffffff',
12+
},
13+
componentFramework: 'glass-easel',
14+
lazyCodeLoading: 'requiredComponents',
15+
sitemapLocation: 'sitemap.json',
16+
},
17+
)
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineComponentJson } from 'weapp-vite/json'
2+
3+
export default defineComponentJson({
4+
component: true,
5+
styleIsolation: 'apply-shared',
6+
usingComponents: {},
7+
})

apps/vite-native-ts/miniprogram/components/IceButton/index.scss

Whitespace-only changes.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
import { cn } from '@weapp-tailwindcss/merge'
2+
3+
Component({
4+
// options: {
5+
// virtualHost: true,
6+
// },
7+
properties: {
8+
class: {
9+
type: String,
10+
value: '',
11+
},
12+
myClass: {
13+
type: String,
14+
value: '',
15+
},
16+
},
17+
data: {
18+
customClass: 'weapp-reset-button px-6 py-2 font-medium tracking-wide text-white capitalize transition-colors duration-300 transform bg-blue-600 rounded-lg hover:bg-blue-500 focus:outline-none focus:ring focus:ring-blue-300 focus:ring-opacity-80',
19+
},
20+
observers: {
21+
myClass(val) {
22+
this.setData({
23+
customClass: cn(this.data.customClass, val),
24+
})
25+
},
26+
},
27+
lifetimes: {
28+
ready() {
29+
console.log(this.properties)
30+
},
31+
},
32+
// externalClasses: ['class'],
33+
})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<button class="{{customClass}}">
2+
Primary
3+
</button>
4+
<view class="flex overflow-hidden bg-white border divide-x rounded-lg dark:bg-gray-900 dark:border-gray-700 dark:divide-gray-700 py-6">
5+
<button class="weapp-reset-button px-4 py-2 text-sm font-medium text-gray-600 transition-colors duration-200 sm:text-base sm:px-6 dark:hover:bg-gray-800 dark:text-gray-300 hover:bg-gray-100">
6+
Upload
7+
</button>
8+
<button class="weapp-reset-button px-4 py-2 text-sm font-medium text-gray-600 transition-colors duration-200 sm:text-base sm:px-6 dark:hover:bg-gray-800 dark:text-gray-300 hover:bg-gray-100">
9+
Drift
10+
</button>
11+
<button class="weapp-reset-button px-4 py-2 text-sm font-medium text-gray-600 transition-colors duration-200 sm:text-base sm:px-6 dark:hover:bg-gray-800 dark:text-gray-300 hover:bg-gray-100">
12+
View
13+
</button>
14+
</view>

apps/vite-native-ts/miniprogram/pages/index/index.scss

Whitespace-only changes.
Lines changed: 3 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
1-
<!--index.wxml-->
2-
<scroll-view class="scrollarea" scroll-y type="list">
3-
<view class="container">
4-
<view class="userinfo">
5-
<block wx:if="{{canIUseNicknameComp && !hasUserInfo}}">
6-
<button class="avatar-wrapper" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
7-
<image class="avatar" src="{{userInfo.avatarUrl}}"></image>
8-
</button>
9-
<view class="nickname-wrapper">
10-
<text class="nickname-label">昵称</text>
11-
<input type="nickname" class="nickname-input" placeholder="请输入昵称" bind:change="onInputChange" />
12-
</view>
13-
</block>
14-
<block wx:elif="{{!hasUserInfo}}">
15-
<button wx:if="{{canIUseGetUserProfile}}" bindtap="getUserProfile"> 获取头像昵称 </button>
16-
<view wx:else> 请使用2.10.4及以上版本基础库 </view>
17-
</block>
18-
<block wx:else>
19-
<image bindtap="bindViewTap" class="userinfo-avatar" src="{{userInfo.avatarUrl}}" mode="cover"></image>
20-
<text class="userinfo-nickname">{{userInfo.nickName}}</text>
21-
</block>
22-
</view>
23-
<view class="usermotto">
24-
<text class="user-motto text-[#31c034] bg-[#323284]">{{motto}}</text>
25-
</view>
26-
</view>
27-
</scroll-view>
1+
<view class="p-4">
2+
<IceButton class="bg-[#d72929]" my-class="bg-[orange]"></IceButton>
3+
</view>

apps/vite-native-ts/miniprogram/pages/index/index.wxss

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)