@web_xiaobai/ui 0.0.8 → 0.0.10

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,8 +1,8 @@
1
1
  import { SlotsType, VNode } from 'vue';
2
2
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
3
  readonly localeName: {
4
- readonly type: import('vue').PropType<"zh" | "en">;
5
- readonly default: "zh";
4
+ readonly type: import('vue').PropType<import('../..').LOCAL>;
5
+ readonly default: "zh-CN";
6
6
  };
7
7
  readonly isDark: {
8
8
  readonly type: BooleanConstructor;
@@ -42,8 +42,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
42
42
  };
43
43
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
44
44
  readonly localeName: {
45
- readonly type: import('vue').PropType<"zh" | "en">;
46
- readonly default: "zh";
45
+ readonly type: import('vue').PropType<import('../..').LOCAL>;
46
+ readonly default: "zh-CN";
47
47
  };
48
48
  readonly isDark: {
49
49
  readonly type: BooleanConstructor;
@@ -88,7 +88,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
88
88
  readonly preflightStyleDisabled: boolean;
89
89
  readonly inlineThemeDisabled: boolean;
90
90
  readonly as: string | undefined;
91
- readonly localeName: "zh" | "en";
91
+ readonly localeName: import('../..').LOCAL;
92
92
  readonly isDark: boolean;
93
93
  }, SlotsType<{
94
94
  default?: () => VNode[];
@@ -1,8 +1,9 @@
1
1
  import { PropType } from 'vue';
2
+ import { LOCAL } from '../../_enum';
2
3
  export declare const bodenConfigProviderProps: {
3
4
  readonly localeName: {
4
- readonly type: PropType<"zh" | "en">;
5
- readonly default: "zh";
5
+ readonly type: PropType<LOCAL>;
6
+ readonly default: "zh-CN";
6
7
  };
7
8
  readonly isDark: {
8
9
  readonly type: BooleanConstructor;
@@ -1,7 +1,9 @@
1
1
  import { VNodeChild } from 'vue';
2
2
  import { DialogOptions, DialogReactive } from 'naive-ui';
3
+ export type ConfirmPlacement = 'right' | 'center' | 'left';
3
4
  export type ConfirmTipOptions = DialogOptions & {
4
- titlePlacement?: 'right' | 'center' | 'left';
5
- actionPlacement?: 'right' | 'center' | 'left';
5
+ titlePlacement?: ConfirmPlacement;
6
+ actionPlacement?: ConfirmPlacement;
7
+ contentPlacement?: ConfirmPlacement;
6
8
  };
7
- export declare function bodenConfirmTip(content: string | (() => VNodeChild), title?: string, options?: ConfirmTipOptions): Promise<DialogReactive>;
9
+ export declare function bodenConfirmTip(content: string | (() => VNodeChild), title?: string | (() => VNodeChild), options?: ConfirmTipOptions): Promise<DialogReactive>;
package/dist/index.d.ts CHANGED
@@ -4,6 +4,7 @@ export * from './styles/index';
4
4
  export * from './_utils/index';
5
5
  export * from './_hooks/index';
6
6
  export * from './_themes/index';
7
+ export * from './_enum/index';
7
8
  declare const _default: {
8
9
  install: (app: App) => void;
9
10
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@web_xiaobai/ui",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.10",
5
5
  "type": "module",
6
6
  "main": "./dist/boden-ui.umd.js",
7
7
  "module": "./dist/boden-ui.js",
@@ -36,13 +36,6 @@
36
36
  "files": [
37
37
  "dist"
38
38
  ],
39
- "scripts": {
40
- "dev": "vite",
41
- "lib": "pnpm build && pnpm run postbuild",
42
- "postbuild": "node postbuild.js",
43
- "build": "vue-tsc -b && vite build",
44
- "preview": "vite preview"
45
- },
46
39
  "dependencies": {
47
40
  "@css-render/plugin-bem": "^0.15.14",
48
41
  "css-render": "^0.15.14",
@@ -68,5 +61,12 @@
68
61
  "vite-plugin-eslint": "^1.8.1",
69
62
  "vite-plugin-svg-icons": "^2.0.1",
70
63
  "vue-tsc": "^3.1.0"
64
+ },
65
+ "scripts": {
66
+ "dev": "vite",
67
+ "lib": "pnpm build && pnpm run postbuild",
68
+ "postbuild": "node postbuild.js",
69
+ "build": "vue-tsc -b && vite build",
70
+ "preview": "vite preview"
71
71
  }
72
72
  }