Commit e072a5f1 authored by nanahira's avatar nanahira

readme

parent 2e78fafd
...@@ -94,7 +94,7 @@ import { DefinePlugin, RegisterSchema, SchemaProperty, LifecycleEvents } from "k ...@@ -94,7 +94,7 @@ import { DefinePlugin, RegisterSchema, SchemaProperty, LifecycleEvents } from "k
import { PicSourcePlugin, PicsContainer, PicSourceConfig } from "koishi-plugin-pics"; import { PicSourcePlugin, PicsContainer, PicSourceConfig } from "koishi-plugin-pics";
@RegisterSchema() @RegisterSchema()
export class Config extends PicSourceConfig { export class Config {
@SchemaProperty({ default: 'my-source' }) // 推荐覆盖该属性以提供默认值 @SchemaProperty({ default: 'my-source' }) // 推荐覆盖该属性以提供默认值
name: string; name: string;
......
...@@ -8,7 +8,7 @@ import { ...@@ -8,7 +8,7 @@ import {
import { PicResult, PicSourceConfig, PicSourcePlugin } from '../src'; import { PicResult, PicSourceConfig, PicSourcePlugin } from '../src';
@RegisterSchema() @RegisterSchema()
class Config extends PicSourceConfig { class Config {
@SchemaProperty({ default: 'zh-CN' }) @SchemaProperty({ default: 'zh-CN' })
name: string; name: string;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment