提交 c0c57a7c 编写于 作者: 沐夕花开's avatar 沐夕花开

update: template 标签改成 block (微信小程序平台会将template编译成block)

上级 7ba79745
......@@ -68,5 +68,5 @@
"uniStatistics" : {
"enable" : false
},
"vueVersion" : "2"
"vueVersion" : "3"
}
## 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)
......
<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>
......
<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>
......
{
"id": "n-table",
"displayName": "n-table 多级表头、树形结构,高度配置表格组件",
"version": "1.2.2",
"version": "1.2.3",
"description": "n-table 多级表头、树形结构,高度配置表格组件",
"keywords": [
"表格,多级表头,树形结构,可配置"
......
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;
{
"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
@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
{
"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.
先完成此消息的编辑!
想要评论请 注册