lty-protocol 1.0.18 → 1.0.20

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,2 @@
1
+ export declare const UI_KEY: unique symbol;
2
+ export declare const THEME_KEY: unique symbol;
@@ -0,0 +1,8 @@
1
+ import { App } from 'vue';
2
+ import { UIComponentMap, ThemeConfig } from './types';
3
+ export declare function createUIAdapter(options: {
4
+ components: UIComponentMap;
5
+ theme?: ThemeConfig;
6
+ }): {
7
+ install(app: App): void;
8
+ };
@@ -0,0 +1,10 @@
1
+ import { Component } from 'vue';
2
+ export interface ComponentModelConfig {
3
+ component: Component;
4
+ modelProp?: string;
5
+ modelEvent?: string;
6
+ }
7
+ export type UIComponentMap = Partial<Record<string, ComponentModelConfig>>;
8
+ export interface ThemeConfig {
9
+ [key: string]: string | number | undefined;
10
+ }
@@ -1,9 +1,9 @@
1
1
  type __VLS_Props = {
2
- modelValue: string;
2
+ modelValue: any;
3
3
  };
4
4
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
- "update:modelValue": (modelValue: string) => any;
5
+ "update:modelValue": (value: any) => any;
6
6
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
- "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -2,8 +2,8 @@ type __VLS_Props = {
2
2
  modelValue: number;
3
3
  };
4
4
  declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
- "update:modelValue": (modelValue: number) => any;
5
+ "update:modelValue": (value: any) => any;
6
6
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
- "onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
7
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
8
8
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
9
9
  export default _default;
@@ -0,0 +1,9 @@
1
+ type __VLS_Props = {
2
+ modelValue: string;
3
+ };
4
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
5
+ "update:modelValue": (value: string) => any;
6
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
7
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
8
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
9
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { Plugin } from 'vue';
2
2
  import { default as MyButton } from './components/MyButton.vue';
3
3
  import { default as Button2 } from './components/button2.vue';
4
4
  import { default as Input } from './components/Input.vue';
5
- import { default as IpInput } from './components/IpInput';
5
+ import { default as IpInput } from './components/IpInput.vue';
6
6
  import { default as InputNumber } from './components/InputNumber.vue';
7
7
  import { MyLibPlugin } from './plugin';
8
8
  /**
@@ -1 +1 @@
1
- .my-btn[data-v-c654f959],.my-btn[data-v-1477cfc3]{padding:6px 12px;border:1px solid #ccc}
1
+ .my-btn[data-v-c654f959],.my-btn[data-v-1477cfc3]{padding:6px 12px;border:1px solid #ccc}.ip-wrapper[data-v-02ab53e1]{display:flex;gap:6px}.ip-segment[data-v-02ab53e1]{width:60px}