小编Som*_*rth的帖子

Angular 6 从材料表中获取排序数据

对表进行排序后,有没有办法从材料表中获取排序后的数据?我可以在表数据源中看到“filteredData”,但没有“sortedData”。我想要排序数据的原因是我可以将它导出到 csv 文件中,同时保持所有应用的排序。我一直在使用内置的 MatSort 对表中的各个列进行排序。

typescript angular-material angular

6
推荐指数
1
解决办法
2422
查看次数

CMake - 包括项目外的目录

所以我想包含一个位于不同文件夹中的全局头文件。CMakeList.txt 的代码如下。在我的 .cpp 中,当我包含本地包含文件夹中的内容时,它可以工作,但不适用于其他文件夹中的内容。

cmake_minimum_required(VERSION 2.8)

#Project name
project(Server-Client)

#Add all cpp files as source files
file(GLOB_RECURSE SOURCES "src/*.cpp")

#Build executable 'Server' with all files in SOURCES
add_executable(Server ${SOURCES})

#Include all files in include directory
include_directories("include")

target_include_directories(Server PUBLIC "../../GlobalFiles/include")

find_package(Threads REQUIRED)

#Build executable 'localization' with all files in SOURCES
target_link_libraries(Server ${CMAKE_THREAD_LIBS_INIT})
Run Code Online (Sandbox Code Playgroud)

c++ cmake

5
推荐指数
1
解决办法
2451
查看次数

标签 统计

angular ×1

angular-material ×1

c++ ×1

cmake ×1

typescript ×1