From 6717dfead2343eade1e98c02f08bc9b8b9ffab82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Fri, 24 Dec 2021 13:42:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90=20prettier=20=E6=8F=92?= =?UTF-8?q?=E4=BB=B6,=20=E6=96=B0=E5=A2=9E=20npm=20run=20lint:prettier=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .prettierrc | 3 + .prettierrc.js | 3 - package.json | 4 +- src/css/layui.css | 162 ++++++++-------- src/module/avatar/index.less | 82 ++++---- src/module/avatar/index.vue | 18 +- src/module/badge/index.less | 42 ++--- src/module/badge/index.vue | 2 +- src/module/block/index.less | 20 +- src/module/block/index.vue | 4 +- src/module/body/index.less | 14 +- src/module/body/index.vue | 8 +- src/module/breadcrumb/index.vue | 10 +- src/module/breadcrumbItem/index.vue | 10 +- src/module/button/index.less | 102 +++++----- src/module/button/index.vue | 10 +- src/module/buttonContainer/index.less | 14 +- src/module/buttonGroup/index.less | 36 ++-- src/module/buttonGroup/index.vue | 4 +- src/module/card/index.less | 38 ++-- src/module/carousel/index.vue | 66 +++---- src/module/carouselItem/index.vue | 8 +- src/module/checkboxGroup/index.vue | 1 - src/module/col/index.vue | 2 +- src/module/collapse/index.vue | 30 +-- src/module/collapseItem/index.vue | 48 +++-- src/module/colorPicker/ColorBox.vue | 102 +++++----- src/module/colorPicker/ColorPicker.vue | 18 +- src/module/colorPicker/index.vue | 70 +++---- src/module/container/index.less | 16 +- src/module/container/index.vue | 18 +- src/module/dropdown/index.vue | 42 ++--- src/module/dropdownItem/index.vue | 8 +- src/module/empty/index.less | 20 +- src/module/empty/index.vue | 2 +- src/module/field/index.vue | 17 +- src/module/footer/index.less | 4 +- src/module/footer/index.vue | 8 +- src/module/form/index.vue | 140 ++++++++------ src/module/formItem/index.less | 51 +++-- src/module/formItem/index.vue | 178 ++++++++++++------ src/module/header/index.less | 6 +- src/module/header/index.vue | 2 +- src/module/iconPicker/index.vue | 126 ++++++------- src/module/input/index.vue | 1 - src/module/inputNumber/index.less | 47 +++-- src/module/inputNumber/index.vue | 27 ++- src/module/layout/index.less | 16 +- src/module/layout/index.vue | 2 +- src/module/line/index.vue | 6 +- src/module/menuChildItem/index.vue | 21 +-- src/module/menuItem/index.vue | 32 ++-- src/module/page/index.vue | 68 +++---- src/module/panel/index.less | 12 +- src/module/panel/index.vue | 8 +- src/module/popper/index.vue | 209 ++++++++++++--------- src/module/progress/index.vue | 2 +- src/module/radio/index.vue | 25 ++- src/module/rate/index.less | 30 +-- src/module/rate/index.vue | 24 ++- src/module/row/index.less | 249 ++++++++++++------------- src/module/row/index.vue | 1 - src/module/select/index.less | 68 +++---- src/module/select/index.vue | 204 +++++++++++++------- src/module/selectOption/index.vue | 61 +++--- src/module/side/index.less | 8 +- src/module/side/index.vue | 2 +- src/module/switch/index.vue | 2 +- src/module/tab/index.vue | 83 +++++---- src/module/tabItem/index.vue | 23 +-- src/module/table/index.vue | 8 +- src/module/textarea/index.vue | 2 +- src/module/timeline/index.less | 62 +++--- src/module/timeline/index.vue | 4 +- src/module/tooltip/index.vue | 12 +- src/module/transfer/index.less | 4 +- src/module/transfer/index.vue | 2 +- src/module/tree/TreeNode.vue | 82 ++++---- src/module/tree/index.vue | 88 ++++----- src/tools/domUtil.js | 38 ++-- 80 files changed, 1652 insertions(+), 1450 deletions(-) create mode 100644 .prettierrc delete mode 100644 .prettierrc.js diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..0e0dcd23 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/.prettierrc.js b/.prettierrc.js deleted file mode 100644 index 51f92fb7..00000000 --- a/.prettierrc.js +++ /dev/null @@ -1,3 +0,0 @@ -module.exports = { - -} \ No newline at end of file diff --git a/package.json b/package.json index 539d025b..b04295f3 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,8 @@ "dev": "vite", "build": "vite build --emptyOutDir && npm run build:types", "build:types": "rimraf types && tsc -d", - "build:example": "vite build example" + "build:example": "vite build example", + "lint:prettier": "prettier --write \"src/**/*.{js,json,tsx,css,less,scss,vue,html,md}\"" }, "peerDependencies": { "vue": "^3.2.26", @@ -53,6 +54,7 @@ "escape-html": "^1.0.3", "less": "^4.1.2", "markdown-it-container": "^3.0.0", + "prettier": "^2.5.1", "prismjs": "^1.25.0", "rimraf": "^3.0.2", "rollup": "^2.61.0", diff --git a/src/css/layui.css b/src/css/layui.css index ae134dd4..b7120770 100644 --- a/src/css/layui.css +++ b/src/css/layui.css @@ -182,7 +182,7 @@ a cite { } .layui-clear:after { - content: '\20'; + content: "\20"; clear: both; *zoom: 1; display: block; @@ -683,7 +683,7 @@ a cite { color: #c2c2c2 !important; } -.layui-input-number[type='number'] { +.layui-input-number[type="number"] { -moz-appearance: textfield; } @@ -740,8 +740,8 @@ a cite { padding: 0 10px; } -.layui-form input[type='checkbox'], -.layui-form input[type='radio'], +.layui-form input[type="checkbox"], +.layui-form input[type="radio"], .layui-form select { display: none; } @@ -757,7 +757,7 @@ a cite { } .layui-form-item:after { - content: '\20'; + content: "\20"; clear: both; *zoom: 1; display: block; @@ -1122,7 +1122,7 @@ a cite { margin-top: 4px; } -.layui-form-checkbox[lay-skin='primary'] { +.layui-form-checkbox[lay-skin="primary"] { height: auto !important; line-height: normal !important; min-width: 18px; @@ -1134,7 +1134,7 @@ a cite { background: 0 0; } -.layui-form-checkbox[lay-skin='primary'] span { +.layui-form-checkbox[lay-skin="primary"] span { padding-left: 0; padding-right: 15px; line-height: 18px; @@ -1142,7 +1142,7 @@ a cite { color: #666; } -.layui-form-checkbox[lay-skin='primary'] i { +.layui-form-checkbox[lay-skin="primary"] i { right: auto; left: 0; width: 16px; @@ -1156,27 +1156,27 @@ a cite { transition: 0.1s linear; } -.layui-form-checkbox[lay-skin='primary']:hover i { +.layui-form-checkbox[lay-skin="primary"]:hover i { border-color: #5fb878; color: #fff; } -.layui-form-checked[lay-skin='primary'] i { +.layui-form-checked[lay-skin="primary"] i { border-color: #5fb878 !important; background-color: #5fb878; color: #fff; } -.layui-checkbox-disabled[lay-skin='primary'] span { +.layui-checkbox-disabled[lay-skin="primary"] span { background: 0 0 !important; color: #c2c2c2 !important; } -.layui-checkbox-disabled[lay-skin='primary']:hover i { +.layui-checkbox-disabled[lay-skin="primary"]:hover i { border-color: #d2d2d2; } -.layui-form-item .layui-form-checkbox[lay-skin='primary'] { +.layui-form-item .layui-form-checkbox[lay-skin="primary"] { margin-top: 10px; } @@ -1391,7 +1391,7 @@ a cite { } .layui-form-item .layui-inline:after { - content: '\20'; + content: "\20"; clear: both; display: block; height: 0; @@ -1758,8 +1758,8 @@ a cite { .layui-table-tool, .layui-table-total, .layui-table-view, -.layui-table[lay-skin='line'], -.layui-table[lay-skin='row'] { +.layui-table[lay-skin="line"], +.layui-table[lay-skin="row"] { border-width: 1px; border-style: solid; border-color: #eee; @@ -1774,18 +1774,18 @@ a cite { font-size: 14px; } -.layui-table[lay-skin='line'] td, -.layui-table[lay-skin='line'] th { +.layui-table[lay-skin="line"] td, +.layui-table[lay-skin="line"] th { border-width: 0 0 1px; } -.layui-table[lay-skin='row'] td, -.layui-table[lay-skin='row'] th { +.layui-table[lay-skin="row"] td, +.layui-table[lay-skin="row"] th { border-width: 0 1px 0 0; } -.layui-table[lay-skin='nob'] td, -.layui-table[lay-skin='nob'] th { +.layui-table[lay-skin="nob"] td, +.layui-table[lay-skin="nob"] th { border: none; } @@ -1793,23 +1793,23 @@ a cite { max-width: 100px; } -.layui-table[lay-size='lg'] td, -.layui-table[lay-size='lg'] th { +.layui-table[lay-size="lg"] td, +.layui-table[lay-size="lg"] th { padding: 15px 30px; } -.layui-table-view .layui-table[lay-size='lg'] .layui-table-cell { +.layui-table-view .layui-table[lay-size="lg"] .layui-table-cell { height: 40px; line-height: 40px; } -.layui-table[lay-size='sm'] td, -.layui-table[lay-size='sm'] th { +.layui-table[lay-size="sm"] td, +.layui-table[lay-size="sm"] th { font-size: 12px; padding: 5px 10px; } -.layui-table-view .layui-table[lay-size='sm'] .layui-table-cell { +.layui-table-view .layui-table[lay-size="sm"] .layui-table-cell { height: 20px; line-height: 20px; } @@ -1829,11 +1829,11 @@ a cite { border-collapse: separate; } -.layui-table-view .layui-table[lay-skin='line'] { +.layui-table-view .layui-table[lay-skin="line"] { border-width: 0 1px 0 0; } -.layui-table-view .layui-table[lay-skin='row'] { +.layui-table-view .layui-table[lay-skin="row"] { border-width: 0 0 1px; } @@ -1856,11 +1856,11 @@ a cite { cursor: default; } -.layui-table-view .layui-table td[data-edit='text'] { +.layui-table-view .layui-table td[data-edit="text"] { cursor: text; } -.layui-table-view .layui-form-checkbox[lay-skin='primary'] i { +.layui-table-view .layui-form-checkbox[lay-skin="primary"] i { width: 18px; height: 18px; } @@ -1973,7 +1973,7 @@ a cite { transition: all 0.3s; } -.layui-table-tool-panel li .layui-form-checkbox[lay-skin='primary'] { +.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] { width: 100%; padding-left: 28px; } @@ -1982,13 +1982,13 @@ a cite { background-color: #f6f6f6; } -.layui-table-tool-panel li .layui-form-checkbox[lay-skin='primary'] i { +.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] i { position: absolute; left: 0; top: 0; } -.layui-table-tool-panel li .layui-form-checkbox[lay-skin='primary'] span { +.layui-table-tool-panel li .layui-form-checkbox[lay-skin="primary"] span { padding: 0; } @@ -2042,11 +2042,11 @@ a cite { border-top-color: #666; } -.layui-table-sort[lay-sort='asc'] .layui-table-sort-asc { +.layui-table-sort[lay-sort="asc"] .layui-table-sort-asc { border-bottom-color: #000; } -.layui-table-sort[lay-sort='desc'] .layui-table-sort-desc { +.layui-table-sort[lay-sort="desc"] .layui-table-sort-desc { border-top-color: #000; } @@ -2057,7 +2057,7 @@ a cite { box-sizing: border-box; } -.layui-table-cell .layui-form-checkbox[lay-skin='primary'] { +.layui-table-cell .layui-form-checkbox[lay-skin="primary"] { top: -1px; padding: 0; } @@ -2527,7 +2527,7 @@ body .layui-table-tips .layui-layer-content { top: 0; bottom: 0; border-right: 3px solid #5fb878; - content: ''; + content: ""; } .layui-menu-body-title { @@ -2564,7 +2564,7 @@ body .layui-table-tips .layui-layer-content { } .layui-menu-body-panel:before { - content: ''; + content: ""; position: absolute; width: 20px; left: -16px; @@ -2618,13 +2618,13 @@ body .layui-table-tips .layui-layer-content { background-color: #fff; box-sizing: border-box; } -.layui-dropdown dl::before{ - content: ' '; +.layui-dropdown dl::before { + content: " "; display: block; height: 4px; width: 100%; } -.layui-dropdown dl>.layui-dropdown-menu{ +.layui-dropdown dl > .layui-dropdown-menu { border: 1px solid #eee; border-radius: 4px; } @@ -2876,7 +2876,7 @@ body .layui-table-tips .layui-layer-content { .layui-nav .layui-this:after, .layui-nav-bar { - content: ''; + content: ""; position: absolute; left: 0; top: 0; @@ -2892,7 +2892,7 @@ body .layui-table-tips .layui-layer-content { z-index: 1000; } -.layui-nav[lay-bar='disabled'] .layui-nav-bar { +.layui-nav[lay-bar="disabled"] .layui-nav-bar { display: none; } @@ -3181,7 +3181,7 @@ body .layui-table-tips .layui-layer-content { position: absolute; left: 0; top: 0; - content: ''; + content: ""; width: 100%; height: 41px; border-width: 1px; @@ -3363,7 +3363,7 @@ body .layui-table-tips .layui-layer-content { .layui-carousel > [carousel-item]:before { position: absolute; - content: '\e63d'; + content: "\e63d"; left: 50%; top: 50%; width: 100px; @@ -3416,22 +3416,22 @@ body .layui-table-tips .layui-layer-content { cursor: pointer; } -.layui-carousel-arrow[lay-type='add'] { +.layui-carousel-arrow[lay-type="add"] { left: auto !important; right: 10px; } -.layui-carousel:hover .layui-carousel-arrow[lay-type='add'], -.layui-carousel[lay-arrow='always'] .layui-carousel-arrow[lay-type='add'] { +.layui-carousel:hover .layui-carousel-arrow[lay-type="add"], +.layui-carousel[lay-arrow="always"] .layui-carousel-arrow[lay-type="add"] { right: 20px; } -.layui-carousel[lay-arrow='always'] .layui-carousel-arrow { +.layui-carousel[lay-arrow="always"] .layui-carousel-arrow { opacity: 1; left: 20px; } -.layui-carousel[lay-arrow='none'] .layui-carousel-arrow { +.layui-carousel[lay-arrow="none"] .layui-carousel-arrow { display: none; } @@ -3455,19 +3455,19 @@ body .layui-table-tips .layui-layer-content { font-size: 0; } -.layui-carousel[lay-indicator='outside'] { +.layui-carousel[lay-indicator="outside"] { margin-bottom: 30px; } -.layui-carousel[lay-indicator='outside'] .layui-carousel-ind { +.layui-carousel[lay-indicator="outside"] .layui-carousel-ind { top: 10px; } -.layui-carousel[lay-indicator='outside'] .layui-carousel-ind ul { +.layui-carousel[lay-indicator="outside"] .layui-carousel-ind ul { background-color: rgba(0, 0, 0, 0.5); } -.layui-carousel[lay-indicator='none'] .layui-carousel-ind { +.layui-carousel[lay-indicator="none"] .layui-carousel-ind { display: none; } @@ -3533,23 +3533,23 @@ body .layui-table-tips .layui-layer-content { left: 100%; } -.layui-carousel[lay-anim='updown'] .layui-carousel-arrow { +.layui-carousel[lay-anim="updown"] .layui-carousel-arrow { left: 50% !important; top: 20px; margin: 0 0 0 -18px; } -.layui-carousel[lay-anim='updown'] > [carousel-item] > *, -.layui-carousel[lay-anim='fade'] > [carousel-item] > * { +.layui-carousel[lay-anim="updown"] > [carousel-item] > *, +.layui-carousel[lay-anim="fade"] > [carousel-item] > * { left: 0 !important; } -.layui-carousel[lay-anim='updown'] .layui-carousel-arrow[lay-type='add'] { +.layui-carousel[lay-anim="updown"] .layui-carousel-arrow[lay-type="add"] { top: auto !important; bottom: 20px; } -.layui-carousel[lay-anim='updown'] .layui-carousel-ind { +.layui-carousel[lay-anim="updown"] .layui-carousel-ind { position: absolute; top: 50%; right: 20px; @@ -3557,66 +3557,66 @@ body .layui-table-tips .layui-layer-content { height: auto; } -.layui-carousel[lay-anim='updown'] .layui-carousel-ind ul { +.layui-carousel[lay-anim="updown"] .layui-carousel-ind ul { padding: 3px 5px; } -.layui-carousel[lay-anim='updown'] .layui-carousel-ind li { +.layui-carousel[lay-anim="updown"] .layui-carousel-ind li { display: block; margin: 6px 0; } -.layui-carousel[lay-anim='updown'] > [carousel-item] > .layui-this { +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-this { top: 0; } -.layui-carousel[lay-anim='updown'] > [carousel-item] > .layui-carousel-prev { +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-prev { top: -100%; } -.layui-carousel[lay-anim='updown'] > [carousel-item] > .layui-carousel-next { +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-next { top: 100%; } -.layui-carousel[lay-anim='updown'] +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-next.layui-carousel-left, -.layui-carousel[lay-anim='updown'] +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-carousel-prev.layui-carousel-right { top: 0; } -.layui-carousel[lay-anim='updown'] +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-this.layui-carousel-left { top: -100%; } -.layui-carousel[lay-anim='updown'] +.layui-carousel[lay-anim="updown"] > [carousel-item] > .layui-this.layui-carousel-right { top: 100%; } -.layui-carousel[lay-anim='fade'] > [carousel-item] > .layui-carousel-next, -.layui-carousel[lay-anim='fade'] > [carousel-item] > .layui-carousel-prev { +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-next, +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-prev { opacity: 0; } -.layui-carousel[lay-anim='fade'] +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-next.layui-carousel-left, -.layui-carousel[lay-anim='fade'] +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-carousel-prev.layui-carousel-right { opacity: 1; } -.layui-carousel[lay-anim='fade'] +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-this.layui-carousel-left, -.layui-carousel[lay-anim='fade'] +.layui-carousel[lay-anim="fade"] > [carousel-item] > .layui-this.layui-carousel-right { opacity: 0; @@ -4078,7 +4078,7 @@ body .layui-util-face .layui-layer-content { } .layui-slider-wrap:after { - content: ''; + content: ""; height: 100%; display: inline-block; vertical-align: middle; @@ -4110,7 +4110,7 @@ body .layui-util-face .layui-layer-content { } .layui-slider-tips:after { - content: ''; + content: ""; position: absolute; bottom: -12px; left: 50%; @@ -4252,7 +4252,7 @@ body .layui-util-face .layui-layer-content { } .layui-tree-line .layui-tree-set .layui-tree-set:after { - content: ''; + content: ""; position: absolute; top: 14px; left: -9px; @@ -4288,7 +4288,7 @@ body .layui-util-face .layui-layer-content { } .layui-tree-line .layui-tree-set:before { - content: ''; + content: ""; position: absolute; top: 0; left: -9px; @@ -4335,7 +4335,7 @@ body .layui-util-face .layui-layer-content { } .layui-tree-iconArrow:after { - content: ''; + content: ""; position: absolute; left: 4px; top: 3px; diff --git a/src/module/avatar/index.less b/src/module/avatar/index.less index aee7c63b..e05a39e4 100644 --- a/src/module/avatar/index.less +++ b/src/module/avatar/index.less @@ -1,42 +1,42 @@ .layui-avatar { - box-sizing: border-box; - margin: 0; - padding: 0; - color: #000000d9; - font-size: 14px; - font-variant: tabular-nums; - line-height: 1.5715; - list-style: none; - font-feature-settings: tnum; - position: relative; - display: inline-block; - overflow: hidden; - color: #fff; - white-space: nowrap; - text-align: center; - vertical-align: middle; - background: #ccc; - width: 32px; - height: 32px; - line-height: 32px; - border-radius: 4px; - } - - .layui-avatar.layui-avatar-radius { - border-radius: 50%; - } - - .layui-avatar.layui-avatar-sm { - height: 30px; - width: 30px; - } - - .layui-avatar.layui-avatar-lg { - height: 36px; - width: 36px; - } - - .layui-avatar.layui-avatar-xs { - height: 28px; - width: 28px; - } \ No newline at end of file + box-sizing: border-box; + margin: 0; + padding: 0; + color: #000000d9; + font-size: 14px; + font-variant: tabular-nums; + line-height: 1.5715; + list-style: none; + font-feature-settings: tnum; + position: relative; + display: inline-block; + overflow: hidden; + color: #fff; + white-space: nowrap; + text-align: center; + vertical-align: middle; + background: #ccc; + width: 32px; + height: 32px; + line-height: 32px; + border-radius: 4px; +} + +.layui-avatar.layui-avatar-radius { + border-radius: 50%; +} + +.layui-avatar.layui-avatar-sm { + height: 30px; + width: 30px; +} + +.layui-avatar.layui-avatar-lg { + height: 36px; + width: 36px; +} + +.layui-avatar.layui-avatar-xs { + height: 28px; + width: 28px; +} diff --git a/src/module/avatar/index.vue b/src/module/avatar/index.vue index 74cdce8a..baf1a4b8 100644 --- a/src/module/avatar/index.vue +++ b/src/module/avatar/index.vue @@ -1,18 +1,18 @@ \ No newline at end of file + diff --git a/src/module/badge/index.less b/src/module/badge/index.less index 1293364b..0d6cefec 100644 --- a/src/module/badge/index.less +++ b/src/module/badge/index.less @@ -1,33 +1,33 @@ .layui-badge, .layui-badge-dot, .layui-badge-rim { - position: relative; - display: inline-block; - padding: 0 6px; - font-size: 12px; - text-align: center; - background-color: #ff5722; - color: #fff; - border-radius: 2px; + position: relative; + display: inline-block; + padding: 0 6px; + font-size: 12px; + text-align: center; + background-color: #ff5722; + color: #fff; + border-radius: 2px; } .layui-badge { - height: 18px; - line-height: 18px; + height: 18px; + line-height: 18px; } .layui-badge-dot { - width: 8px; - height: 8px; - padding: 0; - border-radius: 50%; + width: 8px; + height: 8px; + padding: 0; + border-radius: 50%; } .layui-badge-rim { - height: 18px; - line-height: 18px; - border-width: 1px; - border-style: solid; - background-color: #fff; - color: #666; -} \ No newline at end of file + height: 18px; + line-height: 18px; + border-width: 1px; + border-style: solid; + background-color: #fff; + color: #666; +} diff --git a/src/module/badge/index.vue b/src/module/badge/index.vue index b9cf0a59..845314b8 100644 --- a/src/module/badge/index.vue +++ b/src/module/badge/index.vue @@ -35,4 +35,4 @@ const styles = computed(() => { - \ No newline at end of file + diff --git a/src/module/block/index.less b/src/module/block/index.less index beb06234..58295cba 100644 --- a/src/module/block/index.less +++ b/src/module/block/index.less @@ -1,14 +1,14 @@ .layui-elem-quote { - margin-bottom: 10px; - padding: 15px; - line-height: 1.6; - border-left: 5px solid #5fb878; - border-radius: 0 2px 2px 0; - background-color: #fafafa; + margin-bottom: 10px; + padding: 15px; + line-height: 1.6; + border-left: 5px solid #5fb878; + border-radius: 0 2px 2px 0; + background-color: #fafafa; } .layui-quote-nm { - border-style: solid; - border-width: 1px 1px 1px 5px; - background: 0 0; -} \ No newline at end of file + border-style: solid; + border-width: 1px 1px 1px 5px; + background: 0 0; +} diff --git a/src/module/block/index.vue b/src/module/block/index.vue index e6d945a8..91723f5b 100644 --- a/src/module/block/index.vue +++ b/src/module/block/index.vue @@ -6,7 +6,7 @@ export default { \ No newline at end of file + diff --git a/src/module/breadcrumb/index.vue b/src/module/breadcrumb/index.vue index 9eb03264..4f7d97d8 100644 --- a/src/module/breadcrumb/index.vue +++ b/src/module/breadcrumb/index.vue @@ -5,16 +5,16 @@ diff --git a/src/module/breadcrumbItem/index.vue b/src/module/breadcrumbItem/index.vue index 85a672bf..085763a3 100644 --- a/src/module/breadcrumbItem/index.vue +++ b/src/module/breadcrumbItem/index.vue @@ -11,13 +11,13 @@ diff --git a/src/module/button/index.less b/src/module/button/index.less index 4d7ef9b0..d04aa4c4 100644 --- a/src/module/button/index.less +++ b/src/module/button/index.less @@ -1,104 +1,104 @@ .layui-btn { - height: 38px; - line-height: 36px; - border: 1px solid transparent; - padding: 0 18px; - background-color: #009688; - color: #fff; - white-space: nowrap; - text-align: center; - font-size: 14px; - border-radius: 2px; - cursor: pointer; + height: 38px; + line-height: 36px; + border: 1px solid transparent; + padding: 0 18px; + background-color: #009688; + color: #fff; + white-space: nowrap; + text-align: center; + font-size: 14px; + border-radius: 2px; + cursor: pointer; } .layui-btn:hover { - opacity: 0.8; - filter: alpha(opacity=80); - color: #fff; + opacity: 0.8; + filter: alpha(opacity=80); + color: #fff; } .layui-btn:active { - opacity: 1; - filter: alpha(opacity=100); + opacity: 1; + filter: alpha(opacity=100); } -.layui-btn+.layui-btn { - margin-left: 10px; +.layui-btn + .layui-btn { + margin-left: 10px; } .layui-btn-radius { - border-radius: 100px; + border-radius: 100px; } .layui-btn .layui-icon { - padding: 0 2px; - vertical-align: middle\9; - vertical-align: bottom; + padding: 0 2px; + vertical-align: middle\9; + vertical-align: bottom; } .layui-btn-primary { - border-color: #d2d2d2; - background: 0 0; - color: #666; + border-color: #d2d2d2; + background: 0 0; + color: #666; } .layui-btn-primary:hover { - border-color: #009688; - color: #333; + border-color: #009688; + color: #333; } .layui-btn-normal { - background-color: #1e9fff; + background-color: #1e9fff; } .layui-btn-warm { - background-color: #ffb800; + background-color: #ffb800; } .layui-btn-danger { - background-color: #ff5722; + background-color: #ff5722; } .layui-btn-checked { - background-color: #5fb878; + background-color: #5fb878; } .layui-btn-disabled, .layui-btn-disabled:active, .layui-btn-disabled:hover { - border-color: #eee !important; - background-color: #fbfbfb !important; - color: #d2d2d2 !important; - cursor: not-allowed !important; - opacity: 1; + border-color: #eee !important; + background-color: #fbfbfb !important; + color: #d2d2d2 !important; + cursor: not-allowed !important; + opacity: 1; } .layui-btn-lg { - height: 44px; - line-height: 44px; - padding: 0 25px; - font-size: 16px; + height: 44px; + line-height: 44px; + padding: 0 25px; + font-size: 16px; } .layui-btn-sm { - height: 30px; - line-height: 30px; - padding: 0 10px; - font-size: 12px; + height: 30px; + line-height: 30px; + padding: 0 10px; + font-size: 12px; } .layui-btn-xs { - height: 22px; - line-height: 22px; - padding: 0 5px; - font-size: 12px; + height: 22px; + line-height: 22px; + padding: 0 5px; + font-size: 12px; } .layui-btn-xs i { - font-size: 12px !important; + font-size: 12px !important; } .layui-btn-fluid { - width: 100%; -} \ No newline at end of file + width: 100%; +} diff --git a/src/module/button/index.vue b/src/module/button/index.vue index b4a2b8ee..53bb8f91 100644 --- a/src/module/button/index.vue +++ b/src/module/button/index.vue @@ -51,14 +51,8 @@ const classes = computed(() => { > - \ No newline at end of file + diff --git a/src/module/buttonContainer/index.less b/src/module/buttonContainer/index.less index 354e6e76..521c1f13 100644 --- a/src/module/buttonContainer/index.less +++ b/src/module/buttonContainer/index.less @@ -1,16 +1,16 @@ .layui-btn-container { - font-size: 0; + font-size: 0; } .layui-btn-container .layui-btn { - margin-right: 10px; - margin-bottom: 10px; + margin-right: 10px; + margin-bottom: 10px; } -.layui-btn-container .layui-btn+.layui-btn { - margin-left: 0; +.layui-btn-container .layui-btn + .layui-btn { + margin-left: 0; } .layui-table .layui-btn-container .layui-btn { - margin-bottom: 9px; -} \ No newline at end of file + margin-bottom: 9px; +} diff --git a/src/module/buttonGroup/index.less b/src/module/buttonGroup/index.less index 9322dc97..93d6329b 100644 --- a/src/module/buttonGroup/index.less +++ b/src/module/buttonGroup/index.less @@ -1,41 +1,41 @@ .layui-btn-group { - vertical-align: middle; - font-size: 0; + vertical-align: middle; + font-size: 0; } .layui-btn-group .layui-btn { - margin-left: 0 !important; - margin-right: 0 !important; - border-left: 1px solid rgba(255, 255, 255, 0.5); - border-radius: 0; + margin-left: 0 !important; + margin-right: 0 !important; + border-left: 1px solid rgba(255, 255, 255, 0.5); + border-radius: 0; } .layui-btn-group .layui-btn-primary { - border-left: none; + border-left: none; } .layui-btn-group .layui-btn-primary:hover { - border-color: #d2d2d2; - color: #009688; + border-color: #d2d2d2; + color: #009688; } .layui-btn-group .layui-btn:first-child { - border-left: none; - border-radius: 2px 0 0 2px; + border-left: none; + border-radius: 2px 0 0 2px; } .layui-btn-group .layui-btn-primary:first-child { - border-left: 1px solid #d2d2d2; + border-left: 1px solid #d2d2d2; } .layui-btn-group .layui-btn:last-child { - border-radius: 0 2px 2px 0; + border-radius: 0 2px 2px 0; } -.layui-btn-group .layui-btn+.layui-btn { - margin-left: 0; +.layui-btn-group .layui-btn + .layui-btn { + margin-left: 0; } -.layui-btn-group+.layui-btn-group { - margin-left: 10px; -} \ No newline at end of file +.layui-btn-group + .layui-btn-group { + margin-left: 10px; +} diff --git a/src/module/buttonGroup/index.vue b/src/module/buttonGroup/index.vue index af9fe763..f54cb330 100644 --- a/src/module/buttonGroup/index.vue +++ b/src/module/buttonGroup/index.vue @@ -5,11 +5,11 @@ export default { \ No newline at end of file + diff --git a/src/module/card/index.less b/src/module/card/index.less index d0581cda..542fdb63 100644 --- a/src/module/card/index.less +++ b/src/module/card/index.less @@ -1,41 +1,41 @@ .layui-card { - margin-bottom: 15px; - border-radius: 2px; - background-color: #fff; - box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); + margin-bottom: 15px; + border-radius: 2px; + background-color: #fff; + box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); } .layui-card:last-child { - margin-bottom: 0; + margin-bottom: 0; } .layui-card-header { - height: 42px; - line-height: 42px; - padding: 0 15px; - border-bottom: 1px solid #f6f6f6; - color: #333; - border-radius: 2px 2px 0 0; - font-size: 14px; + height: 42px; + line-height: 42px; + padding: 0 15px; + border-bottom: 1px solid #f6f6f6; + color: #333; + border-radius: 2px 2px 0 0; + font-size: 14px; } .layui-card-body { - padding: 10px 15px; - line-height: 24px; + padding: 10px 15px; + line-height: 24px; } .layui-card-body[pad15] { - padding: 15px; + padding: 15px; } .layui-card-body[pad20] { - padding: 20px; + padding: 20px; } .layui-card-body .layui-table { - margin: 5px 0; + margin: 5px 0; } .layui-card .layui-tab { - margin: 0; -} \ No newline at end of file + margin: 0; +} diff --git a/src/module/carousel/index.vue b/src/module/carousel/index.vue index 80adb40d..9890b80d 100644 --- a/src/module/carousel/index.vue +++ b/src/module/carousel/index.vue @@ -24,13 +24,13 @@ lay-type="sub" @click="prev" > - {{ anim === 'updown' ? '' : '' }} @@ -42,68 +42,68 @@ import { useSlots, ref, computed, -} from 'vue' +} from "vue"; -const slot = useSlots() as any -const slots = slot.default && (slot.default() as any[]) +const slot = useSlots() as any; +const slots = slot.default && (slot.default() as any[]); const props = withDefaults( defineProps<{ - width?: string - height?: string - modelValue: string - anim?: string - arrow?: string - indicator?: string + width?: string; + height?: string; + modelValue: string; + anim?: string; + arrow?: string; + indicator?: string; }>(), { - width: '100%', - height: '280px', - anim: 'default', - arrow: 'hover', - indicator: 'inside', + width: "100%", + height: "280px", + anim: "default", + arrow: "hover", + indicator: "inside", } -) +); const active = computed({ get() { - return props.modelValue + return props.modelValue; }, set(val) { - emit('update:modelValue', val) + emit("update:modelValue", val); }, -}) +}); -const emit = defineEmits(['update:modelValue', 'change']) +const emit = defineEmits(["update:modelValue", "change"]); const change = function (id: any) { - emit('change', id) - active.value = id -} + emit("change", id); + active.value = id; +}; -provide('active', active) +provide("active", active); const prev = function () { for (var i = 0; i < slots.length; i++) { if (slots[i].props.id === active.value) { if (i === 0) { - active.value = slots[slots.length - 1].props.id + active.value = slots[slots.length - 1].props.id; } - active.value = slots[i - 1].props.id - break + active.value = slots[i - 1].props.id; + break; } } -} +}; const next = function () { for (var i = 0; i < slots.length; i++) { if (slots[i].props.id === active.value) { if (i === slots.length - 1) { - active.value = slots[0].props.id + active.value = slots[0].props.id; } - active.value = slots[i + 1].props.id - break + active.value = slots[i + 1].props.id; + break; } } -} +}; diff --git a/src/module/carouselItem/index.vue b/src/module/carouselItem/index.vue index 5ed054a5..12301a57 100644 --- a/src/module/carouselItem/index.vue +++ b/src/module/carouselItem/index.vue @@ -4,11 +4,11 @@ diff --git a/src/module/checkboxGroup/index.vue b/src/module/checkboxGroup/index.vue index 4ba2926b..f6e09c39 100644 --- a/src/module/checkboxGroup/index.vue +++ b/src/module/checkboxGroup/index.vue @@ -4,7 +4,6 @@ - diff --git a/src/module/collapseItem/index.vue b/src/module/collapseItem/index.vue index aeb01934..dee469e2 100644 --- a/src/module/collapseItem/index.vue +++ b/src/module/collapseItem/index.vue @@ -1,50 +1,60 @@ diff --git a/src/module/colorPicker/ColorBox.vue b/src/module/colorPicker/ColorBox.vue index 849c791a..07af7a0a 100644 --- a/src/module/colorPicker/ColorBox.vue +++ b/src/module/colorPicker/ColorBox.vue @@ -1,86 +1,86 @@ diff --git a/src/module/dropdownItem/index.vue b/src/module/dropdownItem/index.vue index 54900257..6dbd6c64 100644 --- a/src/module/dropdownItem/index.vue +++ b/src/module/dropdownItem/index.vue @@ -7,11 +7,11 @@ diff --git a/src/module/empty/index.less b/src/module/empty/index.less index 16877ded..d0a3dd11 100644 --- a/src/module/empty/index.less +++ b/src/module/empty/index.less @@ -1,20 +1,20 @@ .layui-empty { - margin: 0 8px; - font-size: 14px; - line-height: 22px; - text-align: center; + margin: 0 8px; + font-size: 14px; + line-height: 22px; + text-align: center; } .layui-empty-image { - height: 100px; - margin-bottom: 8px; + height: 100px; + margin-bottom: 8px; } .layui-empty-image img { - height: 100%; - margin: auto; + height: 100%; + margin: auto; } .layui-empty-description { - margin: 0; -} \ No newline at end of file + margin: 0; +} diff --git a/src/module/empty/index.vue b/src/module/empty/index.vue index 67c4f3c0..df8d7a5c 100644 --- a/src/module/empty/index.vue +++ b/src/module/empty/index.vue @@ -27,4 +27,4 @@ const props = withDefaults(defineProps(), { {{ description }} - \ No newline at end of file + diff --git a/src/module/field/index.vue b/src/module/field/index.vue index ffd6cc4c..b4f537f8 100644 --- a/src/module/field/index.vue +++ b/src/module/field/index.vue @@ -1,5 +1,4 @@ diff --git a/src/module/footer/index.less b/src/module/footer/index.less index e1ad3d98..a7f03798 100644 --- a/src/module/footer/index.less +++ b/src/module/footer/index.less @@ -1,3 +1,3 @@ .layui-footer { - box-sizing: border-box; -} \ No newline at end of file + box-sizing: border-box; +} diff --git a/src/module/footer/index.vue b/src/module/footer/index.vue index b00c79e5..2f474d45 100644 --- a/src/module/footer/index.vue +++ b/src/module/footer/index.vue @@ -1,15 +1,15 @@ \ No newline at end of file + diff --git a/src/module/form/index.vue b/src/module/form/index.vue index cb49941e..484cb5f9 100644 --- a/src/module/form/index.vue +++ b/src/module/form/index.vue @@ -5,136 +5,158 @@ diff --git a/src/module/formItem/index.less b/src/module/formItem/index.less index 83650ef7..9b146839 100644 --- a/src/module/formItem/index.less +++ b/src/module/formItem/index.less @@ -1,39 +1,38 @@ -@error_color : red; +@error_color: red; -.layui-required{ - color: @error_color; - font-size: 12px; - line-height: 1; +.layui-required { + color: @error_color; + font-size: 12px; + line-height: 1; } -.layui-form .layui-form-item{ - .layui-input-block - ,.layui-input-inline{ - .layui-form-danger { - border-color: #ff5722 !important; - } +.layui-form .layui-form-item { + .layui-input-block, + .layui-input-inline { + .layui-form-danger { + border-color: #ff5722 !important; } + } } - + .layui-error-message { - color: @error_color; - font-size: 12px; - line-height: 1; - padding-top: 2px; - position: absolute; - top: 100%; - left: 0; + color: @error_color; + font-size: 12px; + line-height: 1; + padding-top: 2px; + position: absolute; + top: 100%; + left: 0; } .layui-error-message-anim { - -ms-transform-origin: 0 0; - -webkit-transform-origin: 0 0; - transform-origin: 0 0; - -webkit-animation: layui-top-show-anim 0.3s ease 1; - animation: layui-top-show-anim 0.3s ease 1; + -ms-transform-origin: 0 0; + -webkit-transform-origin: 0 0; + transform-origin: 0 0; + -webkit-animation: layui-top-show-anim 0.3s ease 1; + animation: layui-top-show-anim 0.3s ease 1; } - @keyframes layui-top-show-anim { 0% { opacity: 0.3; @@ -44,4 +43,4 @@ opacity: 1; transform: rotateX(0); } -} \ No newline at end of file +} diff --git a/src/module/formItem/index.vue b/src/module/formItem/index.vue index e4eb32a2..9f74fec2 100644 --- a/src/module/formItem/index.vue +++ b/src/module/formItem/index.vue @@ -1,140 +1,194 @@ diff --git a/src/module/header/index.less b/src/module/header/index.less index 2f9ac31f..b5025af2 100644 --- a/src/module/header/index.less +++ b/src/module/header/index.less @@ -1,4 +1,4 @@ .layui-header { - box-sizing: border-box; - height: 60px; -} \ No newline at end of file + box-sizing: border-box; + height: 60px; +} diff --git a/src/module/header/index.vue b/src/module/header/index.vue index 4b4d6212..8ee50a92 100644 --- a/src/module/header/index.vue +++ b/src/module/header/index.vue @@ -12,4 +12,4 @@ import "./index.less";
- \ No newline at end of file + diff --git a/src/module/iconPicker/index.vue b/src/module/iconPicker/index.vue index b7b4afec..32e77ec5 100644 --- a/src/module/iconPicker/index.vue +++ b/src/module/iconPicker/index.vue @@ -1,9 +1,7 @@ diff --git a/src/module/input/index.vue b/src/module/input/index.vue index 381b9a7e..673e003a 100644 --- a/src/module/input/index.vue +++ b/src/module/input/index.vue @@ -41,5 +41,4 @@ const onFocus = function (event: FocusEvent) { const onBlur = function () { emit("blur"); }; - diff --git a/src/module/inputNumber/index.less b/src/module/inputNumber/index.less index 02942be5..62d9657a 100644 --- a/src/module/inputNumber/index.less +++ b/src/module/inputNumber/index.less @@ -13,11 +13,11 @@ @xs-wdith: 120px; @xs-right: 12px; -.set-size(@width, @size, @right-size){ - &{ +.set-size(@width, @size, @right-size) { + & { height: @size; width: @width; - .layui-input{ + .layui-input { height: @size; line-height: @size; padding: 0 @size; @@ -27,22 +27,22 @@ height: @size; line-height: @size; } - &[position=right]{ - .layui-input{ + &[position="right"] { + .layui-input { padding: 0 @size 0 0; } .layui-control-btn { height: @right-size; line-height: @right-size; } - .layui-subtraction-btn{ + .layui-subtraction-btn { top: @right-size - 1; } } } } -.layui-input-number{ +.layui-input-number { position: relative; display: inline-block; box-sizing: border-box; @@ -52,7 +52,7 @@ overflow: hidden; .set-size(@lg-wdith, @lg, @lg-right); margin-left: 5px; - .layui-input{ + .layui-input { text-align: center; border: 0; } @@ -66,17 +66,17 @@ padding: 0; text-align: center; top: 0; - &:hover{ + &:hover { color: @hover-border-color; } - &.layui-subtraction-btn{ + &.layui-subtraction-btn { border-right-width: 1px; } - &.layui-addition-btn{ + &.layui-addition-btn { border-left-width: 1px; right: 0; } - .layui-icon{ + .layui-icon { padding: 0px; } } @@ -87,31 +87,30 @@ } /* 火狐--去掉自带的控制按钮 */ - input.layui-input[type="number"]{ + input.layui-input[type="number"] { -moz-appearance: textfield; } - &[position=right]{ - .layui-subtraction-btn{ + &[position="right"] { + .layui-subtraction-btn { right: 0; border-right-width: 0px; border-left-width: 1px; } - .layui-addition-btn{ + .layui-addition-btn { border-bottom-width: 1px; } } - &[size=md] { - .set-size(@md-wdith,@md, @md-right) + &[size="md"] { + .set-size(@md-wdith,@md, @md-right); } - &[size=sm] { - .set-size(@sm-wdith, @sm, @sm-right) + &[size="sm"] { + .set-size(@sm-wdith, @sm, @sm-right); } - &[size=xs] { - .set-size(@xs-wdith, @xs, @xs-right) + &[size="xs"] { + .set-size(@xs-wdith, @xs, @xs-right); } - -} \ No newline at end of file +} diff --git a/src/module/inputNumber/index.vue b/src/module/inputNumber/index.vue index ebcb207b..455ba803 100644 --- a/src/module/inputNumber/index.vue +++ b/src/module/inputNumber/index.vue @@ -9,7 +9,11 @@ :disabled="minControl" class="layui-control-btn layui-subtraction-btn" > - +
- +
diff --git a/src/module/menuChildItem/index.vue b/src/module/menuChildItem/index.vue index 789cd2c0..ebae31d8 100644 --- a/src/module/menuChildItem/index.vue +++ b/src/module/menuChildItem/index.vue @@ -2,25 +2,24 @@
- {{title}} + {{ title }}
diff --git a/src/module/menuItem/index.vue b/src/module/menuItem/index.vue index daea052e..66eb2589 100644 --- a/src/module/menuItem/index.vue +++ b/src/module/menuItem/index.vue @@ -33,29 +33,27 @@ diff --git a/src/module/page/index.vue b/src/module/page/index.vue index 229e67d9..bd115f27 100644 --- a/src/module/page/index.vue +++ b/src/module/page/index.vue @@ -53,25 +53,25 @@ diff --git a/src/module/panel/index.less b/src/module/panel/index.less index aa81d381..145f113b 100644 --- a/src/module/panel/index.less +++ b/src/module/panel/index.less @@ -1,7 +1,7 @@ .layui-panel { - border-width: 1px; - border-style: solid; - border-radius: 2px; - background-color: #fff; - color: #666; -} \ No newline at end of file + border-width: 1px; + border-style: solid; + border-radius: 2px; + background-color: #fff; + color: #666; +} diff --git a/src/module/panel/index.vue b/src/module/panel/index.vue index 691cb870..062d9126 100644 --- a/src/module/panel/index.vue +++ b/src/module/panel/index.vue @@ -1,15 +1,15 @@ \ No newline at end of file + diff --git a/src/module/popper/index.vue b/src/module/popper/index.vue index 8b9a527f..3e24f07b 100644 --- a/src/module/popper/index.vue +++ b/src/module/popper/index.vue @@ -1,105 +1,132 @@ \ No newline at end of file +// 计算位置显示 +const showPosistion = function () { + postionFns[tempPosition.value] && + (style.value = postionFns[tempPosition.value]( + props.el, + popper.value, + innnerPosition + )); +}; +const invokeShowPosistion = function () { + if (innerVisible.value) { + popper.value.offsetWidth === 0 + ? setTimeout(showPosistion, 0) + : showPosistion(); + // 延时确保计算位置正确 + setTimeout(() => innerVisible.value && showPosistion(), 2); + } +}; +onMounted(() => { + invokeShowPosistion(); +}); + diff --git a/src/module/progress/index.vue b/src/module/progress/index.vue index aa0e8a34..d7ab69de 100644 --- a/src/module/progress/index.vue +++ b/src/module/progress/index.vue @@ -38,4 +38,4 @@ const styles = computed(() => { - \ No newline at end of file + diff --git a/src/module/radio/index.vue b/src/module/radio/index.vue index e5ddfee5..24c428fb 100644 --- a/src/module/radio/index.vue +++ b/src/module/radio/index.vue @@ -25,23 +25,22 @@ diff --git a/src/module/rate/index.less b/src/module/rate/index.less index 9bb75c67..82a5e027 100644 --- a/src/module/rate/index.less +++ b/src/module/rate/index.less @@ -1,29 +1,29 @@ .layui-rate, .layui-rate * { - display: inline-block; - vertical-align: middle; + display: inline-block; + vertical-align: middle; } .layui-rate { - padding: 10px 5px 10px 0; - font-size: 0; + padding: 10px 5px 10px 0; + font-size: 0; } .layui-rate li i.layui-icon { - font-size: 20px; - color: #ffb800; - margin-right: 5px; - transition: all 0.3s; - -webkit-transition: all 0.3s; + font-size: 20px; + color: #ffb800; + margin-right: 5px; + transition: all 0.3s; + -webkit-transition: all 0.3s; } .layui-rate li i:hover { - cursor: pointer; - transform: scale(1.12); - -webkit-transform: scale(1.12); + cursor: pointer; + transform: scale(1.12); + -webkit-transform: scale(1.12); } .layui-rate[readonly] li i:hover { - cursor: default; - transform: scale(1); -} \ No newline at end of file + cursor: default; + transform: scale(1); +} diff --git a/src/module/rate/index.vue b/src/module/rate/index.vue index 3c443f8e..6767dcd3 100644 --- a/src/module/rate/index.vue +++ b/src/module/rate/index.vue @@ -1,4 +1,3 @@ - diff --git a/src/module/selectOption/index.vue b/src/module/selectOption/index.vue index 2997f629..445594b4 100644 --- a/src/module/selectOption/index.vue +++ b/src/module/selectOption/index.vue @@ -1,14 +1,16 @@ \ No newline at end of file + diff --git a/src/module/switch/index.vue b/src/module/switch/index.vue index 1b8d966e..7474bafc 100644 --- a/src/module/switch/index.vue +++ b/src/module/switch/index.vue @@ -54,4 +54,4 @@ const handleClick = function () { - \ No newline at end of file + diff --git a/src/module/tab/index.vue b/src/module/tab/index.vue index a372ba01..ae33f7f0 100644 --- a/src/module/tab/index.vue +++ b/src/module/tab/index.vue @@ -1,5 +1,9 @@ \ No newline at end of file + diff --git a/src/module/timeline/index.less b/src/module/timeline/index.less index 1b3ca8f7..f31bf081 100644 --- a/src/module/timeline/index.less +++ b/src/module/timeline/index.less @@ -1,59 +1,59 @@ .layui-timeline { - padding-left: 5px; + padding-left: 5px; } .layui-timeline-item { - position: relative; - padding-bottom: 20px; + position: relative; + padding-bottom: 20px; } .layui-timeline-axis { - position: absolute; - left: -5px; - top: 0; - z-index: 10; - width: 20px; - height: 20px; - line-height: 20px; - background-color: #fff; - color: #5fb878; - border-radius: 50%; - text-align: center; - cursor: pointer; + position: absolute; + left: -5px; + top: 0; + z-index: 10; + width: 20px; + height: 20px; + line-height: 20px; + background-color: #fff; + color: #5fb878; + border-radius: 50%; + text-align: center; + cursor: pointer; } .layui-timeline-axis:hover { - color: #ff5722; + color: #ff5722; } .layui-timeline-item:before { - content: ''; - position: absolute; - left: 5px; - top: 0; - z-index: 0; - width: 1px; - height: 100%; + content: ""; + position: absolute; + left: 5px; + top: 0; + z-index: 0; + width: 1px; + height: 100%; } .layui-timeline-item:first-child:before { - display: block; + display: block; } .layui-timeline-item:last-child:before { - display: none; + display: none; } .layui-timeline-content { - padding-left: 25px; + padding-left: 25px; } .layui-timeline-title { - position: relative; - margin-bottom: 10px; - line-height: 22px; + position: relative; + margin-bottom: 10px; + line-height: 22px; } .layui-timeline-item:before { - background-color: #eee; - } \ No newline at end of file + background-color: #eee; +} diff --git a/src/module/timeline/index.vue b/src/module/timeline/index.vue index 9c3abc8c..fda3a9f6 100644 --- a/src/module/timeline/index.vue +++ b/src/module/timeline/index.vue @@ -5,11 +5,11 @@ export default { \ No newline at end of file + diff --git a/src/module/tooltip/index.vue b/src/module/tooltip/index.vue index e85205c4..6884cfa1 100644 --- a/src/module/tooltip/index.vue +++ b/src/module/tooltip/index.vue @@ -1,6 +1,6 @@ diff --git a/src/module/transfer/index.less b/src/module/transfer/index.less index 22ba5d10..e6382d4e 100644 --- a/src/module/transfer/index.less +++ b/src/module/transfer/index.less @@ -1,3 +1,3 @@ .layui-transfer .layui-btn + .layui-btn { - margin-left: 0; -} \ No newline at end of file + margin-left: 0; +} diff --git a/src/module/transfer/index.vue b/src/module/transfer/index.vue index b58b4dfb..1112c91b 100644 --- a/src/module/transfer/index.vue +++ b/src/module/transfer/index.vue @@ -182,4 +182,4 @@ const remove = function () { - \ No newline at end of file + diff --git a/src/module/tree/TreeNode.vue b/src/module/tree/TreeNode.vue index cef7c682..ca548da4 100644 --- a/src/module/tree/TreeNode.vue +++ b/src/module/tree/TreeNode.vue @@ -1,48 +1,48 @@ @@ -119,7 +121,7 @@ function handleTitleClick(node: TreeData) { label="" @change=" (checked) => { - handleChange(checked, node) + handleChange(checked, node); } " > diff --git a/src/module/tree/index.vue b/src/module/tree/index.vue index 3a4bb054..70188c51 100644 --- a/src/module/tree/index.vue +++ b/src/module/tree/index.vue @@ -6,50 +6,50 @@ -->