Михаил Капелько 10 月之前
父節點
當前提交
47f8109c0b
共有 3 個文件被更改,包括 3 次插入6 次删除
  1. +1
    -1
      Modules/CordX/src/Cord.Button.swift
  2. +2
    -2
      Modules/MeetupIdX/src/MeetupId.Generated.swift
  3. +0
    -3
      Utilities/platform/2/generation/pipeBusSource.py

+ 1
- 1
Modules/CordX/src/Cord.Button.swift 查看文件

@@ -9,7 +9,7 @@ extension Cord {
public init(_ key: String) {
Bus.send(
key,
v.eraseToAnyPublisher(),
v.map { true }.eraseToAnyPublisher(),
sub: &subscriptions
)
}


+ 2
- 2
Modules/MeetupIdX/src/MeetupId.Generated.swift 查看文件

@@ -98,7 +98,7 @@ extension MeetupId {
ctrl.pipe(
dbg: "finishL",
sub: nil,
Bus.events.compactMap { Bus.convertKeyValue(K.finishLoading, $0) }.map { (k: String, v: Void) in v }.eraseToAnyPublisher(),
Bus.events.compactMap { Bus.convertKeyValue(K.finishLoading, $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(),
{ $0.finishLoading = true },
{ $0.finishLoading = false }
)
@@ -124,7 +124,7 @@ extension MeetupId {
ctrl.pipe(
dbg: "join",
sub: nil,
Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Void) in v }.eraseToAnyPublisher(),
Bus.events.compactMap { Bus.convertKeyValue(K.join, $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(),
{ $0.join = true },
{ $0.join = false }
)


+ 0
- 3
Utilities/platform/2/generation/pipeBusSource.py 查看文件

@@ -1,8 +1,5 @@
def pipeBusSource(name, entity, busKey, structure, fmt):
valueType = structure.model.fields[name][0]
if "toggle" in entity.pipes[name]:
valueType = "Void"

return fmt \
.replace("%BUS_KEY%", busKey) \
.replace("%BUS_VALUE_TYPE%", valueType)

Loading…
取消
儲存