zartui 0.1.63 → 0.1.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # Zart
1
+ # ZartUI
2
2
 
3
- [Zart](https://zart.egovazx.top) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
3
+ [ZartUI](https://zartui.egova.com.cn) 是数字政通基于 Vue 研发的一款面向政务场景的移动端组件库。
4
4
 
5
- Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了Zart项目的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
5
+ Zart(读音 /zɑːt/)的命名,灵感源自数字政通秉承的理念:让城市治理变得更智慧。Zart = zt + smart, zt是政通的首字母缩写,smart代表公司理念中的“智慧”,将smart中间的“ar”字母包裹于zt之间,体现了ZartUI的核心目标:追求极致的用户体验,致力于做灵活智能的组件库。
6
6
 
7
7
  ## 特性
8
8
 
package/es/field/index.js CHANGED
@@ -14,7 +14,6 @@ import Cell from '../cell';
14
14
  import { cellProps } from '../cell/shared';
15
15
  import SearchIcon from "./SearchIcon";
16
16
  import ClearIcon from "./ClearIcon";
17
- import icon from '../icon';
18
17
 
19
18
  var _createNamespace = createNamespace('field'),
20
19
  createComponent = _createNamespace[0],
@@ -668,11 +667,11 @@ export default createComponent({
668
667
  "click": this.togglePwdVisible
669
668
  },
670
669
  "style": "width:20px;height:20px;margin-left:12px;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.4);"
671
- }, [this.showPassword ? h("zt-icon", {
670
+ }, [this.showPassword ? h(Icon, {
672
671
  "attrs": {
673
672
  "name": "eye-open"
674
673
  }
675
- }) : h("zt-icon", {
674
+ }) : h(Icon, {
676
675
  "attrs": {
677
676
  "name": "eye-closed"
678
677
  }
@@ -50,6 +50,10 @@ export default createComponent({
50
50
  textKey: {
51
51
  type: String,
52
52
  default: "name"
53
+ },
54
+ returnChainData: {
55
+ type: Boolean,
56
+ default: false
53
57
  }
54
58
  },
55
59
  data: function data() {
@@ -97,7 +101,9 @@ export default createComponent({
97
101
  }
98
102
  },
99
103
  selected: function selected(item) {
100
- this.$emit("selected", item);
104
+ var data = deepClone(this.breadcrumbData);
105
+ data.push(item);
106
+ this.$emit("selected", this.returnChainData ? data : item);
101
107
  },
102
108
  chooseSenior: function chooseSenior(index) {
103
109
  this.breadcrumbData.splice(index + 1);
@@ -40,6 +40,10 @@ export default createComponent({
40
40
  title: {
41
41
  type: String,
42
42
  default: "选择"
43
+ },
44
+ returnChainData: {
45
+ type: Boolean,
46
+ default: false
43
47
  }
44
48
  },
45
49
  data: function data() {
@@ -99,7 +103,8 @@ export default createComponent({
99
103
  "asyncGetter": this.asyncGetter,
100
104
  "multiple": this.multiple,
101
105
  "valueKey": this.valueKey,
102
- "textKey": this.textKey
106
+ "textKey": this.textKey,
107
+ "returnChainData": this.returnChainData
103
108
  },
104
109
  "on": {
105
110
  "selected": this.onSelected,
@@ -186,7 +186,7 @@ export default createComponent({
186
186
  }, [h(SubIcon, {
187
187
  "class": bem("sub-icon")
188
188
  }), h("span", ["\u4E0B\u7EA7"])]) : h()])]);
189
- }), h("div", {
189
+ }), this.multiple ? h("div", {
190
190
  "class": bem("result-box")
191
191
  }, [this.showResultList ? h("div", {
192
192
  "class": bem("result-list")
@@ -219,6 +219,6 @@ export default createComponent({
219
219
  "on": {
220
220
  "click": this.confirm
221
221
  }
222
- }, ["\u786E\u5B9A"])])])]);
222
+ }, ["\u786E\u5B9A"])])]) : h()]);
223
223
  }
224
224
  });
package/es/index.js CHANGED
@@ -70,7 +70,7 @@ import Tabs from './tabs';
70
70
  import Tag from './tag';
71
71
  import Toast from './toast';
72
72
  import Uploader from './uploader';
73
- var version = '0.1.63';
73
+ var version = '0.1.66';
74
74
 
75
75
  function install(Vue) {
76
76
  var components = [ActionSheet, Area, Avatar, BackTop, Badge, Button, Calendar, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Col, Collapse, CollapseItem, CountDown, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, FoldDialog, Form, HierarchySelect, Icon, Image, ImagePreview, IndexAnchor, IndexBar, Info, Lazyload, List, Loading, Locale, MultiplePicker, NavBar, NoticeBar, NumberKeyboard, Overlay, PasswordInput, PdfViewer, Picker, Popover, Popup, PullRefresh, Radio, RadioGroup, Rate, Row, Search, Signature, Skeleton, Slider, Step, Stepper, Steps, Sticky, Swipe, SwipeCell, SwipeItem, Switch, SwitchCell, Tab, Tabbar, TabbarItem, Table, Tabs, Tag, Toast, Uploader];
@@ -1 +1 @@
1
- .zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#fff}.zt-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:rgba(0,0,0,.04);border:0 solid rgba(0,0,0,.06);border-radius:2px}.zt-search__content--round{border-radius:999px}.zt-search__label{padding:4px 0 4px 8px;color:rgba(0,0,0,.6);font-family:PingFangSC-Semibold;font-weight:400;font-size:14px;line-height:20px}.zt-search .zt-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:4px 8px;background-color:transparent;line-height:20px;font-size:14px;font-family:PingFangSC-Regular;font-weight:400}.zt-search .zt-cell__left-icon{color:#969799}.zt-search .zt-field{margin:0}.zt-search .zt-field__control{color:rgba(0,0,0)}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:#0091fa}.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search__action{padding:0 16px;color:#0091fa;font-size:16px;font-family:PingFangSC-Semibold;height:28px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}
1
+ .zt-search{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;box-sizing:border-box;padding:8px 16px;background-color:#fff}.zt-search__content{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;background-color:rgba(0,0,0,.04);border:0 solid rgba(0,0,0,.06);border-radius:2px}.zt-search__content--round{border-radius:999px}.zt-search__label{padding:4px 0 4px 8px;color:rgba(0,0,0,.6);font-family:PingFangSC-Semibold;font-weight:400;font-size:14px;line-height:20px}.zt-search .zt-cell{-webkit-box-flex:1;-webkit-flex:1;flex:1;padding:4px 8px;background-color:transparent;line-height:20px;font-size:14px;font-family:PingFangSC-Regular;font-weight:400}.zt-search .zt-cell__left-icon{color:#969799}.zt-search .zt-field{margin:0}.zt-search .zt-field__control{color:#000}.zt-search--show-action{padding-right:0}.zt-search input{caret-color:#0091fa}.zt-search input::-webkit-search-cancel-button,.zt-search input::-webkit-search-decoration,.zt-search input::-webkit-search-results-button,.zt-search input::-webkit-search-results-decoration{display:none}.zt-search__action{padding:0 16px;color:#0091fa;font-size:16px;font-family:PingFangSC-Semibold;height:28px;font-weight:600;cursor:pointer;-webkit-user-select:none;user-select:none;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.zt-search__action:active{background-color:rgba(0,0,0,.04)}
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .zt-field__control {
49
- color: rgba(0, 0, 0);
49
+ color: rgba(0, 0, 0, 1);
50
50
  }
51
51
 
52
52
  &--show-action {
@@ -683,11 +683,11 @@ var _default = createComponent({
683
683
  "click": this.togglePwdVisible
684
684
  },
685
685
  "style": "width:20px;height:20px;margin-left:12px;display:flex;justify-content:center;align-items:center;color:rgba(0,0,0,.4);"
686
- }, [this.showPassword ? h("zt-icon", {
686
+ }, [this.showPassword ? h(_icon.default, {
687
687
  "attrs": {
688
688
  "name": "eye-open"
689
689
  }
690
- }) : h("zt-icon", {
690
+ }) : h(_icon.default, {
691
691
  "attrs": {
692
692
  "name": "eye-closed"
693
693
  }
@@ -63,6 +63,10 @@ var _default2 = createComponent({
63
63
  textKey: {
64
64
  type: String,
65
65
  default: "name"
66
+ },
67
+ returnChainData: {
68
+ type: Boolean,
69
+ default: false
66
70
  }
67
71
  },
68
72
  data: function data() {
@@ -110,7 +114,9 @@ var _default2 = createComponent({
110
114
  }
111
115
  },
112
116
  selected: function selected(item) {
113
- this.$emit("selected", item);
117
+ var data = (0, _deepClone.deepClone)(this.breadcrumbData);
118
+ data.push(item);
119
+ this.$emit("selected", this.returnChainData ? data : item);
114
120
  },
115
121
  chooseSenior: function chooseSenior(index) {
116
122
  this.breadcrumbData.splice(index + 1);
@@ -51,6 +51,10 @@ var _default = createComponent({
51
51
  title: {
52
52
  type: String,
53
53
  default: "选择"
54
+ },
55
+ returnChainData: {
56
+ type: Boolean,
57
+ default: false
54
58
  }
55
59
  },
56
60
  data: function data() {
@@ -110,7 +114,8 @@ var _default = createComponent({
110
114
  "asyncGetter": this.asyncGetter,
111
115
  "multiple": this.multiple,
112
116
  "valueKey": this.valueKey,
113
- "textKey": this.textKey
117
+ "textKey": this.textKey,
118
+ "returnChainData": this.returnChainData
114
119
  },
115
120
  "on": {
116
121
  "selected": this.onSelected,
@@ -196,7 +196,7 @@ var _default2 = createComponent({
196
196
  }, [h(_SubIcon.default, {
197
197
  "class": bem("sub-icon")
198
198
  }), h("span", ["\u4E0B\u7EA7"])]) : h()])]);
199
- }), h("div", {
199
+ }), this.multiple ? h("div", {
200
200
  "class": bem("result-box")
201
201
  }, [this.showResultList ? h("div", {
202
202
  "class": bem("result-list")
@@ -229,7 +229,7 @@ var _default2 = createComponent({
229
229
  "on": {
230
230
  "click": this.confirm
231
231
  }
232
- }, ["\u786E\u5B9A"])])])]);
232
+ }, ["\u786E\u5B9A"])])]) : h()]);
233
233
  }
234
234
  });
235
235