@vyr/cli 0.0.25 → 0.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.bin/default/index.js +4 -0
- package/.bin/install/index.js +2 -0
- package/.entry/app.js +362 -362
- package/build/css/{9786.6bfee4ca.css → 2357.20584c43.css} +1 -1
- package/build/css/{6151.e4de2b69.css → 4011.fc069ae3.css} +1 -1
- package/build/css/{6881.972ad8f8.css → 6881.c7cb44c0.css} +1 -1
- package/build/css/768.6c925006.css +1 -0
- package/build/css/{3745.5e7a01f4.css → 9160.6a744205.css} +1 -1
- package/build/css/{4537.9b4ae552.css → 918.1da69a00.css} +2 -2
- package/build/css/login.c49ecb09.css +1 -0
- package/build/fonts/iconfont.0d8d5af4.woff +0 -0
- package/build/fonts/{iconfont.10345b2b.ttf → iconfont.49814d77.ttf} +0 -0
- package/build/index.html +1 -1
- package/build/js/1015.6b930e6b.js +1 -0
- package/build/js/1018.feb3213b.js +1 -0
- package/build/js/150.2368d63c.js +1 -0
- package/build/js/1508.ad60597c.js +1 -0
- package/build/js/{4582.71b3bbe1.js → 1541.ab4dcc45.js} +100 -100
- package/build/js/2132.d99fd402.js +1 -0
- package/build/js/215.0003a521.js +1 -0
- package/build/js/2357.990ebfbc.js +1 -0
- package/build/js/{2546.9fd3dc42.js → 2546.3383e2b7.js} +1 -1
- package/build/js/2596.6b885678.js +1 -0
- package/build/js/288.deb7db30.js +1 -0
- package/build/js/3312.be721fac.js +1 -0
- package/build/js/344.f9b8faec.js +1 -0
- package/build/js/3553.5a3a5f4c.js +1 -0
- package/build/js/4011.4f960789.js +1 -0
- package/build/js/4939.c2476b74.js +1 -0
- package/build/js/5547.b25a8b2e.js +1 -0
- package/build/js/677.fbdce394.js +1 -0
- package/build/js/6881.52ca7073.js +1 -0
- package/build/js/7320.9345566b.js +1 -0
- package/build/js/768.cf51599f.js +1 -0
- package/build/js/7769.95421d48.js +1 -0
- package/build/js/7907.8ff46377.js +1 -0
- package/build/js/7928.6c142786.js +1 -0
- package/build/js/7963.33f8605d.js +1 -0
- package/build/js/8637.348bcf40.js +1 -0
- package/build/js/9127.9dbc1ccb.js +1 -0
- package/build/js/9160.294ecd13.js +1 -0
- package/build/js/918.164497d1.js +3 -0
- package/build/js/931.f5b2dd0e.js +1 -0
- package/build/js/9751.1c059f35.js +1 -0
- package/build/js/chunk-vendors.94bb9e3c.js +300 -0
- package/build/js/index.49e6e2f0.js +1 -0
- package/build/js/login.0e6f1e5f.js +1 -0
- package/build/js/preview.c1d85328.js +1 -0
- package/build/login.html +1 -1
- package/build/preview.html +1 -1
- package/output/auto-provider-plugin/loader.js +2 -1
- package/output/auto-provider-plugin/package.json +1 -1
- package/output/builtin/build/component/CodeEditor.vue.d.ts +1 -0
- package/output/builtin/build/component/DatasetItem.vue.d.ts +2 -1
- package/output/builtin/build/component/HeaderSearch.vue.d.ts +13 -0
- package/output/builtin/build/component/index.d.ts +2 -1
- package/output/builtin/build/locale/LanguageProvider.d.ts +34 -32
- package/output/builtin/build/option/index.d.ts +9 -1
- package/output/builtin/build/service/footer/action/AddDirAction.d.ts +0 -1
- package/output/builtin/package.json +1 -1
- package/output/class-wrapper-plugin/package.json +1 -1
- package/output/declare/package.json +2 -2
- package/output/design/package.json +5 -3
- package/output/design/src/components/Dialog.vue +2 -2
- package/output/design/src/components/DynamicDialog.vue +35 -29
- package/output/design/src/components/Scroll.vue +1 -1
- package/output/design/src/components/Select.vue +9 -1
- package/output/design/src/components/composables/useSearch.ts +1 -0
- package/output/design/src/components/utils/Confirm.ts +1 -1
- package/output/design/src/components/utils/DynamicDialog.ts +12 -2
- package/output/design/src/font/demo_index.html +26 -3
- package/output/design/src/font/iconfont.css +7 -3
- package/output/design/src/font/iconfont.js +1 -1
- package/output/design/src/font/iconfont.json +7 -0
- package/output/design/src/font/iconfont.ttf +0 -0
- package/output/design/src/font/iconfont.woff +0 -0
- package/output/design/src/font/iconfont.woff2 +0 -0
- package/output/design/src/index.ts +6 -0
- package/output/design/src/theme/global.less +6 -0
- package/output/engine/package.json +2 -2
- package/output/engine/src/Engine.ts +2 -2
- package/output/engine/src/asset/Asset.ts +2 -2
- package/output/engine/src/descriptor/Descriptor.ts +1 -1
- package/output/engine/src/graphics/Graphics.ts +1 -1
- package/output/engine/src/interpreter/Interpreter.ts +1 -1
- package/output/engine/src/utils/http.ts +8 -1
- package/output/locale/package.json +1 -1
- package/output/remote/package.json +1 -1
- package/output/rollup-config-plugin/package.json +1 -1
- package/output/runtime/build/data/global.d.ts +6 -0
- package/output/runtime/build/data/header.d.ts +4 -0
- package/output/runtime/package.json +1 -1
- package/output/service/package.json +1 -1
- package/output/service-asset/package.json +1 -1
- package/output/service-asset/src/AssetService.ts +2 -3
- package/output/service-example/package.json +1 -1
- package/output/service-example/src/ExampleService.ts +3 -4
- package/output/service-graph/package.json +1 -1
- package/output/service-rpc/package.json +5 -3
- package/output/service-rpc/src/RpcService.ts +9 -9
- package/output/service-rpc/src/asset/add.ts +1 -1
- package/output/service-rpc/src/asset/close.ts +1 -1
- package/output/service-rpc/src/asset/copy.ts +1 -1
- package/output/service-rpc/src/asset/create.ts +1 -1
- package/output/service-rpc/src/asset/cut.ts +1 -1
- package/output/service-rpc/src/asset/delete.ts +1 -1
- package/output/service-rpc/src/asset/dragdrap.ts +1 -1
- package/output/service-rpc/src/asset/initialize.ts +1 -1
- package/output/service-rpc/src/asset/open.ts +1 -1
- package/output/service-rpc/src/asset/remove.ts +1 -1
- package/output/service-rpc/src/asset/rename.ts +1 -1
- package/output/service-rpc/src/asset/select.ts +1 -1
- package/output/service-rpc/src/asset/update.ts +1 -1
- package/output/service-rpc/src/dep/add.ts +1 -1
- package/output/service-rpc/src/dep/create.ts +1 -1
- package/output/service-rpc/src/dep/delete.ts +1 -1
- package/output/service-rpc/src/dep/remove.ts +1 -1
- package/output/service-rpc/src/dep/update.ts +1 -1
- package/output/service-rpc/src/domain/Entity.ts +7 -0
- package/output/service-rpc/src/example/apply.ts +1 -1
- package/output/service-rpc/src/example/create.ts +1 -1
- package/output/service-rpc/src/example/delete.ts +1 -1
- package/output/service-rpc/src/example/initialize.ts +1 -1
- package/output/service-rpc/src/example/list.ts +1 -1
- package/output/service-rpc/src/index.ts +1 -1
- package/output/service-rpc/src/locale/LanguageProvider.ts +5 -1
- package/output/service-rpc/src/request/index.ts +50 -0
- package/output/service-rpc/src/rpc/confirm.ts +1 -1
- package/output/service-rpc/src/rpc/connection.ts +1 -1
- package/output/service-rpc/src/rpc/disconnect.ts +1 -1
- package/output/service-rpc/src/rpc/getUser.ts +1 -1
- package/output/service-rpc/src/rpc/login.ts +1 -1
- package/output/service-rpc/src/rpc/logout.ts +1 -1
- package/output/service-rpc/src/rpc/redo.ts +1 -1
- package/output/service-rpc/src/rpc/undo.ts +1 -1
- package/output/service-rpc/src/scene/add.ts +1 -1
- package/output/service-rpc/src/scene/create.ts +1 -1
- package/output/service-rpc/src/scene/delete.ts +1 -1
- package/output/service-rpc/src/scene/download.ts +1 -1
- package/output/service-rpc/src/scene/dragdrap.ts +1 -1
- package/output/service-rpc/src/scene/initialize.ts +1 -1
- package/output/service-rpc/src/scene/record.ts +1 -1
- package/output/service-rpc/src/scene/remove.ts +1 -1
- package/output/service-rpc/src/scene/switch.ts +1 -1
- package/output/service-rpc/src/scene/update.ts +1 -1
- package/output/service-rpc/src/sidebar/switch.ts +1 -1
- package/output/service-scene/package.json +1 -1
- package/output/service-scene/src/SceneService.ts +2 -3
- package/output/var-rename-plugin/package.json +1 -1
- package/package.json +80 -1
- package/patches/knex+2.5.1.patch +26 -0
- package/build/css/1111.e408e6d4.css +0 -1
- package/build/css/login.b74658d1.css +0 -1
- package/build/fonts/iconfont.4a13a979.woff +0 -0
- package/build/js/1018.41064c0f.js +0 -1
- package/build/js/1111.be6e2c40.js +0 -1
- package/build/js/1124.74dc01cf.js +0 -1
- package/build/js/150.e7f9045d.js +0 -1
- package/build/js/1780.599a4f56.js +0 -1
- package/build/js/2132.0f13c789.js +0 -1
- package/build/js/2328.91f4fab2.js +0 -1
- package/build/js/3553.c58039ca.js +0 -1
- package/build/js/3745.4b658c7d.js +0 -1
- package/build/js/3785.0e5bac50.js +0 -1
- package/build/js/4537.0c0b1621.js +0 -3
- package/build/js/5547.e7e03105.js +0 -1
- package/build/js/6151.73bf0dca.js +0 -1
- package/build/js/6166.a11b6605.js +0 -1
- package/build/js/677.1be417ae.js +0 -1
- package/build/js/6881.110a38eb.js +0 -1
- package/build/js/7713.7dac62b2.js +0 -1
- package/build/js/7769.da192016.js +0 -1
- package/build/js/7928.00d662e4.js +0 -1
- package/build/js/8637.8a669454.js +0 -1
- package/build/js/8743.ae6b01fb.js +0 -1
- package/build/js/931.b906c8b3.js +0 -1
- package/build/js/9399.6f01e6fb.js +0 -1
- package/build/js/94.043c5ab1.js +0 -1
- package/build/js/9751.062a0ec7.js +0 -1
- package/build/js/9786.e8445259.js +0 -1
- package/build/js/9947.e172d61d.js +0 -1
- package/build/js/chunk-vendors.3148df9e.js +0 -300
- package/build/js/index.ab116b9c.js +0 -1
- package/build/js/login.2480f0b4.js +0 -1
- package/build/js/preview.191ab535.js +0 -1
- /package/build/css/{1124.b91daf98.css → 215.b91daf98.css} +0 -0
- /package/build/css/{8743.b91daf98.css → 2596.b91daf98.css} +0 -0
- /package/build/js/{110.e2819667.js → 110.132cb06d.js} +0 -0
- /package/build/js/{1349.5011b482.js → 1349.581acd13.js} +0 -0
- /package/build/js/{1402.e4936bfb.js → 1402.41e93cca.js} +0 -0
- /package/build/js/{1877.f14acfa1.js → 1877.f7dfcbbb.js} +0 -0
- /package/build/js/{2318.441a2db7.js → 2318.aa9ea4c9.js} +0 -0
- /package/build/js/{250.4513f7c1.js → 250.ee102b58.js} +0 -0
- /package/build/js/{3085.42a6da4f.js → 3085.89eae237.js} +0 -0
- /package/build/js/{4263.f1987228.js → 4263.33a52188.js} +0 -0
- /package/build/js/{4530.2a2c0560.js → 4530.46216301.js} +0 -0
- /package/build/js/{5639.a09657c9.js → 5639.fd7fc4f3.js} +0 -0
- /package/build/js/{6357.fc8796e2.js → 6357.92e3bda6.js} +0 -0
- /package/build/js/{7195.e082572c.js → 7195.20386308.js} +0 -0
- /package/build/js/{8657.f0bd7f1f.js → 8657.0480062d.js} +0 -0
- /package/build/js/{9044.f58e5368.js → 9044.a0d33e3e.js} +0 -0
- /package/build/js/{9170.4182d4a8.js → 9170.00c77288.js} +0 -0
- /package/build/js/{9620.ce105b9b.js → 9620.edd4c694.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(){"use strict";var e={75133:function(e){e.exports=window["__VYR_RUNTIME_@vyr/locale"]},75745:function(e,n,t){var r=t(46269),o=t(75133),a=(e,n,t)=>new Promise((r,o)=>{var a=e=>{try{i(t.next(e))}catch(n){o(n)}},c=e=>{try{i(t.throw(e))}catch(n){o(n)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(a,c);i((t=t.apply(e,n)).next())});const c=[{name:"__VYR_RUNTIME_@vyr/runtime",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(3553),t.e(288)]).then(t.bind(t,81336))})},{name:"__VYR_RUNTIME_vue",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(7227),t.e(7409),t.e(7390)]).then(t.bind(t,57390))})},{name:"__VYR_RUNTIME_three",load:()=>a(null,null,function*(){return Promise.all([t.e(1696),t.e(6315)]).then(t.bind(t,96315))})},{name:"__VYR_RUNTIME_three/examples/jsm/renderers/CSS3DRenderer.js",load:()=>a(null,null,function*(){return Promise.all([t.e(1696),t.e(2521)]).then(t.bind(t,62521))})},{name:"__VYR_RUNTIME_postprocessing",load:()=>a(null,null,function*(){return Promise.all([t.e(1696),t.e(7692)]).then(t.bind(t,67692))})},{name:"__VYR_RUNTIME_@vyr/engine",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(3312)]).then(t.bind(t,50931))})},{name:"__VYR_RUNTIME_@vyr/design",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(7227),t.e(7409),t.e(768),t.e(9751)]).then(t.bind(t,32132))})},{name:"__VYR_RUNTIME_@vyr/builtin",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(3553),t.e(7409),t.e(768),t.e(918),t.e(9127)]).then(t.bind(t,21275))})},{name:"__VYR_RUNTIME_@vyr/service",load:()=>a(null,null,function*(){return t.e(7167).then(t.bind(t,87167))})},{name:"__VYR_RUNTIME_@vyr/remote",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(4530),t.e(7963)]).then(t.bind(t,92328))})},{name:"__VYR_RUNTIME_@vyr/service-rpc",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(1541),t.e(7320)]).then(t.bind(t,93785))})},{name:"__VYR_RUNTIME_@vyr/service-asset",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(3553),t.e(8637)]).then(t.bind(t,34753))})},{name:"__VYR_RUNTIME_@vyr/service-scene",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(3553),t.e(7769)]).then(t.bind(t,92601))})},{name:"__VYR_RUNTIME_@vyr/service-graph",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(4263),t.e(215)]).then(t.bind(t,89974))})},{name:"__VYR_RUNTIME_@vyr/service-example",load:()=>a(null,null,function*(){return Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(3553),t.e(7928)]).then(t.bind(t,70172))})}],i=()=>a(null,null,function*(){const{request:e}=yield Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(1541),t.e(7320)]).then(t.bind(t,93785)),n=yield e.get("/config");return n.data}),u=()=>a(null,null,function*(){const e=yield i();for(const t of e.languageProviders)o.Locale.register(t);o.Locale.use(e.language);const n=[];for(const t of c){const e=t.load().then(e=>window[t.name]=e);n.push(e)}return yield Promise.all(n),e}),l=()=>a(null,null,function*(){yield u();(0,r.Ts)({name:"editor",remotes:[{name:"preview",entry:"/preview/js/entry.js"}]});const{setup:e}=yield(0,r.dh)("preview");yield e();const{main:n}=yield Promise.all([t.e(4291),t.e(8366),t.e(1015),t.e(7227),t.e(1541),t.e(4530),t.e(7409),t.e(6881)]).then(t.bind(t,86881));n()});l()}},n={};function t(r){var o=n[r];if(void 0!==o)return o.exports;var a=n[r]={id:r,loaded:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.loaded=!0,a.exports}t.m=e,function(){var e=[];t.O=function(n,r,o,a){if(!r){var c=1/0;for(f=0;f<e.length;f++){r=e[f][0],o=e[f][1],a=e[f][2];for(var i=!0,u=0;u<r.length;u++)(!1&a||c>=a)&&Object.keys(t.O).every(function(e){return t.O[e](r[u])})?r.splice(u--,1):(i=!1,a<c&&(c=a));if(i){e.splice(f--,1);var l=o();void 0!==l&&(n=l)}}return n}a=a||0;for(var f=e.length;f>0&&e[f-1][2]>a;f--)e[f]=e[f-1];e[f]=[r,o,a]}}(),function(){t.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(n,{a:n}),n}}(),function(){var e,n=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};t.t=function(r,o){if(1&o&&(r=this(r)),8&o)return r;if("object"===typeof r&&r){if(4&o&&r.__esModule)return r;if(16&o&&"function"===typeof r.then)return r}var a=Object.create(null);t.r(a);var c={};e=e||[null,n({}),n([]),n(n)];for(var i=2&o&&r;("object"==typeof i||"function"==typeof i)&&!~e.indexOf(i);i=n(i))Object.getOwnPropertyNames(i).forEach(function(e){c[e]=function(){return r[e]}});return c["default"]=function(){return r},t.d(a,c),a}}(),function(){t.d=function(e,n){for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}}(),function(){t.f={},t.e=function(e){return Promise.all(Object.keys(t.f).reduce(function(n,r){return t.f[r](e,n),n},[]))}}(),function(){t.u=function(e){return"js/"+e+"."+{88:"4db81116",110:"132cb06d",112:"43f83ad0",215:"0003a521",220:"332f13be",250:"ee102b58",288:"deb7db30",677:"fbdce394",768:"cf51599f",800:"7696b6c7",918:"164497d1",1008:"1212a92b",1015:"6b930e6b",1048:"959d2b15",1176:"03ce189a",1320:"11b1f843",1346:"07f056a0",1349:"581acd13",1376:"c78b811b",1384:"330a9809",1402:"41e93cca",1541:"ab4dcc45",1592:"2007c851",1696:"67999338",1704:"a712bcfe",1877:"f7dfcbbb",1978:"d78b7ff2",2024:"61ad4ff8",2264:"74826096",2318:"aa9ea4c9",2320:"01b45f7e",2424:"1b901127",2472:"fd550726",2521:"64e8a1c3",2576:"af7b57dd",2674:"a0fefa3b",2808:"2a6f1a99",2868:"2c921d66",2958:"148f2f28",3084:"f01b8161",3085:"89eae237",3124:"865bbeea",3160:"ad6a00b2",3312:"be721fac",3328:"0e752372",3416:"59bed435",3454:"fc17644a",3507:"aafa886d",3553:"5a3a5f4c",3792:"c95b5a4d",3944:"0eafa506",4011:"4f960789",4040:"bd29cbd3",4124:"1c353188",4171:"ecaed70c",4196:"1ecc5bb3",4230:"d1f2577c",4263:"33a52188",4288:"cfaa98a7",4291:"cea6a8d5",4416:"8faeee6a",4490:"afacfe53",4530:"46216301",4570:"312d27c5",4744:"fb66347f",4764:"df45c000",4786:"89599e34",4816:"cd55469f",4872:"0bafb3d5",4900:"cdee80ca",5354:"9e7d2a59",5388:"ba7b29bd",5620:"4ebcd1ef",5639:"fd7fc4f3",5694:"4e720480",5696:"1ec004f6",5768:"ff6d1da1",5788:"fb009553",5804:"a7530102",5888:"e88a2170",5918:"fd8226fe",6136:"a7604e8a",6248:"d7c77c1a",6308:"358e0a94",6315:"81f5e202",6357:"92e3bda6",6476:"133083f0",6488:"a1bb6380",6552:"af7ecaa3",6600:"66570635",6720:"7e4d97d6",6881:"52ca7073",6937:"53af487b",7128:"bddbefa5",7132:"784f034a",7167:"ba37f9e6",7195:"20386308",7227:"9320ac5b",7320:"9345566b",7380:"378a750c",7390:"cb73108e",7409:"871dc004",7494:"0fecaf55",7692:"0a1cdf62",7769:"95421d48",7820:"84cbe06d",7928:"6c142786",7960:"6e25b569",7963:"33f8605d",7980:"816096c5",8004:"80b538a1",8030:"70f27b26",8328:"d2170039",8344:"e4b1e024",8366:"2854dcb7",8438:"72c0fcbf",8550:"69a717cc",8554:"1dbe7424",8632:"da334e90",8637:"348bcf40",8657:"0480062d",8856:"9f70af00",9020:"b3a4d09b",9044:"a0d33e3e",9127:"9dbc1ccb",9170:"00c77288",9256:"85fca918",9384:"adddd8c7",9620:"edd4c694",9751:"1c059f35",9842:"d1ed9070"}[e]+".js"}}(),function(){t.miniCssF=function(e){return"css/"+e+"."+{110:"6ed7cfde",215:"b91daf98",768:"6c925006",918:"1da69a00",2318:"b023c74d",3085:"43d5665d",4011:"fc069ae3",6357:"7bd0168e",6881:"c7cb44c0",9170:"7c0db381"}[e]+".css"}}(),function(){t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){var e={},n="@vyr/cli:";t.l=function(r,o,a,c){if(e[r])e[r].push(o);else{var i,u;if(void 0!==a)for(var l=document.getElementsByTagName("script"),f=0;f<l.length;f++){var d=l[f];if(d.getAttribute("src")==r||d.getAttribute("data-webpack")==n+a){i=d;break}}i||(u=!0,i=document.createElement("script"),i.charset="utf-8",t.nc&&i.setAttribute("nonce",t.nc),i.setAttribute("data-webpack",n+a),i.src=r),e[r]=[o];var s=function(n,t){i.onerror=i.onload=null,clearTimeout(b);var o=e[r];if(delete e[r],i.parentNode&&i.parentNode.removeChild(i),o&&o.forEach(function(e){return e(t)}),n)return n(t)},b=setTimeout(s.bind(null,void 0,{type:"timeout",target:i}),12e4);i.onerror=s.bind(null,i.onerror),i.onload=s.bind(null,i.onload),u&&document.head.appendChild(i)}}}(),function(){t.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){t.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){t.j=7685}(),function(){t.p=""}(),function(){if("undefined"!==typeof document){var e=function(e,n,r,o,a){var c=document.createElement("link");c.rel="stylesheet",c.type="text/css",t.nc&&(c.nonce=t.nc);var i=function(t){if(c.onerror=c.onload=null,"load"===t.type)o();else{var r=t&&t.type,i=t&&t.target&&t.target.href||n,u=new Error("Loading CSS chunk "+e+" failed.\n("+r+": "+i+")");u.name="ChunkLoadError",u.code="CSS_CHUNK_LOAD_FAILED",u.type=r,u.request=i,c.parentNode&&c.parentNode.removeChild(c),a(u)}};return c.onerror=c.onload=i,c.href=n,r?r.parentNode.insertBefore(c,r.nextSibling):document.head.appendChild(c),c},n=function(e,n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++){var o=t[r],a=o.getAttribute("data-href")||o.getAttribute("href");if("stylesheet"===o.rel&&(a===e||a===n))return o}var c=document.getElementsByTagName("style");for(r=0;r<c.length;r++){o=c[r],a=o.getAttribute("data-href");if(a===e||a===n)return o}},r=function(r){return new Promise(function(o,a){var c=t.miniCssF(r),i=t.p+c;if(n(c,i))return o();e(r,i,null,o,a)})},o={7685:0};t.f.miniCss=function(e,n){var t={110:1,215:1,768:1,918:1,2318:1,3085:1,4011:1,6357:1,6881:1,9170:1};o[e]?n.push(o[e]):0!==o[e]&&t[e]&&n.push(o[e]=r(e).then(function(){o[e]=0},function(n){throw delete o[e],n}))}}}(),function(){var e={7685:0};t.f.j=function(n,r){var o=t.o(e,n)?e[n]:void 0;if(0!==o)if(o)r.push(o[2]);else{var a=new Promise(function(t,r){o=e[n]=[t,r]});r.push(o[2]=a);var c=t.p+t.u(n),i=new Error,u=function(r){if(t.o(e,n)&&(o=e[n],0!==o&&(e[n]=void 0),o)){var a=r&&("load"===r.type?"missing":r.type),c=r&&r.target&&r.target.src;i.message="Loading chunk "+n+" failed.\n("+a+": "+c+")",i.name="ChunkLoadError",i.type=a,i.request=c,o[1](i)}};t.l(c,u,"chunk-"+n,n)}},t.O.j=function(n){return 0===e[n]};var n=function(n,r){var o,a,c=r[0],i=r[1],u=r[2],l=0;if(c.some(function(n){return 0!==e[n]})){for(o in i)t.o(i,o)&&(t.m[o]=i[o]);if(u)var f=u(t)}for(n&&n(r);l<c.length;l++)a=c[l],t.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return t.O(f)},r=self["webpackChunk_vyr_cli"]=self["webpackChunk_vyr_cli"]||[];r.forEach(n.bind(null,0)),r.push=n.bind(null,r.push.bind(r))}();var r=t.O(void 0,[504],function(){return t(75745)});r=t.O(r)})();
|
package/build/login.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.
|
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.94bb9e3c.js"></script><script defer="defer" src="js/login.0e6f1e5f.js"></script><link href="css/login.c49ecb09.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but @vyr/cli doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
package/build/preview.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.
|
|
1
|
+
<!doctype html><html lang=""><head><meta charset="utf-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><link rel="icon" href="favicon.ico"/><title>vyr</title><script src="./deps/socket.js"></script><script src="./deps/locale.js"></script><script defer="defer" src="js/chunk-vendors.94bb9e3c.js"></script><script defer="defer" src="js/preview.c1d85328.js"></script></head><body><noscript><strong>We're sorry but @vyr/cli doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
|
|
@@ -23,7 +23,8 @@ module.exports = function (source) {
|
|
|
23
23
|
|
|
24
24
|
const codes = [
|
|
25
25
|
`const getConfig = async()=> {`,
|
|
26
|
-
` const
|
|
26
|
+
` const { request } = await import('@vyr/service-rpc')`,
|
|
27
|
+
` const res = await request.get('/config')`,
|
|
27
28
|
` return res.data`,
|
|
28
29
|
`}`,
|
|
29
30
|
`const extensions = {}`,
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HttpDataConfig } from '@vyr/engine';
|
|
2
|
-
import { Draggable } from '@vyr/design';
|
|
2
|
+
import { Draggable, Option } from '@vyr/design';
|
|
3
3
|
type __VLS_Props = {
|
|
4
4
|
index: number;
|
|
5
5
|
config: HttpDataConfig;
|
|
6
|
+
interfaces: Option[];
|
|
6
7
|
draggable: Draggable;
|
|
7
8
|
};
|
|
8
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: any;
|
|
3
|
+
placeholder: string;
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
+
search: (...args: any[]) => void;
|
|
7
|
+
"update:modelValue": (...args: any[]) => void;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
onSearch?: ((...args: any[]) => any) | undefined;
|
|
10
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -10,6 +10,7 @@ import VyrWindowSetting from './WindowSetting.vue';
|
|
|
10
10
|
import VyrGraph from './Graph.vue';
|
|
11
11
|
import VyrExampleDialog from './ExampleDialog.vue';
|
|
12
12
|
import VyrCodeEditor from './CodeEditor.vue';
|
|
13
|
+
import VyrHeaderSearch from './HeaderSearch.vue';
|
|
13
14
|
import ErrorComponent from './ErrorComponent.vue';
|
|
14
15
|
import LoadingComponent from './LoadingComponent.vue';
|
|
15
|
-
export { VyrRuleItem, VyrColorItem, VyrInteractionItem, VyrDatasetItem, VyrVariableItem, VyrInputItem, VyrDirectory, VyrTimeline, VyrWindowSetting, VyrGraph, VyrExampleDialog, VyrCodeEditor, ErrorComponent, LoadingComponent, };
|
|
16
|
+
export { VyrRuleItem, VyrColorItem, VyrInteractionItem, VyrDatasetItem, VyrVariableItem, VyrInputItem, VyrDirectory, VyrTimeline, VyrWindowSetting, VyrGraph, VyrExampleDialog, VyrCodeEditor, VyrHeaderSearch, ErrorComponent, LoadingComponent, };
|
|
@@ -202,13 +202,15 @@ interface ZhCNLanguageProvider extends LanguageProvider {
|
|
|
202
202
|
'preset.scheduler.invoke': string;
|
|
203
203
|
'preset.scheduler.invoke.target': string;
|
|
204
204
|
'preset.scheduler.invoke.interaction': string;
|
|
205
|
-
'global.action.
|
|
206
|
-
'global.action.
|
|
207
|
-
'header.
|
|
208
|
-
'header.
|
|
209
|
-
'header.action.
|
|
210
|
-
'header.action.
|
|
211
|
-
'header.action.
|
|
205
|
+
'global.action.Redo.label': string;
|
|
206
|
+
'global.action.Undo.label': string;
|
|
207
|
+
'header.menus.file.label': string;
|
|
208
|
+
'header.menus.scene.label': string;
|
|
209
|
+
'header.action.ExportScene.label': string;
|
|
210
|
+
'header.action.ImportExample.label': string;
|
|
211
|
+
'header.action.PreviewScene.label': string;
|
|
212
|
+
'header.action.RealTimePreview.label': string;
|
|
213
|
+
'header.action.MyExample.label': string;
|
|
212
214
|
'body.windowSetting.width': string;
|
|
213
215
|
'body.windowSetting.height': string;
|
|
214
216
|
'body.windowSetting.scale': string;
|
|
@@ -218,33 +220,33 @@ interface ZhCNLanguageProvider extends LanguageProvider {
|
|
|
218
220
|
'sidebar.asset.label': string;
|
|
219
221
|
'sidebar.action.region.notExecute': string;
|
|
220
222
|
'sidebar.action.save.example': string;
|
|
221
|
-
'sidebar.action.scene.
|
|
222
|
-
'sidebar.action.scene.
|
|
223
|
-
'sidebar.action.scene.
|
|
224
|
-
'sidebar.action.scene.
|
|
225
|
-
'sidebar.action.scene.
|
|
226
|
-
'sidebar.action.scene.
|
|
227
|
-
'sidebar.action.scene.
|
|
228
|
-
'sidebar.action.scene.
|
|
229
|
-
'sidebar.action.asset.
|
|
230
|
-
'sidebar.action.asset.
|
|
231
|
-
'sidebar.action.asset.
|
|
232
|
-
'sidebar.action.asset.
|
|
233
|
-
'sidebar.action.asset.
|
|
234
|
-
'sidebar.action.asset.
|
|
235
|
-
'sidebar.action.asset.
|
|
223
|
+
'sidebar.action.scene.AddNode.label': string;
|
|
224
|
+
'sidebar.action.scene.AddService.label': string;
|
|
225
|
+
'sidebar.action.scene.Copy.label': string;
|
|
226
|
+
'sidebar.action.scene.Cut.label': string;
|
|
227
|
+
'sidebar.action.scene.Delete.label': string;
|
|
228
|
+
'sidebar.action.scene.Rename.label': string;
|
|
229
|
+
'sidebar.action.scene.Save.label': string;
|
|
230
|
+
'sidebar.action.scene.Stickup.label': string;
|
|
231
|
+
'sidebar.action.asset.AddNode.label': string;
|
|
232
|
+
'sidebar.action.asset.Copy.label': string;
|
|
233
|
+
'sidebar.action.asset.Cut.label': string;
|
|
234
|
+
'sidebar.action.asset.Delete.label': string;
|
|
235
|
+
'sidebar.action.asset.Rename.label': string;
|
|
236
|
+
'sidebar.action.asset.Save.label': string;
|
|
237
|
+
'sidebar.action.asset.Stickup.label': string;
|
|
236
238
|
'footer.action.region.notFound': string;
|
|
237
|
-
'footer.action.
|
|
238
|
-
'footer.action.
|
|
239
|
-
'footer.action.
|
|
240
|
-
'footer.action.
|
|
241
|
-
'footer.action.
|
|
242
|
-
'footer.action.
|
|
243
|
-
'footer.action.
|
|
244
|
-
'footer.action.
|
|
239
|
+
'footer.action.AddDir.label': string;
|
|
240
|
+
'footer.action.Copy.label': string;
|
|
241
|
+
'footer.action.Cut.label': string;
|
|
242
|
+
'footer.action.Delete.label': string;
|
|
243
|
+
'footer.action.EditFile.label': string;
|
|
244
|
+
'footer.action.Rename.label': string;
|
|
245
|
+
'footer.action.SelectAll.label': string;
|
|
246
|
+
'footer.action.Stickup.label': string;
|
|
245
247
|
'footer.action.addScript.label': string;
|
|
246
|
-
'footer.action.
|
|
247
|
-
'footer.action.
|
|
248
|
+
'footer.action.AddMore.label': string;
|
|
249
|
+
'footer.action.Backup.label': string;
|
|
248
250
|
'action.trigger.notFound': string;
|
|
249
251
|
'action.update.notFound': string;
|
|
250
252
|
'inspector.base.id': string;
|
|
@@ -2,11 +2,19 @@ declare const stateOptions: {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: boolean;
|
|
4
4
|
}[];
|
|
5
|
+
declare const stateByNumberOptions: {
|
|
6
|
+
label: string;
|
|
7
|
+
value: number;
|
|
8
|
+
}[];
|
|
5
9
|
declare const booleanOptions: {
|
|
6
10
|
label: string;
|
|
7
11
|
value: boolean;
|
|
8
12
|
}[];
|
|
9
|
-
|
|
13
|
+
declare const booleanByNumberOptions: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}[];
|
|
17
|
+
export { stateOptions, stateByNumberOptions, booleanOptions, booleanByNumberOptions, };
|
|
10
18
|
export * as Net from './Net';
|
|
11
19
|
export * as Color from './Color';
|
|
12
20
|
export * as Style from './Style';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vyr/declare",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./src/index.ts",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@vyr/locale": "0.0.
|
|
9
|
+
"@vyr/locale": "0.0.26"
|
|
10
10
|
},
|
|
11
11
|
"devDependencies": {},
|
|
12
12
|
"files": [
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vyr/design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.26",
|
|
4
4
|
"main": "./src/index.ts",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@popperjs/core": "2.11.7",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
7
|
+
"ag-grid-community": "^35.0.0",
|
|
8
|
+
"ag-grid-vue3": "^35.0.0",
|
|
9
|
+
"tinycolor2": "1.6.0",
|
|
10
|
+
"vue": "3.5.22"
|
|
9
11
|
},
|
|
10
12
|
"files": [
|
|
11
13
|
"package.json",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
</i>
|
|
11
11
|
</div>
|
|
12
12
|
<div class="dialog-body" :style="`height:calc(100% - ${$slots.footer ? header + footer : header}px);`">
|
|
13
|
-
<slot name="scroll">
|
|
13
|
+
<slot name="scroll" :margin="margin" :padding="padding">
|
|
14
14
|
<vyr-scroll :margin="margin" :padding="padding" @resize="computeMaxHeight">
|
|
15
15
|
<slot></slot>
|
|
16
16
|
</vyr-scroll>
|
|
@@ -107,7 +107,7 @@ const stop = () => {
|
|
|
107
107
|
state.value.activeDialog = false
|
|
108
108
|
}
|
|
109
109
|
const watchshortcutkey = (e: KeyboardEvent) => {
|
|
110
|
-
if (e.code === 'Escape') close()
|
|
110
|
+
if (e.code === 'Escape' && active.value) close()
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
const watchModelValue = () => {
|
|
@@ -1,38 +1,44 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<vyr-dialog v-model="state.visible" :mask="
|
|
2
|
+
<vyr-dialog v-model="state.visible" :mask="state.mask" :draggable="true" :width="state.width"
|
|
3
|
+
:maxHeight="state.maxHeight" @close="close">
|
|
3
4
|
<template #title>
|
|
4
5
|
<template v-if="state.type === 'warning'">
|
|
5
6
|
<i class="vyrfont vyr-warning tips-type"></i>
|
|
6
7
|
</template>{{ state.title }}
|
|
7
8
|
</template>
|
|
8
|
-
<
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
9
|
+
<template v-if="state.component">
|
|
10
|
+
<component :is="state.component" v-bind="state.props"></component>
|
|
11
|
+
</template>
|
|
12
|
+
<template v-else>
|
|
13
|
+
<vyr-form>
|
|
14
|
+
<div class="dynamic-item" v-for="(option, i) in state.options" :key="i">
|
|
15
|
+
<div class="item-label">{{ option.label }}</div>
|
|
16
|
+
<template v-if="option.componentType === 'image'">
|
|
17
|
+
<img class="image" v-bind="option.componentProps">
|
|
18
|
+
</template>
|
|
19
|
+
<template v-if="option.componentType === 'input'">
|
|
20
|
+
<vyr-input v-model="privateState.data[option.name]" v-bind="option.componentProps"></vyr-input>
|
|
21
|
+
</template>
|
|
22
|
+
<template v-if="option.componentType === 'number'">
|
|
23
|
+
<vyr-input-number v-model="privateState.data[option.name]" v-bind="option.componentProps"
|
|
24
|
+
:data="currentData(option)"></vyr-input-number>
|
|
25
|
+
</template>
|
|
26
|
+
<template v-if="option.componentType === 'select'">
|
|
27
|
+
<vyr-select v-model="privateState.data[option.name]" v-bind="option.componentProps"
|
|
28
|
+
:data="currentData(option)" :searchable="true"></vyr-select>
|
|
29
|
+
</template>
|
|
30
|
+
<template v-if="option.componentType === 'cascader'">
|
|
31
|
+
<vyr-cascader v-model="privateState.data[option.name]" v-bind="option.componentProps"
|
|
32
|
+
:data="currentData(option)" :searchable="true"></vyr-cascader>
|
|
33
|
+
</template>
|
|
34
|
+
<template v-if="option.componentType === 'color'">
|
|
35
|
+
<vyr-color-picker v-model="privateState.data[option.name]"
|
|
36
|
+
v-bind="option.componentProps"></vyr-color-picker>
|
|
37
|
+
</template>
|
|
38
|
+
</div>
|
|
39
|
+
</vyr-form>
|
|
40
|
+
</template>
|
|
41
|
+
<template v-if="!state.component" #footer>
|
|
36
42
|
<vyr-button @click="success">{{ language.get('dialog.button.submit') }}</vyr-button>
|
|
37
43
|
<vyr-button @click="cencel">{{ language.get('dialog.button.cancel') }}</vyr-button>
|
|
38
44
|
</template>
|
|
@@ -47,7 +47,7 @@ const computeLayout = () => {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const listen = () => {
|
|
50
|
-
if (!refBody.value || !refWrapper.value) throw language.get('scroll.listen.error')
|
|
50
|
+
if (!refBody.value || !refWrapper.value) throw new Error(language.get('scroll.listen.error'))
|
|
51
51
|
observer.listen(refWrapper.value, computeLayout)
|
|
52
52
|
observer.listen(refBody.value, computeLayout)
|
|
53
53
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<template #trigger>
|
|
7
7
|
<slot name="trigger">
|
|
8
8
|
<div class="select-wrapper">
|
|
9
|
-
<vyr-input :model-value="curInputValue" :readonly="
|
|
9
|
+
<vyr-input :model-value="curInputValue" :readonly="selectReandonly" :clearable="curClearable"
|
|
10
10
|
:readonly-clearable="curReadonlyClearable" :placeholder="curPlaceholder" :width="`100%`" :draggable
|
|
11
11
|
:dragkey @focus="startSearch" @blur="clearSearch" @update:model-value="updateSearch"
|
|
12
12
|
@click="stopClosePopover" @clear.stop="clear">
|
|
@@ -69,6 +69,14 @@ const { state, slotWidth, resize, cascaderProvider } = usePopover(props, refPopo
|
|
|
69
69
|
const { curReadonly, curClearable, curReadonlyClearable, showClear } = useCommonProps(props)
|
|
70
70
|
const { searchState, startSearch, updateSearch, clearSearch } = useSearch(props, cascaderProvider, curGetter)
|
|
71
71
|
|
|
72
|
+
const selectReandonly = computed(() => {
|
|
73
|
+
if (curReadonly.value === false) {
|
|
74
|
+
if (props.draggable === false) return true
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return curReadonly.value
|
|
78
|
+
})
|
|
79
|
+
|
|
72
80
|
const popoverState = {
|
|
73
81
|
bind: false,
|
|
74
82
|
cur: null as Element | null,
|
|
@@ -67,6 +67,7 @@ const useSearch = (props: { searchable: SearchFunctionProp | boolean, data: Opti
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
const updateSearch = (value: string) => {
|
|
70
|
+
if (props.searchable === false) return
|
|
70
71
|
searchState.value.count++
|
|
71
72
|
searchState.value.status = 2
|
|
72
73
|
searchState.value.content = value
|
|
@@ -33,7 +33,7 @@ const getConfirmState = (config: Partial<Confirm>, close = (state: boolean) => {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const useConfirmState = () => {
|
|
36
|
-
const confirm = inject(confirmKey, () => { throw language.get('confirm.state.notFound') }) as unknown as ReturnType<typeof getConfirmState>
|
|
36
|
+
const confirm = inject(confirmKey, () => { throw new Error(language.get('confirm.state.notFound')) }) as unknown as ReturnType<typeof getConfirmState>
|
|
37
37
|
|
|
38
38
|
return confirm
|
|
39
39
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { inject, ref } from "vue"
|
|
1
|
+
import { DefineComponent, inject, markRaw, ref } from "vue"
|
|
2
2
|
import { language } from "../../locale"
|
|
3
3
|
import { Option } from "../types"
|
|
4
4
|
|
|
@@ -15,6 +15,11 @@ interface Dialog {
|
|
|
15
15
|
title: string
|
|
16
16
|
value: { [k: string]: any }
|
|
17
17
|
options: DialogOptions
|
|
18
|
+
width?: string
|
|
19
|
+
maxHeight?: string
|
|
20
|
+
component?: DefineComponent<any, any, any>
|
|
21
|
+
props?: { [k: string]: any }
|
|
22
|
+
mask?: boolean
|
|
18
23
|
success: boolean
|
|
19
24
|
}
|
|
20
25
|
|
|
@@ -27,13 +32,18 @@ const getDialogState = (config: Partial<Dialog>, close = (state: boolean) => { }
|
|
|
27
32
|
type: config.type,
|
|
28
33
|
options: config.options ?? [],
|
|
29
34
|
value: config.value,
|
|
35
|
+
width: config.width ?? '720px',
|
|
36
|
+
maxHeight: config.maxHeight ?? '70%',
|
|
37
|
+
component: config.component ? markRaw(config.component) : undefined,
|
|
38
|
+
props: config.props ?? {},
|
|
39
|
+
mask: config.mask ?? false,
|
|
30
40
|
success: false,
|
|
31
41
|
close
|
|
32
42
|
})
|
|
33
43
|
}
|
|
34
44
|
|
|
35
45
|
const useDialogState = () => {
|
|
36
|
-
const dialog = inject(dialogKey, () => { throw language.get('dialog.state.notFound') }) as unknown as ReturnType<typeof getDialogState>
|
|
46
|
+
const dialog = inject(dialogKey, () => { throw new Error(language.get('dialog.state.notFound')) }) as unknown as ReturnType<typeof getDialogState>
|
|
37
47
|
|
|
38
48
|
return dialog
|
|
39
49
|
}
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<div class="content unicode" style="display: block;">
|
|
55
55
|
<ul class="icon_lists dib-box">
|
|
56
56
|
|
|
57
|
+
<li class="dib">
|
|
58
|
+
<span class="icon vyrfont"></span>
|
|
59
|
+
<div class="name">search</div>
|
|
60
|
+
<div class="code-name">&#xe67d;</div>
|
|
61
|
+
</li>
|
|
62
|
+
|
|
57
63
|
<li class="dib">
|
|
58
64
|
<span class="icon vyrfont"></span>
|
|
59
65
|
<div class="name">删除</div>
|
|
@@ -366,9 +372,9 @@
|
|
|
366
372
|
<pre><code class="language-css"
|
|
367
373
|
>@font-face {
|
|
368
374
|
font-family: 'vyrfont';
|
|
369
|
-
src: url('iconfont.woff2?t=
|
|
370
|
-
url('iconfont.woff?t=
|
|
371
|
-
url('iconfont.ttf?t=
|
|
375
|
+
src: url('iconfont.woff2?t=1767237848841') format('woff2'),
|
|
376
|
+
url('iconfont.woff?t=1767237848841') format('woff'),
|
|
377
|
+
url('iconfont.ttf?t=1767237848841') format('truetype');
|
|
372
378
|
}
|
|
373
379
|
</code></pre>
|
|
374
380
|
<h3 id="-iconfont-">第二步:定义使用 iconfont 的样式</h3>
|
|
@@ -394,6 +400,15 @@
|
|
|
394
400
|
<div class="content font-class">
|
|
395
401
|
<ul class="icon_lists dib-box">
|
|
396
402
|
|
|
403
|
+
<li class="dib">
|
|
404
|
+
<span class="icon vyrfont vyr-search"></span>
|
|
405
|
+
<div class="name">
|
|
406
|
+
search
|
|
407
|
+
</div>
|
|
408
|
+
<div class="code-name">.vyr-search
|
|
409
|
+
</div>
|
|
410
|
+
</li>
|
|
411
|
+
|
|
397
412
|
<li class="dib">
|
|
398
413
|
<span class="icon vyrfont vyr-delete"></span>
|
|
399
414
|
<div class="name">
|
|
@@ -862,6 +877,14 @@
|
|
|
862
877
|
<div class="content symbol">
|
|
863
878
|
<ul class="icon_lists dib-box">
|
|
864
879
|
|
|
880
|
+
<li class="dib">
|
|
881
|
+
<svg class="icon svg-icon" aria-hidden="true">
|
|
882
|
+
<use xlink:href="#vyr-search"></use>
|
|
883
|
+
</svg>
|
|
884
|
+
<div class="name">search</div>
|
|
885
|
+
<div class="code-name">#vyr-search</div>
|
|
886
|
+
</li>
|
|
887
|
+
|
|
865
888
|
<li class="dib">
|
|
866
889
|
<svg class="icon svg-icon" aria-hidden="true">
|
|
867
890
|
<use xlink:href="#vyr-delete"></use>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
2
|
font-family: "vyrfont"; /* Project id 5038851 */
|
|
3
|
-
src: url('iconfont.woff2?t=
|
|
4
|
-
url('iconfont.woff?t=
|
|
5
|
-
url('iconfont.ttf?t=
|
|
3
|
+
src: url('iconfont.woff2?t=1767237848841') format('woff2'),
|
|
4
|
+
url('iconfont.woff?t=1767237848841') format('woff'),
|
|
5
|
+
url('iconfont.ttf?t=1767237848841') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.vyrfont {
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
-moz-osx-font-smoothing: grayscale;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
.vyr-search:before {
|
|
17
|
+
content: "\e67d";
|
|
18
|
+
}
|
|
19
|
+
|
|
16
20
|
.vyr-delete:before {
|
|
17
21
|
content: "\e645";
|
|
18
22
|
}
|