搭建PVB架构,实现前端的基础布局、菜单、表格、图示等功能

This commit is contained in:
lixiaoyuan
2025-08-20 19:00:22 +08:00
parent 5de7687bcc
commit 7e965b6fb4
142 changed files with 28270 additions and 411 deletions

View File

@@ -10,10 +10,10 @@ using namespace std;
struct PageInfo
{
int total = 0;
int page_id = 1;
int page_size = 10;
int page_max = 0;
int total {0};
int pageIndex {0};
int pageSize {10};
int pageCount {0};
};
class DataFields
@@ -64,7 +64,13 @@ public:
* @param: [string key] 索引名称
*/
float getFloat(string key);
/**
* 获取 double 值
* @param: [string key] 索引名称
*/
double getDouble(string key);
/**
* 删除指定索引的值
* @param: [string key] 索引名称
@@ -116,7 +122,7 @@ public:
* 遍历数据项
* @param: [function... on_foraach] 回调函数
*/
void foreach_item(function<void(string key, string val)> on_foraach);
void foreachItem(function<void(string key, string val)> on_foraach);
/**
* 判断是否含有数据项
@@ -133,7 +139,7 @@ public:
/**
* 转换成键值对的字符串格式
*/
string to_str();
string toStr();
/**
* 获取数据项的大小