From 366af69ec2fb30610494f1a73dd3a3c5db425461 Mon Sep 17 00:00:00 2001 From: yixiudong <827231259@qq.com> Date: Tue, 19 Aug 2025 15:28:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E6=88=91=E7=9A=84-=E6=8E=92=E8=A1=8C?= =?UTF-8?q?=E6=A6=9C=E6=A8=A1=E5=9D=97=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/leaderBoard.js | 38 + src/pages/charts/index.vue | 941 ++++++++++++++++++ src/static/images/charts/01.svg | 9 + src/static/images/charts/02.svg | 9 + src/static/images/charts/03.svg | 9 + src/static/images/charts/avator.png | Bin 0 -> 12840 bytes src/uni_modules/uni-list/changelog.md | 48 + .../components/uni-list-ad/uni-list-ad.vue | 107 ++ .../uni-list-chat/uni-list-chat.scss | 58 ++ .../uni-list-chat/uni-list-chat.vue | 593 +++++++++++ .../uni-list-item/uni-list-item.vue | 534 ++++++++++ .../uni-list/components/uni-list/uni-list.vue | 123 +++ .../components/uni-list/uni-refresh.vue | 65 ++ .../components/uni-list/uni-refresh.wxs | 87 ++ src/uni_modules/uni-list/package.json | 91 ++ src/uni_modules/uni-list/readme.md | 46 + src/uni_modules/uni-table/changelog.md | 27 + .../components/uni-table/uni-table.vue | 455 +++++++++ .../components/uni-tbody/uni-tbody.vue | 29 + .../uni-table/components/uni-td/uni-td.vue | 90 ++ .../components/uni-th/filter-dropdown.vue | 511 ++++++++++ .../uni-table/components/uni-th/uni-th.vue | 285 ++++++ .../components/uni-thead/uni-thead.vue | 129 +++ .../components/uni-tr/table-checkbox.vue | 179 ++++ .../uni-table/components/uni-tr/uni-tr.vue | 171 ++++ src/uni_modules/uni-table/i18n/en.json | 9 + src/uni_modules/uni-table/i18n/es.json | 9 + src/uni_modules/uni-table/i18n/fr.json | 9 + src/uni_modules/uni-table/i18n/index.js | 12 + src/uni_modules/uni-table/i18n/zh-Hans.json | 9 + src/uni_modules/uni-table/i18n/zh-Hant.json | 9 + src/uni_modules/uni-table/package.json | 83 ++ src/uni_modules/uni-table/readme.md | 13 + 33 files changed, 4787 insertions(+) create mode 100644 src/api/leaderBoard.js create mode 100644 src/pages/charts/index.vue create mode 100644 src/static/images/charts/01.svg create mode 100644 src/static/images/charts/02.svg create mode 100644 src/static/images/charts/03.svg create mode 100644 src/static/images/charts/avator.png create mode 100644 src/uni_modules/uni-list/changelog.md create mode 100644 src/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue create mode 100644 src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss create mode 100644 src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue create mode 100644 src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue create mode 100644 src/uni_modules/uni-list/components/uni-list/uni-list.vue create mode 100644 src/uni_modules/uni-list/components/uni-list/uni-refresh.vue create mode 100644 src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs create mode 100644 src/uni_modules/uni-list/package.json create mode 100644 src/uni_modules/uni-list/readme.md create mode 100644 src/uni_modules/uni-table/changelog.md create mode 100644 src/uni_modules/uni-table/components/uni-table/uni-table.vue create mode 100644 src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue create mode 100644 src/uni_modules/uni-table/components/uni-td/uni-td.vue create mode 100644 src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue create mode 100644 src/uni_modules/uni-table/components/uni-th/uni-th.vue create mode 100644 src/uni_modules/uni-table/components/uni-thead/uni-thead.vue create mode 100644 src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue create mode 100644 src/uni_modules/uni-table/components/uni-tr/uni-tr.vue create mode 100644 src/uni_modules/uni-table/i18n/en.json create mode 100644 src/uni_modules/uni-table/i18n/es.json create mode 100644 src/uni_modules/uni-table/i18n/fr.json create mode 100644 src/uni_modules/uni-table/i18n/index.js create mode 100644 src/uni_modules/uni-table/i18n/zh-Hans.json create mode 100644 src/uni_modules/uni-table/i18n/zh-Hant.json create mode 100644 src/uni_modules/uni-table/package.json create mode 100644 src/uni_modules/uni-table/readme.md diff --git a/src/api/leaderBoard.js b/src/api/leaderBoard.js new file mode 100644 index 00000000..c504f9ab --- /dev/null +++ b/src/api/leaderBoard.js @@ -0,0 +1,38 @@ +import request from '@/api/request' + +const base_url = '/traapp' + + +// 学习时长 +export const getLeaderBoardStdyTmApi = (data) => { + return request({ + url: base_url + '/myLeaderBoard/stdyTmLen', + method: 'post', + data + }); +}; +// 练习次数 +export const getLeaderBoardPractCntApi = (data) => { + return request({ + url: base_url + '/myLeaderBoard/practCnt', + method: 'post', + data + }); +}; +// 考试次数 +export const getLeaderBoardExamCntApi = (data) => { + return request({ + url: base_url + '/myLeaderBoard/examCnt', + method: 'post', + data + }); +}; +// 通关课程数 +export const getLeaderBoardCrsCntApi = (data) => { + return request({ + url: base_url + '/myLeaderBoard/crsCnt', + method: 'post', + data + }); +}; + diff --git a/src/pages/charts/index.vue b/src/pages/charts/index.vue new file mode 100644 index 00000000..d87c9df2 --- /dev/null +++ b/src/pages/charts/index.vue @@ -0,0 +1,941 @@ + + + + + diff --git a/src/static/images/charts/01.svg b/src/static/images/charts/01.svg new file mode 100644 index 00000000..262985af --- /dev/null +++ b/src/static/images/charts/01.svg @@ -0,0 +1,9 @@ + + + 01 + + + + + + \ No newline at end of file diff --git a/src/static/images/charts/02.svg b/src/static/images/charts/02.svg new file mode 100644 index 00000000..d8bf43d3 --- /dev/null +++ b/src/static/images/charts/02.svg @@ -0,0 +1,9 @@ + + + 02 + + + + + + \ No newline at end of file diff --git a/src/static/images/charts/03.svg b/src/static/images/charts/03.svg new file mode 100644 index 00000000..47ab1271 --- /dev/null +++ b/src/static/images/charts/03.svg @@ -0,0 +1,9 @@ + + + 03 + + + + + + \ No newline at end of file diff --git a/src/static/images/charts/avator.png b/src/static/images/charts/avator.png new file mode 100644 index 0000000000000000000000000000000000000000..03b34b96580130020b96d2181e029140c4885fa2 GIT binary patch literal 12840 zcmV+@GS|(C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`CUY{dZu$#MG2Ruz$7SXm+UgZv3}q3@&_6Et2(J8k*=wYc zxX*rAw-p3#Ue(M`Z@Djy=kGMImA(rH?QF}i8VxIywq}^ybX`OOQbtFrM3QC$?GHKZ zJgkHrL{ra8vsEVRW12qP($`?rfr*ZWT_zv))Lzmi8K3QBUjb?dKKifudI>DQ&4viL z?044dN7t9reLns$MxE$3;;E<{*C3N@pS zw!}882LV7)i8_WmmHMn8Qagnf+WOS>m~590{HvjVfhcQ@>g4<;5?HdJ8@|```USPh z4jeDe!~G}&SVHtJy{=O(O9j-ansz*4n?0bUVAPQ^sb92cRSnSEM4i@`YNeF?iGDD( zqhs3kA#{F=*%GH1fTOULeVy^y1y8j$@9{|*W zdpYvY0sk=Vwt4x6vbz{#(xHD^@ZnsxXYp=t_JNi2(VswmdAhCkrn&DReFCM^tIPgo z-7ulf7g_?_RzY-AD=$q&+v%-?$r(BkHpct^Ty-+3o+9Hlc6Z5zXVIz*mJky8Ioj z*EaA%SQHJ|K~$J?{PuUWOsooD>1f + + + + + + + + + + + + + + + + diff --git a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss new file mode 100644 index 00000000..311f8d9f --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss @@ -0,0 +1,58 @@ +/** + * 这里是 uni-list 组件内置的常用样式变量 + * 如果需要覆盖样式,这里提供了基本的组件样式变量,您可以尝试修改这里的变量,去完成样式替换,而不用去修改源码 + * + */ + +// 背景色 +$background-color : #fff; +// 分割线颜色 +$divide-line-color : #e5e5e5; + +// 默认头像大小,如需要修改此值,注意同步修改 js 中的值 const avatarWidth = xx ,目前只支持方形头像 +// nvue 页面不支持修改头像大小 +$avatar-width : 45px ; + +// 头像边框 +$avatar-border-radius: 5px; +$avatar-border-color: #eee; +$avatar-border-width: 1px; + +// 标题文字样式 +$title-size : 16px; +$title-color : #3b4144; +$title-weight : normal; + +// 描述文字样式 +$note-size : 12px; +$note-color : #999; +$note-weight : normal; + +// 右侧额外内容默认样式 +$right-text-size : 12px; +$right-text-color : #999; +$right-text-weight : normal; + +// 角标样式 +// nvue 页面不支持修改圆点位置以及大小 +// 角标在左侧时,角标的位置,默认为 0 ,负数左/下移动,正数右/上移动 +$badge-left: 0px; +$badge-top: 0px; + +// 显示圆点时,圆点大小 +$dot-width: 10px; +$dot-height: 10px; + +// 显示角标时,角标大小和字体大小 +$badge-size : 18px; +$badge-font : 12px; +// 显示角标时,角标前景色 +$badge-color : #fff; +// 显示角标时,角标背景色 +$badge-background-color : #ff5a5f; +// 显示角标时,角标左右间距 +$badge-space : 6px; + +// 状态样式 +// 选中颜色 +$hover : #f5f5f5; diff --git a/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue new file mode 100644 index 00000000..d49fd7c7 --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue @@ -0,0 +1,593 @@ + + + + + diff --git a/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue b/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue new file mode 100644 index 00000000..6402508b --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue @@ -0,0 +1,534 @@ + + + + + \ No newline at end of file diff --git a/src/uni_modules/uni-list/components/uni-list/uni-list.vue b/src/uni_modules/uni-list/components/uni-list/uni-list.vue new file mode 100644 index 00000000..6ef5972a --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list/uni-list.vue @@ -0,0 +1,123 @@ + + + + diff --git a/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue b/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue new file mode 100644 index 00000000..3b4c5a23 --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list/uni-refresh.vue @@ -0,0 +1,65 @@ + + + + + diff --git a/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs b/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs new file mode 100644 index 00000000..818a6b72 --- /dev/null +++ b/src/uni_modules/uni-list/components/uni-list/uni-refresh.wxs @@ -0,0 +1,87 @@ +var pullDown = { + threshold: 95, + maxHeight: 200, + callRefresh: 'onrefresh', + callPullingDown: 'onpullingdown', + refreshSelector: '.uni-refresh' +}; + +function ready(newValue, oldValue, ownerInstance, instance) { + var state = instance.getState() + state.canPullDown = newValue; + // console.log(newValue); +} + +function touchStart(e, instance) { + var state = instance.getState(); + state.refreshInstance = instance.selectComponent(pullDown.refreshSelector); + state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined); + if (!state.canPullDown) { + return + } + + // console.log("touchStart"); + + state.height = 0; + state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY; + state.refreshInstance.setStyle({ + 'height': 0 + }); + state.refreshInstance.callMethod("onchange", true); +} + +function touchMove(e, ownerInstance) { + var instance = e.instance; + var state = instance.getState(); + if (!state.canPullDown) { + return + } + + var oldHeight = state.height; + var endY = e.touches[0].pageY || e.changedTouches[0].pageY; + var height = endY - state.touchStartY; + if (height > pullDown.maxHeight) { + return; + } + + var refreshInstance = state.refreshInstance; + refreshInstance.setStyle({ + 'height': height + 'px' + }); + + height = height < pullDown.maxHeight ? height : pullDown.maxHeight; + state.height = height; + refreshInstance.callMethod(pullDown.callPullingDown, { + height: height + }); +} + +function touchEnd(e, ownerInstance) { + var state = e.instance.getState(); + if (!state.canPullDown) { + return + } + + state.refreshInstance.callMethod("onchange", false); + + var refreshInstance = state.refreshInstance; + if (state.height > pullDown.threshold) { + refreshInstance.callMethod(pullDown.callRefresh); + return; + } + + refreshInstance.setStyle({ + 'height': 0 + }); +} + +function propObserver(newValue, oldValue, instance) { + pullDown = newValue; +} + +module.exports = { + touchmove: touchMove, + touchstart: touchStart, + touchend: touchEnd, + propObserver: propObserver +} diff --git a/src/uni_modules/uni-list/package.json b/src/uni_modules/uni-list/package.json new file mode 100644 index 00000000..5ebe1569 --- /dev/null +++ b/src/uni_modules/uni-list/package.json @@ -0,0 +1,91 @@ +{ + "id": "uni-list", + "displayName": "uni-list 列表", + "version": "1.2.15", + "description": "List 组件 ,帮助使用者快速构建列表。", + "keywords": [ + "", + "uni-ui", + "uniui", + "列表", + "", + "list" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": [ + "uni-badge", + "uni-icons" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y", + "alipay": "n" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y", + "app-harmony": "u", + "app-uvue": "u" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/src/uni_modules/uni-list/readme.md b/src/uni_modules/uni-list/readme.md new file mode 100644 index 00000000..ae499e66 --- /dev/null +++ b/src/uni_modules/uni-list/readme.md @@ -0,0 +1,46 @@ +## List 列表 +> **组件名:uni-list** +> 代码块: `uList`、`uListItem` +> 关联组件:`uni-list-item`、`uni-badge`、`uni-icons`、`uni-list-chat`、`uni-list-ad` + + +List 列表组件,包含基本列表样式、可扩展插槽机制、长列表性能优化、多端兼容。 + +在vue页面里,它默认使用页面级滚动。在app-nvue页面里,它默认使用原生list组件滚动。这样的长列表,在滚动出屏幕外后,系统会回收不可见区域的渲染内存资源,不会造成滚动越长手机越卡的问题。 + +uni-list组件是父容器,里面的核心是uni-list-item子组件,它代表列表中的一个可重复行,子组件可以无限循环。 + +uni-list-item有很多风格,uni-list-item组件通过内置的属性,满足一些常用的场景。当内置属性不满足需求时,可以通过扩展插槽来自定义列表内容。 + +内置属性可以覆盖的场景包括:导航列表、设置列表、小图标列表、通信录列表、聊天记录列表。 + +涉及很多大图或丰富内容的列表,比如类今日头条的新闻列表、类淘宝的电商列表,需要通过扩展插槽实现。 + +下文均有样例给出。 + +uni-list不包含下拉刷新和上拉翻页。上拉翻页另见组件:[uni-load-more](https://ext.dcloud.net.cn/plugin?id=29) + +### [点击查看详细文档](https://uniapp.dcloud.io/component/uniui/uni-indexed-list) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + + +## 基于uni-list扩展的页面模板 + +通过扩展插槽,可实现多种常见样式的列表 + +**新闻列表类** + +1. 云端一体混合布局:[https://ext.dcloud.net.cn/plugin?id=2546](https://ext.dcloud.net.cn/plugin?id=2546) +2. 云端一体垂直布局,大图模式:[https://ext.dcloud.net.cn/plugin?id=2583](https://ext.dcloud.net.cn/plugin?id=2583) +3. 云端一体垂直布局,多行图文混排:[https://ext.dcloud.net.cn/plugin?id=2584](https://ext.dcloud.net.cn/plugin?id=2584) +4. 云端一体垂直布局,多图模式:[https://ext.dcloud.net.cn/plugin?id=2585](https://ext.dcloud.net.cn/plugin?id=2585) +5. 云端一体水平布局,左图右文:[https://ext.dcloud.net.cn/plugin?id=2586](https://ext.dcloud.net.cn/plugin?id=2586) +6. 云端一体水平布局,左文右图:[https://ext.dcloud.net.cn/plugin?id=2587](https://ext.dcloud.net.cn/plugin?id=2587) +7. 云端一体垂直布局,无图模式,主标题+副标题:[https://ext.dcloud.net.cn/plugin?id=2588](https://ext.dcloud.net.cn/plugin?id=2588) + +**商品列表类** + +1. 云端一体列表/宫格视图互切:[https://ext.dcloud.net.cn/plugin?id=2651](https://ext.dcloud.net.cn/plugin?id=2651) +2. 云端一体列表(宫格模式):[https://ext.dcloud.net.cn/plugin?id=2671](https://ext.dcloud.net.cn/plugin?id=2671) +3. 云端一体列表(列表模式):[https://ext.dcloud.net.cn/plugin?id=2672](https://ext.dcloud.net.cn/plugin?id=2672) \ No newline at end of file diff --git a/src/uni_modules/uni-table/changelog.md b/src/uni_modules/uni-table/changelog.md new file mode 100644 index 00000000..9f87c67c --- /dev/null +++ b/src/uni_modules/uni-table/changelog.md @@ -0,0 +1,27 @@ +## 1.2.3(2023-03-28) +- 修复 在vue3模式下可能会出现错误的问题 +## 1.2.2(2022-11-29) +- 优化 主题样式 +## 1.2.1(2022-06-06) +- 修复 微信小程序存在无使用组件的问题 +## 1.2.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table) +## 1.1.0(2021-07-30) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.0.7(2021-07-08) +- 新增 uni-th 支持 date 日期筛选范围 +## 1.0.6(2021-07-05) +- 新增 uni-th 支持 range 筛选范围 +## 1.0.5(2021-06-28) +- 新增 uni-th 筛选功能 +## 1.0.4(2021-05-12) +- 新增 示例地址 +- 修复 示例项目缺少组件的Bug +## 1.0.3(2021-04-16) +- 新增 sortable 属性,是否开启单列排序 +- 优化 表格多选逻辑 +## 1.0.2(2021-03-22) +- uni-tr 添加 disabled 属性,用于 type=selection 时,设置某行是否可由全选按钮控制 +## 1.0.1(2021-02-05) +- 调整为uni_modules目录规范 diff --git a/src/uni_modules/uni-table/components/uni-table/uni-table.vue b/src/uni_modules/uni-table/components/uni-table/uni-table.vue new file mode 100644 index 00000000..21d9527f --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-table/uni-table.vue @@ -0,0 +1,455 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue b/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue new file mode 100644 index 00000000..fbe1bdcb --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue @@ -0,0 +1,29 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-td/uni-td.vue b/src/uni_modules/uni-table/components/uni-td/uni-td.vue new file mode 100644 index 00000000..9ce93e93 --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-td/uni-td.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue b/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue new file mode 100644 index 00000000..df22a714 --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-th/filter-dropdown.vue @@ -0,0 +1,511 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-th/uni-th.vue b/src/uni_modules/uni-table/components/uni-th/uni-th.vue new file mode 100644 index 00000000..14889dd8 --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-th/uni-th.vue @@ -0,0 +1,285 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue b/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue new file mode 100644 index 00000000..0dd18cd8 --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-thead/uni-thead.vue @@ -0,0 +1,129 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue b/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue new file mode 100644 index 00000000..1089187e --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-tr/table-checkbox.vue @@ -0,0 +1,179 @@ + + + + + diff --git a/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue b/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue new file mode 100644 index 00000000..f9b96716 --- /dev/null +++ b/src/uni_modules/uni-table/components/uni-tr/uni-tr.vue @@ -0,0 +1,171 @@ + + + + + diff --git a/src/uni_modules/uni-table/i18n/en.json b/src/uni_modules/uni-table/i18n/en.json new file mode 100644 index 00000000..e32023cc --- /dev/null +++ b/src/uni_modules/uni-table/i18n/en.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Reset", + "filter-dropdown.search": "Search", + "filter-dropdown.submit": "Submit", + "filter-dropdown.filter": "Filter", + "filter-dropdown.gt": "Greater or equal to", + "filter-dropdown.lt": "Less than or equal to", + "filter-dropdown.date": "Date" +} diff --git a/src/uni_modules/uni-table/i18n/es.json b/src/uni_modules/uni-table/i18n/es.json new file mode 100644 index 00000000..9afd04bb --- /dev/null +++ b/src/uni_modules/uni-table/i18n/es.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Reiniciar", + "filter-dropdown.search": "Búsqueda", + "filter-dropdown.submit": "Entregar", + "filter-dropdown.filter": "Filtrar", + "filter-dropdown.gt": "Mayor o igual a", + "filter-dropdown.lt": "Menos que o igual a", + "filter-dropdown.date": "Fecha" +} diff --git a/src/uni_modules/uni-table/i18n/fr.json b/src/uni_modules/uni-table/i18n/fr.json new file mode 100644 index 00000000..b0062371 --- /dev/null +++ b/src/uni_modules/uni-table/i18n/fr.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "Réinitialiser", + "filter-dropdown.search": "Chercher", + "filter-dropdown.submit": "Soumettre", + "filter-dropdown.filter": "Filtre", + "filter-dropdown.gt": "Supérieur ou égal à", + "filter-dropdown.lt": "Inférieur ou égal à", + "filter-dropdown.date": "Date" +} diff --git a/src/uni_modules/uni-table/i18n/index.js b/src/uni_modules/uni-table/i18n/index.js new file mode 100644 index 00000000..2469dd02 --- /dev/null +++ b/src/uni_modules/uni-table/i18n/index.js @@ -0,0 +1,12 @@ +import en from './en.json' +import es from './es.json' +import fr from './fr.json' +import zhHans from './zh-Hans.json' +import zhHant from './zh-Hant.json' +export default { + en, + es, + fr, + 'zh-Hans': zhHans, + 'zh-Hant': zhHant +} diff --git a/src/uni_modules/uni-table/i18n/zh-Hans.json b/src/uni_modules/uni-table/i18n/zh-Hans.json new file mode 100644 index 00000000..862af179 --- /dev/null +++ b/src/uni_modules/uni-table/i18n/zh-Hans.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "重置", + "filter-dropdown.search": "搜索", + "filter-dropdown.submit": "确定", + "filter-dropdown.filter": "筛选", + "filter-dropdown.gt": "大于等于", + "filter-dropdown.lt": "小于等于", + "filter-dropdown.date": "日期范围" +} diff --git a/src/uni_modules/uni-table/i18n/zh-Hant.json b/src/uni_modules/uni-table/i18n/zh-Hant.json new file mode 100644 index 00000000..64f80615 --- /dev/null +++ b/src/uni_modules/uni-table/i18n/zh-Hant.json @@ -0,0 +1,9 @@ +{ + "filter-dropdown.reset": "重置", + "filter-dropdown.search": "搜索", + "filter-dropdown.submit": "確定", + "filter-dropdown.filter": "篩選", + "filter-dropdown.gt": "大於等於", + "filter-dropdown.lt": "小於等於", + "filter-dropdown.date": "日期範圍" +} diff --git a/src/uni_modules/uni-table/package.json b/src/uni_modules/uni-table/package.json new file mode 100644 index 00000000..7c2f91cd --- /dev/null +++ b/src/uni_modules/uni-table/package.json @@ -0,0 +1,83 @@ +{ + "id": "uni-table", + "displayName": "uni-table 表格", + "version": "1.2.3", + "description": "表格组件,多用于展示多条结构类似的数据,如", + "keywords": [ + "uni-ui", + "uniui", + "table", + "表格" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, +"dcloudext": { + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui", + "type": "component-vue" + }, + "uni_modules": { + "dependencies": ["uni-scss","uni-datetime-picker"], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "n" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "n", + "QQ": "y" + }, + "快应用": { + "华为": "n", + "联盟": "n" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} \ No newline at end of file diff --git a/src/uni_modules/uni-table/readme.md b/src/uni_modules/uni-table/readme.md new file mode 100644 index 00000000..bb08c791 --- /dev/null +++ b/src/uni_modules/uni-table/readme.md @@ -0,0 +1,13 @@ + + +## Table 表单 +> 组件名:``uni-table``,代码块: `uTable`。 + +用于展示多条结构类似的数据 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-table) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + + + From 561e5675e5b12c2c9b6de3d65843e1adedfa1c66 Mon Sep 17 00:00:00 2001 From: yixiudong <827231259@qq.com> Date: Tue, 19 Aug 2025 15:34:59 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=E8=B7=B3=E8=BD=AC=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E5=8F=8A=E8=B7=AF=E7=94=B1=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 9 +++++++++ src/pages/me/index.vue | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/pages.json b/src/pages.json index b7ca8b0a..9c98f24b 100644 --- a/src/pages.json +++ b/src/pages.json @@ -145,6 +145,15 @@ } } }, + { + "path": "pages/charts/index", + "style": { + "navigationBarTitleText": "", + "app-plus": { + "titleNView": false + } + } + }, { "path": "pages/favorites/index", "style": { diff --git a/src/pages/me/index.vue b/src/pages/me/index.vue index b31a8bc2..357f3c86 100644 --- a/src/pages/me/index.vue +++ b/src/pages/me/index.vue @@ -111,8 +111,7 @@ - + From 4e5c17fe3de88cadc4ae1d5b0c0214e8e415ee6f Mon Sep 17 00:00:00 2001 From: yixiudong <827231259@qq.com> Date: Tue, 19 Aug 2025 16:57:03 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=81=94=E8=B0=83=E6=88=91=E7=9A=84?= =?UTF-8?q?=E6=8E=92=E8=A1=8C=E6=A6=9C=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/charts/index.vue | 316 ++++++++++++++++--------------------- 1 file changed, 133 insertions(+), 183 deletions(-) diff --git a/src/pages/charts/index.vue b/src/pages/charts/index.vue index d87c9df2..47921944 100644 --- a/src/pages/charts/index.vue +++ b/src/pages/charts/index.vue @@ -100,7 +100,7 @@ {{tableLastName}} - + @@ -127,7 +127,7 @@ - +