Skip to content

Commit 62e7393

Browse files
author
jry
committed
修复uni-app引用uview-plus
1 parent 74decc9 commit 62e7393

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

front-end/uiadmin-uniapp/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@
77
/.hbuilderx/
88
/.vscode/
99
/.vite/
10+
/package-lock.json
11+
/pnpm-lock.yaml

front-end/uiadmin-uniapp/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
}
1515
</script>
1616

17-
<style>
17+
<style lang="scss">
1818
/*每个页面公共css */
1919
@import "uview-plus/index.scss";
2020
</style>

front-end/uiadmin-uniapp/pages.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
"easycom": {
1111
// 注意一定要放在custom里,否则无效,https://ask.dcloud.net.cn/question/131175
1212
"custom": {
13-
"^u--(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
14-
"^up-(.*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue",
15-
"^u-([^-].*)": "@/uni_modules/uview-plus/components/u-$1/u-$1.vue"
13+
"^u--(.*)": "uview-plus/components/u-$1/u-$1.vue",
14+
"^up-(.*)": "uview-plus/components/u-$1/u-$1.vue",
15+
"^u-([^-].*)": "uview-plus/components/u-$1/u-$1.vue"
1616
}
1717
},
1818
"globalStyle": {

front-end/uiadmin-uniapp/pages/index/index.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@
33
<image class="logo" src="/static/logo.png"></image>
44
<view class="text-area">
55
<text class="title">{{title}}</text>
6-
</view>
6+
</view>
7+
<up-button type="primary" text="按钮"></up-button>
8+
<up-cell-group>
9+
<up-cell icon="setting-fill" title="个人设置"></up-cell>
10+
<up-cell icon="integral-fill" title="会员等级" value="新版本"></up-cell>
11+
</up-cell-group>
712
</view>
813
</template>
914

0 commit comments

Comments
 (0)