From 073f761fb964647ddedb91a2815f10c9966c6cc8 Mon Sep 17 00:00:00 2001 From: icssoa <2570063477@qq.com> Date: Wed, 31 Mar 2021 09:54:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20demo=20=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- public/favicon.ico | Bin 4286 -> 67646 bytes public/index.html | 114 +++++++++++++++--- src/cool/modules/copy/directives/index.ts | 5 +- .../{views => components}/crud/adv-search.vue | 0 .../crud/context-menu.vue | 0 .../{views => components}/crud/dialog.vue | 0 .../demo/{views => components}/crud/form.vue | 2 +- .../demo/{views => components}/crud/query.vue | 0 .../demo/{views => components}/crud/table.vue | 0 .../components => components/crud}/test.vue | 0 .../{views => components}/crud/upsert.vue | 0 .../demo}/b-cl-context-menu.vue | 0 .../demo}/b-cl-crud.vue | 0 .../demo}/b-cl-editor-quill.vue | 0 .../demo}/b-cl-form.vue | 0 .../demo}/b-cl-upload.vue | 0 .../demo}/b-error-page.vue | 0 .../demo}/b-icon-svg.vue | 0 .../demo}/b-v-copy.vue | 0 src/cool/modules/demo/views/crud.vue | 14 +-- src/cool/modules/demo/views/demo.vue | 16 +-- 22 files changed, 118 insertions(+), 35 deletions(-) rename src/cool/modules/demo/{views => components}/crud/adv-search.vue (100%) rename src/cool/modules/demo/{views => components}/crud/context-menu.vue (100%) rename src/cool/modules/demo/{views => components}/crud/dialog.vue (100%) rename src/cool/modules/demo/{views => components}/crud/form.vue (99%) rename src/cool/modules/demo/{views => components}/crud/query.vue (100%) rename src/cool/modules/demo/{views => components}/crud/table.vue (100%) rename src/cool/modules/demo/{views/crud/components => components/crud}/test.vue (100%) rename src/cool/modules/demo/{views => components}/crud/upsert.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-cl-context-menu.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-cl-crud.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-cl-editor-quill.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-cl-form.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-cl-upload.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-error-page.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-icon-svg.vue (100%) rename src/cool/modules/demo/{views/components => components/demo}/b-v-copy.vue (100%) diff --git a/package.json b/package.json index 3e3fd04..b15b895 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "front-next-vue3", - "version": "0.1.2", + "version": "0.1.3", "private": true, "scripts": { "serve": "vue-cli-service serve", diff --git a/public/favicon.ico b/public/favicon.ico index df36fcfb72584e00488330b560ebcf34a41c64c2..0b823a3934267be14403e19338226b5c33cc5a56 100644 GIT binary patch literal 67646 zcmeI5f2dVe7RT=^DGA945ebtq63?dOCypo8BkO+~Gi1|Y#L}G{t3F$ov2@#P9 zkwGLPBqBomLn1$~7o7yYoWUhgXqR`MtLzCdmLfTaU=G?B=wH z{yTQgA@UxgT^|w>3pe*AGzF~&$6DkTQY6<|V`NU9KsE;rsshg7{|54q<~afT z4*f}^8lOoAr}#ie2!zY5$glIpUTO-Tx;3pV;*4V z9wh19GfwV&j;-zb0Qd5K>o=qbUzZrS3n~1Wim@LS^j!q6k1@4cAK?Cw2mWtj<1fgH zJm&=ZpY-6{M^1~{sPy^(_p~tM`*p0>jV7nRmy?z zaTeKdpez+m|x97ve*9SP?9Dw)3X}Ry^e>FIYe)hCEt!jB9 z>jRu?f996`II=Y`^N)U~k*em;7w%x|16)6Xh(BN0huJxunfP7@aBNh@G7Mjt>r~eV zxIP+yZ`l$&@*jBQJLfXzWK!6?t`Bg$0+DMpn(T^m~+?91n>cacBkInL-W-?QCBGM2b0|wTyk%RCbl}-z9zicJSLUt zC*RX)bMR7<|EzkjEkk6li8jW%**}!Ut+d1IC1q|UcZI(P?qPgg8DrgYFY%1>UE8(* zyuLolJWT5Y#)pt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!^{|qo~8Qy03C)Pi!MWmMbA>*o;`xg)gfrw I#+$7FA7}!`OaK4? literal 4286 zcmds*O-Phc6o&64GDVCEQHxsW(p4>LW*W<827=Unuo8sGpRux(DN@jWP-e29Wl%wj zY84_aq9}^Am9-cWTD5GGEo#+5Fi2wX_P*bo+xO!)p*7B;iKlbFd(U~_d(U?#hLj56 zPhFkj-|A6~Qk#@g^#D^U0XT1cu=c-vu1+SElX9NR;kzAUV(q0|dl0|%h|dI$%VICy zJnu2^L*Te9JrJMGh%-P79CL0}dq92RGU6gI{v2~|)p}sG5x0U*z<8U;Ij*hB9z?ei z@g6Xq-pDoPl=MANPiR7%172VA%r)kevtV-_5H*QJKFmd;8yA$98zCxBZYXTNZ#QFk2(TX0;Y2dt&WitL#$96|gJY=3xX zpCoi|YNzgO3R`f@IiEeSmKrPSf#h#Qd<$%Ej^RIeeYfsxhPMOG`S`Pz8q``=511zm zAm)MX5AV^5xIWPyEu7u>qYs?pn$I4nL9J!=K=SGlKLXpE<5x+2cDTXq?brj?n6sp= zphe9;_JHf40^9~}9i08r{XM$7HB!`{Ys~TK0kx<}ZQng`UPvH*11|q7&l9?@FQz;8 zx!=3<4seY*%=OlbCbcae?5^V_}*K>Uo6ZWV8mTyE^B=DKy7-sdLYkR5Z?paTgK-zyIkKjIcpyO z{+uIt&YSa_$QnN_@t~L014dyK(fOOo+W*MIxbA6Ndgr=Y!f#Tokqv}n<7-9qfHkc3 z=>a|HWqcX8fzQCT=dqVbogRq!-S>H%yA{1w#2Pn;=e>JiEj7Hl;zdt-2f+j2%DeVD zsW0Ab)ZK@0cIW%W7z}H{&~yGhn~D;aiP4=;m-HCo`BEI+Kd6 z={Xwx{TKxD#iCLfl2vQGDitKtN>z|-AdCN|$jTFDg0m3O`WLD4_s#$S diff --git a/public/index.html b/public/index.html index 3e5a139..96a8f86 100644 --- a/public/index.html +++ b/public/index.html @@ -1,17 +1,99 @@ - - - - - - - <%= htmlWebpackPlugin.options.title %> - - - -
- - - + + + + + + + + + COOL-ADMIN + <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.css) { %> + + <% } %> + + + + +
+
+
+

COOL-ADMIN

+

正在加载资源...

+

初次加载资源可能需要较多时间 请耐心等待

+
+ + +
+
+ + <% for (var i in htmlWebpackPlugin.options.cdn && htmlWebpackPlugin.options.cdn.js) { %> + + <% } %> + + \ No newline at end of file diff --git a/src/cool/modules/copy/directives/index.ts b/src/cool/modules/copy/directives/index.ts index 08a88c8..ed2bfac 100644 --- a/src/cool/modules/copy/directives/index.ts +++ b/src/cool/modules/copy/directives/index.ts @@ -18,11 +18,12 @@ function copyboard() { copyboard(); export default { - inserted: (el: HTMLElement, binding: any) => { + mounted: (el: HTMLElement, binding: any) => { el.className = el.className + " _copy-btn"; el.setAttribute("data-clipboard-text", binding.value); }, - update: (el: HTMLElement, binding: any) => { + beforeUpdate: (el: HTMLElement, binding: any) => { + console.log(el); el.setAttribute("data-clipboard-text", binding.value); } }; diff --git a/src/cool/modules/demo/views/crud/adv-search.vue b/src/cool/modules/demo/components/crud/adv-search.vue similarity index 100% rename from src/cool/modules/demo/views/crud/adv-search.vue rename to src/cool/modules/demo/components/crud/adv-search.vue diff --git a/src/cool/modules/demo/views/crud/context-menu.vue b/src/cool/modules/demo/components/crud/context-menu.vue similarity index 100% rename from src/cool/modules/demo/views/crud/context-menu.vue rename to src/cool/modules/demo/components/crud/context-menu.vue diff --git a/src/cool/modules/demo/views/crud/dialog.vue b/src/cool/modules/demo/components/crud/dialog.vue similarity index 100% rename from src/cool/modules/demo/views/crud/dialog.vue rename to src/cool/modules/demo/components/crud/dialog.vue diff --git a/src/cool/modules/demo/views/crud/form.vue b/src/cool/modules/demo/components/crud/form.vue similarity index 99% rename from src/cool/modules/demo/views/crud/form.vue rename to src/cool/modules/demo/components/crud/form.vue index 06ac68d..f0b4c08 100644 --- a/src/cool/modules/demo/views/crud/form.vue +++ b/src/cool/modules/demo/components/crud/form.vue @@ -50,7 +50,7 @@