p-pc-ui 1.0.0 → 1.0.2

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.
@@ -1,29 +1,29 @@
1
- import { createElementBlock as r, openBlock as a, renderSlot as d } from "vue";
2
- const _ = (t, e) => {
3
- const o = t.__vccOpts || t;
4
- for (const [c, s] of e)
5
- o[c] = s;
6
- return o;
7
- }, l = {
8
- name: "MyButton"
9
- }, u = { class: "my-button" };
10
- function p(t, e, o, c, s, i) {
11
- return a(), r("button", u, [
12
- d(t.$slots, "default", {}, void 0, !0)
13
- ]);
14
- }
15
- const f = /* @__PURE__ */ _(l, [["render", p], ["__scopeId", "data-v-f5ddfcd2"]]), n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
16
- __proto__: null,
17
- MyButton: f
18
- }, Symbol.toStringTag, { value: "Module" })), m = (t) => {
19
- for (const e in n) {
20
- const o = n[e];
21
- t.component(o.name, o);
1
+ import { defineComponent as t, createElementBlock as a, openBlock as p, toDisplayString as m } from "vue";
2
+ const o = /* @__PURE__ */ t({
3
+ __name: "p-table",
4
+ props: {
5
+ name: {}
6
+ },
7
+ setup(e) {
8
+ return (n, l) => (p(), a("div", null, "表格组件" + m(n.name), 1));
22
9
  }
23
- }, b = {
24
- install: m,
25
- ...n
10
+ });
11
+ o.install = (e) => {
12
+ e.component("PTable", o);
13
+ };
14
+ const r = /* @__PURE__ */ t({
15
+ __name: "p-form",
16
+ props: {
17
+ name: {}
18
+ },
19
+ setup(e) {
20
+ return (n, l) => (p(), a("div", null, "表单组件" + m(n.name), 1));
21
+ }
22
+ });
23
+ r.install = (e) => {
24
+ e.component("PForm", r);
26
25
  };
27
26
  export {
28
- b as default
27
+ r as PForm,
28
+ o as PTable
29
29
  };
@@ -1 +1 @@
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["p-pc-ui"]=o(e.Vue))})(this,function(e){"use strict";const o=(t,s)=>{const n=t.__vccOpts||t;for(const[u,d]of s)n[u]=d;return n},r={name:"MyButton"},i={class:"my-button"};function f(t,s,n,u,d,a){return e.openBlock(),e.createElementBlock("button",i,[e.renderSlot(t.$slots,"default",{},void 0,!0)])}const c=Object.freeze(Object.defineProperty({__proto__:null,MyButton:o(r,[["render",f],["__scopeId","data-v-f5ddfcd2"]])},Symbol.toStringTag,{value:"Module"}));return{install:t=>{for(const s in c){const n=c[s];t.component(n.name,n)}},...c}});
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n["p-pc-ui"]={},n.Vue))})(this,function(n,e){"use strict";const o=e.defineComponent({__name:"p-table",props:{name:{}},setup(t){return(p,r)=>(e.openBlock(),e.createElementBlock("div",null,"表格组件"+e.toDisplayString(p.name),1))}});o.install=t=>{t.component("PTable",o)};const i=e.defineComponent({__name:"p-form",props:{name:{}},setup(t){return(p,r)=>(e.openBlock(),e.createElementBlock("div",null,"表单组件"+e.toDisplayString(p.name),1))}});i.install=t=>{t.component("PForm",i)},n.PForm=i,n.PTable=o,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})});
@@ -1,6 +1,2 @@
1
- import { App } from 'vue';
2
- declare const _default: {
3
- MyButton: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
- install: (app: App) => void;
5
- };
6
- export default _default;
1
+ export { default as PTable } from '../components/p-table';
2
+ export { default as PForm } from '../components/p-form';
@@ -0,0 +1,2 @@
1
+ import { default as PForm } from './p-form.vue';
2
+ export default PForm;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ name: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { default as PTable } from './p-table.vue';
2
+ export default PTable;
@@ -0,0 +1,5 @@
1
+ interface Props {
2
+ name: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
5
+ export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "p-pc-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/p-pc-ui.umd.js",
6
6
  "module": "dist/p-pc-ui.es.js",
@@ -12,7 +12,8 @@
12
12
  ".": {
13
13
  "import": "./dist/p-pc-ui.es.js",
14
14
  "require": "./dist/p-pc-ui.umd.js"
15
- }
15
+ },
16
+ "./dist/p-pc-ui.css": "./dist/p-pc-ui.css"
16
17
  },
17
18
  "peerDependencies": {
18
19
  "vue": "^3.0.0"
package/dist/p-pc-ui.css DELETED
@@ -1 +0,0 @@
1
- .my-button[data-v-f5ddfcd2]{background:#42b983;color:#fff;padding:10px 20px;border:none;border-radius:4px}
@@ -1,2 +0,0 @@
1
- import { default as MyButton } from './my-input/my-button.vue';
2
- export { MyButton };
@@ -1,2 +0,0 @@
1
- declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
- export default _default;