From a24f40f18de3391c444a9a74da42c0294df52532 Mon Sep 17 00:00:00 2001 From: jry Date: Fri, 9 Aug 2024 00:13:42 +0800 Subject: [PATCH] =?UTF-8?q?add:=20=E5=A2=9E=E5=8A=A0card=E5=8D=A1=E7=89=87?= =?UTF-8?q?=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 5 + src/pages/componentsB/card/card.vue | 107 ++++++++++ src/pages/example/components.config.js | 10 + src/static/uview/demo/box.png | Bin 0 -> 813 bytes src/static/uview/demo/card.png | Bin 0 -> 905 bytes .../uview-plus/components/u-card/props.js | 128 ++++++++++++ .../uview-plus/components/u-card/u-card.vue | 185 ++++++++++++++++++ 7 files changed, 435 insertions(+) create mode 100644 src/pages/componentsB/card/card.vue create mode 100644 src/static/uview/demo/box.png create mode 100644 src/static/uview/demo/card.png create mode 100644 src/uni_modules/uview-plus/components/u-card/props.js create mode 100644 src/uni_modules/uview-plus/components/u-card/u-card.vue diff --git a/src/pages.json b/src/pages.json index 134b8453e..086b4d6c3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -303,6 +303,11 @@ "style": { "navigationBarTitleText": "瀑布流" } + }, { + "path": "card/card", + "style": { + "navigationBarTitleText": "卡片" + } }] }, { "root": "pages/componentsC", diff --git a/src/pages/componentsB/card/card.vue b/src/pages/componentsB/card/card.vue new file mode 100644 index 000000000..18b74f6cf --- /dev/null +++ b/src/pages/componentsB/card/card.vue @@ -0,0 +1,107 @@ + + + + + \ No newline at end of file diff --git a/src/pages/example/components.config.js b/src/pages/example/components.config.js index 1020c1e95..23d31abec 100644 --- a/src/pages/example/components.config.js +++ b/src/pages/example/components.config.js @@ -258,6 +258,11 @@ export default [{ icon: 'line', title: 'Line 线条', title_en: 'Line' + }, { + path: '/pages/componentsB/card/card', + icon: 'empty', + title: 'Card 卡片', + title_en: 'Card' }, { path: '/pages/componentsA/overlay/overlay', icon: 'mask', @@ -304,6 +309,11 @@ export default [{ icon: 'divider', title: 'Divider 分割线', title_en: 'Divider' + }, { + path: '/pages/componentsD/box/box', + icon: 'box', + title: 'Box 盒子', + title_en: 'Box' } ] }, diff --git a/src/static/uview/demo/box.png b/src/static/uview/demo/box.png new file mode 100644 index 0000000000000000000000000000000000000000..d53c642945d91beca0980a8950a1b1894f547915 GIT binary patch literal 813 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|SkfJR9T^xl z_H+M9WCij$3p^r=85sBugD~Uq{1qucL6_7B&op0O1}z|)gMqO)E8@6Qen6ght0^86mLwaX%J zpWNEaA!e2OLEpnMX3igB9gd?rQZjRw{o(dI*SlDOZzh+h%ZAm#o7FBVD8Af%yf~j< zF|(IN({N9*z4N~B$CaPdysv#OSE0{gT=99TxBccdOnh1mJ5nCFO6pWO=2butD$$+#~Qv>|8W z`VU+3`Pl9(s62K1j?zZ|&?d1?wiUBfr50pO%V<~?xrlL98is&jK0}y&{GAugr|oTJ zV$&Y!0u|3-7MsY-rXT<3zPQRir#-A8XN7nJOubDUuIgN52;J<$j77ky zc`jVr=eWW5K+Q7SYK8d|QyQ0*oo#gR-8EY!iQ!wx8JPx#L}ge>W=%~1DgXcg2mk?xX#fNO00031000^Q000001E2u_0{{R30RRC20H6W@ z1ONa40RR91K%fHv1ONa40RR91KmY&$07g+lumAu8^GQTORCodHo4;!mK@`W|o85?r zzY0MF3j<_o8BolcK!$93=#{m6hyEv{s7V4 z9p881j=h~dZjLj>zL_oVX5PFR_Vayjc3#3QQM{r8QGt*Z;5z*JJA3?BR@~)+uFBYH zOZITxr%in({x0|Xk(gc`m@%6x=lDzY{)Yru?d3~FL63>-p{kRfHvce&9;_`S8-1pM z04rPhhD3X@KcM+rvf|15g=7hg1|Q44{9Y*V-~}s~(dN}{J8QGzy%_hy5XvQ4@S9U} zHWm2A(BKi|l3Cb|CAtzy)E!Qy%SN7pr<{RM43=gk1H#(-)!2f)JO!%8(ArU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