luyoumin-ui 0.0.36 → 0.0.38

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/README.md CHANGED
@@ -8,6 +8,11 @@ This template should help get you started developing with Vue 3 and TypeScript i
8
8
 
9
9
  - Use [vue-tsc](https://github.com/vuejs/language-tools/tree/master/packages/tsc) for performing the same type checking from the command line, or for generating d.ts files for SFCs.
10
10
 
11
- npm 发布流程:
12
- 1、npm login (输入账号密码和邮箱验证码登录,账号:luyoumin,密码:luyoumin19936871)
13
- 2、npm publish (每次上传需要更改版本号)
11
+ 使用说明:
12
+ npm引入之后,在项目的main.ts中通过以下操作导入组件:
13
+ import LymUi from 'luyoumin-ui';
14
+ import 'luyoumin-ui/dist/global.d'
15
+ import 'luyoumin-ui/dist/style.css';
16
+ const app = createApp(App);
17
+ app.use(LymUi);
18
+ app.mount("#app");
@@ -84,12 +84,12 @@ declare const _default: import('vue').DefineComponent<{
84
84
  }, {
85
85
  modelValue: boolean;
86
86
  label: string;
87
+ isIndeterminate: boolean;
87
88
  disabled: boolean;
88
89
  size: number;
89
90
  labelSpace: string;
90
91
  labelFontSize: string;
91
92
  isCircle: boolean;
92
93
  value: string;
93
- isIndeterminate: boolean;
94
94
  }, {}>;
95
95
  export default _default;
@@ -90,8 +90,8 @@ declare const _default: import('vue').DefineComponent<{
90
90
  };
91
91
  }>>, {
92
92
  type: string;
93
- src: string;
94
93
  size: string | number | unknown[];
94
+ src: string;
95
95
  fillColor: string;
96
96
  hoverColor: string;
97
97
  isHttps: boolean;
@@ -0,0 +1,18 @@
1
+ export {}
2
+
3
+ import { GenericImg, LymButton, LymCheckBox, LymCheckBoxGroup, LymColorPicker, LymDialog, LymDrawer, LymInput, LymLink } from './index'
4
+
5
+ // 自动注册全局组件虽然很方便,但在使用时缺少了ts类型提示,下面介绍一下为全局组件添加类型提示
6
+ declare module 'vue' {
7
+ export interface GlobalComponents {
8
+ GenericImg: typeof GenericImg
9
+ LymButton: typeof LymButton
10
+ LymCheckBox: typeof LymCheckBox
11
+ LymCheckBoxGroup: typeof LymCheckBoxGroup
12
+ LymColorPicker: typeof LymColorPicker
13
+ LymDialog: typeof LymDialog
14
+ LymDrawer: typeof LymDrawer
15
+ LymInput: typeof LymInput
16
+ LymLink: typeof LymLink
17
+ }
18
+ }
@@ -253,7 +253,7 @@ const U1 = { style: { position: "relative" } }, X1 = {
253
253
  },
254
254
  emits: ["update:modelValue", "update:disabled"],
255
255
  setup(t, { expose: o, emit: l }) {
256
- const c = t, a = l, i = u(!1), s = u(!1), d = u(""), p = C1("getRef"), m = C1("checkChange"), C = u();
256
+ const c = t, a = l, i = u(!1), s = u(!1), d = u(""), p = C1("getRef", null), m = C1("checkChange", null), C = u();
257
257
  O(() => c.modelValue, (v, w) => {
258
258
  i.value = v;
259
259
  }), O(() => c.value, (v, w) => {
@@ -262,7 +262,7 @@ const U1 = { style: { position: "relative" } }, X1 = {
262
262
  s.value = v;
263
263
  }), Q(() => {
264
264
  i.value = c.modelValue, s.value = c.disabled, n1(() => {
265
- p && p instanceof Function && p(C, b, g, c.value);
265
+ p !== null && p instanceof Function && p(C, b, g, c.value);
266
266
  });
267
267
  });
268
268
  function f() {
@@ -319,7 +319,7 @@ const U1 = { style: { position: "relative" } }, X1 = {
319
319
  }, d1(t.label), 5)
320
320
  ], 4));
321
321
  }
322
- }), K1 = /* @__PURE__ */ U(q1, [["__scopeId", "data-v-e04e1a99"]]), J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
322
+ }), K1 = /* @__PURE__ */ U(q1, [["__scopeId", "data-v-e8dd7c9a"]]), J1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
323
323
  __proto__: null,
324
324
  default: K1
325
325
  }, Symbol.toStringTag, { value: "Module" })), e3 = /* @__PURE__ */ D({