pd-ui-package 1.1.0 → 1.1.1

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.
@@ -0,0 +1,36 @@
1
+ import { defineComponent as p, createElementBlock as d, openBlock as a, createElementVNode as n, renderSlot as u, toDisplayString as r, unref as c } from "vue";
2
+ import { useLocale as i } from "./pd-ui-package.js";
3
+ const f = { class: "pd-test" }, _ = {
4
+ name: "pd-Button"
5
+ }, m = /* @__PURE__ */ p({
6
+ ..._,
7
+ props: {
8
+ title: {
9
+ type: String,
10
+ default: ""
11
+ }
12
+ },
13
+ setup(e) {
14
+ const { t: s } = i(), o = () => {
15
+ alert("点击了按钮");
16
+ };
17
+ return (l, t) => (a(), d("div", f, [
18
+ t[0] || (t[0] = n("h1", null, "pd-Test", -1)),
19
+ n("button", {
20
+ class: "pd-test-btn",
21
+ onClick: o
22
+ }, r(c(s)("test.button")), 1),
23
+ n("p", null, "参数内容:" + r(e.title), 1),
24
+ t[1] || (t[1] = n("p", null, "插槽内容:", -1)),
25
+ u(l.$slots, "default", {}, void 0, !0)
26
+ ]));
27
+ }
28
+ }), b = (e, s) => {
29
+ const o = e.__vccOpts || e;
30
+ for (const [l, t] of s)
31
+ o[l] = t;
32
+ return o;
33
+ }, g = /* @__PURE__ */ b(m, [["__scopeId", "data-v-b16a749b"]]);
34
+ export {
35
+ g as default
36
+ };
package/pd-ui-package.css CHANGED
@@ -1 +1 @@
1
- button[data-v-db3d1350]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-db3d1350]:hover{border-color:#646cff}button[data-v-db3d1350]:focus,button[data-v-db3d1350]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-db3d1350]{background-color:#f9f9f9}}
1
+ button[data-v-b16a749b]{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button[data-v-b16a749b]:hover{border-color:#646cff}button[data-v-b16a749b]:focus,button[data-v-b16a749b]:focus-visible{outline:4px auto -webkit-focus-ring-color}@media(prefers-color-scheme:light){button[data-v-b16a749b]{background-color:#f9f9f9}}