From ab6cc17281b289ca04db130fff2c02dcdac604b4 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: Sat, 26 Mar 2022 10:30:58 +0800 Subject: [PATCH] style: eslint --- example/src/components/LayAnchor.vue | 1 - example/src/layouts/Layout.vue | 83 +++++++++++++++++++++++++--- package.json | 1 + src/component/switch/index.vue | 10 ++-- src/component/table/index.vue | 4 +- src/theme/variable.less | 6 +- src/utils/guidUtil.ts | 19 +------ 7 files changed, 88 insertions(+), 36 deletions(-) diff --git a/example/src/components/LayAnchor.vue b/example/src/components/LayAnchor.vue index 635ea10f..4da1739f 100644 --- a/example/src/components/LayAnchor.vue +++ b/example/src/components/LayAnchor.vue @@ -166,7 +166,6 @@ const throttle = (func: Function, wait: number) => { box-sizing: border-box; width: 180px; padding: 0 25px; - background-color: #ffffff; border-left: 1px solid rgb(229 230 235); transition: none; -webkit-transition: none; diff --git a/example/src/layouts/Layout.vue b/example/src/layouts/Layout.vue index c18b2961..fab62bcc 100644 --- a/example/src/layouts/Layout.vue +++ b/example/src/layouts/Layout.vue @@ -150,12 +150,63 @@
- * @param null 无参 - * */ -export function S4() { - return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1); -} - -/** - * 随机数 - *
- * @param null 无参 - * */ -export function guid() { - return S4() + S4() + S4() + S4() + S4() + S4() + S4() + S4(); -} +// @ts-ignore +export { v4 } from 'uuid'; \ No newline at end of file