We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4a1109 commit b3568caCopy full SHA for b3568ca
engine.go
@@ -22,7 +22,7 @@ const (
22
AppName = "QuarkGo"
23
24
// 版本号
25
- Version = "3.8.1"
+ Version = "3.8.2"
26
27
// 包名
28
PkgName = "github.com/quarkcloudio/quark-go/v3"
template/admin/component/component/element.go
@@ -16,6 +16,18 @@ type Element struct {
16
const DEFAULT_KEY = ""
17
const DEFAULT_CRYPT = true
18
19
+// 初始化
20
+func New() *Element {
21
+ return &Element{}
+}
+
+// 设置Component
+func (p *Element) SetComponent(component string) *Element {
+ p.Component = component
+ p.SetKey(component, true)
+ return p
29
30
31
// 设置Key
32
func (p *Element) SetKey(key string, crypt bool) *Element {
33
if key == "" {
0 commit comments