0.0.41 • Published 1 year ago

@aigcui/entry v0.0.41

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

@aigcui/entry

uni h5 项目

installation

npm i @aigcui/entry

npm i @aigcui/entry --registry=https://registry.npmjs.org/

一、Usage

在入口文件main.js引入

import aigcui, { requestUtil } from '@aigcui/entry';

Vue.use(aigcui);

const app = new Vue({ store, ...App });

requestUtil(app)

## 二、配置vue.config.js编辑
```js
module.exports = {
  transpileDependencies: ['@aigcui/entry']
}

在需要的地方引入

<template>
  <QTabs :value.sync="id" />
  
  <GenerateBtn
      :errorTips="toastTipsErrorTxt"
      :disabled="disabled" @cb="handleGenerate" :loading="generating" :btnInfo="btnInfo" />
  <GenerateBtn :disabled="disabled" @cb="handleGenerate" :loading="generating" :btnInfo="btnInfo" />
  
  
  <MemberVipDesc></MemberVipDesc>
  
  <OrderGoodsList :value.sync="goodsId" :list="goodsList"></OrderGoodsList>
  <OrderGoodsType :type.sync="typeNum" :list="goodsType"></OrderGoodsType>
  
  <PhotoModify :loading="loading" ref="photoTool" @setUrl="url => { reference_image = (url || '') }"></PhotoModify>
  
  <QmAiTypeMenu></QmAiTypeMenu>
  
  <QTabs :value.sync="model_subclass_id" />
  
  <TemplateImageStyle
      title="图片风格 Style(可不选)"
      :params="{}"
      componentName="ImgStyleItem"
      :getList="getImgStyleList"
      :proxyList="item => ({ ...item, id: item.img_style_id, value: 0.8 })"
      :currentInfo.sync="photoStyleInfo"></TemplateImageStyle>
  
  <TemplateImageStyle
      title="图片风格 Style(可不选)"
      :params="{}"
      componentName="ImgStyleItem"
      :getList="getImgStyleList"
      :proxyList="item => ({ ...item, id: item.img_style_id, value: 0.8 })"
      :currentInfo.sync="photoStyleInfo"></TemplateImageStyle>
  
  <TemplateImageStyle
      title="图片风格 Style(可不选)"
      :params="{}"
      componentName="ImgStyleItem"
      :getList="getImgStyleList"
      :proxyList="item => ({ ...item, id: item.img_style_id, value: 0.8 })"
      :currentInfo.sync="photoStyleInfo"></TemplateImageStyle>
  
  <TemplateImageStyle
      :params="{type: 1, task_type: taskType}"
      componentName="ImgStyleItem"
      :getList="getTemplate"
      :proxyList="item => ({ ...item })"
      :currentInfo.sync="templateInfo"></TemplateImageStyle>
  
  <TemplateVideoStyle
      title="选择舞蹈模板"
      :params="{type: 2, task_type: taskType}"
      componentName="TemplateItem"
      :getList="getTemplate"
      :proxyList="item => ({ ...item })"
      :currentInfo.sync="templateExtendInfo"></TemplateVideoStyle>
  
  <WechatPop :value.sync="show" :info="payPopInfo" :type="params.type"></WechatPop>
  
  <QmRatio
      :value.sync="img_scale"
      :list="ImgRatioInfo" />
  
  <Describe :value.sync="prompt"></Describe>
  <Describe
      title="负面描述词"
      :maxlength="1000"
      :isShowLanguageBtn="false"
      placeholder="输入不希望在画面中看见的内容,越靠前作用越明显"
      :value.sync="negative_prompt" />
  <Describe
      title="画面描述词"
      :maxlength="maxlength"
      placeholder="请输入描述文字以短句、短语为佳,支持中、英文输入"
      :value.sync="description" />
  <Describe
      title="描述您的视频场景"
      :isShowLanguageBtn="false"
      placeholder="一个女孩,粉色短发,黑色短袖,黑色短裤,霓虹背景"
      :value.sync="prompt"></Describe>
  <Describe
      title="输入不希望出现的内容描述(可不填)"
      :isShowLanguageBtn="false"
      placeholder="可以不填写"
      :value.sync="prompt_extend"></Describe>
  
  <ProduceBtn
      :pieces="pieces"
      :taskType="task_type"
      :value.sync="batch_size"
      :loading="loading"
      @cb="handle28Comfirm"></ProduceBtn>
  
  <ProduceBtn
      :pieces="pieces"
      :taskType="task_type"
      :value.sync="batch_size"
      :loading="loading29"
      @cb="handle29Comfirm"></ProduceBtn>
  
  <ProduceBtn
      :isShowPieces="[1,2].includes(modeId)"
      taskType="1"
      :value.sync="picNums"
      :loading="generateStatus"
      @cb="startGenerate"></ProduceBtn>
  
  <Statement />

  
  
</template>
0.0.40

1 year ago

0.0.41

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.36

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.28

1 year ago

0.0.29

1 year ago

0.0.25

1 year ago

0.0.26

1 year ago

0.0.27

1 year ago

0.0.24

1 year ago

0.0.22

1 year ago

0.0.23

1 year ago

0.0.20

1 year ago

0.0.21

1 year ago

0.0.15

1 year ago

0.0.16

1 year ago

0.0.17

1 year ago

0.0.18

1 year ago

0.0.19

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago