chore: lodash-es

This commit is contained in:
xiaojunnuo
2023-06-29 17:20:47 +08:00
parent 042535536e
commit e5d902663b
29 changed files with 30 additions and 30 deletions
@@ -2,7 +2,7 @@ import { ColumnCompositionProps, dict } from "@fast-crud/fast-crud";
// @ts-ignore
import * as api from "./api";
// @ts-ignore
import _ from "lodash";
import _ from "lodash-es";
import { toRef } from "vue";
export function getCommonColumnDefine(crudExpose: any, typeRef: any) {
@@ -1,5 +1,5 @@
import { request } from "/src/api/service";
import _ from "lodash";
import _ from "lodash-es";
const apiPrefix = "/pi/plugin";
const defaultInputDefine = {
@@ -9,7 +9,7 @@ const defaultInputDefine = {
}
};
export async function GetList(query) {
export async function GetList(query: any) {
const plugins = await request({
url: apiPrefix + "/list",
method: "post",
@@ -6,7 +6,7 @@
import { useColumns, useExpose } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud.jsx";
import { ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
export default {
name: "PiCertdForm",
setup(props, ctx) {
@@ -61,7 +61,7 @@
<script lang="ts">
import { Modal } from "ant-design-vue";
import { ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
import { nanoid } from "nanoid";
import PiNotificationFormEmail from "./pi-notification-form-email.vue";
@@ -87,7 +87,7 @@
<script lang="tsx">
import { message, Modal } from "ant-design-vue";
import { computed, inject, Ref, ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
import { nanoid } from "nanoid";
import { compute } from "@fast-crud/fast-crud";
export default {
@@ -66,7 +66,7 @@
<script lang="ts">
import { provide, Ref, ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
import { nanoid } from "nanoid";
import PiStepForm from "../step-form/index.vue";
import { message, Modal } from "ant-design-vue";
@@ -81,7 +81,7 @@
<script>
import { message, Modal } from "ant-design-vue";
import { inject, ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
import { nanoid } from "nanoid";
export default {
name: "PiTriggerForm",
@@ -207,7 +207,7 @@ import PiTriggerForm from "./component/trigger-form/index.vue";
import PiNotificationForm from "./component/notification-form/index.vue";
import PiTaskView from "./component/task-view/index.vue";
import PiStatusShow from "./component/status-show.vue";
import _ from "lodash";
import _ from "lodash-es";
import { message, Modal, notification } from "ant-design-vue";
import { pluginManager } from "/@/views/certd/pipeline/pipeline/plugin";
import { nanoid } from "nanoid";
@@ -7,7 +7,7 @@ import { defineComponent, ref, onMounted } from "vue";
import { useCrud, dict, useExpose } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud";
import { GetCrud } from "./api";
import _ from "lodash";
import _ from "lodash-es";
export default defineComponent({
name: "AdvancedFromBackend",
setup() {
@@ -1,5 +1,5 @@
import mockUtil from "/src/mock/base";
import _ from "lodash";
import _ from "lodash-es";
const options = {
name: "FormLinkage",
idGenerator: 0
@@ -1,5 +1,5 @@
import * as api from "./api";
import _ from "lodash";
import _ from "lodash-es";
import { dict } from "@fast-crud/fast-crud";
export default function ({ expose, localDataRef }) {
const pageRequest = async ({ page, query }) => {
@@ -8,7 +8,7 @@
import { defineComponent, ref, onMounted } from "vue";
import { dict, useCrud } from "@fast-crud/fast-crud";
import { useExpose } from "@fast-crud/fast-crud";
import _ from "lodash";
import _ from "lodash-es";
//此处为crudOptions配置
const createCrudOptions = function ({ expose }) {
@@ -2,7 +2,7 @@ import * as api from "./api";
import { requestForMock } from "/src/api/service";
import { dict } from "@fast-crud/fast-crud";
import { ref } from "vue";
import _ from "lodash";
import _ from "lodash-es";
function useSearchRemote() {
let lastFetchId = 0;
@@ -13,7 +13,7 @@
import { defineComponent, ref, onMounted } from "vue";
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud";
import _ from "lodash";
import _ from "lodash-es";
import { message } from "ant-design-vue";
export default defineComponent({
name: "FormCustomForm",
@@ -18,7 +18,7 @@ import { defineComponent, ref, onMounted } from "vue";
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud";
import * as api from "./api";
import _ from "lodash";
import _ from "lodash-es";
import { message } from "ant-design-vue";
import { usePageStore } from "/@/store/modules/page";
export default defineComponent({
@@ -10,7 +10,7 @@
import { defineComponent, ref, onMounted } from "vue";
import { useCrud, useExpose, useColumns } from "@fast-crud/fast-crud";
import createCrudOptions from "./crud";
import _ from "lodash";
import _ from "lodash-es";
import { message } from "ant-design-vue";
export default defineComponent({
name: "FormNewPage",
@@ -33,7 +33,7 @@
</template>
<script>
import _ from "lodash";
import _ from "lodash-es";
import getEachDeep from "deepdash-es/getEachDeep";
const eachDeep = getEachDeep(_);
import { defineComponent, ref, computed } from "vue";