Skip to content

Instantly share code, notes, and snippets.

{
"title": "Switch input source | 输入法切换",
"rules": [
{
"description": "Tap Command_L (⌘) → Switch input source to English | 短按左 Command (⌘) → 切换到英文输入法",
"manipulators": [
{
"conditions": [
{
"input_sources": [
{
"title": "CapsLock / Control / Tab",
"rules": [
{
"description": "Tap CapsLock (⇪) → Control (⌃); Hold CapsLock (⇪) → Control (⌃)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
{
"title": "Change left_option (⌥) + hjklnp to arrow for HHKB",
"rules": [
{
"description": "Change left_option (⌥) + hjklnp to arrow for HHKB",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
@jackytang
jackytang / Grouping table head
Last active March 23, 2024 03:37
多级表头
<template>
<el-table :data="playerLevelStatisticsList" stripe :span-method="objectSpanMethod" show-summary>
<el-table-column prop="date" fixed label="日期" align="center" width="100"></el-table-column>
<el-table-column prop="platform" fixed label="渠道" align="center" width="100"></el-table-column>
<el-table-column v-for="(item, index) in levelList" :key="index" :label="item" align="center">
<el-table-column label="在线数" min-width="70" align="center">
<template #default="scope">
{{ scope.row.list[index]?.onlineCount ?? 0 }}
</template>
</el-table-column>