feat:fix alignmnet typo
This commit is contained in:
6
doric-web/dist/DoricPlayground.js
vendored
6
doric-web/dist/DoricPlayground.js
vendored
@@ -76,7 +76,7 @@ let DoricPlayground = class DoricPlayground extends doric.Panel {
|
||||
text: "Demo列表",
|
||||
textSize: 20,
|
||||
}).apply({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignmnet(doric.gravity().centerY()).configMargin({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignment(doric.gravity().centerY()).configMargin({
|
||||
left: 15,
|
||||
})
|
||||
})
|
||||
@@ -101,7 +101,7 @@ let DoricPlayground = class DoricPlayground extends doric.Panel {
|
||||
textSize: 30,
|
||||
textColor: doric.Color.BLACK,
|
||||
}).apply({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignmnet(doric.gravity().centerY()).configMargin({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignment(doric.gravity().centerY()).configMargin({
|
||||
left: 15,
|
||||
})
|
||||
}),
|
||||
@@ -130,7 +130,7 @@ let DoricPlayground = class DoricPlayground extends doric.Panel {
|
||||
text: "待上线",
|
||||
textSize: 20,
|
||||
}).apply({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignmnet(doric.gravity().centerY()).configMargin({
|
||||
layoutConfig: doric.layoutConfig().fit().configAlignment(doric.gravity().centerY()).configMargin({
|
||||
left: 15,
|
||||
})
|
||||
})
|
||||
|
2
doric-web/dist/ListDemo.js
vendored
2
doric-web/dist/ListDemo.js
vendored
@@ -95,7 +95,7 @@ let ListPanel = class ListPanel extends doric.Panel {
|
||||
};
|
||||
it.loadMoreView = doric.listItem(doric.text({
|
||||
text: "Loading",
|
||||
layoutConfig: doric.layoutConfig().most().configHeight(doric.LayoutSpec.JUST).configAlignmnet(doric.Gravity.Center),
|
||||
layoutConfig: doric.layoutConfig().most().configHeight(doric.LayoutSpec.JUST).configAlignment(doric.Gravity.Center),
|
||||
height: 50,
|
||||
}));
|
||||
}),
|
||||
|
2
doric-web/dist/Snake.js
vendored
2
doric-web/dist/Snake.js
vendored
@@ -186,7 +186,7 @@ class SnakeView extends doric.ViewHolder {
|
||||
]).apply({
|
||||
layoutConfig: doric.layoutConfig().fit()
|
||||
.configWidth(doric.LayoutSpec.MOST)
|
||||
.configAlignmnet(doric.Gravity.Left),
|
||||
.configAlignment(doric.Gravity.Left),
|
||||
space: 10,
|
||||
}),
|
||||
]).apply({
|
||||
|
11
doric-web/dist/index.js
vendored
11
doric-web/dist/index.js
vendored
@@ -2062,7 +2062,7 @@ class LayoutConfigImpl {
|
||||
this.margin = m;
|
||||
return this;
|
||||
}
|
||||
configAlignmnet(a) {
|
||||
configAlignment(a) {
|
||||
this.alignment = a;
|
||||
return this;
|
||||
}
|
||||
@@ -3166,6 +3166,14 @@ __decorate$9([
|
||||
Property,
|
||||
__metadata$9("design:type", Function)
|
||||
], Input.prototype, "onFocusChange", void 0);
|
||||
function input(config) {
|
||||
const ret = new Input;
|
||||
ret.layoutConfig = layoutConfig().just();
|
||||
for (let key in config) {
|
||||
Reflect.set(ret, key, Reflect.get(config, key, config), ret);
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
var __decorate$a = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
||||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
||||
@@ -3619,6 +3627,7 @@ exports.flowlayout = flowlayout;
|
||||
exports.gravity = gravity;
|
||||
exports.hlayout = hlayout;
|
||||
exports.image = image;
|
||||
exports.input = input;
|
||||
exports.layoutConfig = layoutConfig;
|
||||
exports.list = list;
|
||||
exports.listItem = listItem;
|
||||
|
2
doric-web/dist/index.js.map
vendored
2
doric-web/dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user