Skip to content

Commit a7065c5

Browse files
authored
fix(checkbox): loadsh进行按需引入 (#1778)
1 parent c767cfb commit a7065c5

File tree

1 file changed

+2
-2
lines changed
  • packages/devui-vue/devui/editor-md/src/plugins

1 file changed

+2
-2
lines changed

packages/devui-vue/devui/editor-md/src/plugins/checkbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as _ from 'lodash';
1+
import { extend } from 'lodash';
22

33
const checkboxReplace = function (md: any, options: any) {
44
let lastId: number;
@@ -9,7 +9,7 @@ const checkboxReplace = function (md: any, options: any) {
99
divClass: 'checkbox',
1010
idPrefix: 'checkbox',
1111
};
12-
options = _.extend(defaults, options);
12+
options = extend(defaults, options);
1313
const pattern = /\[(X|\s|\_|\-)\]\s(.*)/i;
1414
const createTokens = function (checked: any, label: any, Token: any) {
1515
let token;

0 commit comments

Comments
 (0)