Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
沐夕花开
n-table示例
提交
c0c57a7c
N
n-table示例
项目概览
沐夕花开
/
n-table示例
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
n-table示例
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
c0c57a7c
编写于
4月 26, 2022
作者:
沐夕花开
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: template 标签改成 block (微信小程序平台会将template编译成block)
上级
7ba79745
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
123 addition
and
66 deletion
+123
-66
manifest.json
manifest.json
+1
-1
uni_modules/n-table/changelog.md
uni_modules/n-table/changelog.md
+2
-0
uni_modules/n-table/components/n-table/table-body.vue
uni_modules/n-table/components/n-table/table-body.vue
+16
-16
uni_modules/n-table/components/n-table/table-header.vue
uni_modules/n-table/components/n-table/table-header.vue
+2
-2
uni_modules/n-table/package.json
uni_modules/n-table/package.json
+1
-1
unpackage/dist/dev/mp-weixin/app.js
unpackage/dist/dev/mp-weixin/app.js
+28
-4
unpackage/dist/dev/mp-weixin/app.json
unpackage/dist/dev/mp-weixin/app.json
+14
-14
unpackage/dist/dev/mp-weixin/app.wxss
unpackage/dist/dev/mp-weixin/app.wxss
+2
-2
unpackage/dist/dev/mp-weixin/project.config.json
unpackage/dist/dev/mp-weixin/project.config.json
+57
-26
未找到文件。
manifest.json
浏览文件 @
c0c57a7c
...
...
@@ -68,5 +68,5 @@
"uniStatistics"
:
{
"enable"
:
false
},
"vueVersion"
:
"
2
"
"vueVersion"
:
"
3
"
}
uni_modules/n-table/changelog.md
浏览文件 @
c0c57a7c
## 1.2.3(2022-04-26)
1.
update: template 标签改成 block (微信小程序平台会将template编译成block)
## 1.2.2(2022-04-26)
1.
fix: 修复部分警告提示,包括绑定key的警告提示
## 1.2.1(2022-04-26)
...
...
uni_modules/n-table/components/n-table/table-body.vue
浏览文件 @
c0c57a7c
<
template
>
<view
class=
"body-wrapper"
ref=
"bodyWrapper"
id=
"bodyWrapper"
>
<template
v-for=
"(row, iIndex) in dataList
"
>
<block
v-for=
"(row, iIndex) in dataList"
:key=
"iIndex
"
>
<!-- 分组 -->
<
template
v-if=
"isGroup"
>
<
block
v-if=
"isGroup"
>
<view
class=
"n-table-container-row group-row"
:key=
"iIndex"
>
<view
class=
"group-head"
v-if=
"row.children"
>
<view
class=
"n-table-container-col head-row group-col n-border border-bottom"
...
...
@@ -16,13 +16,13 @@
:class=
"row.open ? 'icon-arrow-up' : 'icon-arrow-down'"
></view>
</view>
<
template
v-if=
"row.open"
>
<
block
v-if=
"row.open"
>
<view
v-if=
"!row.children.length"
class=
"no-data"
>
暂无数据
</view>
<
template
v-else
>
<
block
v-else
>
<view
v-for=
" (child, childIdx) in row.children"
:key=
"childIdx"
class=
"group-open-wrap"
>
<view
v-for=
"(col, jIndex) in dataIndexs"
...
...
@@ -55,7 +55,7 @@
</view>
<!-- 链接 -->
<
template
v-if=
"col.isLink"
>
<
block
v-if=
"col.isLink"
>
<!-- #ifdef H5 -->
<router-link
v-if=
"setUrl(child, col).indexOf('http') != 0"
:to=
"setUrl(child, col)"
v-html=
"getRowContent(child, col)"
>
...
...
@@ -68,23 +68,23 @@
<navigator
:url=
"setUrl(child, col)"
v-html=
"getRowContent(child, col)"
></navigator>
<!-- #endif -->
</
template
>
</
block
>
</view>
</view>
</view>
</
template
>
</
template
>
</
block
>
</
block
>
</view>
</view>
</
template
>
</
block
>
<!-- 其他 -->
<
template
v-if=
"!isGroup"
>
<
block
v-if=
"!isGroup"
>
<view
class=
"n-table-container-row"
v-if=
"row.level === 0 || checkOpen(row.parentIds[row.parentIds.length - 1])"
:key=
"iIndex"
>
<
template
v-for=
"(col, jIndex) in dataIndexs
"
>
<
block
v-for=
"(col, jIndex) in dataIndexs"
:key=
"jIndex
"
>
<view
v-if=
"!col.hidden"
class=
"n-border border-bottom border-right"
...
...
@@ -129,7 +129,7 @@
</view>
<!-- 链接 -->
<
template
v-if=
"col.isLink"
>
<
block
v-if=
"col.isLink"
>
<!-- #ifdef H5 -->
<router-link
v-if=
"setUrl(row, col).indexOf('http') != 0"
:to=
"setUrl(row, col)"
v-html=
"getRowContent(row, col)"
></router-link>
...
...
@@ -141,16 +141,16 @@
<navigator
:url=
"setUrl(row, col)"
v-html=
"getRowContent(row, col)"
></navigator>
<!-- #endif -->
</
template
>
</
block
>
</view>
</view>
</
template
>
</
block
>
</view>
</
template
>
</
block
>
</
template
>
</
block
>
</view>
</
template
>
...
...
uni_modules/n-table/components/n-table/table-header.vue
浏览文件 @
c0c57a7c
<
template
>
<view
class=
"n-table-title"
>
<
template
v-for=
"(item, index) in columns
"
>
<
block
v-for=
"(item, index) in columns"
:key=
"index
"
>
<view
class=
"header-item"
v-if=
"!item.hidden"
:key=
"index"
...
...
@@ -22,7 +22,7 @@
:firstCol=
"index === 0"
:colKey=
"colKey"
></titleColumn>
</view>
</
template
>
</
block
>
</view>
</
template
>
...
...
uni_modules/n-table/package.json
浏览文件 @
c0c57a7c
{
"id"
:
"n-table"
,
"displayName"
:
"n-table 多级表头、树形结构,高度配置表格组件"
,
"version"
:
"1.2.
2
"
,
"version"
:
"1.2.
3
"
,
"description"
:
"n-table 多级表头、树形结构,高度配置表格组件"
,
"keywords"
:
[
"表格,多级表头,树形结构,可配置"
...
...
unpackage/dist/dev/mp-weixin/app.js
浏览文件 @
c0c57a7c
require
(
'
./common/runtime.js
'
)
require
(
'
./common/vendor.js
'
)
require
(
'
./common/main.js
'
)
\ No newline at end of file
"
use strict
"
;
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
});
exports
[
Symbol
.
toStringTag
]
=
"
Module
"
;
var
common_vendor
=
require
(
"
./common/vendor.js
"
);
if
(
!
Math
)
{
"
./pages/index/index.js
"
;
"
./pages/index/table1.js
"
;
}
const
_sfc_main
=
{
onLaunch
:
function
()
{
console
.
log
(
"
App Launch
"
);
},
onShow
:
function
()
{
console
.
log
(
"
App Show
"
);
},
onHide
:
function
()
{
console
.
log
(
"
App Hide
"
);
}
};
var
App
=
/* @__PURE__ */
common_vendor
.
_export_sfc
(
_sfc_main
,
[[
"
__file
"
,
"
D:/workspace/jingkai/nxTest/n-table
\
u793A
\
u4F8B/App.vue
"
]]);
function
createApp
()
{
const
app
=
common_vendor
.
createSSRApp
(
App
);
return
{
app
};
}
createApp
().
app
.
mount
(
"
#app
"
);
exports
.
createApp
=
createApp
;
unpackage/dist/dev/mp-weixin/app.json
浏览文件 @
c0c57a7c
{
"pages"
:
[
"pages/index/index"
,
"pages/index/table1"
],
"subPackages"
:
[],
"window"
:
{
"pageOrientation"
:
"auto
"
,
"navigationStyle"
:
"default
"
,
"navigationBarTextStyle"
:
"black
"
,
"navigationBarTitleText"
:
"uni-app
"
,
"navigationBarBackgroundColor"
:
"#F8F8F8"
,
"backgroundColor"
:
"#F8F8F8"
},
"usingComponents"
:
{}
"pages"
:
[
"pages/index/index"
,
"pages/index/table1"
],
"window"
:
{
"pageOrientation"
:
"auto"
,
"navigationStyle"
:
"default
"
,
"navigationBarTextStyle"
:
"black
"
,
"navigationBarTitleText"
:
"uni-app
"
,
"navigationBarBackgroundColor"
:
"#F8F8F8
"
,
"backgroundColor"
:
"#F8F8F8"
},
"usingComponents"
:
{
},
"sitemapLocation"
:
"sitemap.json"
}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/app.wxss
浏览文件 @
c0c57a7c
@import './common/main.wxss';
[data-custom-hidden="true"],[bind-data-custom-hidden="true"]{display: none !important;}
\ No newline at end of file
/*每个页面公共css */
page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}
\ No newline at end of file
unpackage/dist/dev/mp-weixin/project.config.json
浏览文件 @
c0c57a7c
{
"description"
:
"项目配置文件。"
,
"packOptions"
:
{
"ignore"
:
[]
},
"setting"
:
{
"urlCheck"
:
false
},
"compileType"
:
"miniprogram"
,
"libVersion"
:
""
,
"appid"
:
"wx43d90ce583ec0ffe"
,
"projectname"
:
"n-table示例"
,
"condition"
:
{
"search"
:
{
"current"
:
-1
,
"list"
:
[]
"description"
:
"项目配置文件。"
,
"packOptions"
:
{
"ignore"
:
[]
},
"conversation"
:
{
"current"
:
-1
,
"list"
:
[]
"setting"
:
{
"urlCheck"
:
false
,
"es6"
:
true
,
"enhance"
:
true
,
"postcss"
:
true
,
"preloadBackgroundData"
:
false
,
"minified"
:
true
,
"newFeature"
:
false
,
"coverView"
:
true
,
"nodeModules"
:
false
,
"autoAudits"
:
false
,
"showShadowRootInWxmlPanel"
:
true
,
"scopeDataCheck"
:
false
,
"uglifyFileName"
:
false
,
"checkInvalidKey"
:
true
,
"checkSiteMap"
:
true
,
"uploadWithSourceMap"
:
true
,
"compileHotReLoad"
:
false
,
"lazyloadPlaceholderEnable"
:
false
,
"useMultiFrameRuntime"
:
true
,
"useApiHook"
:
true
,
"useApiHostProcess"
:
true
,
"babelSetting"
:
{
"ignore"
:
[],
"disablePlugins"
:
[],
"outputPath"
:
""
},
"useIsolateContext"
:
true
,
"userConfirmedBundleSwitch"
:
false
,
"packNpmManually"
:
false
,
"packNpmRelationList"
:
[],
"minifyWXSS"
:
true
,
"disableUseStrict"
:
false
,
"showES6CompileOption"
:
false
,
"useCompilerPlugins"
:
false
,
"ignoreUploadUnusedFiles"
:
true
,
"minifyWXML"
:
true
},
"game"
:
{
"current"
:
-1
,
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
-1
,
"list"
:
[]
"compileType"
:
"miniprogram"
,
"libVersion"
:
""
,
"appid"
:
"wx43d90ce583ec0ffe"
,
"projectname"
:
"n-table示例"
,
"condition"
:
{
"search"
:
{
"list"
:
[]
},
"conversation"
:
{
"list"
:
[]
},
"game"
:
{
"list"
:
[]
},
"miniprogram"
:
{
"list"
:
[]
}
}
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录