Commit e072a5f1 authored by nanahira's avatar nanahira

readme

parent 2e78fafd
......@@ -94,7 +94,7 @@ import { DefinePlugin, RegisterSchema, SchemaProperty, LifecycleEvents } from "k
import { PicSourcePlugin, PicsContainer, PicSourceConfig } from "koishi-plugin-pics";
@RegisterSchema()
export class Config extends PicSourceConfig {
export class Config {
@SchemaProperty({ default: 'my-source' }) // 推荐覆盖该属性以提供默认值
name: string;
......
......@@ -8,7 +8,7 @@ import {
import { PicResult, PicSourceConfig, PicSourcePlugin } from '../src';
@RegisterSchema()
class Config extends PicSourceConfig {
class Config {
@SchemaProperty({ default: 'zh-CN' })
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