gameapi-client/dist-API/assets/createTable.-K4XlXxo.js

2 lines
1.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{c as h}from"./gen.BsMfqC-4.js";import{r as i,k as s,o as y,m as C,e as a,n as f,d as r,q as m,f as p,D as c,h as w}from"./index.R3qQMktZ.js";const T=f("span",null,"创建表语句(支持多个建表语句)",-1),B={class:"dialog-footer"},I={__name:"createTable",emits:["ok"],setup(N,{expose:_,emit:v}){const e=i(!1),t=i(""),{proxy:u}=w(),V=v;function x(){e.value=!0}function b(){if(t.value===""){u.$modal.msgError("请输入建表语句");return}h({sql:t.value}).then(n=>{u.$modal.msgSuccess(n.msg),n.code===200&&(e.value=!1,V("ok"))})}return _({show:x}),(n,o)=>{const g=s("el-input"),d=s("el-button"),k=s("el-dialog");return y(),C(k,{title:"创建表",modelValue:p(e),"onUpdate:modelValue":o[2]||(o[2]=l=>c(e)?e.value=l:null),width:"800px",top:"5vh","append-to-body":""},{footer:a(()=>[f("div",B,[r(d,{type:"primary",onClick:b},{default:a(()=>[m("确 定")]),_:1}),r(d,{onClick:o[1]||(o[1]=l=>e.value=!1)},{default:a(()=>[m("取 消")]),_:1})])]),default:a(()=>[T,r(g,{type:"textarea",rows:10,placeholder:"请输入文本",modelValue:p(t),"onUpdate:modelValue":o[0]||(o[0]=l=>c(t)?t.value=l:null)},null,8,["modelValue"])]),_:1},8,["modelValue"])}}};export{I as default};