This entity is shared and can be used by all applications.
@@ -17,6 +16,7 @@
+
@@ -139,7 +139,7 @@
this.hasTabs = this.tabs.length > 0 && !this.nested;
- if (!this.tabs.length)
+ if (this.tabs.length < 1)
{
this.tabs.push({
label: '',
diff --git a/zero.Web.UI/App/editor/fields/checklist.vue b/zero.Web.UI/App/editor/fields/checklist.vue
new file mode 100644
index 00000000..3037930e
--- /dev/null
+++ b/zero.Web.UI/App/editor/fields/checklist.vue
@@ -0,0 +1,15 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/zero.Web.UI/App/editor/fields/toggle.vue b/zero.Web.UI/App/editor/fields/toggle.vue
index c36e65f8..8594314e 100644
--- a/zero.Web.UI/App/editor/fields/toggle.vue
+++ b/zero.Web.UI/App/editor/fields/toggle.vue
@@ -1,5 +1,5 @@
-
+
@@ -9,7 +9,12 @@
value: {
type: Boolean,
default: false
- }
+ },
+ disabled: {
+ type: Boolean,
+ default: false
+ },
+ config: Object
}
}
\ No newline at end of file
diff --git a/zero.Web.UI/Sass/Core/_forms.scss b/zero.Web.UI/Sass/Core/_forms.scss
index 540115bf..575df9c8 100644
--- a/zero.Web.UI/Sass/Core/_forms.scss
+++ b/zero.Web.UI/Sass/Core/_forms.scss
@@ -73,4 +73,70 @@ textarea
height: 42px;
line-height: 40px;
}
+}
+
+.ui-native-check
+{
+ position: relative;
+ top: 1px;
+ font-size: var(--font-size);
+ cursor: pointer;
+ display: flex;
+ align-items: center;
+ line-height: 1;
+
+ input
+ {
+ width: 0;
+ height: 0;
+ opacity: 0;
+ position: absolute;
+ left: 0;
+ overflow: hidden;
+ visibility: hidden;
+ -webkit-appearance: none;
+ border: none;
+ }
+
+ &.is-primary input:checked ~ .ui-native-check-toggle
+ {
+ background: var(--color-primary);
+
+ &:before
+ {
+ color: var(--color-primary-fg);
+ }
+ }
+}
+
+.ui-native-check-toggle
+{
+ display: inline-block;
+ width: 20px;
+ height: 20px;
+ line-height: 20px;
+ text-align: center;
+ border-radius: var(--radius);
+ background: var(--color-bg-mid);
+ margin-right: 10px;
+ position: relative;
+ top: -1px;
+
+ &:before
+ {
+ content: "\e83f";
+ @extend %font-icon;
+ color: transparent;
+ font-size: var(--font-size-xs);
+ }
+
+ input:checked ~ &
+ {
+ background: var(--color-secondary);
+
+ &:before
+ {
+ color: var(--color-secondary-fg);
+ }
+ }
}
\ No newline at end of file
diff --git a/zero.Web.UI/Sass/Core/_settings.scss b/zero.Web.UI/Sass/Core/_settings.scss
index 87ff275b..ddac50b2 100644
--- a/zero.Web.UI/Sass/Core/_settings.scss
+++ b/zero.Web.UI/Sass/Core/_settings.scss
@@ -5,7 +5,7 @@
--color-primary: rgb(44, 162, 212); //linear-gradient(75deg, #48da9c, #3eb8ad); //#484c5b; // #292b2c; // #00aea2
--color-primary-fg: #fff;
--color-primary-low: rgba(44, 162, 212, 0.15);
- --color-secondary: #484d60;
+ --color-secondary: #353842;
--color-secondary-fg: #fff;
--color-primary-two: #3d72c4;
--color-negative: #d82853;