fix: 升级lodash-es (#73)
This commit is contained in:
parent
8d29865ff0
commit
d78604ae90
@ -13,11 +13,13 @@
|
||||
"@vue/babel-helper-vue-jsx-merge-props": "^1.4.0",
|
||||
"@vue/babel-preset-jsx": "^1.4.0",
|
||||
"@wangeditor/editor": "^5.1.23",
|
||||
"async-validator": "^4.2.5",
|
||||
"axios": "^1.4.0",
|
||||
"clipboard": "^2.0.11",
|
||||
"core-js": "^3.8.3",
|
||||
"crypto-js": "^4.2.0",
|
||||
"element-ui": "^2.15.13",
|
||||
"lodash-es": "^4.17.21",
|
||||
"moment": "^2.29.4",
|
||||
"node-forge": "^1.3.1",
|
||||
"qrcode": "^1.5.3",
|
||||
|
@ -1,7 +1,7 @@
|
||||
import axios from 'axios';
|
||||
import store from '@/management/store/index';
|
||||
import router from '@/management/router/index';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
const instance = axios.create({
|
||||
baseURL: '/api',
|
||||
|
@ -23,7 +23,7 @@ import history from '../modules/contentModule/history.vue';
|
||||
import save from '../modules/contentModule/save.vue';
|
||||
import publish from '../modules/contentModule/publish.vue';
|
||||
import { mapState } from 'vuex';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'navbar',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { pick as _pick, get as _get } from 'lodash';
|
||||
import { pick as _pick, get as _get } from 'lodash-es';
|
||||
|
||||
// 生成需要保存到接口的数据
|
||||
export default function (schema) {
|
||||
|
@ -31,7 +31,7 @@ import 'moment/locale/zh-cn';
|
||||
moment.locale('zh-cn');
|
||||
|
||||
import { mapState } from 'vuex';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
const getItemData = (item) => ({
|
||||
operator: item?.operator?.username || '未知用户',
|
||||
|
@ -12,7 +12,7 @@
|
||||
import { mapState } from 'vuex';
|
||||
import { publishSurvey, saveSurvey } from '@/management/api/survey';
|
||||
import buildData from './buildData';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
export default {
|
||||
name: 'publish',
|
||||
data() {
|
||||
|
@ -20,7 +20,7 @@
|
||||
import { saveSurvey } from '@/management/api/survey';
|
||||
import buildData from './buildData';
|
||||
import { mapState } from 'vuex';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'save',
|
||||
|
@ -21,7 +21,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'banner',
|
||||
|
@ -32,7 +32,7 @@
|
||||
</el-form>
|
||||
</template>
|
||||
<script>
|
||||
import { get as _get, pick as _pick, isFunction as _isFunction } from 'lodash';
|
||||
import { get as _get, pick as _pick, isFunction as _isFunction } from 'lodash-es';
|
||||
|
||||
import FormItem from '@/materials/setters/widgets/FormItem.vue';
|
||||
import setterLoader from '@/materials/setters/setterLoader';
|
||||
|
@ -46,7 +46,7 @@ import questionMenuConfig, {
|
||||
} from '@/management/config/questionMenuConfig';
|
||||
import { getQuestionByType } from '@/management/utils/index';
|
||||
import { mapState, mapActions } from 'vuex';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'QuestionTypeList',
|
||||
|
@ -45,7 +45,7 @@ import mainTitle from './components/mainTitle.vue';
|
||||
import submit from './components/submit.vue';
|
||||
import logo from './components/logo.vue';
|
||||
import { mapState, mapGetters } from 'vuex';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'mainOperation',
|
||||
|
@ -14,7 +14,7 @@ import { mapState } from 'vuex';
|
||||
import success from './components/success';
|
||||
import overTime from './components/overTime';
|
||||
import { EDIT_STATUS_MAP } from './enum';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'ResultConfigPreivew',
|
||||
|
@ -33,7 +33,7 @@ import FormItem from '@/materials/setters/widgets/FormItem.vue';
|
||||
import setterLoader from '@/materials/setters/setterLoader';
|
||||
import statusConfig from './config/statusConfig';
|
||||
import { mapState } from 'vuex';
|
||||
import { get as _get, pick as _pick } from 'lodash';
|
||||
import { get as _get, pick as _pick } from 'lodash-es';
|
||||
|
||||
const textMap = {
|
||||
Success: '提交成功页面配置',
|
||||
|
@ -48,7 +48,7 @@ import {
|
||||
cloneDeep as _cloneDeep,
|
||||
isArray as _isArray,
|
||||
get as _get,
|
||||
} from 'lodash';
|
||||
} from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'QuestionConfig',
|
||||
|
@ -104,7 +104,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { get, map } from 'lodash';
|
||||
import { get, map } from 'lodash-es';
|
||||
import moment from 'moment';
|
||||
// 引入中文
|
||||
import 'moment/locale/zh-cn';
|
||||
|
@ -34,7 +34,7 @@
|
||||
<script>
|
||||
import { CODE_MAP } from '@/management/api/base';
|
||||
import { updateSurvey, createSurvey } from '@/management/api/survey';
|
||||
import { pick as _pick } from 'lodash';
|
||||
import { pick as _pick } from 'lodash-es';
|
||||
import { QOP_MAP } from '@/management/utils/constant';
|
||||
|
||||
export default {
|
||||
|
@ -30,7 +30,7 @@
|
||||
<script>
|
||||
import ChannelRow from './components/channelRow';
|
||||
import empty from '@/management/components/empty';
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
import leftMenu from '@/management/components/leftMenu.vue';
|
||||
import { mapState } from 'vuex';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { getNewField } from '@/management/utils';
|
||||
import { cloneDeep as _cloneDeep, get as _get } from 'lodash';
|
||||
import { cloneDeep as _cloneDeep, get as _get } from 'lodash-es';
|
||||
import { getSurveyById } from '@/management/api/survey';
|
||||
|
||||
export default {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { set as _set, merge as _merge } from 'lodash';
|
||||
import { set as _set, merge as _merge } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
setCurrentEditOne(state, data) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defaultQuestionConfig } from '../config/questionConfig';
|
||||
import { cloneDeep as _cloneDeep, map as _map } from 'lodash';
|
||||
import { cloneDeep as _cloneDeep, map as _map } from 'lodash-es';
|
||||
|
||||
const generateQuestionField = () => {
|
||||
const num = Math.floor(Math.random() * 1000);
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { pick as _pick } from 'lodash';
|
||||
import { pick as _pick } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
name: 'basicConfig',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { forEach as _forEach, trim as _trim } from 'lodash';
|
||||
import { forEach as _forEach, trim as _trim } from 'lodash-es';
|
||||
import { escapeFilterXSS } from '@/common/xss';
|
||||
|
||||
// 获取选项的hash
|
||||
|
@ -87,7 +87,7 @@
|
||||
|
||||
<script>
|
||||
import draggable from 'vuedraggable';
|
||||
import { forEach as _forEach, cloneDeep as _cloneDeep } from 'lodash';
|
||||
import { forEach as _forEach, cloneDeep as _cloneDeep } from 'lodash-es';
|
||||
import ExtraIcon from '../ExtraIcon';
|
||||
import { cleanRichText } from '@/common/xss';
|
||||
|
||||
|
@ -2,7 +2,7 @@
|
||||
<el-dialog
|
||||
title="评分高级设置"
|
||||
custom-class="option-config-wrapper"
|
||||
:visible="innerVisible"
|
||||
:visible.sync="innerVisible"
|
||||
:append-to-body="true"
|
||||
:width="dialogWidth"
|
||||
>
|
||||
@ -48,7 +48,7 @@
|
||||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
import { mapGetters } from 'vuex';
|
||||
export default {
|
||||
props: {
|
||||
|
@ -43,7 +43,7 @@
|
||||
<script>
|
||||
import draggable from 'vuedraggable';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { cloneDeep as _cloneDeep } from 'lodash';
|
||||
import { cloneDeep as _cloneDeep } from 'lodash-es';
|
||||
import EditorV2 from '@/common/Editor/EditorV2';
|
||||
|
||||
export default {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ref } from 'vue';
|
||||
import { cloneDeep } from 'lodash';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
import GetHash from '../../common/utils/getOptionHash';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { defineComponent, computed } from 'vue';
|
||||
import { findIndex, includes } from 'lodash';
|
||||
import { findIndex, includes } from 'lodash-es';
|
||||
import { filterXSS } from '@/common/xss';
|
||||
import '../../common/css/choice.scss';
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import baseChoice from '../BaseChoice';
|
||||
import { computed, defineComponent } from 'vue';
|
||||
import QuestionWithRule from '@/materials/questions/widgets/QuestionRuleContainer';
|
||||
import { includes } from 'lodash';
|
||||
import { includes } from 'lodash-es';
|
||||
import metaConfig from './meta.js';
|
||||
export const meta = metaConfig;
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
import baseInput from '../BaseInput';
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import '../../common/css/input.scss';
|
||||
import { get } from 'lodash';
|
||||
import { get } from 'lodash-es';
|
||||
import myMeta from './meta';
|
||||
export const meta = myMeta;
|
||||
/**
|
||||
|
@ -11,7 +11,7 @@ import Vue, {
|
||||
} from 'vue';
|
||||
import QuestionContainer from '@/materials/questions/widgets/QuestionContainer.jsx';
|
||||
import ErrorTip from '../components/ErrorTip.vue';
|
||||
import { assign } from 'lodash';
|
||||
import { assign } from 'lodash-es';
|
||||
import AsyncValidator from 'async-validator';
|
||||
export default defineComponent({
|
||||
name: 'QuestionRuleContainer',
|
||||
|
@ -1,7 +1,7 @@
|
||||
import baseInput from '../BaseInput';
|
||||
import { defineComponent, ref } from 'vue';
|
||||
import '../../common/css/input.scss';
|
||||
import { get } from 'lodash';
|
||||
import { get } from 'lodash-es';
|
||||
import myMeta from './meta';
|
||||
export const meta = myMeta;
|
||||
/**
|
||||
|
@ -3,7 +3,7 @@ import baseChoice from '../BaseChoice';
|
||||
import Progress from '../../components/Progress.vue';
|
||||
import '../../common/css/vote.scss';
|
||||
import QuestionWithRule from '@/materials/questions/widgets/QuestionRuleContainer';
|
||||
import { includes } from 'lodash';
|
||||
import { includes } from 'lodash-es';
|
||||
export default defineComponent({
|
||||
name: 'VoteModule',
|
||||
components: { baseChoice, Progress, QuestionWithRule },
|
||||
|
@ -24,7 +24,7 @@
|
||||
</el-form-item>
|
||||
</template>
|
||||
<script>
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
import { FORM_CHANGE_EVENT_KEY } from '@/materials/setters/constant';
|
||||
export default {
|
||||
name: 'FreqAndNumberLimit',
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { cloneDeep as _cloneDeep } from 'lodash';
|
||||
import { cloneDeep as _cloneDeep } from 'lodash-es';
|
||||
export default class ComponentLoader {
|
||||
constructor(options = {}) {
|
||||
const { componentList, lifeCycle } = options;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* 处理单题的配置
|
||||
*/
|
||||
|
||||
import { get as _get, map as _map } from 'lodash';
|
||||
import { get as _get, map as _map } from 'lodash-es';
|
||||
|
||||
// 处理选择题的options
|
||||
function handleOptions(item) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { get as _get, last as _last } from 'lodash';
|
||||
import { get as _get, last as _last } from 'lodash-es';
|
||||
|
||||
export default function handleQuestionSeq(questionConfig) {
|
||||
const dataList = _get(questionConfig, 'dataConf.dataList', []);
|
||||
|
@ -4,7 +4,7 @@ import {
|
||||
isArray as _isArray,
|
||||
keys as _keys,
|
||||
set as _set,
|
||||
} from 'lodash';
|
||||
} from 'lodash-es';
|
||||
|
||||
const regexpMap = {
|
||||
nd: /^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/,
|
||||
|
@ -45,7 +45,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { get as _get } from 'lodash';
|
||||
import { get as _get } from 'lodash-es';
|
||||
import { formatLink } from '../utils/index.js';
|
||||
|
||||
export default {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import confirm from '../../components/confirm.vue';
|
||||
import alert from '../../components/alert.vue';
|
||||
|
||||
import { isFunction as _isFunction } from 'lodash';
|
||||
import { isFunction as _isFunction } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
install(Vue) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { flatten } from 'lodash';
|
||||
import { flatten } from 'lodash-es';
|
||||
|
||||
export default {
|
||||
// 题目列表
|
||||
|
@ -1,5 +1,5 @@
|
||||
import Vue from 'vue';
|
||||
import { forEach, set } from 'lodash';
|
||||
import { forEach, set } from 'lodash-es';
|
||||
export default {
|
||||
// 将数据设置到state上
|
||||
assignState(state, data) {
|
||||
|
Loading…
Reference in New Issue
Block a user