This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 处理毫秒级的时间 | |
handleTime: function (times) { | |
var t = new Date(times); | |
return t.getFullYear() + '年' + (t.getMonth() + 1) + '月' + t.getDate() + '日 ' + t.toTimeString().slice(0, 5) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;(function (factory) { | |
var registeredInModuleLoader = false; | |
if (typeof define === 'function' && define.amd) { | |
define(factory); // AMD,requireJS | |
registeredInModuleLoader = true; | |
} | |
if (typeof exports === 'object') { | |
module.exports = factory(); // CMD Node,webpack,bowserfy,seaJS | |
registeredInModuleLoader = true; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a.sort(function(a, b) { | |
return Math.random() - 0.5 | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2022-03-02T07:09:57.499Z","extensionVersion":"v3.4.3"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<div class="app"> | |
<div class="container"> | |
<div class="main"> | |
<el-checkbox v-model="checkAll" @change="handleCheckAllChange">全选</el-checkbox> | |
<virtual-list class="list" :size="30" :remain="6"> | |
<div class="list-item" style="height:30px;" v-for="item in items" :key="item.idx"> | |
<el-checkbox v-model="item.checked" @change="handleCheckItem(item)">table content</el-checkbox> | |
</div> | |
</virtual-list> |
OlderNewer