yuang-framework-ui-pc 1.0.16 → 1.0.18

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-f8cde844]{width:100px;height:50px;display:flex;align-items:center;justify-content:center;border:none;border-radius:10px;cursor:pointer}
1
+ button[data-v-d865be7e]{width:100px;height:50px;display:flex;align-items:center;justify-content:center;border:none;border-radius:10px;cursor:pointer}
@@ -1,66 +1,65 @@
1
- import { defineComponent as d, getCurrentInstance as m, openBlock as l, createElementBlock as i, createElementVNode as y, resolveComponent as _, createBlock as g, withCtx as t, createVNode as o, createTextVNode as c } from "vue";
2
- const x = {
3
- name: "YuButton"
4
- }, k = /* @__PURE__ */ d({
5
- ...x,
1
+ import { defineComponent as f, getCurrentInstance as m, openBlock as l, createElementBlock as i, createElementVNode as y, resolveComponent as _, createBlock as x, withCtx as e, createVNode as o, createTextVNode as c } from "vue";
2
+ const g = /* @__PURE__ */ f({
3
+ name: "YuButton",
4
+ __name: "index",
6
5
  setup(a) {
7
- const { proxy: e } = m(), s = () => {
8
- e.$message.success("我是测试按钮");
6
+ const { proxy: t } = m(), r = () => {
7
+ t.$message.success("我是测试按钮");
9
8
  };
10
- return (r, u) => (l(), i("div", null, [
11
- y("button", { onClick: s }, "我是测试按钮")
9
+ return (s, u) => (l(), i("div", null, [
10
+ y("button", { onClick: r }, "我是测试按钮")
12
11
  ]));
13
12
  }
14
- }), p = (a, e) => {
15
- const s = a.__vccOpts || a;
16
- for (const [r, u] of e)
17
- s[r] = u;
18
- return s;
19
- }, w = /* @__PURE__ */ p(k, [["__scopeId", "data-v-f8cde844"]]), B = {
13
+ }), p = (a, t) => {
14
+ const r = a.__vccOpts || a;
15
+ for (const [s, u] of t)
16
+ r[s] = u;
17
+ return r;
18
+ }, k = /* @__PURE__ */ p(g, [["__scopeId", "data-v-d865be7e"]]), w = {
20
19
  name: "YuRow"
21
20
  };
22
- function $(a, e, s, r, u, b) {
23
- const n = _("el-button"), f = _("el-row");
24
- return l(), g(f, { class: "mb-4" }, {
25
- default: t(() => [
21
+ function B(a, t, r, s, u, v) {
22
+ const n = _("el-button"), d = _("el-row");
23
+ return l(), x(d, { class: "mb-4" }, {
24
+ default: e(() => [
26
25
  o(n, null, {
27
- default: t(() => [
26
+ default: e(() => [
28
27
  c("Default")
29
28
  ]),
30
29
  _: 1
31
30
  }),
32
31
  o(n, { type: "primary" }, {
33
- default: t(() => [
32
+ default: e(() => [
34
33
  c("Primary")
35
34
  ]),
36
35
  _: 1
37
36
  }),
38
37
  o(n, { type: "success" }, {
39
- default: t(() => [
38
+ default: e(() => [
40
39
  c("Success")
41
40
  ]),
42
41
  _: 1
43
42
  }),
44
43
  o(n, { type: "info" }, {
45
- default: t(() => [
44
+ default: e(() => [
46
45
  c("Info")
47
46
  ]),
48
47
  _: 1
49
48
  }),
50
49
  o(n, { type: "warning" }, {
51
- default: t(() => [
50
+ default: e(() => [
52
51
  c("Warning")
53
52
  ]),
54
53
  _: 1
55
54
  }),
56
55
  o(n, { type: "danger" }, {
57
- default: t(() => [
56
+ default: e(() => [
58
57
  c("Danger")
59
58
  ]),
60
59
  _: 1
61
60
  }),
62
61
  o(n, null, {
63
- default: t(() => [
62
+ default: e(() => [
64
63
  c("中文")
65
64
  ]),
66
65
  _: 1
@@ -69,11 +68,11 @@ function $(a, e, s, r, u, b) {
69
68
  _: 1
70
69
  });
71
70
  }
72
- const v = /* @__PURE__ */ p(B, [["render", $]]), C = [w, v], Y = function(a) {
73
- C.forEach((e) => {
74
- a.component(e.name, e);
71
+ const $ = /* @__PURE__ */ p(w, [["render", B]]), b = [k, $], h = function(a) {
72
+ b.forEach((t) => {
73
+ a.component(t.name, t);
75
74
  });
76
75
  };
77
76
  export {
78
- Y as default
77
+ h as default
79
78
  };
@@ -1 +1 @@
1
- (function(t,c){typeof exports=="object"&&typeof module<"u"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(t=typeof globalThis<"u"?globalThis:t||self,t["yuang-framework-ui-pc"]=c(t.Vue))})(this,function(t){"use strict";const c={name:"YuButton"},i=t.defineComponent({...c,setup(o){const{proxy:e}=t.getCurrentInstance(),r=()=>{e.$message.success("我是测试按钮")};return(a,s)=>(t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("button",{onClick:r},"我是测试按钮")]))}}),d=(o,e)=>{const r=o.__vccOpts||o;for(const[a,s]of e)r[a]=s;return r},l=d(i,[["__scopeId","data-v-f8cde844"]]),_={name:"YuRow"};function f(o,e,r,a,s,V){const n=t.resolveComponent("el-button"),m=t.resolveComponent("el-row");return t.openBlock(),t.createBlock(m,{class:"mb-4"},{default:t.withCtx(()=>[t.createVNode(n,null,{default:t.withCtx(()=>[t.createTextVNode("Default")]),_:1}),t.createVNode(n,{type:"primary"},{default:t.withCtx(()=>[t.createTextVNode("Primary")]),_:1}),t.createVNode(n,{type:"success"},{default:t.withCtx(()=>[t.createTextVNode("Success")]),_:1}),t.createVNode(n,{type:"info"},{default:t.withCtx(()=>[t.createTextVNode("Info")]),_:1}),t.createVNode(n,{type:"warning"},{default:t.withCtx(()=>[t.createTextVNode("Warning")]),_:1}),t.createVNode(n,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode("Danger")]),_:1}),t.createVNode(n,null,{default:t.withCtx(()=>[t.createTextVNode("中文")]),_:1})]),_:1})}const p=[l,d(_,[["render",f]])];return function(o){p.forEach(e=>{o.component(e.name,e)})}});
1
+ (function(e,c){typeof exports=="object"&&typeof module<"u"?module.exports=c(require("vue")):typeof define=="function"&&define.amd?define(["vue"],c):(e=typeof globalThis<"u"?globalThis:e||self,e["yuang-framework-ui-pc"]=c(e.Vue))})(this,function(e){"use strict";const c=e.defineComponent({name:"YuButton",__name:"index",setup(o){const{proxy:t}=e.getCurrentInstance(),r=()=>{t.$message.success("我是测试按钮")};return(a,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createElementVNode("button",{onClick:r},"我是测试按钮")]))}}),d=(o,t)=>{const r=o.__vccOpts||o;for(const[a,s]of t)r[a]=s;return r},i=d(c,[["__scopeId","data-v-d865be7e"]]),l={name:"YuRow"};function _(o,t,r,a,s,u){const n=e.resolveComponent("el-button"),p=e.resolveComponent("el-row");return e.openBlock(),e.createBlock(p,{class:"mb-4"},{default:e.withCtx(()=>[e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode("Default")]),_:1}),e.createVNode(n,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode("Primary")]),_:1}),e.createVNode(n,{type:"success"},{default:e.withCtx(()=>[e.createTextVNode("Success")]),_:1}),e.createVNode(n,{type:"info"},{default:e.withCtx(()=>[e.createTextVNode("Info")]),_:1}),e.createVNode(n,{type:"warning"},{default:e.withCtx(()=>[e.createTextVNode("Warning")]),_:1}),e.createVNode(n,{type:"danger"},{default:e.withCtx(()=>[e.createTextVNode("Danger")]),_:1}),e.createVNode(n,null,{default:e.withCtx(()=>[e.createTextVNode("中文")]),_:1})]),_:1})}const f=[i,d(l,[["render",_]])];return function(o){f.forEach(t=>{o.component(t.name,t)})}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.0.16",
3
+ "version": "1.0.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "files": [
17
17
  "dist",
18
- "src"
18
+ "lib"
19
19
  ],
20
20
  "main": "dist/yuang-framework-ui-pc.umd.js",
21
21
  "module": "dist/yuang-framework-ui-pc.es.js",
package/src/App.vue DELETED
@@ -1,31 +0,0 @@
1
- <template>
2
- <RouterView v-if="isShowRouterView"/>
3
- </template>
4
- <script setup lang="ts">
5
- import {RouterView} from 'vue-router'
6
- import {onBeforeMount, ref, getCurrentInstance} from 'vue';
7
- import {initGateway} from 'yuang-framework-ui-common/lib/utils/gatewayUtils'
8
-
9
- let isShowRouterView = ref(false);
10
-
11
- const {proxy} = getCurrentInstance() as any;
12
-
13
- onBeforeMount(async () => {
14
- await initGateway();
15
- isShowRouterView.value = true;
16
-
17
-
18
- // proxy.$http.post("/sso-api/server/sso/login", {}).then((res: any) => {
19
- // if (res.data.statusCode != 200) {
20
- // return proxy.$message.error(res.data.message);
21
- // }
22
- // });
23
-
24
-
25
- })
26
- </script>
27
-
28
-
29
- <style scoped>
30
-
31
- </style>
package/src/main.ts DELETED
@@ -1,42 +0,0 @@
1
-
2
- import { createApp } from 'vue'
3
- import { createPinia } from 'pinia'
4
-
5
- import App from './App.vue'
6
- import router from './router'
7
-
8
-
9
- import ElementPlus from 'element-plus'
10
- import 'element-plus/dist/index.css'
11
- import { ElMessage } from 'element-plus'
12
-
13
-
14
-
15
- const app = createApp(App)
16
-
17
-
18
- import http from 'yuang-framework-ui-common/lib/config/http';
19
-
20
- app.config.globalProperties.$http = http;
21
- app.config.globalProperties.$message = ElMessage
22
-
23
-
24
- app.use(createPinia())
25
- app.use(router)
26
-
27
- app.use(ElementPlus)
28
-
29
- app.mount('#app')
30
-
31
-
32
- /*
33
- npm config get registry
34
-
35
- npm config set registry=https://registry.npmjs.org
36
- npm config set registry=https://registry.npmmirror.com
37
-
38
-
39
- npm run build
40
- npm publish
41
-
42
- */
@@ -1,32 +0,0 @@
1
- <template>
2
- <div>
3
- <button @click="clickButton">我是测试按钮</button>
4
- </div>
5
- </template>
6
-
7
- <script lang="ts">
8
- export default {
9
- name: "YuButton",
10
- };
11
- </script>
12
- <script lang="ts" setup>
13
- import {getCurrentInstance} from 'vue';
14
-
15
- const {proxy} = getCurrentInstance() as any;
16
-
17
- const clickButton = () => {
18
- proxy.$message.success('我是测试按钮');
19
- }
20
- </script>
21
- <style scoped>
22
- button {
23
- width: 100px;
24
- height: 50px;
25
- display: flex;
26
- align-items: center;
27
- justify-content: center;
28
- border: none;
29
- border-radius: 10px;
30
- cursor: pointer;
31
- }
32
- </style>
@@ -1,16 +0,0 @@
1
- <template>
2
- <el-row class="mb-4">
3
- <el-button>Default</el-button>
4
- <el-button type="primary">Primary</el-button>
5
- <el-button type="success">Success</el-button>
6
- <el-button type="info">Info</el-button>
7
- <el-button type="warning">Warning</el-button>
8
- <el-button type="danger">Danger</el-button>
9
- <el-button>中文</el-button>
10
- </el-row>
11
- </template>
12
- <script>
13
- export default {
14
- name: 'YuRow'
15
- }
16
- </script>
@@ -1,14 +0,0 @@
1
- // 引入封装好的组件
2
- import YuButton from "./YuButton/index.vue";
3
- import YuRow from "./YuRow/index.vue";
4
- // 将来如果有其它组件,都可以写到这个数组里
5
- const components = [ YuButton, YuRow ];
6
-
7
- // 批量组件注册
8
- const install = function (Vue) {
9
- components.forEach((component) => {
10
- Vue.component(component.name, component);
11
- });
12
- };
13
-
14
- export default install;
@@ -1,23 +0,0 @@
1
- import {createRouter, createWebHistory} from 'vue-router'
2
-
3
- const router = createRouter({
4
- history: createWebHistory(import.meta.env.BASE_URL),
5
- routes: [
6
- {
7
- path: '/packages/yu-button/index',
8
- component: () => import('@/views/packages/yu-button/index.vue'),
9
- meta: {
10
- title: ''
11
- }
12
- }
13
- ]
14
- })
15
-
16
-
17
- /* 路由守卫 */
18
- router.beforeEach(async (to, from, next) => {
19
- next();
20
- });
21
-
22
-
23
- export default router
@@ -1,10 +0,0 @@
1
- /**
2
- * shims-vue.d.ts文件是一种声明文件,用来告诉TypeScript如何处理.vue文件,填补TypeScript对.vue文件类型识别缺失的文件,为Vue.js的单文件组件提供类型定义支持。
3
- * 否则会报错:Vue: Could not find a declaration file for module @/packages/YuButton/index.
4
- */
5
- /* eslint-disable */
6
- declare module '*.vue' {
7
- import type { DefineComponent } from 'vue';
8
- const component: DefineComponent<{}, {}, any>;
9
- export default component;
10
- }
@@ -1,12 +0,0 @@
1
- import { ref, computed } from 'vue'
2
- import { defineStore } from 'pinia'
3
-
4
- export const useCounterStore = defineStore('counter', () => {
5
- const count = ref(0)
6
- const doubleCount = computed(() => count.value * 2)
7
- function increment() {
8
- count.value++
9
- }
10
-
11
- return { count, doubleCount, increment }
12
- })
@@ -1,15 +0,0 @@
1
- <template>
2
-
3
- <yu-button></yu-button>
4
- <yu-row></yu-row>
5
- </template>
6
- <script setup lang="ts">
7
-
8
- import YuButton from '@/packages/YuButton/index.vue';
9
- import YuRow from '@/packages/YuRow/index.vue';
10
-
11
- </script>
12
-
13
- <style scoped>
14
-
15
- </style>