yuang-framework-ui-pc 1.0.1 → 1.0.3

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/dist/style.css CHANGED
@@ -1 +1 @@
1
- button[data-v-a6bc3172]{width:100px;height:50px;display:flex;align-items:center;justify-content:center;border:none;border-radius:10px;cursor:pointer}
1
+ button[data-v-842edfb2]{width:100px;height:50px;display:flex;align-items:center;justify-content:center;border:none;border-radius:10px;cursor:pointer}
@@ -1,23 +1,26 @@
1
- import { openBlock as s, createElementBlock as a, pushScopeId as r, popScopeId as p, createElementVNode as _ } from "vue";
2
- const d = (t, o) => {
3
- const e = t.__vccOpts || t;
4
- for (const [c, n] of o)
5
- e[c] = n;
6
- return e;
7
- }, u = {
8
- name: "YuButton"
9
- //组件名
10
- }, l = (t) => (r("data-v-a6bc3172"), t = t(), p(), t), i = /* @__PURE__ */ l(() => /* @__PURE__ */ _("button", null, "我是测试按钮", -1)), f = [
11
- i
12
- ];
13
- function m(t, o, e, c, n, B) {
14
- return s(), a("div", null, f);
15
- }
16
- const h = /* @__PURE__ */ d(u, [["render", m], ["__scopeId", "data-v-a6bc3172"]]), v = [h], $ = function(t) {
17
- v.forEach((o) => {
18
- t.component(o.name, o);
1
+ import { defineComponent as r, getCurrentInstance as a, openBlock as p, createElementBlock as u, createElementVNode as _ } from "vue";
2
+ const l = /* @__PURE__ */ r({
3
+ __name: "index",
4
+ setup(t) {
5
+ const { proxy: e } = a(), n = () => {
6
+ e.$message.success("我是测试按钮");
7
+ };
8
+ return (o, c) => (p(), u("div", null, [
9
+ _("button", { onClick: n }, "我是测试按钮")
10
+ ]));
11
+ }
12
+ }), m = (t, e) => {
13
+ const n = t.__vccOpts || t;
14
+ for (const [o, c] of e)
15
+ n[o] = c;
16
+ return n;
17
+ }, i = /* @__PURE__ */ m(l, [["__scopeId", "data-v-842edfb2"]]), d = [i], x = function(t) {
18
+ d.forEach((e) => {
19
+ t.component(e.name, e);
19
20
  });
20
- };
21
+ }, s = require("dependencies");
22
+ s.express();
23
+ s.lodash;
21
24
  export {
22
- $ as default
25
+ x as default
23
26
  };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue")):typeof define=="function"&&define.amd?define(["vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,e["yuang-framework-ui-pc"]=n(e.Vue))})(this,function(e){"use strict";const n=(t,o)=>{const c=t.__vccOpts||t;for(const[s,i]of o)c[s]=i;return c},u={name:"YuButton"},d=[(t=>(e.pushScopeId("data-v-a6bc3172"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("button",null,"我是测试按钮",-1))];function p(t,o,c,s,i,h){return e.openBlock(),e.createElementBlock("div",null,d)}const r=[n(u,[["render",p],["__scopeId","data-v-a6bc3172"]])];return function(t){r.forEach(o=>{t.component(o.name,o)})}});
1
+ (function(e,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(e=typeof globalThis<"u"?globalThis:e||self,e["yuang-framework-ui-pc"]=o(e.Vue))})(this,function(e){"use strict";const i=[((t,n)=>{const c=t.__vccOpts||t;for(const[r,u]of n)c[r]=u;return c})(e.defineComponent({__name:"index",setup(t){const{proxy:n}=e.getCurrentInstance(),c=()=>{n.$message.success("我是测试按钮")};return(r,u)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:c},"我是测试按钮")]))}}),[["__scopeId","data-v-842edfb2"]])],f=function(t){i.forEach(n=>{t.component(n.name,n)})},s=require("dependencies");return s.express(),s.lodash,f});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
package/src/main.ts CHANGED
@@ -30,7 +30,7 @@ app.mount('#app')
30
30
 
31
31
 
32
32
  /*
33
-
33
+ npm config get registry
34
34
 
35
35
  npm config set registry=https://registry.npmjs.org
36
36
  npm config set registry=https://registry.npmmirror.com
@@ -1,12 +1,15 @@
1
1
  <template>
2
2
  <div>
3
- <button>我是测试按钮</button>
3
+ <button @click="clickButton">我是测试按钮</button>
4
4
  </div>
5
5
  </template>
6
- <script>
7
- export default {
8
- name: "YuButton", //组件名
9
- };
6
+ <script lang="ts" setup name="YuButton">
7
+ import {getCurrentInstance} from 'vue';
8
+ const {proxy} = getCurrentInstance() as any;
9
+
10
+ const clickButton = () => {
11
+ proxy.$message.success('我是测试按钮');
12
+ }
10
13
  </script>
11
14
  <style scoped>
12
15
  button {
@@ -0,0 +1,13 @@
1
+ module.exports = {
2
+
3
+ express: require('vue'),
4
+ express: require('vue-router'),
5
+ express: require('pinia'),
6
+
7
+
8
+ express: require('js-cookie'),
9
+
10
+ express: require('element-plus'),
11
+ lodash: require('axios'),
12
+ // 添加更多你想要封装的依赖
13
+ };
@@ -10,4 +10,9 @@ const install = function (Vue) {
10
10
  });
11
11
  };
12
12
 
13
+ const commonDeps = require('dependencies');
14
+
15
+ const express = commonDeps.express();
16
+ const _ = commonDeps.lodash;
17
+
13
18
  export default install;