From 4bf098accbe326fdc2c3a54df5adcf1dcb78ba89 Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Wed, 5 Jul 2023 12:35:43 +0800 Subject: [PATCH 1/2] chore: add commitlint rule --- common/autoinstallers/lint/commitlint.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/common/autoinstallers/lint/commitlint.config.js b/common/autoinstallers/lint/commitlint.config.js index cfade48be..0b66d7686 100644 --- a/common/autoinstallers/lint/commitlint.config.js +++ b/common/autoinstallers/lint/commitlint.config.js @@ -1,6 +1,7 @@ module.exports = { extends: ['@commitlint/config-conventional'], rules: { + 'header-min-length': [2, 'always', 16], 'not-allowed-chars': [2, 'always'] }, plugins: [ From 9066b43775ffa40249eb265b19ccdfdea1f85be4 Mon Sep 17 00:00:00 2001 From: fangsmile <892739385@qq.com> Date: Wed, 5 Jul 2023 12:37:08 +0800 Subject: [PATCH 2/2] chore: simply readme demo --- README.md | 16 ++++++---------- README.zh-CN.md | 13 ++++++------- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index 1e1348eb7..93abf42e0 100644 --- a/README.md +++ b/README.md @@ -99,32 +99,28 @@ const columns =[ ]; const option = { - parentElement: document.getElementById(Table_CONTAINER_DOM_ID), + parentElement: document.getElementById(CONTAINER_ID), records:[ - { + { "230517143221027": "CA-2018-156720", "230517143221030": "JM-15580", "230517143221032": "Bagged Rubber Bands", "230517143221040": "3.024", "230517143221041": "-0.605" - }, - { + }, + { "230517143221027": "CA-2018-115427", "230517143221030": "EB-13975", "230517143221032": "GBC Binding covers", "230517143221040": "20.72", "230517143221041": "6.475" - }, - ... + }, + // ... ], columns, - widthMode:'standard' }; const tableInstance = new VTable.ListTable(option); - - - ``` ## diff --git a/README.zh-CN.md b/README.zh-CN.md index 24e3e9ac2..2cdab2147 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -97,26 +97,25 @@ const columns =[ ]; const option = { - parentElement: document.getElementById(Table_CONTAINER_DOM_ID), + parentElement: document.getElementById(CONTAINER_ID), records:[ - { + { "230517143221027": "CA-2018-156720", "230517143221030": "JM-15580", "230517143221032": "Bagged Rubber Bands", "230517143221040": "3.024", "230517143221041": "-0.605" - }, - { + }, + { "230517143221027": "CA-2018-115427", "230517143221030": "EB-13975", "230517143221032": "GBC Binding covers", "230517143221040": "20.72", "230517143221041": "6.475" - }, - ... + }, + // ... ], columns, - widthMode:'standard' }; const tableInstance = new VTable.ListTable(option);