提交 248cb0df authored 作者: 龙菲's avatar 龙菲

Initial commit

上级
node_modules
# 开发文件
src/
examples/
docs/
node_modules/
# 配置文件
vite.config.demo.ts
tsconfig.json
.gitignore
.npmignore
# 构建相关
*.map
tsconfig.tsbuildinfo
# 开发工具
.vscode/
.idea/
*.log
.DS_Store
# 测试
coverage/
*.test.ts
*.spec.ts
# 其他
package-lock.json
# NPM 发布指南
本文档说明如何将 `kb-search` 组件库发布到 npm。
## 发布前准备
### 1. 检查 package.json 配置
确保以下字段已正确填写:
- `name`: 包名(已设置为 `kb-search`
- `version`: 版本号(当前为 `1.0.0`
- `author`: 作者信息(请填写你的信息)
- `repository.url`: Git 仓库地址(如果有,请填写)
- `license`: 许可证(已设置为 MIT)
### 2. 确保已构建
发布前需要先构建组件库:
```bash
npm run build:lib
```
这会生成 `dist` 目录,包含所有需要发布的文件。
### 3. 检查构建输出
确保 `dist` 目录包含以下文件:
- `kb-search.js` (ES Module)
- `kb-search.umd.cjs` (UMD)
- `index.d.ts` (TypeScript 类型定义)
- `style.css` (样式文件)
- 其他类型定义文件
## 发布步骤
### 第一步:登录 npm
如果你还没有 npm 账号,请先注册:<https://www.npmjs.com/signup>
然后登录:
```bash
npm login
```
输入你的用户名、密码和邮箱。
### 第二步:检查包名是否可用
在发布前,检查包名是否已被占用:
```bash
npm view kb-search
```
如果返回 404,说明包名可用。如果已被占用,需要修改 `package.json` 中的 `name` 字段。
### 第三步:更新版本号(可选)
如果需要发布新版本,更新版本号:
```bash
# 补丁版本 (1.0.0 -> 1.0.1)
npm version patch
# 次版本 (1.0.0 -> 1.1.0)
npm version minor
# 主版本 (1.0.0 -> 2.0.0)
npm version major
```
或者手动编辑 `package.json` 中的 `version` 字段。
### 第四步:构建组件库
```bash
npm run build:lib
```
### 第五步:预览将要发布的内容
检查哪些文件会被发布:
```bash
npm pack --dry-run
```
这会显示将要打包的文件列表,确保只包含必要的文件。
### 第六步:发布到 npm
#### 发布到公共仓库(默认)
```bash
npm publish
```
#### 发布到测试环境(推荐首次发布时使用)
```bash
npm publish --tag beta
```
这样发布后,用户需要使用 `npm install kb-search@beta` 来安装。
### 第七步:验证发布
发布成功后,可以通过以下方式验证:
```bash
# 查看包信息
npm view kb-search
# 查看版本信息
npm view kb-search versions
# 查看最新版本
npm view kb-search version
```
## 发布后更新
如果需要发布更新版本:
1. 修改代码
2. 更新 `package.json` 中的版本号
3. 运行 `npm run build:lib`
4. 运行 `npm publish`
## 常见问题
### 1. 包名已被占用
如果 `kb-search` 已被占用,可以:
- 使用作用域包名:`@your-username/kb-search`
- 修改为其他名称,如 `kb-search-vue``vue-kb-search`
### 2. 发布权限错误
确保:
- 已正确登录 npm
- 包名未被其他人占用
- 如果是作用域包,需要设置访问权限:`npm publish --access public`
### 3. 构建文件路径错误
如果发布后用户无法正确导入,检查 `package.json` 中的:
- `main`: 指向 UMD 构建文件
- `module`: 指向 ES Module 构建文件
- `types`: 指向类型定义文件
- `exports`: 确保路径正确
### 4. 样式文件未包含
确保 `dist/style.css` 被包含在 `files` 字段中,或者用户需要手动导入样式:
```js
import 'kb-search/dist/style.css'
```
## 发布检查清单
发布前请确认:
- [ ] `package.json` 中的版本号已更新
- [ ] `package.json` 中的 `author``repository` 等信息已填写
- [ ] 已运行 `npm run build:lib` 构建成功
- [ ] `dist` 目录包含所有必要的文件
- [ ] 已运行 `npm pack --dry-run` 检查发布内容
- [ ] 已登录 npm (`npm whoami` 验证)
- [ ] 包名可用(`npm view kb-search` 返回 404)
- [ ] README.md 文档完整
- [ ] 类型定义文件已生成
## 撤销发布(紧急情况)
如果发布后发现严重问题,可以在 72 小时内撤销:
```bash
# 撤销指定版本
npm unpublish kb-search@1.0.0
# 撤销整个包(24小时内)
npm unpublish kb-search --force
```
**注意**:撤销发布会影响包的声誉,请谨慎使用。
## 使用 npm 脚本自动化
`package.json` 中已添加 `prepublishOnly` 脚本,在 `npm publish` 时会自动运行构建,确保发布的是最新构建。
## 后续维护
发布后,建议:
1. 在 GitHub 等平台创建 release tag
2. 更新 CHANGELOG.md(如果有)
3. 通知用户更新
4. 监控 npm 下载量和用户反馈
差异被折叠。
import { SearchParams } from '../../types';
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
config: any;
params: SearchParams;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (params: SearchParams) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
config: any;
params: SearchParams;
}>>> & {
onSearch?: ((params: SearchParams) => any) | undefined;
}, {}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
//# sourceMappingURL=index.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/AdvancedSearch/index.vue"],"names":[],"mappings":"AAuBA;AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;;YAuQrC,GAAG;YACH,YAAY;;;;YADZ,GAAG;YACH,YAAY;;;;AAPtB,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
\ No newline at end of file
import { SearchMode, SearchParams } from '../../types';
interface Props {
config: any;
mode: SearchMode;
}
declare function __VLS_template(): {
"advanced-header"?(_: {}): any;
};
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (params: SearchParams) => void;
"mode-change": (mode: SearchMode) => void;
"smart-search": (message: string) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>> & {
onSearch?: ((params: SearchParams) => any) | undefined;
"onMode-change"?: ((mode: SearchMode) => any) | undefined;
"onSmart-search"?: ((message: string) => any) | undefined;
}, {}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
//# sourceMappingURL=KbSearchHeader.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"KbSearchHeader.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KbSearch/KbSearchHeader.vue"],"names":[],"mappings":"AAuCA;AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAI3D,UAAU,KAAK;IACb,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,UAAU,CAAA;CACjB;AA6CD,iBAAS,cAAc;+BA+IiB,GAAG;EAG1C;AAgBD,QAAA,MAAM,eAAe;;;;;;;;UAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
\ No newline at end of file
import { SearchConfig, SearchResult, SearchParams } from '../../types';
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
config: SearchConfig;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (params: SearchParams) => void;
"result-click": (item: SearchResult) => void;
"smart-response": (content: string) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
config: SearchConfig;
}>>> & {
onSearch?: ((params: SearchParams) => any) | undefined;
"onResult-click"?: ((item: SearchResult) => any) | undefined;
"onSmart-response"?: ((content: string) => any) | undefined;
}, {}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
//# sourceMappingURL=index.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/KbSearch/index.vue"],"names":[],"mappings":"AA6BA;AAGA,OAAO,KAAK,EAAE,YAAY,EAAc,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;;YA0Y7E,YAAY;;;;;;YAAZ,YAAY;;;;;;AANtB,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
\ No newline at end of file
import { SearchConfig } from '../../types';
interface Props {
item: any;
config: SearchConfig;
}
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<Props>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<Props>>>, {}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
//# sourceMappingURL=DefaultResultItem.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"DefaultResultItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/DefaultResultItem.vue"],"names":[],"mappings":"AAiCA;AAGA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,aAAa,CAAA;AAK5D,UAAU,KAAK;IACb,IAAI,EAAE,GAAG,CAAA;IACT,MAAM,EAAE,YAAY,CAAA;CACrB;;AA8ND,wBAMG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
\ No newline at end of file
import { SearchResult, SearchConfig } from '../../types';
declare function __VLS_template(): {
"result-item"?(_: {
item: SearchResult;
}): any;
};
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
config: SearchConfig;
results: SearchResult[];
total: number;
loading: boolean;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
"result-click": (item: SearchResult) => void;
"pagination-change": (page: number) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
config: SearchConfig;
results: SearchResult[];
total: number;
loading: boolean;
}>>> & {
"onResult-click"?: ((item: SearchResult) => any) | undefined;
"onPagination-change"?: ((page: number) => any) | undefined;
}, {}, {}>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
type __VLS_WithTemplateSlots<T, S> = T & {
new (): {
$slots: S;
};
};
//# sourceMappingURL=index.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SearchResults/index.vue"],"names":[],"mappings":"AAiDA;AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AA2C7D,iBAAS,cAAc;;;QAuRa,GAAG;EAGtC;AAoBD,QAAA,MAAM,eAAe;YAMX,YAAY;aACX,YAAY,EAAE;WAChB,MAAM;aACJ,OAAO;;;;;YAHR,YAAY;aACX,YAAY,EAAE;WAChB,MAAM;aACJ,OAAO;;;;UAGhB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAAvG,wBAAwG;AACxG,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
\ No newline at end of file
import { SearchParams } from '../../types';
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
config: any;
params: SearchParams;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (params: SearchParams) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
config: any;
params: SearchParams;
}>>> & {
onSearch?: ((params: SearchParams) => any) | undefined;
}, {}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
//# sourceMappingURL=index.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SimpleSearch/index.vue"],"names":[],"mappings":"AAYA;AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;;YAkGrC,GAAG;YACH,YAAY;;;;YADZ,GAAG;YACH,YAAY;;;;AAPtB,wBAUG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
\ No newline at end of file
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
config: any;
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
search: (message: string) => void;
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
config: any;
}>>> & {
onSearch?: ((message: string) => any) | undefined;
}, {}, {}>;
export default _default;
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
type __VLS_TypePropsToRuntimeProps<T> = {
[K in keyof T]-?: {} extends Pick<T, K> ? {
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
} : {
type: import('vue').PropType<T[K]>;
required: true;
};
};
//# sourceMappingURL=index.vue.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SmartSearch/index.vue"],"names":[],"mappings":"AAsBA;;YAuMU,GAAG;;;;YAAH,GAAG;;;;AANb,wBASG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC"}
\ No newline at end of file
import { SearchConfig } from '../types';
export declare const defaultConfig: Partial<SearchConfig>;
export declare const minimalConfigExample: SearchConfig;
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAe,MAAM,UAAU,CAAA;AAEzD,eAAO,MAAM,aAAa,EAAE,OAAO,CAAC,YAAY,CAgB/C,CAAA;AAED,eAAO,MAAM,oBAAoB,EAU5B,YAAY,CAAA"}
\ No newline at end of file
import { App } from 'vue';
export { default as KbSearch } from './components/KbSearch/index.vue';
export * from './types';
export { defaultConfig, minimalConfigExample } from './config';
export { GlobalSearch };
declare const _default: {
install(app: App): void;
};
export default _default;
//# sourceMappingURL=index.d.ts.map
\ No newline at end of file
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAG/B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AACrE,cAAc,SAAS,CAAA;AACvB,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAA;AAE9D,OAAO,EAAE,YAAY,EAAE,CAAC;;iBAGT,GAAG;;AADlB,wBAME"}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论