From a7065c5bcc3446bafa5d9204c50fa82955c36409 Mon Sep 17 00:00:00 2001 From: GreatZP Date: Thu, 11 Jan 2024 20:07:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(checkbox):=20loadsh=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E6=8C=89=E9=9C=80=E5=BC=95=E5=85=A5=20(#1778)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts b/packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts index 12f4b2e624..83b62c9207 100644 --- a/packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts +++ b/packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts @@ -1,4 +1,4 @@ -import * as _ from 'lodash'; +import { extend } from 'lodash'; const checkboxReplace = function (md: any, options: any) { let lastId: number; @@ -9,7 +9,7 @@ const checkboxReplace = function (md: any, options: any) { divClass: 'checkbox', idPrefix: 'checkbox', }; - options = _.extend(defaults, options); + options = extend(defaults, options); const pattern = /\[(X|\s|\_|\-)\]\s(.*)/i; const createTokens = function (checked: any, label: any, Token: any) { let token;