Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion js/color-picker/gradient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isString, isNull } from 'lodash-es';
import isString from 'lodash-es/isString';
import isNull from 'lodash-es/isNull';
/* eslint-disable no-param-reassign */
/**
* 用于反解析渐变字符串为对象
Expand Down
3 changes: 2 additions & 1 deletion js/date-picker/format.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isString, isObject } from 'lodash-es';
import isString from 'lodash-es/isString';
import isObject from 'lodash-es/isObject';
import dayjs from 'dayjs';
import isoWeeksInYear from 'dayjs/plugin/isoWeeksInYear';
import isLeapYear from 'dayjs/plugin/isLeapYear';
Expand Down
4 changes: 3 additions & 1 deletion js/date-picker/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { isFunction, chunk, isArray } from 'lodash-es';
import isFunction from 'lodash-es/isFunction';
import chunk from 'lodash-es/chunk';
import isArray from 'lodash-es/isArray';
import dayjs from 'dayjs';
import dayJsIsBetween from 'dayjs/plugin/isBetween';
import weekOfYear from 'dayjs/plugin/weekOfYear';
Expand Down
2 changes: 1 addition & 1 deletion js/global-config/t.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isString } from 'lodash-es';
import isString from 'lodash-es/isString';

/**
* 复数规则判断函数
Expand Down
3 changes: 2 additions & 1 deletion js/image-viewer/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isArray, isString } from 'lodash-es';
import isArray from 'lodash-es/isArray';
import isString from 'lodash-es/isString';
import type { ImageInfo, Images } from './types';

const isSameOrigin = (url: string) => {
Expand Down
4 changes: 3 additions & 1 deletion js/input-number/large-number.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { isString, isNumber, isObject } from 'lodash-es';
import isString from 'lodash-es/isString';
import isNumber from 'lodash-es/isNumber';
import isObject from 'lodash-es/isObject';
import log from '../log/log';

export type InputNumberDecimalPlaces = number | { enableRound: boolean; places: number };
Expand Down
4 changes: 3 additions & 1 deletion js/input-number/number.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { isUndefined, isString, isNumber } from 'lodash-es';
import isUndefined from 'lodash-es/isUndefined';
import isString from 'lodash-es/isString';
import isNumber from 'lodash-es/isNumber';
/** 普通数相关方法 */
import {
compareNumber,
Expand Down
3 changes: 2 additions & 1 deletion js/progress/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isString, toUpper } from 'lodash-es';
import isString from 'lodash-es/isString';
import toUpper from 'lodash-es/toUpper';
import { MOBILE_CIRCLE_SIZE_PX } from './const';

/**
Expand Down
2 changes: 1 addition & 1 deletion js/slider/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isString } from 'lodash-es';
import isString from 'lodash-es/isString';

/**
* 计算刻度区间值停止坐标
Expand Down
4 changes: 3 additions & 1 deletion js/table/tree-store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { isUndefined, get, set } from 'lodash-es';
import isUndefined from 'lodash-es/isUndefined';
import get from 'lodash-es/get';
import set from 'lodash-es/set';
/* eslint-disable class-methods-use-this */
/* eslint-disable no-param-reassign */
/* eslint-disable no-use-before-define */
Expand Down
4 changes: 3 additions & 1 deletion js/table/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import { isFunction, isNumber, get } from 'lodash-es';
import isFunction from 'lodash-es/isFunction';
import isNumber from 'lodash-es/isNumber';
import get from 'lodash-es/get';
import { BaseTableCol } from './types';

export function filterDataByIds(
Expand Down
5 changes: 4 additions & 1 deletion js/tree-v1/tree-node-model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { isBoolean, isUndefined, omit, pick } from 'lodash-es';
import isBoolean from 'lodash-es/isBoolean';
import isUndefined from 'lodash-es/isUndefined';
import omit from 'lodash-es/omit';
import pick from 'lodash-es/pick';
import log from '../log/log';
import { TreeNode } from './tree-node';

Expand Down
8 changes: 7 additions & 1 deletion js/tree-v1/tree-node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { get, isBoolean, isFunction, isNil, isNull, isNumber, uniqueId } from 'lodash-es';
import get from 'lodash-es/get';
import isBoolean from 'lodash-es/isBoolean';
import isFunction from 'lodash-es/isFunction';
import isNil from 'lodash-es/isNil';
import isNull from 'lodash-es/isNull';
import isNumber from 'lodash-es/isNumber';
import uniqueId from 'lodash-es/uniqueId';
import log from '../log';
import { createNodeModel, pathToKey, updateNodeModel } from './tree-node-model';
import { TreeStore } from './tree-store';
Expand Down
8 changes: 7 additions & 1 deletion js/tree-v1/tree-store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { camelCase, difference, isArray, isFunction, isNumber, isPlainObject, isString } from 'lodash-es';
import camelCase from 'lodash-es/camelCase';
import difference from 'lodash-es/difference';
import isArray from 'lodash-es/isArray';
import isFunction from 'lodash-es/isFunction';
import isNumber from 'lodash-es/isNumber';
import isPlainObject from 'lodash-es/isPlainObject';
import isString from 'lodash-es/isString';
import mitt from 'mitt';

import { TreeNode } from './tree-node';
Expand Down
5 changes: 4 additions & 1 deletion js/tree/tree-node-model.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { isUndefined, isBoolean, omit, get } from 'lodash-es';
import isUndefined from 'lodash-es/isUndefined';
import isBoolean from 'lodash-es/isBoolean';
import omit from 'lodash-es/omit';
import get from 'lodash-es/get';
import { TreeNode } from './tree-node';
import { OptionData } from '../common';
import { TreeNodeValue, TypeTreeNodeModel, TypeTreeNodeData, TypeTreeItem } from './types';
Expand Down
8 changes: 7 additions & 1 deletion js/tree/tree-node.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { get, isBoolean, isFunction, isNil, isNull, isNumber, uniqueId } from 'lodash-es';
import get from 'lodash-es/get';
import isBoolean from 'lodash-es/isBoolean';
import isFunction from 'lodash-es/isFunction';
import isNil from 'lodash-es/isNil';
import isNull from 'lodash-es/isNull';
import isNumber from 'lodash-es/isNumber';
import uniqueId from 'lodash-es/uniqueId';
import log from '../log';
import { createNodeModel } from './tree-node-model';
import { TreeStore } from './tree-store';
Expand Down
8 changes: 7 additions & 1 deletion js/tree/tree-store.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
import { isArray, isFunction, isNumber, isString, difference, camelCase, isPlainObject } from 'lodash-es';
import isArray from 'lodash-es/isArray';
import isFunction from 'lodash-es/isFunction';
import isNumber from 'lodash-es/isNumber';
import isString from 'lodash-es/isString';
import difference from 'lodash-es/difference';
import camelCase from 'lodash-es/camelCase';
import isPlainObject from 'lodash-es/isPlainObject';
import mitt from 'mitt';

import { TreeNode, privateKey } from './tree-node';
Expand Down
3 changes: 2 additions & 1 deletion js/upload/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isFunction, isNumber } from 'lodash-es';
import isFunction from 'lodash-es/isFunction';
import isNumber from 'lodash-es/isNumber';
/* eslint-disable no-param-reassign */
import { getCurrentDate, isOverSizeLimit } from './utils';
import xhr from './xhr';
Expand Down
2 changes: 1 addition & 1 deletion js/upload/xhr.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isFunction } from 'lodash-es';
import isFunction from 'lodash-es/isFunction';
/* eslint-disable no-param-reassign */
import log from '../log/log';
import { UploadFile, XhrOptions } from './types';
Expand Down
2 changes: 1 addition & 1 deletion js/utils/calcTextareaHeight.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isNull } from 'lodash-es';
import isNull from 'lodash-es/isNull';
import { calculateNodeSize } from './helper';

type CalculateStyleType = {
Expand Down
3 changes: 2 additions & 1 deletion js/utils/general.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { isFunction, isObject } from 'lodash-es';
import isFunction from 'lodash-es/isFunction';
import isObject from 'lodash-es/isObject';

const { hasOwnProperty } = Object.prototype;

Expand Down
6 changes: 5 additions & 1 deletion js/utils/helper.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
import { isArray, isNull, isNumber, isString, isUndefined } from 'lodash-es';
import isArray from 'lodash-es/isArray';
import isNull from 'lodash-es/isNull';
import isNumber from 'lodash-es/isNumber';
import isString from 'lodash-es/isString';
import isUndefined from 'lodash-es/isUndefined';

export function omit(obj: Record<string, any>, fields: string[]) {
const shallowCopy = {
Expand Down
4 changes: 2 additions & 2 deletions test/script/generate-demo-test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs');
const path = require('path');
const { camelCase } = require('lodash-es');
const { upperFirst } = require('lodash-es');
const camelCase = require('lodash-es/camelCase').default;
const upperFirst = require('lodash-es/upperFirst').default;

function resolveCwd(...args) {
args.unshift(process.cwd());
Expand Down
Loading