little-dizzy 1.2.0 → 1.2.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.
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as n, openBlock as s, normalizeClass as u, renderSlot as r, createCommentVNode as i, createElementVNode as l, toDisplayString as f } from "vue";
2
- const p = (t, e) => {
2
+ const m = (t, e) => {
3
3
  const o = t.__vccOpts || t;
4
4
  for (const [a, d] of e)
5
5
  o[a] = d;
@@ -45,7 +45,7 @@ const p = (t, e) => {
45
45
  r(o.$slots, "default", {}, void 0, !0)
46
46
  ], 10, g));
47
47
  }
48
- }, k = /* @__PURE__ */ p(B, [["__scopeId", "data-v-75f082b2"]]), $ = {
48
+ }, k = /* @__PURE__ */ m(B, [["__scopeId", "data-v-75f082b2"]]), $ = {
49
49
  key: 0,
50
50
  class: "card-header"
51
51
  }, z = {
@@ -84,7 +84,7 @@ const p = (t, e) => {
84
84
  ])) : i("", !0)
85
85
  ], 2));
86
86
  }
87
- }, C = /* @__PURE__ */ p(_, [["__scopeId", "data-v-2d83e63a"]]), x = { class: "modal-dialog" }, M = { class: "modal-content" }, E = { class: "modal-header" }, L = {
87
+ }, C = /* @__PURE__ */ m(_, [["__scopeId", "data-v-2d83e63a"]]), x = { class: "modal-dialog" }, M = { class: "modal-content" }, E = { class: "modal-header" }, L = {
88
88
  key: 0,
89
89
  class: "modal-header-title"
90
90
  }, D = { class: "modal-body" }, I = {
@@ -153,7 +153,7 @@ const p = (t, e) => {
153
153
  ])
154
154
  ], 2)) : i("", !0);
155
155
  }
156
- }, N = /* @__PURE__ */ p(F, [["__scopeId", "data-v-c66cec30"]]), O = {
156
+ }, N = /* @__PURE__ */ m(F, [["__scopeId", "data-v-c66cec30"]]), O = {
157
157
  name: "Button",
158
158
  type: "vue",
159
159
  label: "Button 按钮",
@@ -216,6 +216,7 @@ const visible = ref(false)
216
216
  name: "lzbutton",
217
217
  type: "html",
218
218
  label: "LzButton 渐变按钮",
219
+ isCustom: !0,
219
220
  code: `<button class="button">
220
221
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 24">
221
222
  <path d="m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z"></path>
@@ -262,9 +263,9 @@ const visible = ref(false)
262
263
  V,
263
264
  j,
264
265
  H
265
- ], m = /* @__PURE__ */ new Map();
266
+ ], p = /* @__PURE__ */ new Map();
266
267
  function b(t) {
267
- return !t || !t.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (m.set(t.name, {
268
+ return !t || !t.name ? (console.warn("[LittleDizzy] Snippet must have a name property"), !1) : (p.set(t.name, {
268
269
  name: t.name,
269
270
  type: t.type || "html",
270
271
  label: t.label || t.name,
@@ -283,12 +284,12 @@ function y(t) {
283
284
  }
284
285
  function R() {
285
286
  const t = {};
286
- return m.forEach((e, o) => {
287
+ return p.forEach((e, o) => {
287
288
  t[o] = e;
288
289
  }), t;
289
290
  }
290
291
  function U(t) {
291
- return m.get(t);
292
+ return p.get(t);
292
293
  }
293
294
  y(P);
294
295
  const h = {
@@ -42,7 +42,7 @@ import { ref } from 'vue'
42
42
  import { Modal, Button } from 'little-dizzy'
43
43
 
44
44
  const visible = ref(false)
45
- <\/script>`},{name:"lzbutton",type:"html",label:"LzButton 渐变按钮",code:`<button class="button">
45
+ <\/script>`},{name:"lzbutton",type:"html",label:"LzButton 渐变按钮",isCustom:!0,code:`<button class="button">
46
46
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 24">
47
47
  <path d="m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z"></path>
48
48
  </svg>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "little-dizzy",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "LittleDizzy - 一个支持代码片段的 Vue 3 UI 组件库",
5
5
  "type": "module",
6
6
  "main": "dist/little-dizzy.umd.cjs",
@@ -7,6 +7,7 @@ export default {
7
7
  name: 'lzbutton',
8
8
  type: 'html',
9
9
  label: 'LzButton 渐变按钮',
10
+ isCustom: true,
10
11
  code: `<button class="button">
11
12
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 24">
12
13
  <path d="m18 0 8 12 10-8-4 20H4L0 4l10 8 8-12z"></path>