@zscreate/zhxy-app-component 1.0.309 → 1.0.311

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 ADDED
@@ -0,0 +1,5 @@
1
+ 浙江安防表单联动 zjaf_formLink_20240814
2
+
3
+ 产品合并浙江安防 formLink_20240827
4
+
5
+ 产品修复表单联动 formLink_20240919
@@ -663,6 +663,7 @@ import signatrueWrite from "../signatrue-write/signatrue-write.vue";
663
663
  import FullModal from "../fullModal/fullModal.vue";
664
664
  import Responsibility from "./components/responsibility.vue";
665
665
  import ClassifySelect from "../lb-picker-v2/classifySelect.vue";
666
+ import uniLink from "../uni-link/uni-link.vue"
666
667
 
667
668
  export default {
668
669
  options: { styleIsolation: 'shared' },
@@ -684,7 +685,8 @@ export default {
684
685
  jinEdit,
685
686
  uniDatetimePicker,
686
687
  richEditor,
687
- signatrueWrite
688
+ signatrueWrite,
689
+ uniLink
688
690
  },
689
691
  name: 'EvanFormItem',
690
692
  props: {
@@ -1849,10 +1851,11 @@ export default {
1849
1851
  this.validateInit()
1850
1852
  })
1851
1853
  var departType = this.widget.options.departType ? this.widget.options.departType : ''
1854
+ var departTypeAFDesign = this.widget.options.departTypeAFDesign ? this.widget.options.departTypeAFDesign : ''
1852
1855
  uni.navigateTo({
1853
1856
  url: '/pages/picker/depart?sign=' + PubsubSign + '&multiple=' + flag + '&departRela=' +
1854
1857
  departRela + '&selectedDepart=' + JSON.stringify(this.dataModel ? this.dataModel : []) + '&departType=' +
1855
- departType
1858
+ departType + '&departTypeAFDesign=' + departTypeAFDesign
1856
1859
  });
1857
1860
  },
1858
1861
  // 获取EvanForm组件
@@ -0,0 +1,82 @@
1
+ <template>
2
+ <text
3
+ class="uni-link"
4
+ :class="{'uni-link--withline':showUnderLine===true||showUnderLine==='true', disabledClick: disabled}"
5
+ :style="{color,fontSize:fontSize+'px'}"
6
+ @click="openURL">{{text}}</text>
7
+ </template>
8
+
9
+ <script>
10
+ /**
11
+ * Link 外部网页超链接组件
12
+ * @description uni-link是一个外部网页超链接组件,在小程序内复制url,在app内打开外部浏览器,在h5端打开新网页
13
+ * @property {String} href 点击后打开的外部网页url
14
+ * @property {String} text 显示的文字
15
+ * @property {Boolean} showUnderLine 是否显示下划线
16
+ * @property {String} copyTips 在小程序端复制链接时显示的提示语
17
+ * @property {String} color 链接文字颜色
18
+ * @property {String} fontSize 链接文字大小
19
+ * @example * <uni-link href="https://ext.dcloud.net.cn" text="https://ext.dcloud.net.cn"></uni-link>
20
+ */
21
+ export default {
22
+ name: 'uniLink',
23
+ props: {
24
+ href: {
25
+ type: String,
26
+ default: ''
27
+ },
28
+ text: {
29
+ type: String,
30
+ default: ''
31
+ },
32
+ showUnderLine: {
33
+ type: [Boolean, String],
34
+ default: true
35
+ },
36
+ copyTips: {
37
+ type: String,
38
+ default: '已自动复制网址,请在手机浏览器里粘贴该网址'
39
+ },
40
+ color: {
41
+ type: String,
42
+ default: '#999999'
43
+ },
44
+ fontSize: {
45
+ type: [Number, String],
46
+ default: 14
47
+ },
48
+ disabled: {
49
+ type: Boolean,
50
+ default: false
51
+ }
52
+ },
53
+ methods: {
54
+ openURL() {
55
+ // #ifdef APP-PLUS
56
+ plus.runtime.openURL(this.href)
57
+ // #endif
58
+ // #ifdef H5
59
+ window.open(this.href)
60
+ // #endif
61
+ // #ifdef MP
62
+ uni.setClipboardData({
63
+ data: this.href
64
+ });
65
+ uni.showModal({
66
+ content: this.copyTips,
67
+ showCancel: false
68
+ });
69
+ // #endif
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+
75
+ <style>
76
+ .uni-link--withline {
77
+ text-decoration: underline;
78
+ }
79
+ .disabledClick{
80
+ pointer-events: none;
81
+ }
82
+ </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zscreate/zhxy-app-component",
3
- "version": "1.0.309",
3
+ "version": "1.0.311",
4
4
  "private": false,
5
5
  "description": "zhxy-app-component",
6
6
  "main": "index.js",