@doubao-apps/create 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"build": "doubao build"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@doubao-apps/framework": "^0.0.
|
|
9
|
+
"@doubao-apps/framework": "^0.0.21"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@doubao-apps/kit": "^0.0.
|
|
12
|
+
"@doubao-apps/kit": "^0.0.21",
|
|
13
13
|
"typescript": "5.5.3"
|
|
14
14
|
},
|
|
15
15
|
"version": "0.0.16"
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
"build": "doubao build"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@doubao-apps/framework": "^0.0.
|
|
9
|
+
"@doubao-apps/framework": "^0.0.21"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@doubao-apps/kit": "^0.0.
|
|
12
|
+
"@doubao-apps/kit": "^0.0.21",
|
|
13
13
|
"typescript": "5.5.3"
|
|
14
14
|
},
|
|
15
15
|
"version": "0.0.16"
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { defineWidget, getViewContext, useEffect, useState } from '@doubao-apps/framework';
|
|
1
|
+
import { defineWidget, useEffect, useState } from '@doubao-apps/framework';
|
|
3
2
|
import './index.scss';
|
|
4
3
|
|
|
5
4
|
interface WeatherData {
|
|
@@ -116,15 +115,7 @@ function WeatherCard() {
|
|
|
116
115
|
const currentCondition = weatherConditions.find((c) => c.condition === weather.condition);
|
|
117
116
|
|
|
118
117
|
return (
|
|
119
|
-
<view
|
|
120
|
-
bindtap={() => {
|
|
121
|
-
openPage({
|
|
122
|
-
pageId: '',
|
|
123
|
-
context: getViewContext()
|
|
124
|
-
});
|
|
125
|
-
}}
|
|
126
|
-
className={`weather-card weather-card--${currentCondition?.gradient || 'sunny'}`}
|
|
127
|
-
>
|
|
118
|
+
<view className={`weather-card weather-card--${currentCondition?.gradient || 'sunny'}`}>
|
|
128
119
|
<view className="weather-card__container">
|
|
129
120
|
{/* Header - Compact */}
|
|
130
121
|
<view className="weather-card__header">
|